am able to solve it,actually there is an  option Show Notification which
need to be selected in settings-->apps->yourApp
Thanks
RK


On Thu, Dec 12, 2013 at 8:57 PM, Justin Anderson <[email protected]>wrote:

> Complete shot in the dark here... but have you tried giving your
> notification an id other than 0?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Sun, Dec 8, 2013 at 10:51 PM, Rahul Kaushik 
> <[email protected]>wrote:
>
>> Hi,
>>
>> Status bar notififcation is not showing up in Sony Xperia z with android
>> version 4.2
>>
>> Code
>>
>> NotiCountValue= NotiCountValue + ncount;
>>
>>  NotificationManager mNotificationManager = (NotificationManager) context
>>  .getSystemService(Context.NOTIFICATION_SERVICE);
>> CharSequence contentTitle =   "FranConnect Mobile";
>>  int icon = R.drawable.fcicon;
>> Notification notification = new Notification();
>>  CharSequence contentText =NotiCountValue+ " Unread Notifications.";
>>  Intent notifyIntent = new Intent(context,MainActivity.class);
>>  notifyIntent.setClass(context, hybridlistactivity.class);
>>  PendingIntent pendingintent =
>> PendingIntent.getActivity(context, 0,
>> notifyIntent,  PendingIntent.FLAG_UPDATE_CURRENT |
>> Notification.FLAG_AUTO_CANCEL);
>>  notification.icon=icon;
>>  notification.setLatestEventInfo(context, contentTitle, contentText,
>> pendingintent);
>>  mNotificationManager.notify(0, notification);
>>
>>
>> Please suggest
>>
>> Thanks
>> RK
>>
>> --
>> 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.
>>
>
>  --
> 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.
>

-- 
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.

Reply via email to