Having a back button functioning like the emulators

by pawan nimje » Tue, 11 May 2010 00:10:16 GMT


Sponsored Links
 Hi all

I have 3 activities

1: Welcome screen

2:List of country

3:Details abt that country

Now i want to from activity 3 to 2

Currently wat im doing is

 Intent i = new Intent(getApplicationContext(), selectcountry.class);
 startActivity(i);

This way the onCreate methode of 2nd activity is called ... and the whole
list is populated again ...

But the back button of emulated function differently ...

wat code should i write to make my back button behave like the emulators ...

--



Having a back button functioning like the emulators

by TreKing » Tue, 11 May 2010 00:34:15 GMT


 




finish().

And please don't double post - it's really unnecessary.

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

--


Sponsored Links


Having a back button functioning like the emulators

by pawan nimje » Tue, 11 May 2010 00:47:06 GMT


 sorry and thank u ...






>



Other Threads

1. make call from app & go directly back to app after call hangup?

Dear Android Developers,

is it possible to make a call from an activity and make sure the
activity doesn't keep running while the call is in session? And, once
the user is done with the call (by pressing the hangup button or
whatever), the call log screen wouldn't get shown and the user would
be directed to a new activity within the application.

I know there's ways to detect calls and call hangups through services,
but, I'm not sure if it's possible to make an activity from an app pop
up as soon as a call is over.

You know what I mean?

-- 

2. How to get the gallery app to recognize a new extension

Hi,

I want to add a new extension .ogm for Gallery app. At first the ogm
file was not being shown at all under the Gallery app. After adding
this extension under MediaFile.java under eclair/frameworks/base/media/
java/android/media i got .ogm visible under Gallery app. But when i
click it, nothing happens and i do not a get a call in the
MediaPlayerService.cpp to recognize the player type.

If the extension of .ogm is changed to .avi i get a call into
MediaPlayerService.cpp.
What else need to be done to get .ogm recognized ?

-- 

3. Query regarding Email application

4. Connection to Java server program

5. Why are onCreate() onStart() etc. called when handset orientation is changed?

6. SQLite image storing problem

7. Read gesture file in sdcard failed