posted 3 years ago
I tried with below example
Activity example
when i run the example and click the button to call other activity it givess me below exception
i run using real phone as well as emulator,but i got same results.when i tried with second app it works fine both emulator and device.
Activity example
when i run the example and click the button to call other activity it givess me below exception
i run using real phone as well as emulator,but i got same results.when i tried with second app it works fine both emulator and device.
Ulf Dittmer
Rancher
Posts: 42975
76
sam liya
Ranch Hand
Posts: 1278
Ulf Dittmer
Rancher
Posts: 42975
76
sam liya
Ranch Hand
Posts: 1278
posted 3 years ago
as in the example below it tries to start an activity in a another application.
http://hmkcode.com/android-start-another-activity-of-another-application/
http://hmkcode.com/android-start-another-activity-of-another-application/
Ulf Dittmer
Rancher
Posts: 42975
76
posted 3 years ago
You changed the intent-filter action - that is not how it is in the article. So the only activity that reacts to "com.hmkcode.android.another.app.ANOTHER_ACTIVITY" is the first app - which you said is not what you want. Why does the first app even have AnotherActivity in its manifest?

Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
|