Activity Not Starting From Notification












0















I am trying to set up my notification to lead directly to a specific activity. I followed the steps outlined in the official documentation. But clicking the notification only opens the main launcher of the app.



The activity I am trying to launch via the notification is the DetailActivity.



This is how I have set up the activity hierarchy in my manifest.xml



    <activity
android:name=".SplashscreenActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".HomeActivity"
android:parentActivityName=".SplashscreenActivity"/>
<activity
android:name=".DetailActivity"
android:parentActivityName=".HomeActivity"/>


In my onMessageReceived method of the FirebaseMessagingService class, I have the following:



        Intent resultIntent = new Intent(this, DetailActivity.class);
// Create the TaskStackBuilder and add the intent, which inflates the back stack
TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
stackBuilder.addNextIntentWithParentStack(resultIntent);
// Get the PendingIntent containing the entire back stack
PendingIntent intent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
mNotificationManager.notify(
NOTIFICATION_ID,
getNotification("title", "text", intent)
);


The getNotification method:



private Notification getNotification(String title, String text, PendingIntent intent) {

return new NotificationCompat.Builder(this, CHANNEL_ID)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle(title)
.setContentText(text)
.setContentIntent(intent)
.setOngoing(true)
.build();
}


I don't know if this issue is that the activity I am trying to launch is not the direct child of the launcher activity. And I am not sure how to debug this either. Hoping someone has run into this weird issue before!










share|improve this question

























  • A quick fix could be to redirect towards Detailed activity, from your launcher activity.

    – Abdul Rehman
    Nov 13 '18 at 12:56













  • @AbdulRehman Is there a way to detect when the launcher is being launched by the notification click?

    – wanderingProgrammer
    Nov 13 '18 at 12:57











  • I think this would help developer.android.com/training/notify-user/navigation#java

    – Abdul Rehman
    Nov 13 '18 at 13:02











  • @AbdulRehman I already mentioned the same link in my post. I followed the steps on the google walk through already.

    – wanderingProgrammer
    Nov 13 '18 at 13:07











  • try some none zero request code for getPendingIntent

    – Rajen Raiyarela
    Nov 13 '18 at 13:24
















0















I am trying to set up my notification to lead directly to a specific activity. I followed the steps outlined in the official documentation. But clicking the notification only opens the main launcher of the app.



The activity I am trying to launch via the notification is the DetailActivity.



This is how I have set up the activity hierarchy in my manifest.xml



    <activity
android:name=".SplashscreenActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".HomeActivity"
android:parentActivityName=".SplashscreenActivity"/>
<activity
android:name=".DetailActivity"
android:parentActivityName=".HomeActivity"/>


In my onMessageReceived method of the FirebaseMessagingService class, I have the following:



        Intent resultIntent = new Intent(this, DetailActivity.class);
// Create the TaskStackBuilder and add the intent, which inflates the back stack
TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
stackBuilder.addNextIntentWithParentStack(resultIntent);
// Get the PendingIntent containing the entire back stack
PendingIntent intent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
mNotificationManager.notify(
NOTIFICATION_ID,
getNotification("title", "text", intent)
);


The getNotification method:



private Notification getNotification(String title, String text, PendingIntent intent) {

return new NotificationCompat.Builder(this, CHANNEL_ID)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle(title)
.setContentText(text)
.setContentIntent(intent)
.setOngoing(true)
.build();
}


I don't know if this issue is that the activity I am trying to launch is not the direct child of the launcher activity. And I am not sure how to debug this either. Hoping someone has run into this weird issue before!










share|improve this question

























  • A quick fix could be to redirect towards Detailed activity, from your launcher activity.

    – Abdul Rehman
    Nov 13 '18 at 12:56













  • @AbdulRehman Is there a way to detect when the launcher is being launched by the notification click?

    – wanderingProgrammer
    Nov 13 '18 at 12:57











  • I think this would help developer.android.com/training/notify-user/navigation#java

    – Abdul Rehman
    Nov 13 '18 at 13:02











  • @AbdulRehman I already mentioned the same link in my post. I followed the steps on the google walk through already.

    – wanderingProgrammer
    Nov 13 '18 at 13:07











  • try some none zero request code for getPendingIntent

    – Rajen Raiyarela
    Nov 13 '18 at 13:24














0












0








0








I am trying to set up my notification to lead directly to a specific activity. I followed the steps outlined in the official documentation. But clicking the notification only opens the main launcher of the app.



The activity I am trying to launch via the notification is the DetailActivity.



This is how I have set up the activity hierarchy in my manifest.xml



    <activity
