TinyMessenger | lightweight event aggregator/messenger | Messaging library
kandi X-RAY | TinyMessenger Summary
kandi X-RAY | TinyMessenger Summary
A lightweight event aggregator/messenger for loosely coupled communication.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TinyMessenger
TinyMessenger Key Features
TinyMessenger Examples and Code Snippets
Community Discussions
Trending Discussions on TinyMessenger
QUESTION
I am facing a issue where in instead of using a thread the UI is blocked and shows blank screen. Here I am trying to connect to bluetooth scanner LPR device using my code but it somehow blocks the UI while it is connecting, which is little annoying. I tried to show toast which I thought will notify user while connecting. But no luck with that, it still shows blank screen till it connects and once its connected it shows connecting message.
...ANSWER
Answered 2018-Apr-13 at 08:03I am facing a issue where in instead of using a thread the UI is blocked and shows blank screen.
I think the reason is that you connect the Bluetooth in the UI thread.
Android is using single thread model.You should never perform long operations in the UI thread. They will block the UI. If the UI thread is blocked for more than 5 seconds, the ANR dialog will be shown. You could refer to this official documentation : Threads.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TinyMessenger
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page