Hi,
I encounter this annoying result: the open method executed just once.
The resulting part of the code "Do actions" would only be performed once because mPhysicaloid no longer wants to open.
mPhysicaloid = new Physicaloid(mContext);
if (!mPhysicaloid.isOpened()) { /* if not opened */
if(mPhysicaloid.open()){
/* open connection */
}
}
if (mPhysicaloid.isOpened()) {
/* Do actions */
}