• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call another application's activity

 
sam liya
Ranch Hand
Posts: 1246
  • 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: 42970
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!