I am using this code to show the local notification and When notification comes then on click of notification want to launch the ListActivity but on Google nexus device
This issue is known for Android Kitkat 4.4 and Lollipop. Please add :
android:exported="true"
in android manifest inside activity tag which is supposed to be opened after tapping notification from status bar
The solution proposed by mass
has worked for me and it's very simple, no need to change your code:
In your AndroidManifest.xml add the following attribute to your <activity>
tag:
android:exported="true"
It has worked in a Samsung Galaxy Young 2 with Android 4.4.2.
Add android:exported = "true" in the manifest
<activity
android:name=".ListActivity"
android:label="ListActivity"
android:exported="true">
</activity>
ListActivity is the activity which will be opened on the notification click.