Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Jul 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant