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. I'll play around with this and see > what I can do. > > On Jul 9, 1:37 pm, "nEx.Software" <justin.shapc...@gmail.com> wrote: > > > I don't know how exactly, but I can tell you the class name. You'll > > have to figure out the extras though. > > > Intentintent= newIntent();intent.setClassName > > ("com.android.vending", "com.android.vending.AssetInfoActivity"); > > > On Jul 9, 12:29 pm, Mike <michaeldouglaskra...@gmail.com> wrote: > > > > Can you tell me how? I am the owner of the other app I am trying to > > > open in themarketfrom the first app. > > > > - Mike > > > > On Jul 9, 12:42 pm, "nEx.Software" <justin.shapc...@gmail.com> wrote: > > > > > Presumably, if you knew the ClassName and the extras it was expecting, > > > > you could accomplish this. > > > > > On Jul 9, 10:39 am, Mike <michaeldouglaskra...@gmail.com> wrote: > > > > > > Does no one know the answer to this question? Even a "no you can't do > > > > > that." response would be better than nothing. Google framework > > > > > engineers - where are you? :) > > > > > > It seems based on the other threads that have been started on this > > > > > subject that there is a reasonable amount of interest surrounding it. > > > > > > On Jul 8, 10:17 am, Mike <michaeldouglaskra...@gmail.com> wrote: > > > > > > > I've seen a few other threads on this subject, but none that > > > > > > addresses > > > > > > my need which is to not only find the app in themarketvia themarket > > > > > > uri, but display it as if the user had navigated to it. > > > > > > > The closest anyone has gotten to this answer is to show how to bring > > > > > > up the AndroidMarketapp and browse for the app you want which shows > > > > > > the single result in a list that the user must still select to get > > > > > > to > > > > > > the screen I want to display. > > > > > > > Here's my existing code that does exactly that: > > > > > > > private static final String MY_MARKET_APP = "com.some.silly.name"; > > > > > > >IntentmarketLaunch = newIntent(Intent.ACTION_VIEW); > > > > > > marketLaunch.setData(Uri.parse("market://search?q=pname:" + > > > > > > MY_MARKET_APP)); > > > > > > startActivity(marketLaunch); > > > > > > > I don't want to have to force the user to select this single item > > > > > > from > > > > > > the list - just bypass that and bring up the next screen. > > > > > > > Has anyone been able to successfully do this? > > > > > > > Regards, > > > > > > > - Mike > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---