20161101
今天用了下状态栏通知,没有用自定义的,目前还在研究中,因为有部分机器对那段代码无效,正在解决中,下面是让通知栏显示内容的代码:
NotificationManager mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
NotificationCompat .Builder mBuilder = new NotificationCompat.Builder(this);
mBuilder.setContentTitle("测试标题")//设置通知栏标题
.setContentText("测试内容")
.setSmallIcon(R.drawable.appname1).build();//设置通知小ICON
mNotificationManager.notify(0, mBuilder.build());
小米push也调通了,虽然还有很多小问题,一点点来吧。
不知道国内ar和vr技术何时能普遍,挺感兴趣的。

浙公网安备 33010602011771号