Siemens TC45 User Manual page 72

Cellular engine
Hide thumbs Also See for TC45:
Table of Contents

Advertisement

TC45 TC45 JAVA User's Guide
Confidential / Released
catch (PhonebookStoreException e)
{
}
finally
{
}
}
catch (WmLockException e)
{
System.out.println(e);
}
finally
{
// release the used resources
lockControl.release();
lockControl = null;
}
}
catch (ATCommandFailedException e)
{
System.out.println(e);
}
catch (SendTimeoutException e)
{
System.out.println("AT_Command timeout");
}
finally
{
// Terminate the application.
// You don't need to care about closing open AT channels.
// CWmMIDlet does this for you.
System.out.println("Now terminating application.");
destroyApp(true);
}
}
/**
* Your application does not necessarily need to override
* <code>destroyApp()</code>, but if it does, make sure that
* <code>super.destroyApp()</code> is called, to release the AT channels.
*/
public void destroyApp(boolean unconditional)
{
// your finalization code goes here...
super.destroyApp(unconditional);
notifyDestroyed();
}
}
TC45_JAVA User's Guide_V02
System.out.println(e);
// release the used resources
pbk.release();
pbk = null;
Page 72 of 72
30.06.2003

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents