Which version of IOIOLib are you using?
Assuming you're working in a debug setting, can you put a breakpoint on the
line that generated the "Client requested disconnect." in IOIOImpl and post
the stack trace that lead to this?

On Tue, Sep 9, 2014 at 10:55 AM, Majid ff <[email protected]> wrote:

> well, as soon as the screen goes dark I see the following log from Eclipse
> LogCat:
>
> 09-09 19:49:43.950: W/IInputConnectionWrapper(20359): getSelectedText on
> inactive InputConnection
> 09-09 19:49:43.950: W/IInputConnectionWrapper(20359): setComposingText on
> inactive InputConnection
> 09-09 19:49:43.955: W/IInputConnectionWrapper(20359): getExtractedText on
> inactive InputConnection
> 09-09 19:49:43.955: D/IOIOImpl(20359): Client requested disconnect.
> 09-09 19:49:43.955: V/SocketIOIOConnection(20359): Client initiated
> disconnect
> 09-09 19:49:43.955: D/IOIOImpl(20359): Client requested disconnect.
> 09-09 19:49:43.955: W/System.err(20359): java.lang.InterruptedException
> 09-09 19:49:43.955: W/System.err(20359):     at java.lang.VMThread.sleep(
> Native Method)
> 09-09 19:49:43.955: W/System.err(20359):     at java.lang.Thread.sleep(
> Thread.java:1031)
> 09-09 19:49:43.955: W/System.err(20359):     at java.lang.Thread.sleep(
> Thread.java:1013)
> 09-09 19:49:43.955: W/System.err(20359):     at com.LookHin.
> ioio_pir_motion_sensor.MainActivity$Looper.loop(MainActivity.java:157)
> 09-09 19:49:43.955: W/System.err(20359):     at ioio.lib.util.
> IOIOBaseApplicationHelper$IOIOThread.run(IOIOBaseApplicationHelper.java:62
> )
> 09-09 19:49:43.960: D/IOIOProtocol(20359): Received soft close.
> 09-09 19:49:43.960: D/IOIOImpl(20359): Connection lost / aborted
> 09-09 19:49:43.960: D/IOIOBaseApplicationHelper(20359): IOIOThread is
> exiting
> 09-09 19:49:43.960: D/IOIOImpl(20359): Client requested disconnect.
> 09-09 19:49:43.960: V/DeviceConnectionBootstrap(20359): disconnect()
> 09-09 19:49:43.960: D/IOIOImpl(20359): Connection lost / aborted
> 09-09 19:49:43.960: D/IOIOBaseApplicationHelper(20359): IOIOThread is
> exiting
> 09-09 19:49:43.960: D/IOIOBaseApplicationHelper(20359): IOIOThread is
> exiting
> 09-09 19:49:43.960: V/DeviceConnectionBootstrap(20359): close()
> 09-09 19:49:43.960: V/DeviceConnectionBootstrap(20359): state <= CLOSED
>
> How to know if my app no longer runnig when the screen turn off? I mean
> how to insure that is not an IOIO disconnecting?
> Thanks.
>
>
> On Tuesday, September 9, 2014 7:26:47 PM UTC+2, Ytai wrote:
>>
>> The IOIO should NOT disconnect when the phone goes to standby. Are you
>> sure it actually does, or is it just your app no longer running that causes
>> the issue you're seeing.
>> Al's suggestion would (for better or worse) avoid the problem by
>> preventing the phone from sleeping while your app is running.
>>
>> On Mon, Sep 8, 2014 at 2:49 PM, Al B <[email protected]> wrote:
>>
>>> Add this to your activity:
>>>
>>> @Override
>>>     public void onCreate(Bundle savedInstanceState) {
>>>         wakeLock_ = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "
>>> MainActivity");
>>>     }
>>>
>>>     @Override
>>>     protected void onStart() {
>>>         super.onStart();
>>>         wakeLock_.acquire();
>>>     }
>>>
>>>
>>>     @Override
>>>     protected void onStop() {
>>>         wakeLock_.release();
>>>     }
>>>
>>>
>>> And this to your manifest:
>>>
>>> <uses-permission android:name="android.permission.WAKE_LOCK" />
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "ioio-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/ioio-users.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "ioio-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to