My main package is called com.android.cats, and I created a another package (in the same app) named com.android.dog. In package com.android.cats I created an Activity called Meow.java, and in package com.android.dog I created an Activity called Ruff.java. My question is: how can I switch the activity from Meow.java to Ruff.java?
My main package is called com.android.cats , and I created a another package (in
Share
Declare your activities in
AndroidManifest.xmlsimilar to the following:Then in your application code, launch your intents as you usually would, of course using the full package name instead (i.e.
com.android.dogs.Ruff)