赞
踩
版本3.0以上,推荐使用NotificationCompat.Builder类来构建Notification。
- <span style="font-family:FangSong_GB2312;"> </span><span style="font-family:Courier New;"> @Override
- public void onCreate() {
- super.onCreate();
- long[] vibrates = {0, 1000, 1000, 1000};</span>
- <span style="font-family:Courier New;">
- //使用前台服务
- Intent intent = new Intent(this, MainActivity.class);
- PendingIntent pendingIntent = PendingIntent.get
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。