Ok thank u:)
This is the class which I call in my activity by using the button
public class total extends Activity {
 public void onCreate(Bundle b)
 {
 super.onCreate(b);
 new Menuapp();
 String t=Menuapp.getG();
 TextView t1=new TextView(this);
  t1.setText(t);
 setContentView(t1);
 }
}

this is the string buffer I used in the calling class
public static String g;
StringBuffer sb = new StringBuffer();
for (int i=0;i<selectedItem.size();i++)
{
 sb.append(selectedItem.get(i)+"\n");
}
   g= sb.toString();

and these are my get and set methods

 public static String getG() {
return g;
}
 public static void setG(String g) {
Menuapp.g = g;
}

what is the problem?

On Wed, Jul 20, 2011 at 8:16 PM, TreKing <[email protected]> wrote:

> On Wed, Jul 20, 2011 at 9:35 AM, Arif Nadeem <[email protected]>wrote:
>
>> what is the problem?
>
>
> Given the amount of information you posted, the problem is a bug in your
> code. If you explain the problem more clearly or provide some sample code,
> you may get a better answer.
>
> Also, for future reference, development topics like this should probably go
> to android-developers, you'll likely get much more views on your issue
> there.
>
>
> -------------------------------------------------------------------------------------------------
>  TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Android Discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/android-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Reply via email to