Android Question Limit the apps that are shown for "ACTION_SEND"

Discussion in 'Android Questions' started by opus, Feb 21, 2015.

  1. opus

    opus Member Licensed User

    Hi, thanks to a code snippet posted by Erel I found a way to send a file from my app using an intent.
    Dim u As Uri 'ContentResolver library
       u.Parse("file://" & File.Combine(  File.DirRootExternal,lFileName))
    Dim i As Intent
    Using the code above all apps that could be used to send a file are shown. Is there a way to limit those (by number, by type ...)?
  2. thedesolatesoul

    thedesolatesoul Expert Licensed User

  3. opus

    opus Member Licensed User

    Thanks, I'll look into that one.
  4. Erel

    Erel Administrator Staff Member Licensed User

    You can also build this list yourself with PackageManager.QueryIntentActivities. This way you have full control over the list of apps.
    Kwame Twum and thedesolatesoul like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice