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. :: using System.gc();

Hi
    hey  can  i use System.gc()  in my activity to request for garbage
collection.
     will it work () ..   will the garbage collector be called ?

  Thanks in Advance for any Replays...!!!

Cheers
Imran
--~--~---------~--~----~------------~-------~--~----~

2. Can I customize the top status bar? I mean the bar contains signal, power, notification.

Can I customize the top status bar? I mean the bar contains signal,
power, notification. If yes, how? I find the sample can customize the
home but didn't find any way to customize the top status bar.


Merry Christmas!
--~--~---------~--~----~------------~-------~--~----~

3. "Cupcake" Anyone in Google that Could Shed Some Light! :) Thanks!

4. Apostrophe question

5. Problem getting the width of the root view.

6. PV OpenCORE port connections

7. How to use OCR in android