Load Previous UI From Stack

by Reghu » Tue, 28 Apr 2009 21:23:28 GMT


Sponsored Links
 Hai

Is there any way to load my previous UI from stack.

My requirement is

I click "HOME" from my current UI and now i am listening to a external
event with the help of a service.
When i get the external event i like to load my previous UI. Is there
any way.

What i did was...

Intent callerpageIntent = new Intent();
(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
callerpageIntent.setClassName("org.innovature.androidsipclient",
"org.innovature.androidsipclient.SIPCallerPage");
startActivity(callerpageIntent);

But i am not getting old or new UI on "Home Screen"

Is there any way, can any one tell me i miss some thing?

Thanks
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Extremely LONG Emulator load time on Eclipse Galileo and Vista

Hi all,

I am pretty new to Android programming, but I am really keen to get
into it.

With Eclipse Galileo, the latest SDK 1.5_r3, ADT plugin and Vista OS,
I started with the Hello World sample from Android User Guide website.
What really disappointed me was it took forever to start up the
Emulator. Well, I never had it start up properly actually.

Eclipse Android Console displays:
[2009-08-17 16:33:22 - HelloAndroid] Android Launch!
[2009-08-17 16:33:22 - HelloAndroid] adb is running normally.
[2009-08-17 16:33:22 - HelloAndroid] Performing
edu.unimelb.helloandroid.HelloAndroid activity launch
[2009-08-17 16:33:22 - HelloAndroid] Automatic Target Mode: launching
new emulator with compatible AVD 'my_avd'
[2009-08-17 16:33:22 - HelloAndroid] Launching a new emulator with
Virtual Device 'my_avd'
[2009-08-17 16:33:23 - HelloAndroid] New emulator found: emulator-5554
[2009-08-17 16:33:23 - HelloAndroid] Waiting for HOME
('android.process.acore') to be launched...

On the Emulator page, it keeps showing "ANDROID_" and nothing
further...

I am just wondering if there is any step I was missing to make it
startup properly? I did just following the User Guide...

Could anybody give me a hint? Appreciate it!!

Alex

--~--~---------~--~----~------------~-------~--~----~

2. multiple image attachments

Hi...

I have developed a application which can send an email with one image
attachment.
Now i want to attach the multiple images.when i click a button email
should send to a hard coded email address with multiple image
attachments.
    I used intents for my program. To send image i used putExtra
method and send image as a EXTRA_STREAM.

    Are their any way to implement this.If any body knows plz help me

my code is

public class emailFun extends Activity {

        /** Called when the activity is first created. */

        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.email_main);

         Button btnSend = (Button) findViewById(R.id.mbutton);

         btnSend.setOnClickListener(new OnClickListener() {
                        @Override
                        public void onClick(View v) {

                                if (v.getId() == R.id.mbutton) {
                                          sendEmail();

                                }
                        }
                });

}

        public void sendEmail() {

                String []mailto = {"mai...@yahoo.com"};

                // Create a new Intent to send messages

                Intent sendIntent = new Intent(Intent.ACTION_SEND);

                sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);

         Uri _uri=MediaStore.Images.Media.EXTERNAL_CONTENT_URI;

         android.provider.MediaStore.Images.ImageColumns.DATA },null,
null,
null);

                Cursor  cursor = getContentResolver().query(_uri, new
String[]
{ android.provider.MediaStore.Images.ImageColumns.DATA },null, null,
null);

                cursor.moveToFirst();

            int i=cursor.getCount();

            sendIntent.putExtra(Intent.EXTRA_SUBJECT,"Accsident
pictueres-
count"+i);

                cursor.moveToFirst();

                String imageFilePath1 = cursor.getString(0);

                String modPath1="file://"+imageFilePath1;

                     Uri uPath1=Uri.parse(modPath1);

   sendIntent.setType("image/jpg");

         sendIntent.putExtra(Intent.EXTRA_STREAM,uPath1);

        startActivity(Intent.createChooser(sendIntent,"send the
mail"));

                   cursor.close();
                 finish();

        }
}
--~--~---------~--~----~------------~-------~--~----~

3. help needed creating a AVD

4. code to display an Emulator "Image with its name"

5. Htc hero di htc dream

6. Location Listener problem

7. FxCameta