本地通知未显示在Android手机上

时间:2020-09-11 03:36:06

标签: codenameone

我已经按照开发人员指南中的代码编写了代码。 但我在模拟器以及Android上均未收到任何通知。 Double smtng = 10; Double smtng1 = 10;

if(smtng1==smtng) {
LocalNotification ln = new 
 LocalNotification();
   ln.setId("sola");
  ln.setAlertBody(".....');


ln.setAlertTitle("local");

Display.getInstance().scheduleLocalNotification(ln, System.currentTimeMillis() + 100000, LocalNotification.REPEAT_NONE);

}

0 个答案:

没有答案