android:name=".SplashscreenActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".HomeActivity"
android:parentActivityName=".SplashscreenActivity"/>
<activity
android:name=".DetailActivity"
android:parentActivityName=".HomeActivity"/>


In my onMessageReceived method of the FirebaseMessagingService class, I have the following:



        Intent resultIntent = new Intent(this, DetailActivity.class);
// Create the TaskStackBuilder and add the intent, which inflates the back stack
TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
stackBuilder.addNextIntentWithParentStack(resultIntent);
// Get the PendingIntent containing the entire back stack
PendingIntent intent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
mNotificationManager.notify(
NOTIFICATION_ID,
getNotification("title", "text", intent)
);


The getNotification method:



private Notification getNotification(String title, String text, PendingIntent intent) {

return new NotificationCompat.Builder(this, CHANNEL_ID)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle(title)
.setContentText(text)
.setContentIntent(intent)
.setOngoing(true)
.build();
}


I don't know if this issue is that the activity I am trying to launch is not the direct child of the launcher activity. And I am not sure how to debug this either. Hoping someone has run into this weird issue before!










share|improve this question
















I am trying to set up my notification to lead directly to a specific activity. I followed the steps outlined in the official documentation. But clicking the notification only opens the main launcher of the app.



The activity I am trying to launch via the notification is the DetailActivity.



This is how I have set up the activity hierarchy in my manifest.xml



    <activity
android:name=".SplashscreenActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".HomeActivity"
android:parentActivityName=".SplashscreenActivity"/>
<activity
android:name=".DetailActivity"
android:parentActivityName=".HomeActivity"/>


In my onMessageReceived method of the FirebaseMessagingService class, I have the following:



        Intent resultIntent = new Intent(this, DetailActivity.class);
// Create the TaskStackBuilder and add the intent, which inflates the back stack
TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
stackBuilder.addNextIntentWithParentStack(resultIntent);
// Get the PendingIntent containing the entire back stack
PendingIntent intent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
mNotificationManager.notify(
NOTIFICATION_ID,
getNotification("title", "text", intent)
);


The getNotification method:



private Notification getNotification(String title, String text, PendingIntent intent) {

return new NotificationCompat.Builder(this, CHANNEL_ID)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle(title)
.setContentText(text)
.setContentIntent(intent)
.setOngoing(true)
.build();
}


I don't know if this issue is that the activity I am trying to launch is not the direct child of the launcher activity. And I am not sure how to debug this either. Hoping someone has run into this weird issue before!







android firebase google-cloud-firestore android-notifications






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 20:26







wanderingProgrammer

















asked Nov 13 '18 at 12:50









wanderingProgrammerwanderingProgrammer

74113




74113













  • A quick fix could be to redirect towards Detailed activity, from your launcher activity.

    – Abdul Rehman
    Nov 13 '18 at 12:56













  • @AbdulRehman Is there a way to detect when the launcher is being launched by the notification click?

    – wanderingProgrammer
    Nov 13 '18 at 12:57











  • I think this would help developer.android.com/training/notify-user/navigation#java

    – Abdul Rehman
    Nov 13 '18 at 13:02











  • @AbdulRehman I already mentioned the same link in my post. I followed the steps on the google walk through already.

    – wanderingProgrammer
    Nov 13 '18 at 13:07











  • try some none zero request code for getPendingIntent

    – Rajen Raiyarela
    Nov 13 '18 at 13:24



















  • A quick fix could be to redirect towards Detailed activity, from your launcher activity.

    – Abdul Rehman
    Nov 13 '18 at 12:56













  • @AbdulRehman Is there a way to detect when the launcher is being launched by the notification click?

    – wanderingProgrammer
    Nov 13 '18 at 12:57











  • I think this would help developer.android.com/training/notify-user/navigation#java

    – Abdul Rehman
    Nov 13 '18 at 13:02











  • @AbdulRehman I already mentioned the same link in my post. I followed the steps on the google walk through already.

    – wanderingProgrammer
    Nov 13 '18 at 13:07











  • try some none zero request code for getPendingIntent

    – Rajen Raiyarela
    Nov 13 '18 at 13:24

















A quick fix could be to redirect towards Detailed activity, from your launcher activity.

– Abdul Rehman
Nov 13 '18 at 12:56







A quick fix could be to redirect towards Detailed activity, from your launcher activity.

– Abdul Rehman
Nov 13 '18 at 12:56















@AbdulRehman Is there a way to detect when the launcher is being launched by the notification click?

– wanderingProgrammer
Nov 13 '18 at 12:57





@AbdulRehman Is there a way to detect when the launcher is being launched by the notification click?

– wanderingProgrammer
Nov 13 '18 at 12:57













