Hi piren
than you :)
Using the following code Iam able to go to next activity and alertdialogue.
Intent notificationIntent = new Intent(this,
NotificationReceiverActivity.class);
//data received from the push notification is placed in bundle and
extracted later
notificationIntent.putExtra("check", "hello test");
notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pintent
=PendingIntent.getActivity(getApplicationContext(), 0, notificationIntent,
0);
notification.setLatestEventInfo(getApplicationContext(), title,
"hello test", pintent);
notification.flags |= Notification.FLAG_AUTO_CANCEL;
notificationManager.notify(0, notification);
I have put the data retrived from push notification in the
intent(putextra) and trying to extract it in the next activity and here iam
getting the bundle data as null
Do Iam I missing something????
Plz help Iam stuck here
On Thursday, October 24, 2013 5:16:42 PM UTC+5:30, Piren wrote:
>
> push notification can do whatever you want, i assume you've added a
> notification when the push got in. So add an intent to the notification
> that launches an activity which will have a dialog (or look like a dialog).
>
> Regarding count, you can have a count on the notification icon, but not on
> the launch screen icon.
>
> On Thursday, October 24, 2013 2:08:16 PM UTC+3, janvi wrote:
>>
>> Hello All,
>>
>> Iam new to pushNotification I have few doubts here.
>>
>> I have implemented push Notification feature.Now if I want to open an
>> alert dialogue when the user clicks on push notification
>>
>> I don't know how to open the alert dialogue here???any ideas????
>>
>> One more question is as follows
>>
>> How to show the pushNotification count on the AppIcon as IOS does(i,e
>> badge count)
>>
>> Can we do this in android???
>>
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.