Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
想知道我是否可以在以下方面获得帮助。我正在创建一个 J2ME 应用程序,它发送/接收用于登录的短信。
因此,用户在某些文本字段中提供他们的用户名和密码,并发送一条短信以检查提供的详细信息是否正确。一条短信被发送回发件人,其中包含关于是否允许登录的真/假。
现在我被困住了。我可以发送带有登录详细信息的短信,也可以向发件人发回一条消息,但我想显示一个对话框,请等到收到消息。我可能需要使用线程/睡眠等,但不完全确定如何
大部分发送和接收代码与这里类似
当您收到消息时,您需要执行可以关闭的静态对话框。
Display.getInstance().callSerially(new Runnable() { public void run() { progressDialog = new Dialog(); // progressDialog while be static Label msg= new Label("Wait"); progressDialog.addComponent(msg); } });