I think this would help developer.android.com/training/notify-user/navigation#java

– Abdul Rehman
Nov 13 '18 at 13:02





I think this would help developer.android.com/training/notify-user/navigation#java

– Abdul Rehman
Nov 13 '18 at 13:02













@AbdulRehman I already mentioned the same link in my post. I followed the steps on the google walk through already.

– wanderingProgrammer
Nov 13 '18 at 13:07





@AbdulRehman I already mentioned the same link in my post. I followed the steps on the google walk through already.

– wanderingProgrammer
Nov 13 '18 at 13:07













try some none zero request code for getPendingIntent

– Rajen Raiyarela
Nov 13 '18 at 13:24





try some none zero request code for getPendingIntent

– Rajen Raiyarela
Nov 13 '18 at 13:24












2 Answers
2






active

oldest

votes


















0














use this:



Intent notificationIntent = new Intent(this, DetailActivity.class);

PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent. FLAG_ONE_SHOT);


and use this pendingIntent in Notification.






share|improve this answer


























  • FLAG_ACTIVITY_CLEAR_TOP is not a part of PendingIntent class

    – wanderingProgrammer
    Nov 13 '18 at 13:08



















-1














 Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);

Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this,"x")
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("your title")
.setAutoCancel(true)
.setSound(soundUri)
.setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_HIGH);

NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

notificationManager.notify(0, notificationBuilder.build());


notification code






share|improve this answer



















  • 2





    While this may answer the question, code blocks on their own are not usually useful answers, and are more likely to attract downvotes. It's recommended to explain what the solution you're showing does, and why/how that code answers the question.

    – Grimthorr
    Nov 13 '18 at 14:03











  • there is no need to tell the developer that how that code is work he is developer and any kind of child :P

    – Muhammad Waqas
    Nov 14 '18 at 6:40






  • 1





    @MuhammadWaqas Your answer will not only be read (and voted upon) by the question asker, but by others users as well. They might not understand a code block without explanations. That's why code block answers without explanation are not considered to be good answers and might get downvoted. You can edit your answer to make it better.

    – Modus Tollens
    Nov 14 '18 at 6:46













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53281408%2factivity-not-starting-from-notification%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














use this:



Intent notificationIntent = new Intent(this, DetailActivity.class);

PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent. FLAG_ONE_SHOT);


and use this pendingIntent in Notification.






share|improve this answer


























  • FLAG_ACTIVITY_CLEAR_TOP is not a part of PendingIntent class

    – wanderingProgrammer
    Nov 13 '18 at 13:08
















0














use this:



Intent notificationIntent = new Intent(this, DetailActivity.class);

PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent. FLAG_ONE_SHOT);


and use this pendingIntent in Notification.






share|improve this answer


























  • FLAG_ACTIVITY_CLEAR_TOP is not a part of PendingIntent class

    – wanderingProgrammer
    Nov 13 '18 at 13:08














0












0








0







use this:



Intent notificationIntent = new Intent(this, DetailActivity.class);

PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent. FLAG_ONE_SHOT);


and use this pendingIntent in Notification.






share|improve this answer















use this:



Intent notificationIntent = new Intent(this, DetailActivity.class);

PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent. FLAG_ONE_SHOT);


and use this pendingIntent in Notification.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 13 '18 at 13:11

























answered Nov 13 '18 at 12:59









Nouman ChNouman Ch

1,67931124




1,67931124













  • FLAG_ACTIVITY_CLEAR_TOP is not a part of PendingIntent class

    – wanderingProgrammer
    Nov 13 '18 at 13:08



















  • FLAG_ACTIVITY_CLEAR_TOP is not a part of PendingIntent class

    – wanderingProgrammer
    Nov 13 '18 at 13:08

















FLAG_ACTIVITY_CLEAR_TOP is not a part of PendingIntent class

– wanderingProgrammer
Nov 13 '18 at 13:08





FLAG_ACTIVITY_CLEAR_TOP is not a part of PendingIntent class

– wanderingProgrammer
Nov 13 '18 at 13:08













-1














 Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);

Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this,"x")
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("your title")
.setAutoCancel(true)
.setSound(soundUri)
.setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_HIGH);

NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

notificationManager.notify(0, notificationBuilder.build());


notification code






share|improve this answer



















  • 2





    While this may answer the question, code blocks on their own are not usually useful answers, and are more likely to attract downvotes. It's recommended to explain what the solution you're showing does, and why/how that code answers the question.

    – Grimthorr
    Nov 13 '18 at 14:03











  • there is no need to tell the developer that how that code is work he is developer and any kind of child :P

    – Muhammad Waqas
    Nov 14 '18 at 6:40






  • 1





    @MuhammadWaqas Your answer will not only be read (and voted upon) by the question asker, but by others users as well. They might not understand a code block without explanations. That's why code block answers without explanation are not considered to be good answers and might get downvoted. You can edit your answer to make it better.

    – Modus Tollens
    Nov 14 '18 at 6:46


















