System.out.println("CAMERA");d.dispose();try { String value = Capture.capturePhoto(Display.getInstance().getDisplayWidth() / 2, -1);
if(value != null) { Label image = new Label(Image.createImage(value)); Message msg = new Message("");
msg.setAttachment(value); showForm("MainMenu", null); Display.getInstance().sendMessage(new String[] {user.getEmailTo()}, "Image capture", msg); } else { System.out.println("User canceled."); genericDialog("Camera Capture Info", "User canceled capture."); showForm("MainMenu", null); }} catch (Exception ex) {}
public void start() { if(current != null){ current.show(); return; } new StateMachine("/theme"); }
public void stop() { current = Display.getInstance().getCurrent(); }
public void start() { if(current != null){
Dialog.show("START", "Starting your app on:\n"+current.getTitle(), "OK", null); current.show(); return; } else Dialog.show("START", "Starting your app with no loaded form.", "OK", null);
new StateMachine("/theme"); }
public void stop() { current = Display.getInstance().getCurrent();
Dialog.show("STOP", "Stopping your app on:\n"+current.getTitle(), "OK", null); }
System.out.println("A");
Dialog.show("", "Hi", "OK", null);
System.out.println("This will print only after you clicked OK");
This sounds like a bug. Do you have DDMS installed?
Can you reproduce this with DDMS open and see if you get an exception? If so can you paste its stack trace here?
--To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/d99b18e0-6d6f-4034-946c-209f20a5312a%40googlegroups.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/b_2jSpc9TpI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
DDMS is designed to connect to the device so you can see the output from there. Make sure you have the proper USB drivers installed.
--
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/b_2jSpc9TpI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/ca8a6421-8ceb-4971-a938-8289113e5569%40googlegroups.com.