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. resource IDs and sharedUserId

Hi,

If I am not wrong with the way android:sharedUserId is intended to
work, then my question is how to avoid overlapping resource IDs? appt
seems to aways start IDs at the same initial value (i.e. drawables at
0x7f020000), so there will be sort of conflict or ambiguation. As for
now I failed to get that cleared w/o digging in OS sources. Or I miss
anything, like magic "undocumented" appt option (not that aapt is
documented at all)?

-- 

2. EditText wrapped in ScrollView

Hi all, I have an issue with EditText when it's wrapped in ScrollView.

Please see the following layout setup:
<?xml version="1.0" encoding="utf-8"?>
        <ScrollView
        xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content">
                <LinearLayout
                        android:orientation="vertical"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content">
                        <View
                                android:layout_width="fill_parent"
                                android:layout_height="100dp" />
                        <EditText
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:maxLines="5"/>
                </LinearLayout>
        </ScrollView>

There's nothing special about this layout.
I just want the EditText inside ScrollView to be scrollable when I
entered more than 5 lines of text.

I tested this layout with both Eclair and Froyo and Eclair seemed
working fine, but Froyo didn't really work at all.
Was there any change on ScrollView?

ScrollView api says that I can put EditText(or TextView) inside of
ScrollView to have this kind of functionality, so I guess that I did
make a mistake or missed something important.
If there's anyone who knows about this issue, please help me!!

Thanks in advance!!

-- 

3. Activity on top of the InCallScreen

4. bikin hotspot pake wifi lapto

5. T*lkomsel, Begitu Dekat Nyatanya Mana

6. tny rooting legend

7. Framework base Interfaces not find on target.