Hi Mark,

Thanks for your reply. I tried doing the below, but I am not sure how can i
remove Facebook from the list that appears in the createChooser or the
Dialog box:

PackageManager pManager = getPackageManager();
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.addCategory(Intent.CATEGORY_DEFAULT);

List<ResolveInfo> resolveInfo = pManager.queryIntentActivities(intent,
pManager.MATCH_DEFAULT_ONLY);

for(int i=0;i<resolveInfo.size();i++){
ActivityInfo activityInfo = resolveInfo.get(i).activityInfo;
if(activityInfo.name.equalsIgnoreCase("com.
facebook.katana.ShareLinkActivity"){
                      // i get the Facebook activity
                     }
 }

Please can anyone let me know how I can filter out Facebook from the list in
the Dialog Box that appears after an ACTION_SEND intent.

Thanks,
Prajakta
On Fri, Oct 29, 2010 at 11:24 PM, Mark Murphy <mmur...@commonsware.com>wrote:

> On Sat, Oct 30, 2010 at 2:03 AM, Prajakta Shitole <prajakt...@gmail.com>
> wrote:
> > Please can anyone let me know how to disable Facebook from being listed
> in
> > the list of to "Share" items.
>
> Uninstall the application.
>
> > As Facebook allows only Urls to be posted I
> > have used the Facebook SDK when I need to share a link, picture and
> message.
> > So I am currently displaying an Alert Dialog with Facebook listed and the
> > second option as Others where I would like to enlist the other items like
> > Gmail/ Y!Mail and twitter etc to share data. I dont want Facebook to
> appear
> > in this list. So please can anyone let me know how to show all
> applications
> > except Facebook in the list or any other work around.
>
> Use PackageManager and queryIntentActivities() to generate your list,
> then attempt to filter out Facebook.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android 2.2 Programming Books: http://commonsware.com/books
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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