here is the original lines :
public void commandAction(Command c, Displayable s)
{
if (c == cmCall)
{
display.setCurrent(this);
try
{
call_some_function_that_call_network_function();
}
catch (Exception e)
{
System.out.println(e.toString());
}
}
else if (c == cmExit)
{
// the rest command
}
}
and here is the modified lines :
public void commandAction(Command c, Displayable s)
{
if (c == cmCall)
{
display.setCurrent(this);
try
{
new Thread(new Runnable()
{
public void run()
{
try{
call_some_function_that_call_network_function();} catch(IOException e) {}
}
}).start();
}
catch (Exception e)
{
System.out.println(e.toString());
}
}
else if (c == cmExit)
{
// the rest command
}
}
7 comments:
hey thank u
it is very useful
thanks a lot!!!
Type article! Wonderful!
Hi!
What’s the difference between adult dating sites and normal dating sites?
please no offtopic $)
Thank you! this has been very helpful!
:)
you are awesome!! thanks man!
thx a lot !! it workds
Post a Comment