-1














 Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);

Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this,"x")
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("your title")
.setAutoCancel(true)
.setSound(soundUri)
.setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_HIGH);

NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

notificationManager.notify(0, notificationBuilder.build());


notification code






share|improve this answer



















  • 2





    While this may answer the question, code blocks on their own are not usually useful answers, and are more likely to attract downvotes. It's recommended to explain what the solution you're showing does, and why/how that code answers the question.

    – Grimthorr
    Nov 13 '18 at 14:03











  • there is no need to tell the developer that how that code is work he is developer and any kind of child :P

    – Muhammad Waqas
    Nov 14 '18 at 6:40






  • 1





    @MuhammadWaqas Your answer will not only be read (and voted upon) by the question asker, but by others users as well. They might not understand a code block without explanations. That's why code block answers without explanation are not considered to be good answers and might get downvoted. You can edit your answer to make it better.

    – Modus Tollens
    Nov 14 '18 at 6:46
















-1












-1








-1







 Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);

Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this,"x")
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("your title")
.setAutoCancel(true)
.setSound(soundUri)
.setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_HIGH);

NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

notificationManager.notify(0, notificationBuilder.build());


notification code






share|improve this answer













 Intent intent = new Intent(this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_ONE_SHOT);

Uri soundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this,"x")
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("your title")
.setAutoCancel(true)
.setSound(soundUri)
.setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_HIGH);

NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

notificationManager.notify(0, notificationBuilder.build());


notification code







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 13:01









Muhammad WaqasMuhammad Waqas

32110




32110








  • 2





    While this may answer the question, code blocks on their own are not usually useful answers, and are more likely to attract downvotes. It's recommended to explain what the solution you're showing does, and why/how that code answers the question.

    – Grimthorr
    Nov 13 '18 at 14:03











  • there is no need to tell the developer that how that code is work he is developer and any kind of child :P

    – Muhammad Waqas
    Nov 14 '18 at 6:40






  • 1





    @MuhammadWaqas Your answer will not only be read (and voted upon) by the question asker, but by others users as well. They might not understand a code block without explanations. That's why code block answers without explanation are not considered to be good answers and might get downvoted. You can edit your answer to make it better.

    – Modus Tollens
    Nov 14 '18 at 6:46
















  • 2





    While this may answer the question, code blocks on their own are not usually useful answers, and are more likely to attract downvotes. It's recommended to explain what the solution you're showing does, and why/how that code answers the question.

    – Grimthorr
    Nov 13 '18 at 14:03











  • there is no need to tell the developer that how that code is work he is developer and any kind of child :P

    – Muhammad Waqas
    Nov 14 '18 at 6:40






  • 1





    @MuhammadWaqas Your answer will not only be read (and voted upon) by the question asker, but by others users as well. They might not understand a code block without explanations. That's why code block answers without explanation are not considered to be good answers and might get downvoted. You can edit your answer to make it better.

    – Modus Tollens
    Nov 14 '18 at 6:46










2




2





While this may answer the question, code blocks on their own are not usually useful answers, and are more likely to attract downvotes. It's recommended to explain what the solution you're showing does, and why/how that code answers the question.

– Grimthorr
Nov 13 '18 at 14:03





While this may answer the question, code blocks on their own are not usually useful answers, and are more likely to attract downvotes. It's recommended to explain what the solution you're showing does, and why/how that code answers the question.

– Grimthorr
Nov 13 '18 at 14:03













there is no need to tell the developer that how that code is work he is developer and any kind of child :P

– Muhammad Waqas
Nov 14 '18 at 6:40





there is no need to tell the developer that how that code is work he is developer and any kind of child :P

– Muhammad Waqas
Nov 14 '18 at 6:40




1




1





@MuhammadWaqas Your answer will not only be read (and voted upon) by the question asker, but by others users as well. They might not understand a code block without explanations. That's why code block answers without explanation are not considered to be good answers and might get downvoted. You can edit your answer to make it better.

– Modus Tollens
Nov 14 '18 at 6:46







@MuhammadWaqas Your answer will not only be read (and voted upon) by the question asker, but by others users as well. They might not understand a code block without explanations. That's why code block answers without explanation are not considered to be good answers and might get downvoted. You can edit your answer to make it better.

– Modus Tollens
Nov 14 '18 at 6:46




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53281408%2factivity-not-starting-from-notification%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python