Calling activity drom another application

Put your problem here if it does not fit any of the other categories.

Calling activity drom another application

Postby ivan_zd » Sun Mar 27, 2011 12:15 am


I want to start activity of another application (installed on my desire and also my application) from my application's activity. This should be that explicit activity calling.
My question is is that possible and how should I register that activity (some intent filter in manifest.xml or something?) for be able to call it.

I am using this part of code for calling that activity
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. final Intent i = new Intent();
  2.         i.setAction(Intent.ACTION_MAIN); //might not be necessary
  3.         i.setClassName("<package>", "<full_name_of_class>");
  4.         startActivity(i);
Parsed in 0.011 seconds, using GeSHi

but i get ActivityNotFound exception....
Also that activity is not main activity in that another application....

Thans very much...
Posts: 3
Joined: Tue Apr 27, 2010 6:57 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 5 guests