Calling an activity that is in another package(android)?

See Android: Starting An Activity For A Different Third Party App final Intent intentDeviceTest = new Intent("android.intent.action. MAIN"); intentDeviceTest. SetComponent(new ComponentName("fm.last.

Android","fm.last.android. LastFm")); startActivity(intentDeviceTest) where you can change the intent to VIEW depending on your case.

See Android: Starting An Activity For A Different Third Party App final Intent intentDeviceTest = new Intent("android.intent.action. MAIN"); intentDeviceTest. SetComponent(new ComponentName("fm.last.

Android","fm.last.android. LastFm")); startActivity(intentDeviceTest); where you can change the intent to VIEW depending on your case.

Thanks a lot its working awesome...i have some research using this I may need your help in future so plz feel free to respond I may be back... – manju Dec 3 '10 at 10:57 sure. Nevertheless, please accept the answer if it solved your problem. I'll be still replying if I can :) – Mathias Lin Dec 3 '10 at 11:01 all right sure.... – manju Dec 3 '10 at 11:08 hi I think I need more space to explain my scenario so plz look at my answer for further details.. – manju Dec 3 '10 at 11:13 in simple ....i have created a button in my app called images,when clicked it should launch the google with images displayed...it is not only applicable for google this idea should be applicable to any installed third party apps.... – manju Dec 3 '10 at 11:28.

Here is my challenging scenario.. step 1; I have opened google. Com from web browser on my emulator and opened some images in that and I pressed home key and opened my app in that I have written code for getting the top activity name and package of currently running task, I mean I got browser's top activity information... step 2; from that information I have lunched the browser from my activity..fine browser is launched where it was left previous(showing some images) but when I press the back key on my emulator it is not coming to my app instead it is going back to google. Com home page and later if I press back key it is coming to my app....and again if I launch the browser app from my code it is launching in google home page..i want to launch it in image section as I need..

. . Have you finished the Activity which you are calling?

May be it Solve tour Problem. .. – Androider Mahajan Apr 29 at 4:48.

I have an activity in package com.qz. I need to start an activity in a package com.qz.Test. I tried Setting the component and used SetClass also but of no help...Below is my manifest of com.qz.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions