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. What's his name?

Hello,

I have a simple question.

What's his name?
http://www.android.com/intl/ja/media/android_vector.jpg

According to this site, his name is [ android robot ]
http://www.android.com/branding.html

And according to this site, his name is [ Droid ]
http://www.android.com/intl/ja/media/goodies.html

Or some japanese sites said, his name is [ Goodies ]

Which is correct?

-- 

2. Serial over Bluetooth

I'm learning Android quickly but I'm still very much a newbie.  Once
I'm up to speed, I have a project in mind that I'd like to try with my
new Droid.  I want to interface it with a robot.

I'm brand new to Android development, though I've been doing
electronics for some time now. One of the recent trends in hobby
robotics is adding wireless control, often using Bluetooth as a
wireless serial communication medium.

Does anyone out there know if I can use the Motorola Droid's onboard
Bluetooth capabilities (or any Android phone for that matter) to
communicate with a home-brew Bluetooth device?  That is, can I
manually roll my own serial protocol using the existing Bluetooth
framework?

I know it's a weird question but hey - I'm a weird guy.

Thanks for any and all ideas!

--

3. How to implement asking questions before uninstalling the apk

4. How to implement asking questions before uninstalling the apk

5. FileNotFoundException on FileOutputStream when writing on sdcard, no idea why

6. FileNotFoundException on FileOutputStream when writing on sdcard, no idea why

7. Where can I find android's DynamicLayout example