You are indeed correct:) A major oversight on my part.
Ab
On Jun 15, 1:26 pm, Kostya Vasilyev wrote:
> The colon in the filename (between 19 and 37) is likely invalid for FAT32,
> even under a Linux kernel, for historical reasons.
>
> It would be more obvious if Android used paths like "C:\Androi
The colon in the filename (between 19 and 37) is likely invalid for FAT32,
even under a Linux kernel, for historical reasons.
It would be more obvious if Android used paths like "C:\Android\system" and
"D:\sdcard"
:)
-- Kostya
2011/6/15 Ab Caballero
> File file = new File(sdDir + "/" + current
On Wed, Jun 15, 2011 at 12:33 PM, Ab Caballero wrote:
> Any other thoughts?
Don't construct the file name yourself. Use the File() constructor that
takes a folder (File object you get for the SD path) and a file name (String
name you want for the file).
File file = new File(sdDir + "/" + currentTripName + ".kml");
yields:
06-15 13:25:29.209: WARN/System.err(13412):
java.io.FileNotFoundException: /mnt/sdcard/2011Jun1419:37.kml (Invalid
argument).
I also checked the file permissions, which are: lwrxwrxwrx root root.
After that i remounted the sdc
check the file name and be sure it's ok.
Running a modified version of your code on a 2.3.3 emulator
File sdDir = Environment.getExternalStorageDirectory();
sdDir.mkdirs();
String currentTripName = "testtrip";
File file = new File(sd
It does not
On Jun 12, 11:56 am, Kumar Bibek wrote:
> Does the file/dir get created at all?
>
> *Thanks and Regards,
> Kumar Bibek*
> *http://techdroid.kbeanie.comhttp://www.kbeanie.com*
>
>
>
> On Sun, Jun 12, 2011 at 9:24 PM, Ab Caballero wrote:
> > It is in the emulator. I set up the external
Does the file/dir get created at all?
*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*
On Sun, Jun 12, 2011 at 9:24 PM, Ab Caballero wrote:
> It is in the emulator. I set up the external storage for the GalaxyTab
> in the SDK and AVD Manager. I have it
It is in the emulator. I set up the external storage for the GalaxyTab
in the SDK and AVD Manager. I have it included in the hardware profile
and set to 2048 MiB. The DDMS File Explorer shows that it is located
in /mnt/sdcard. It just won't write to it.
On Jun 12, 11:43 am, Mark Murphy wrote:
> W
Where, specifically, are you getting this error?
If this is the emulator, do you have any external storage set up? By
default, there is none.
On Sun, Jun 12, 2011 at 11:37 AM, Ab Caballero wrote:
> Still getting the same error. I followed your advice with:
>
> File sdDir = Environment.getExterna
Still getting the same error. I followed your advice with:
File sdDir = Environment.getExternalStorageDirectory();
sdDir.mkdirs();
File file = new File(sdDir +currentTripName+".kml");
FileWriter sdWriter = new FileWriter(file, false);
sdWriter.write(fileContents);
sdWriter.close();
also, the mani
I would try DDMS and adb but the links you provided are not comming up
on my computer. I can't get to any of the developer.android.com pages
for some reason. I saw it in the help documentation before and looked
there.
Yes, it worked when I looked from within ddms File Explorer. I just
don't see w
> I meant...
> I created the EMULATOR with an
>
> On Jan 4, 10:11 pm, BiiG wrote:
>> new to java and android, but not programming... not sure how to push/
>> pull or use anything other than WinImage to manage and see what's in
>> the sd card.
>>
>> I created the image with an sd card from within
I meant...
I created the EMULATOR with an
On Jan 4, 10:11 pm, BiiG wrote:
> new to java and android, but not programming... not sure how to push/
> pull or use anything other than WinImage to manage and see what's in
> the sd card.
>
> I created the image with an sd card from within eclipse and I
new to java and android, but not programming... not sure how to push/
pull or use anything other than WinImage to manage and see what's in
the sd card.
I created the image with an sd card from within eclipse and I can open
the .img file with WinImage so I assume it's not corrupt or anything.
> OK
I tried the environment.getExternalStorageDirectory() and it created
an empty file too.
try {
FileWriter fw = new FileWriter
(Environment.getExternalStorageDirectory().getPath() +"/
thissucks.txt");
BufferedWriter out = new BufferedWriter(fw);
out.write("stupiddfdsfsgfghhjkjgfdfgf");
out.c
> 1. I've seen that and will try it. But everything was fine until one
> day, it just stopped working
>
> 2. yes, i have the propper permissions.
OK, can you manipulate the SD card image from anything else: adb
push/pull, DDMS file manager, etc.? Perhaps your emulator doesn't have an
image, or the
1. I've seen that and will try it. But everything was fine until one
day, it just stopped working
2. yes, i have the propper permissions.
thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-
17 matches
Mail list logo