- 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:
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...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید