Android Question Get any file type using content chooser

Discussion in 'Android Questions' started by shashkiranr, Mar 22, 2015.

  1. shashkiranr

    shashkiranr Active Member Licensed User

    Hi All,

    I would like to know how to get a file of any type(random file) using content chooser.

    OR

    how to open the file managers installed in the phone to get the file path.

    Regards,
    SK
     
  2. NJDude

    NJDude Expert Licensed User

    Search the forums for "ContentChooser"
     
  3. shashkiranr

    shashkiranr Active Member Licensed User

    Hi NJDude,

    I searched the forums. I also used content chooser to open the file managers in my phone but i get a message No such application exist. im using the below code

    Code:
    CC.Initialize("CC")
            CC.Show(
    "file/*","Choose File")
    Regards,
    SK
     
  4. NJDude

    NJDude Expert Licensed User

    You mentioned "random file" (not sure what you mean by that) but you can also do this:
    Code:
    CC.Show("*/*","Choose File")
     
  5. shashkiranr

    shashkiranr Active Member Licensed User

    I tried that. It opens up google drive. I do not get any option to choose other files. random file can be a .dat file for random access files.
     
  6. NJDude

    NJDude Expert Licensed User

    Content chooser will work with registered mime types, otherwise, you will get an error or not the expected results.
     
Loading...
  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