launching new instance --- Urgent help needed

by Revathi K J Ramanan » Tue, 07 Sep 2010 18:45:49 GMT


Sponsored Links
 Hi,

I have two activities.A and B.
A starts B.Both are running in the screen and both are visible. Say
now B is visible.

On a special key press, I want to bring the A to the front and make it
active.
The problem I am facing is when the special key is pressed, another
instance of A is launched and the new instance is brought to the
front.

But I want the original A to come to the front. I want to make this
change in the framework layer rather than application specific by
using the singleInstance theme in the launchMode in AndroidManifest
file.

Please help me in this regard as this is really urgent for me.
Any inputs will be really valuable for me.

Thanks in advance.

Regards,
Revathi K J Ramanan

--



launching new instance --- Urgent help needed

by Dhrumil Shah » Tue, 07 Sep 2010 18:48:51 GMT


 Have you tried to develop this? If yes, paste ur code

~Dhrumil

On Tue, Sep 7, 2010 at 4:15 PM, Revathi K J Ramanan <



>


Sponsored Links


launching new instance --- Urgent help needed

by Kostya Vasilyev » Tue, 07 Sep 2010 19:00:03 GMT


 See this:

 http://developer.android.com/reference/android/content/Intent.html #FLAG_ACTIVITY_REORDER_TO_FRONT

-- Kostya

07.09.2010 14:45, Revathi K J Ramanan :
Hi, I have two activities.A and B. A starts B.Both are running in the screen and both are visible. Say now B is visible. On a special key press, I want to bring the A to the front and make it active. The problem I am facing is when the special key is pressed, another instance of A is launched and the new instance is brought to the front. But I want the original A to come to the front. I want to make this change in the framework layer rather than application specific by using the singleInstance theme in the launchMode in AndroidManifest file. Please help me in this regard as this is really urgent for me. Any inputs will be really valuable for me. Thanks in advance. Regards, Revathi K J Ramanan
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --



launching new instance --- Urgent help needed

by YuviDroid » Tue, 07 Sep 2010 20:05:45 GMT


 Or you can simply call finish() in your activity B. This will close activity
B and will bring back the "old" activity A.

On Tue, Sep 7, 2010 at 12:45 PM, Revathi K J Ramanan <



>



launching new instance --- Urgent help needed

by TreKing » Wed, 08 Sep 2010 01:05:35 GMT


 On Tue, Sep 7, 2010 at 5:45 AM, Revathi K J Ramanan <




If you want to change the framework to do this, you probably want to ask
this in the porting mailing group.



What, precisely, makes this "really urgent"?

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

--



Other Threads

1. -http-proxy question ?

Hello,
I am inside a firewall. I am using google GeoCoder API. I started the
emulator using -http-proxy http://54.62.228.195:8080 option. I getting
the following error

E/GeoAddress(  228): java.io.IOException: Unable to parse response
from server
E/GeoAddress(  228):    at android.location.Geocoder.getFromLocationName
(Geocoder.java:166)
E/GeoAddress(  228):    at com.androidbook.location.GeoAddress$1.onClick
(GeoAddress.java:37)

When I started the emulator with verbose I see the emulator is using
the proxy as intended.

emulator: sent '0012host:emulator:5557' to ADB server
emulator: setting up http proxy:  server=54.62.228.195 port=8080

BTW, I am using the same proxy server/Port  for other applications and
it works fine.

What could be the problem ? Please help

Regards
GOPI

-- 

2. app for blocking apps

Hi,
is there any way to block an app so that cannot be launched?
thx

-- 

3. TTS 1.9 not working in Emulator. Please help.

4. Picking up a PhoneBook entry under Android 2.0 !!!

5. How to enable different css in WebView

6. ADC 2 Education Winners (top 20) With Links!

7. How can I enable the Google search by voice in Android phone (HTC dream)