Java Reference
In-Depth Information
private boolean mEndNow = false;
private String mLastContact = "";
private String myPref = null;
private String myHeight = null;
private String myContact = null;
private String seekPref = null;
private String seekHeight = null;
private String seekContact = null;
private SessionNotifier mServerNotifier;
private static final String url =
"irdaobex://localhost;ias=DatingService";
private Connection mConnection = null;
public OBEXMIDlet() {
mClient = DateClient.getInstance();
myPref = getAppProperty("OBEXMIDlet-mypref");
myHeight = getAppProperty("OBEXMIDlet-myheight");
myContact = getAppProperty("OBEXMIDlet-mycontact");
seekPref = getAppProperty("OBEXMIDlet-seekpref");
seekHeight = getAppProperty("OBEXMIDlet-seekheight");
}
public void commandAction(Command c, Displayable d) {
if (c == mExitCommand) {
destroyApp(true);
notifyDestroyed();
}
}
protected void destroyApp(boolean param) {
mEndNow = true;
if (mServerNotifier != null) {
try {
mServerNotifier.close();
} catch (IOException e) {} // Ignore
}
Search WWH ::




Custom Search