Forums Register Login

I got java.lang.ClassNotFoundException when i try to start activity of another application

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Does the app include that class?
+Pie Number of slices to send: Send
of course ULF.
+Pie Number of slices to send: Send
Apparently Android doesn't think so, so it's a justified question. The next question, just as obvious: is it correctly declared as being an Activity in the manifest?

Have you tried making it the launch activity - does that work? If you haven't tried, that should be the next step.
+Pie Number of slices to send: Send
this is my first app main class




this is main app layout file



this is main app manifest file



this is second app main class



this is second app layout file



this is second app manifest file



+Pie Number of slices to send: Send
I'm confused - you have two apps that have this activity? The one trying to launch it, and another one that has just that activity? So are you trying to launch a different app, or a different activity within the same app?
+Pie Number of slices to send: Send
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/
+Pie Number of slices to send: Send
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?
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 10701 times.
Similar Threads
need to find distance between given two cities
class not found exception
how to transfer images to ftp server in android
Debugging help needed
how to get a longitude & latitude from a given address
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:50:28.