Kumar Bibek wrote: > You can't unless you know the component name and/or package name of > the target activity. > > On Nov 29, 3:37 pm, skink <psk...@gmail.com> wrote: > > saex wrote: > > > Hi, thanks for your answer, i'm checking your link but i can't > > > understand how can i use that class to achieve my objectives > > > Please can you give me some help to do it? > > > > > thanks! > > > > > On Nov 29, 11:13 am, skink <psk...@gmail.com> wrote: > > > > saex wrote: > > > > > Hi, I like share intent, it is perfect to open sharing apps with image > > > > > and text parameters. > > > > > > > But now i'm researching the way to force share intent to open a > > > > > specific app from the list, with the paramters given to the share > > > > > intent. > > > > > > > This is my actual code, it shows the list of sharing apps installed on > > > > > the phone. Please, can somedone tell me what i should add to the code > > > > > to force for example official twitter app? and official faccebok app? > > > > > > > Intent sharingIntent = new Intent(Intent.ACTION_SEND); > > > > > Uri screenshotUri = Uri.parse("file:///sdcard/test.jpg"); > > > > > sharingIntent.setType("image/*"); > > > > > sharingIntent.putExtra(Intent.EXTRA_TEXT, "body text"); > > > > > sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); > > > > > startActivity(Intent.createChooser(sharingIntent, "Share image > > > > > using")); > > > > > > > Thanks > > > > > > Seehttp://developer.android.com/reference/android/content/ComponentName.... > > > > > > pskink > > > > see Intent docs > > > > pskink
this is what ComponentName is for pskink -- 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