I
I
ivanessence2016-10-31 17:55:54
Android
ivanessence, 2016-10-31 17:55:54

Android. For what reason does the device connected to the application via Bluetooth fall off?

Good afternoon! There was a question, maybe you will indicate the direction where to dig ... There are several threads running in the application, and when adding the next thread (it seems to be after these actions, or maybe not) in the Android Studio log when the application is running, the I / log sometimes slips art: Explicit concurrent mark sweep GC freed 11115(1207KB) AllocSpace objects, 23(428KB) LOS objects, 26% free, 43MB/59MB, paused 1.015ms total 84.963ms . As I understand it, this log indicates that the garbage collector either deleted some objects of my program, or possibly stopped the thread. But as a result of his actions, an error occurs in the log W/System.err: java.io.IOException: bt socket closed, read return: -1 and the device that interacts with my application via bluetooth falls off and has to be reconnected. What could be the problem? Because of the crooked code,

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
d-stream, 2017-01-06
@d-stream

You can try this:
declare @filter table(x int, y int, primary key(x,y))
insert into @filter (x,y) values ​​(192,18),(191,17).....
select * from dbo.boards_map inner join @filter as f on fx=dbo.boards_map.x and fy=dbo.boards_map.y

V
vintage, 2017-01-06
@vintage

At least it is worth returning not records, but their number.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question