Hi,
I've got an application, and I'd like to publish a way for third-party
services to get data from it. Ideally I could expose this through
intents, as in the following pseudocode:
// third party apps
class ThirdPartyService extends Service {
@Override
public void onCreate() {
Intent i = new Intent(this, "com.me.test.MyAppIntent");
Intent result = startActivity(i);
}
}
// part of my app
class MyAppIntent extends Activity {
@Override
public void onCreate() {
Intent i = new Intent();
i.putExtra("result", "hi there");
setResult(i);
finish();
}
}
The above won't work of course - I have some work done on this, just
wondering if anyone has any recommendations or best practices?
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en