Hi All, Please suggest me how to overcome this problem?
Thanks, Suda On Tue, Jan 26, 2010 at 10:26 AM, suda murali <murali.s...@gmail.com> wrote: > Hi All, > > Can anyone suggest me how to call activities inside the tabs. > I have implemented four tabs(one,two,three,four). In tab "one" i am > having button, when onclick will call another activity, which will > also has another button and so on . I want to retain the main tabs and > tab "one" should be selected. Similar case with tabs "two", "three" > and "four" > I was able to call the activities retaining the tabs. But when i click > emulator back button i am not able to restore the previous activity. >llowing the code i have used for calling activities: > > public class SpinnerClass1 extends ActivityGroup{ > /** Called when the activity is first created. */ > LocalActivityManager m; > �...@override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > m= getLocalActivityManager(); > setContentView(R.layout.main); > > Button next = (Button) findViewById > (com.enlume.R.id.ButtonTabTest); > next.setOnClickListener(new View.OnClickListener(){ > public void onClick(View view) { > Intent intent = new Intent(SpinnerClass1.this, > ActivityTabStateRetain1.class); > Window window = m.startActivity("favourite > shop",intent); > setContentView(window.getDecorView()); > > overridePendingTransition(com.enlume.R.layout.fade, > com.enlume.R.layout.hold); > } > }); > > } > > } > > > Please suggest me in the right direction. > > > Thanks in Advance, > Suda. > > -- suda.... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en