Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call another application's activity  RSS feed

 
sam liya
Ranch Hand
Posts: 1254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to call another application's activity from my application activity?I tried with below codes

I am calling TestActivity from my activity.below is the code.



Also i added the below code to manifest file.


but when i run the my app it gives me below error

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does a class with that name exist in the APK? "com.sph.pdf" seems to be the package name of the application.

And I strongly advise not to name the action in a way that looks like a class name, especially if you intend to have classes that are named like that as well.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!