File writing sample doesn't seem to work

Using the File demo - http://developer.anscamobile.com/content/file-demo - it doesn’t seem to work on Android. I can’t seem to find the file anywhere on the device ( the app says it has written it but it would do that regardless ) and when running it a second time it doesn’t load the file up. It works fine on the iPhone.

Does anyone know if it has ever worked on Android or is it a new issue? [import]uid: 5833 topic_id: 7411 reply_id: 307411[/import]

I wonder if this is related to the issue I’m seeing where I can’t load a text file off my android device. [import]uid: 27183 topic_id: 7411 reply_id: 26184[/import]

Yes, could someone please help with Filesaving/ reading on Android [import]uid: 9577 topic_id: 7411 reply_id: 26239[/import]

can you guys post some code as to what you are doing to make it not work?

c [import]uid: 24 topic_id: 7411 reply_id: 26328[/import]

I’ve tested with the sample app completely unchanged. [import]uid: 5833 topic_id: 7411 reply_id: 26338[/import]

Hey Graham !

so even without calling system.pathfor file

just using io.open(“blahblah”,"") to create the file/or open/ does not work [import]uid: 24 topic_id: 7411 reply_id: 26343[/import]

This works fine in the XCode simulator but not on my Android (HTC Hero)

[code]

path = “text.txt”

local file = io.open( path, “w” )
file:write( “Hello, World!\n” )
io.close( file )

file = io.open( path, “r” )

if file then

local contents = file:read( “*a” )

io.close( file )

local text = display.newText( contents, 100, 200, nil, 16 )
text:setTextColor( 255, 255, 255, 255 )

end

[/code] [import]uid: 5833 topic_id: 7411 reply_id: 26350[/import]