Android Time consuming operation

Source: Internet
Author: User

No subscribers registered for event class Com.test.MessageEvent
import de.greenrobot.event.EventBus; Not org ..... The bag.
There must be a subscriber in memory before the sender can send the message to him. A->b, activity A is sent to B, then b the activity has to be first. You can configure B for the app's startup page, and then jump to a, then in-Memory AB has (b, then a), then a sends a message to B, and finally B's toast can be seen on the a page, at the bottom
Only available in Androidcaused by: java.lang.ClassNotFoundException: Android.os.Handler


RxJava
Rxbuseventbus event Bus compile ' org.greenrobot:eventbus:3.0.0 '


Rxbus name looks like a library, but it is not a library, but a pattern, its idea is to use RxJava to achieve the Eventbus, notOtto or Eventbus ( Greenrobot's)
Rxbus = RxJava Combined Eventbus


Otto
Time-consuming operation: top, top priority usehandle background time-consuming operationsIn essence, it's all about opening newThreadsnew Thread ()
Rxjava and Rxbus instead of EventbusEvent Bus
Asynctask is Right (Thread+handler) of the packageThread+handler






Null

Android Time consuming operation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.