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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:05:31+00:00 2026-06-12T11:05:31+00:00

So basically I have a program that utilizes Robotium to run tests on an

  • 0

So basically I have a program that utilizes Robotium to run tests on an android device, and all the tests work great. Certain tests also have timestamps, and I want to save those timestamps to a file so I can use them elsewhere, so I wrote a simple method.

public static void saveTimestamps(Timestamp ts) throws IOException {
    FileWriter fw = new FileWriter(
        "C:\\Users\\brendonn\\workspace\\TestProject\\timestamps.txt");
    fw.write(ts.toString());
    fw.close();
}

But for every test that uses this method I get

java.io.FileNotFoundException: /timestamps.txt (Read-only file system)

And I’m not sure where to go from here. I’m not trying to write to the phone, I’m just writing a text file to my computer. I can do the exact same thing in other classes on this computer and it works.

  • 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-12T11:05:32+00:00Added an answer on June 12, 2026 at 11:05 am

    As near as I can see from a quick look at the Robotium home page, this tool runs ON the target system! If that’s correct, your method is trying to write to something on the Android device, where the path doesn’t exist.

    Note that the front page of the Robotium project talks about a future feature of running the tests from the PC.

    You could try saving the timings to a file on the target device (the app would need permission to write somewhere), or you could perhaps send the data out as log messages and capture the log output on your PC.

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

Sidebar

Related Questions

I'm having troubles getting this to work. Basically I have a python program that
I basically have a program that filters records from one excel file to another
Basically, i have a program that is given a 4 meg compressed file, it
I have a Java program that generates Java classes for my application. Basically it
Basically I have a part of my program (it's for Vector solving) that is
I am basically doing a tutorial but my program seems to have errors that
I have a program that accepts a Cmd command as a command argument. Basically
How do I change the startup list? Basically I have a program that is
I want to make a program that moves certain named folders (and all files
I currently have a program that basically reads html from a webpage. After sending

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.