I made an app that makes streaming radio. How can I prevent that, the second time by clicking on the icon to open the app twice?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is one good suggestion:
This solution is slightly different than the question you’re asking, but should give you exactly the result you’re looking for.
Another possibility might be to use
android:launchMode = "singleInstance"in your androidmanifest.xml:IMHO…