Problem with activity group

by Laxmi Verma » Tue, 05 Apr 2011 00:03:07 GMT


Sponsored Links
 Hi,

I am using ActivityGroup class for one of my tab in my application.

1) There is a tab activity class calling the activitygroup class.

2) In activity group class i am calling one activity say Activity A which is
a list view.

3) On Activity A item click, I am calling another activity say Activity B.

I need to override the back button functionality in Activity A and Activity
B.

The problem which I am facing is on Activity A it is successfuly calling the
overriden onBackButton method but on Activity B instead of overriding the
back button method, it is calling the Tab Activity's back button method.  I
am not sure why?
I even debugged the code and it never goes into the onbackbutton method of
Activity B.

To resolve this I even tried calling Activity A on back button press of tab
activity which is required.  But the flow come as it goes into activity A
and then from there it goes directly to the First Activity.

I am also using Alert Dialog Box in both of the activity and passing
getParent() as context in the Alert Builder Dialog Box.

Any help in this regard will be great.


Thanks & Regards,
Laxmi Verma

-- 



Re: Problem with activity group

by TreKing » Tue, 05 Apr 2011 01:01:53 GMT


 On Mon, Apr 4, 2011 at 11:03 AM, Laxmi Verma





That's a problem in and of itself. From what I've read around here,
ActivityGroup is pretty much a hack. Use Views in your Tabs or try the new
fragment stuff.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Re: Problem with activity group

by Laxmi Verma » Tue, 05 Apr 2011 13:20:57 GMT


 Hi,

Can you please detail out about your reply.  I am unable to understand it.
Is there any other option available instead of ActivityGroup to change the
views in the tab.
If yes, then please provide some link or some code example on it.

Thanks!!






-- 



Re: Problem with activity group

by TreKing » Tue, 05 Apr 2011 23:42:13 GMT


 On Tue, Apr 5, 2011 at 12:20 AM, Laxmi Verma




Yes, use Views or Fragments, as I said.



Look through the documentation for TabView or Fragment. You should find
plenty of info.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 



Other Threads

1. CountDownTimer doen't work during device in deep sleep?

I use CountDownTimer for counting 24hours with 1minute interval.
but It seems that the onTick() not called when device in deep sleep.
When I check the millisUntilFinished value after activating device,
The value was not match first but after few seconds, It show correct
value.
I think, when device in deep sleep, handle message from CountDownTimer
delayed, and if device activated, the last message of CountDownTimer
sent.
and after that the millisUntilFinished value is updated.

Any solution for it? I have to use the CountDownTimer, because I need
to get the millisUntilFinished value in every 1 minute.

-- 

2. increase your system to speed...................

http://123maza.com/28/come123/

-- 

3. Libgdx vs. andengine

4. Anybody seen a slowdown in sales?

5. Not able to do "repo sync" on Linux system

6. tribalwars

7. Problem connecting to WIFI network