Steve: geofence still not working on simulator?? Thanks!
El El mar, 4 de abr. de 2017 a las 12:53, Steve Hannah < [email protected]> escribió: > I think you have your "isMinimized()" case reversed. > > if (Display.getInstance().isMinimized()) { > Display.getInstance().callSerially(() -> { > Dialog.show("Welcome", "Thanks for arriving", "OK", null); > }); > } else { > LocalNotification ln = new LocalNotification(); > ln.setId("LnMessage"); > ln.setAlertTitle("Welcome"); > ln.setAlertBody("Thanks for arriving!"); > try { > Display.getInstance().scheduleLocalNotification(ln, 10, > LocalNotification.REPEAT_NONE); > } catch (Exception ex) { > Alert.show(ex.getMessage()); > } > > } > > You're trying to show a dialog when the app is minimized, and you're > trying to send a local notification when it is not minimized. > > Steve > > On Mon, Apr 3, 2017 at 6:26 PM, <[email protected]> wrote: > > Hi! im tryng to implement the geofence in my code but it didnt work. is a > problem in the class or i'm no doing something? im testing on android. > > > my code is attached > > thanks! Roman > > -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at > https://groups.google.com/group/codenameone-discussions. > To view this discussion on the web visit > https://groups.google.com/d/msgid/codenameone-discussions/6473483c-1e37-4397-a4a6-73c411081f2c%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/6473483c-1e37-4397-a4a6-73c411081f2c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > > > -- > Steve Hannah > Software Developer > Codename One > http://www.codenameone.com > > -- > You received this message because you are subscribed to a topic in the > Google Groups "CodenameOne Discussions" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/codenameone-discussions/xG9tFYglvgg/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > Visit this group at > https://groups.google.com/group/codenameone-discussions. > To view this discussion on the web visit > https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWF_8jr2sjO5onXnWtuvm%3DJXr4ofUBTAvdpeO7J7pxAXA%40mail.gmail.com > <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWF_8jr2sjO5onXnWtuvm%3DJXr4ofUBTAvdpeO7J7pxAXA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAO%3DXYf1JBP_HKp%3D9kBk2eh3dYr-SQe7EO93_pFvSHZ4cRVEJ%2BA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
