MykolaHodovychenko / android-serialport-api

Automatically exported from code.google.com/p/android-serialport-api
0 stars 0 forks source link

To write & read the data to a file on an SD Card in Android device using android-serial-port api #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I am able to read n write into the file on an SD card in android using the 
below code

        try {
            File root = Environment.getExternalStorageDirectory();
            if (root.canWrite()){
                File gpxfile = new File(root, "gpxfile2.gpx");
                FileWriter gpxwriter = new FileWriter(gpxfile);
                BufferedWriter out = new BufferedWriter(gpxwriter);
                out.write("Hello world");
                out.close();
            }
        } catch (IOException e) {
            Log.e(TAG, "Could not write file " + e.getMessage());
        }

But when I tried to implement the same for reading & writing from serial port 
using android serial-port-api i was not able to make it as this is very 
critical & as am new to android development,
could any body please help me in modifying the android serial-port-api in such 
way that am able to read n write from serial port using android serial port api

What is the expected output? What do you see instead?
To edit the android serial port api for writing & reading data into
the file using java file operations such way that the data from serial
port is directly written into the file & read from the file on an SD
card

What version of the product are you using? On what operating system?
Android 2.3.3

Please provide any additional information below.

Original issue reported on code.google.com by srinivas...@gmail.com on 30 Jan 2012 at 1:56

GoogleCodeExporter commented 8 years ago

Original comment by cedric.p...@gmail.com on 20 Feb 2013 at 5:14