I don't think it's possible to do what you're trying to do. Installing an
app (or even a library for that matter) requires the user's consent. If the
app is already installed it's a different story.

On Jul 10, 2009 5:45 PM, "iPaul Pro" <mr.paulbu...@gmail.com> wrote:


To do this in a future-proof way, you would set the <intent-filter> on
the receiver app to handle your type of data and sending extras with
the intent from the sending app.

For example: if you are making an app that SEND's plain text:

In the java of the app to send the text:

final Intent sendIntent = new Intent();
       sendIntent.setAction(Intent.ACTION_SEND);
       sendIntent.setType("text/plain");
       sendIntent.putExtra(Intent.EXTRA_SUBJECT, EXTRA_SUBJECT);
       sendIntent.putExtra(Intent.EXTRA_TEXT, EXTRA_TEXT);
  try {
       startActivity(Intent.createChooser(sendIntent, "Send"));
  } catch (
       android.content.ActivityNotFoundException ex) {}


In the manifest, in the appropriate activity:

<intent-filter>
       <action android:name="android.intent.action.SEND" />
       <category android:name="android.intent.category.DEFAULT"/>
       <data android:mimeType="text/plain"/>
</intent-filter>


In the java file's onCreate() check for the standard SEND EXTRAS:

final String EXTRA_SUBJECT = getIntent().getStringExtra
(Intent.EXTRA_SUBJECT);
final String EXTRA_TEXT = getIntent().getStringExtra
(Intent.EXTRA_TEXT);


This concept can be used for other data and intents as well.

Hopes this helps,

Paul Burke
supp...@ipaulpro.com
347.695.1295

On Jul 10, 3:30 pm, Mike <michaeldouglaskra...@gmail.com> wrote: > OK,
thanks for the head start.  ...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to