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 6348075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:20:56+00:00 2026-05-24T21:20:56+00:00

So, what I’m trying to do is write data to a file on the

  • 0

So, what I’m trying to do is write data to a file on the sdcard and then have windows read the file.

The issue I’m seeing is that windows never sees my new files until I reboot the xoom. The xoom has OS versin 3.2 and I am building to the SDK version as well. Once the xoom is rebooted and I navigate the xoom within windows my new directory and files show up after refreshing the directory a couple of times. This is an issue with an application that I am writing as I am exchanging information between the xoom and a device.

My code for writing out the file on the xoom is pretty straight forward, but I must be missing something if I need to reboot the xoom before windows can see the file I just created. I feel that shouldn’t be needed.

  String path = Environment.getExternalStorageDirectory().getPath() + "/TEST3/";
  File dirPath = new File(path);
  dirPath.mkdirs();

  try
  {
     FileOutputStream fw = new FileOutputStream(path + "test4", false);
     fw.write(mac.getBytes());
     fw.flush();
     fw.close();
  }
  catch (IOException e)
  {
     // TODO Auto-generated catch block
     e.printStackTrace();
  }

Just for some more background on why I’m doing this which may help understand what i’m trying to do.

Basically I need to connect a Xoom to a device where they will exchange information with each other over USB. The device will be mounting the xoom with mtpfs which is already implemented. When connected and mounted via USB the Xoom and device will write out a file with specific content. Each one is writing to separate files named appropriately. Then when finished they will read each others file, based on a second file written by each side to signal they are done writing.

So as you can see having to reboot in the middle of this just to see files would be pretty awful. This application is all a custom job and will not be in the market or anything like that. The xoom itself will only have this application running along with some other custom applications.

Thanks for any help that you can give me.

  • 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-05-24T21:20:57+00:00Added an answer on May 24, 2026 at 9:20 pm

    Use MediaScannerConnection and scanFile().

    On Honeycomb and higher, Android has switched to MTP and away from USB Mass Storage mode. On the whole, this is a good thing, but it means only indexed files show up.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I have a reasonable size flat file database of text documents mostly saved in
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has

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.