Answer the question
In order to leave comments, you need to log in
What is the easiest way to organize data exchange between two Android applications?
The data passed is simple: app1 sends a string to app2, and app2 needs to return another string to app1. What is the best way to do this?
I tried to do it through sendOrderedBroadcast - a problem arises, on some phones, when application2 is closed (namely, the receiver is located in it), application1 cannot start the receiver in application2. Even if I point
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
Answer the question
In order to leave comments, you need to log in
As gadfi said , you need to use an exported ContentProvider on your dictionary. A Cursor can be created as a MatrixCursor if you don't have a database that provides a cursor.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question