B4X FEED eventbus now departing gate 2.

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: eventbus now departing gate 2. است. این موضوع تا کنون 22 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع eventbus now departing gate 2.
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
22
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
here's an interesting thing called an event library (for android). a forum member was having
a problem raising an event in an activity that was in the background (or even killed). there are
some workarounds (service, intent, startactivityforresult, sharedpreferences, shared resource,
etc), which - for whatever reasons - he couldn't use in the project.

here is another option he probably couldn't use: the eventbus. there are a few implementations
out there, but i latched onto greenrobot's version and, after experimenting a bit in inline java, i
cobbled a simple library together. the additional jars required are very small. after downloading
and unarchiving the attached zip archive, copy any jars, aars or xml files to your additional libraries
folder. the remaining bus2 folder holds an example project which you can build.

to get started checking out the eventbus library (for android), navegate here:
. this is a typical...



 

عقب
بالا