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. Error with Eclipse

When I go to Window > Preferences > Android I get this issue:

[2009-11-01 19:48:56 - ddms]Could not open Selected VM debug port
(8700). Make sure you do not have another instance of DDMS or of the
eclipse plugin running. If it's being used by something else, choose a
new port number in the preferences.

And when I select my SDK I still get "No target available" in the
target list.

Because of this I am unable to create a new Android project.

Also, when I select Preferences > Android > DDMS I get an error:

"An error has occurred. See error log for more details."

I'm running Linux Mint 7 and Eclipse 3.2.2.

-- 

2. Starting a service from top-level launcher

Hi,

I am trying to make a 'headless' (i.e. UI-less) application. Is it possible
to start a service in my application from the top-level launcher (the one
accessed from the Android home screen) directly, that is, without the
launcher starting an activity which then start the service?

Simply adding the ACTION_MAIN and CATEGORY_LAUNCHER filters to the
declaration of the service in the manifest file does not work for me.

Thanks in advance,
Anders Feder

-- 

3. Very specific question about Foreground / Background tasks...

4. Could not open Selected VM debug port (8700). [error]

5. Problem with Ubuntu 9.10? Please read!

6. Very specific question about Foreground / Background tasks...

7. How to add View on a Map at specific Geopoint?