下午研究问题还是,看到麦库记事的同步问题,折腾了好久,他的通知出现以下就消失了,纠结了好久,难道要用线程做,不靠谱,找了一下午的api,想找点有用的,愣是没找到。NotificationManager notificationManager = (NotificationManager) context                .getSystemService(android.content.Context.NOTIFICATION_SERVICE);        Notification notification = new Notification(R.drawable.icon,                message,System.currentTimeMillis());        PendingIntent contentIntent = PendingIntent.getActivity(context, 0, new Intent(), 0);        notification.setLatestEventInfo(context, null, null,                contentIntent);                notification.flags=Notification.FLAG_AUTO_CANCEL;                notificationManager.notify(123, notification);        notificationManager.cancel(123);然后继续鼓捣,在4点的时候,嘎嘎想出来了,我就试试吧,notify,然后再cancel,丫的竟然就是这个效果。感觉还不错。嘿嘿。
notification
这个嘛,很多高手都详解了,嘿嘿看会书

更多相关文章

  1. Android(安卓)Studio 下自动注释(自定义作者,类作用等)
  2. 五月小结
  3. Android日记之2012\01\16
  4. android锁屏
  5. Bluetooth 4.0 mio alpha watch 心率监护应用 2
  6. 处女apk纠结过的技术点
  7. Android(安卓)sharesdk 集成Google登陆,报错Success,{"isSigin":"f
  8. 为什么移动端跨平台开发不靠谱?
  9. android一个纠结的VFY错误

随机推荐

  1. ubuntu 配置Android 开发环境
  2. android控件布局
  3. Android中调用其它应用
  4. android keytool 不是内部命令或外部命令
  5. Android Activity启动模式分析
  6. android开发仿IOS滑动开关
  7. Android(安卓)开发环境下载地址 -- 百度
  8. android_防止被反编译 混淆
  9. Android Studio 如何引用aar包
  10. Google android初级开发之 : android 编