android - Clicking Widget mistakenly causes main Activity to launch -


widget launches applications main activity unexpectedly. should not have main activity when have app hosts widget? not clear why launches, not behavior want. want no activities launch unless requested intent so?

try adding android:launchmode="singleinstance" main activity's definition in manifest suggested here.

<activity
android:name=".youractivity"
android:launchmode="singleinstance" ...


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -