I'm trying to make App that will communicate with Bluetooth device. i have a service which set connection, get data from Bluetooth & collect it to int array, and sent users settings to device. Then when App ask for new Data service return array.When user change some data in App it sent it to Service and service sent it back to bluetooth*. I have tested this app on Sony Z, HTC, Samsung Tab2 - it works fine... But on ZTE, and Lenovo i have problems! The main problem that this devices have slow speed on reading socket.getInputStream(); too slow... i have a great delay... with data reading. And the App Crashes.
Why it so?
I think, i ll try to make to Threads in Service for get and sent data... but on devices Sony HTC Samsung.. it works fine! By the way Samsung have only 500 mb RAM (damaged) ZTE Blade and Lenovo Tablet must be more faster!
Related
If a connection strategy is P2P_CLUSTER, it's able to connect and send a payload to multiple devices, but it is very slow in receiving the payload from the sender.
In Samsung s9, Samsung note9 and Lenovo PB2-670M devices it is very slow.
In LG g6, pixel 1, pixel 2 and moto 5s plus it is fine when compared to the above-mentioned devices.
Please help me in figuring out the reason, why it is slow.
I have a Samsung Galaxy Xcover 4, and a scanner (Intermec SR61).
The Samsung Galaxy XCover 4 is running an application 24/7, and never goes to sleep.
The Intermec SR61 is connected to this phone, and when scanning barcode, the application reads the barcode and handle the data.
After 24 hours, the Intermec SR61 loses connectivity to the phone.
It won't reconnect. I have to reconnect it through the application (disable/enable).
Why does this happen, and what can I do to make sure that doesn't happen?
I have created something similar and some phones connected to some scanners will do that. It is either a Bluetooth bug, a phone bug or a hardware thing.
There is not much you can do about it, I am afraid. Possibly you can change some settings in the scanner (sleep mode or something).
What I did to fix it, was to create a background process that keeps an eye on the connection and re-connects if it is gone. That process even goes so far to switch the Bluetooth adapter off and on again (because of problems on a certain phone).
I have two phones my application is running on. An LG G2 (Android 4.4.2) and a Wiko Lenny 2 (Android 5.1).
In my Android application I have a loop sending SMS, wait for 10 seconds, send the next SMS, etc.
On my LG G2, all the SMS are sent ; it may last for 15 minutes. But on my Wiko, I must interact with the phone (unlock it, ...) for the application to continue sending the SMS. It looks like the application is sleeping and then continues where it stopped once I "wake up" the phone.
Why is there a difference between the two phones? Is it something new in Android 5.x that the application sleeps when the phone sleeps?
See here for additional information. It seems specific to Wiko phones:
https://android.stackexchange.com/questions/155507/phone-is-killing-important-background-sync-processes-wiko-lenny-3-what-to-do
Most probably the manufacturer has modified the OS on the Wiko to restrict background processes (to reduce battery usage, Xiaomi does the same with MIUI, for example).
Do you receive notifications normally on the Wiko?
You might find some sort of pre-installed app on the phone where you can whitelist your app or disable the restriction of background processes.
I have an Mono/Android app with a background service that makes some call to a rest webservice via httpwebrequest. On some devices (a samsung galaxy s4 and s4 mini) the requests begins to hang, then timeout and after some minutes the wifi of the phone is turned off (I suggest is the OS) .
Closing the app the wifi returns available, anybody knows why?
OK, finally, found. It seems to be a strange problem with some Samsung Devices and the wpa2-psk encription of Wi-fi.
The same device (with the same app) attached on a WEP works like a clock.
It's definitively a samsung bug.
I'm developing a game that has 'play via bluetooth' mode. Two game instances connect to each other perfectly, but from time to time (one out of ten or so) I got a confirmation dialog on my Galaxy S3 with message that "Remote app requests permission to access SIM".
This message appears when my game tries to connect to the S3 phone but usually it happens after several successful connections.
I've tested this behavior on my Galaxy S3 (Android 4.1.1) and HTC Legend (Android 2.2).
The game is using generated UUID for creating secure bluetooth connection.
Why am I getting this "access SIM"?
Any advice is really appreciated.