我试图展示通知型的单挑,但我不能.我尝试了什么
final Notification.Builder notif = new Builder(getApplicationContext())
.setContentTitle(getString(R.string.title))
.setContentText(getString(R.string.text))
// .setTicker(getString(R.string.tick)) removed, seems to not show at all
// .setWhen(System.currentTimeMillis()) removed, match default
// .setContentIntent(contentIntent) removed, I don't neet it
.setColor(Color.parseColor(getString(R.color.yellow))) //ok
.setSmallIcon(R.drawable.ic_small) //ok
.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher))
// .setCategory(Notification.CATEGORY_CALL) does not seem to make a difference
.setPriority(Notification.PRIORITY_MAX); //does not seem to make a difference
// .setVisibility(Notification.VISIBILITY_PRIVATE); //does not seem to make a difference
mNotificationManager.notify(Constants.NOTIFICATION_ID, notif.build());
Run Code Online (Sandbox Code Playgroud)
通知仅显示为栏中的图标.我使用的是API 21 API 21仿真器(不要使用L预览)我曾尝试:
android:Theme.Holo.NoActionBar
,
android:Theme.Holo.NoActionBar.Fullscreen
和NotificationCompat.Builder
SDK示例不可用.有谁知道怎么做?
我通过添加:
.setDefaults(Notification.DEFAULT_VIBRATE)
Run Code Online (Sandbox Code Playgroud)
这是最好的方法吗?
我刚收到一封电子邮件,上面写着"今天切换到新版AdMob"的各种链接.这似乎是主要的一个.然后在旧页面中也有通知admob我们推出了一个新版本的AdMob,并带有"升级"按钮
我点击了按钮,然后按照几个步骤进行注册.在实践中,我相信我注册了这个新网站,好像它是一个单独的服务,幸运的是没有影响旧网站Admob(有一个功能,用于导入我没有点击的旧数据)我检查包含所有早些时候的数据,即使我在应用程序中检查了广告并仍然提供服务.几个小时后,还会检查收入,展示次数等是否已更新.
你有这方面的消息吗?是否有强制进入这个新网站的截止日期?必须切换到这个新网站?
有没有人在同样的情况下?你的意图是什么?开设银行账户或切换到使用PayPal付款的其他公司?
请愿Paypal作为付款方式可能有用吗?
感谢您的回答和建议