| Author |
How to open one application from another one?
|
Prajkti Khadse
Ranch Hand
Joined: Apr 02, 2009
Posts: 52
|
|
Hi all
i want to open another Android application from my application.
for example, when i click on a button, it should open the Messaging application for me, so that i can send SMS.
can anybody please help me... ???!!!
|
 |
chetan dhumane
Ranch Hand
Joined: Jan 07, 2009
Posts: 628
|
|
You can use
startActivity() function .
Intent i =new Intent(this,Display2.class);
startActivity(i);
|
http://www.androcid.com/
|
 |
Prajkti Khadse
Ranch Hand
Joined: Apr 02, 2009
Posts: 52
|
|
yeah fine...
but how would i know the Activity Class to start??
i want to open the actual Messaging application, Camera Application and Media Player from my application???
|
 |
chetan dhumane
Ranch Hand
Joined: Jan 07, 2009
Posts: 628
|
|
Prajkti Khadse wrote:yeah fine...
but how would i know the Activity Class to start??
i want to open the actual Messaging application, Camera Application and Media Player from my application???
You have created the Activity with its class name so embed class name and .class to it .Just I have given example
|
 |
Prajkti Khadse
Ranch Hand
Joined: Apr 02, 2009
Posts: 52
|
|
Thanks for your reply...
but, i think you are not getting my problem...
ok i'll explain...
i want to start The android's Camera application which obviously i've not written...!!
so how would i knw abt its activity...???
i referred the source code, but didn't get any clue???
|
 |
chetan dhumane
Ranch Hand
Joined: Jan 07, 2009
Posts: 628
|
|
I'll try to solve your problem.
I don't know solution now.
If I find it I'll forward it from my gmail at evening.
|
 |
Prajkti Khadse
Ranch Hand
Joined: Apr 02, 2009
Posts: 52
|
|
Thank you ssooo much...!!!
|
 |
Monu Tripathi
Rancher
Joined: Oct 12, 2008
Posts: 1365
|
|
Here are few links that can help -
First read up on Android How Tos: Opening New Screen
Then take a look at android.content.Intent class to find an Intent that can help launch a messaging application.
You can see all this knowlege being applied in this sample code: Sending Email from Android
|
[List of FAQs] | [Android FAQ] | [My Blog] | [Samuh Varta]
|
 |
Prajkti Khadse
Ranch Hand
Joined: Apr 02, 2009
Posts: 52
|
|
Thanks...
i'll try it..
|
 |
 |
|
|
subject: How to open one application from another one?
|
|
|