1

I am developing android apps using android sdk. I have a common library that is shared by multiple projects. The projects use the same code from the shared library but with their own res, image, and sound, etc. But if these projects are installed on the same device, when I run one of them, it will bring up other apps that built from the shared library. Anyone can help me on how to solve this issue? Thanks enter image description here

1 Answer 1

1

It appears that you are not using a true Android Library Project, described here: http://developer.android.com/tools/projects/index.html.

The "Complete Action Using" Dialog appears when firing an Intent to load an Activity that may not be in the same Application.

Please verify that you are sharing resources and code via an Android Library Project.

With an Android Library Project, you can share resources between multiple different applications that are distributed via separate .APK's without confusion between components. It is done all the time by many developers.

Sign up to request clarification or add additional context in comments.

3 Comments

I use the Android Library Project. But the intent to load the Activity that starts the app is in the shared Library. Maybe that is why it looks for the all the apps that have the same intent?
Modify the Intent to point to the exact Activity by package name that you wish to invoke. Something like this: Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("package.name.of.destination.app"); startActivity(LaunchIntent);, or startActivityForResult() if you wish to process the response.
Yeah. I think that is the problem. Let me change the code and test it again.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.