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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:04:50+00:00 2026-05-30T12:04:50+00:00

I am not that experienced with Java/Android programming. I have an array of floats

  • 0

I am not that experienced with Java/Android programming.
I have an array of floats that i have logged, and i want to plot them against time.
I just want to see what the data looks like, I don’t really need to plot it in the app itself, although it would be handy. I am looking for the simplest possible way to do this.
I have looked around at libraries (graph view and achartengine) which plot graphs in the app, but when i imported them into eclipse, there were errors everywhere on the demo code.
Maybe it would be easier to export the array so I can plot it on the computer, e.g. to a csv file (for excel)? But, I can only find stuff on databases with csv files. Someone please point me in the simplest direction! 😀
Thanks

  • 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-30T12:04:52+00:00Added an answer on May 30, 2026 at 12:04 pm

    Both ways are quite simple.

    1. You may draw your values at any View by overriding its draw(Canvas) method. The thing which will take the most time is converting your values to view’s coordinates, which is actually primitive algebra.

    2. You don’t need any tools to generate *.csv files – it has very simple format, you may create it by yourself. In your case its content will look like this:

      "time","value"
      "12300000","78.99"
      "12340000","89.77"
      ...
      

    Here is the code, which will produce such file:

        long[] time = ...; // this contains your time values
        float[] values = ...; // this contains your float values
        File outFile = new File("/mnt/sdcard/my_output_file.csv");
    
        BufferedWriter buffWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outFile)));
        buffWriter.write("\"time\",\"values\"\n");
        buffWriter.flush();
    
        for (int i = 0; i < values.length; i++) {
            buffWriter.write("\"" + time[i] + "\",\"" + values[i] + "\"\n");
            buffWriter.flush();
        }
    
        buffWriter.close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new in android, I dont have that much of experience. I want
I'm an experienced Java programmer that for the last two years have programmed for
I'm fairly new to Android programming and to Java in general, but I have
i'm a beginner in android and have not much experience on java... I have
Disclaimer: I am not going to say that I am the most experienced Java
I need help on regex or preg_match because I am not that experienced yet
I only have experience with log4net however that does not mean that there are
Not that I would ever need to do this, but I want to understand
I want to start making cellphone apps with Android as first choice but not
So after a while of programming android apps(1 uploaded on market, have 3k+ active

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.