chasmopolitan
New Member
I would like my app to be able to open a file on the sdcard at:
/sdcard//SmartRotor/ExampleZlog.txt
The following method:
public StreamProcessor()
{
System.out.println(filePath);
try {
fileReader = new FileReader( filePath );
} catch (FileNotFoundException e) {
System.err.println(e);
}
bufferedSmartRotorStream = new BufferedReader( fileReader );
}
displays logcat entries:
INFO/System.out(28609): /sdcard//SmartRotor/ExampleZlog.txt
WARN/System.err(28609): java.io.FileNotFoundException: /sdcard/SmartRotor/ExampleZlog.txt
I notice when the DroidX is attached via the USB cable the Android Files manage cannot access the sdcard (probably owing to its being mounted on the laptop). I assume that is the reason I can't open the file from the app.
Is there some incantation I'm missing that would permit
fileReader = new FileReader( filePath );
to an /sdcard/-based file path?
Newbie,
-chas-
/sdcard//SmartRotor/ExampleZlog.txt
The following method:
public StreamProcessor()
{
System.out.println(filePath);
try {
fileReader = new FileReader( filePath );
} catch (FileNotFoundException e) {
System.err.println(e);
}
bufferedSmartRotorStream = new BufferedReader( fileReader );
}
displays logcat entries:
INFO/System.out(28609): /sdcard//SmartRotor/ExampleZlog.txt
WARN/System.err(28609): java.io.FileNotFoundException: /sdcard/SmartRotor/ExampleZlog.txt
I notice when the DroidX is attached via the USB cable the Android Files manage cannot access the sdcard (probably owing to its being mounted on the laptop). I assume that is the reason I can't open the file from the app.
Is there some incantation I'm missing that would permit
fileReader = new FileReader( filePath );
to an /sdcard/-based file path?
Newbie,
-chas-