wood burning stoves 2.0*
The moose likes Android and the fly likes How to open one application from another one? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to open one application from another one?" Watch "How to open one application from another one?" New topic
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: 629

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: 629

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: 629

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: 1369
    
    1

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] | [Samuh Varta]
Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
Thanks...

i'll try it..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to open one application from another one?
 
Similar Threads
Passing parameters to url using java.net package
Opening/Calling up applet window from an Applet application
in login system how dispose first open window not all
Passing control from one application to another.
Cursor