Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8173873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:18:35+00:00 2026-06-06T22:18:35+00:00

We have a usb port in our android tablet(version 4.0.3). How do we find

  • 0

We have a usb port in our android tablet(version 4.0.3).

  1. How do we find out any PenDrive connected on that port or not.
  2. How do we access the files in the USB Pendrive which connected on that port through programmatically in android.

We have a /mnt contained Folder as

asec
extsd
obb
sdcard
secure
usbhost1

  1. How to programmatically identify which one is Internal Memory Path, External SD Card Path and USB Path.

  2. What is the purpose for used this folder asec, obb and secure.

Thanks in advance.

Regards
Bala

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:18:36+00:00Added an answer on June 6, 2026 at 10:18 pm

    I guess to use the external sdcard you need to use this:

    new File("/mnt/external_sd/")
    

    OR

    new File("/mnt/extSdCard/")
    

    OR

    new File("/mnt/usb_storage")
    

    in replace of Environment.getExternalStorageDirectory()

    Works for me. You should check whats in the directory mnt first and work from there..

    You should use some type of selection method to choose which sdcard to use:

    File storageDir = new File("/mnt/");
    if(storageDir.isDirectory()){
        String[] dirList = storageDir.list();
        //TODO some type of selecton method?
    }
    

    The “pen drive” is located in /mnt/ (just like all other storage devices in 4.0>)

    It will probably be different for some devices, for the Acer Iconia A500 running 4.0.3 usb storage is under /mnt/usb_storage/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background information: I presently have a hardware device that connects to the USB port.
I have a zigbee usb dongle that plugs into the usb port on my
I have a h/w device connected to my USB port. The device sends serial
I have USB IR module in connected to a tty port, and I can
How do I access the USB port using pyserial? I have seen an example
Is it possible to access the USB port on Android phones? (Droid X for
I have a windows form application that connects to a USB port. In the
I have a D-Link DWM-156 3G USB modem that I want to send AT-commands
USBCELL rechargeable batteries - charged using the USB port These came out a while
I have a cash drawer connected to an Epson TM-T20 connected on a USB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.