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

Hi

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.031 seconds, using GeSHi 1.0.8.4


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

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

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 19 guests