1.代码使用android.R.id xml引用 android:id/tabhost 颜色引用 android.R.color.transparent

调用动画 android.R.anim

2.

mNotificationManager = (NotificationManager) arg0.getSystemService(Context.NOTIFICATION_SERVICE);
Uri uri = Uri.parse("content://sms/inbox");
PendingIntent contentIntent = PendingIntent.getActivity(arg0, 0, new Intent(Intent.ACTION_VIEW, uri), Intent.FLAG_ACTIVITY_NEW_TASK);
String tickerText = arg0.getString(R.string.newmsg, msgs[i].getMessageBody().toString());
Notification notif = new Notification(R.drawable.icon, tickerText, System.currentTimeMillis());
notif
.setLatestEventInfo(arg0, msgs[i].getOriginatingAddress(), msgs[i].getMessageBody().toString(), contentIntent);
notif
.vibrate = new long[] { 100, 250, 100, 500 };
mNotificationManager
.notify(R.string.recv_msg_notif_id, notif);

上述是不能实现的

应该如此修改

Intent notificationIntent = new Intent(Intent.ACTION_MAIN);
notificationIntent
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
notificationIntent
.setType("vnd.android-dir/mms-sms");

更多相关文章

  1. Delphi XE5 android openurl
  2. android 从横屏到竖屏状态出现黑屏
  3. Android(安卓)之WebView
  4. android兼容2.2及以前版本的退出方法
  5. Android(安卓)(DiskLruCache)硬盘缓存代码实现
  6. Android获取状态栏的高度
  7. Android(安卓)init.rc文件解析过程详解(二)
  8. Android(安卓)Apk加固(安全专项)
  9. Android系统源代码情景分析:基础知识

随机推荐

  1. Android(安卓)ScrollView的使用
  2. 【Android-tips】 Unable to execute dex
  3. Android(安卓)高德地图API学习笔记
  4. android中GridView关于间距的属性值介绍
  5. FIDO框架分析3(FIDO UAF Android客户端)
  6. Android如何获取视频预览图(或首帧)和获取
  7. Android(安卓)AppCompatActivity的Action
  8. Android计算地图上两点距离
  9. android10.0连接wifi后提示“已连接,但无
  10. android编译时出现'Unable to resolve ta