safon007 / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

SD card path resolution for Android Demo is Wrong #250

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the demo on a device that doesn't mount the SD card at "/sdcard".
2. Watch the app crash and cry tears of intense frustration.
3. Bang your head against the table trying to figure out WHY ME?!?!

What is the expected output?
Asset loaded, demo work.

What do you see instead?
Asset not loaded, demo crash.

What version of the product are you using?
trunk

On what operating system?
Android

Please provide any additional information below.

You can fix it by changing all the code where "/sdcard/" is hard coded to:

String sdCardPath = Environment.getExternalStorageDirectory().getAbsolutePath();

Original issue reported on code.google.com by ascensio...@gmail.com on 16 Jul 2012 at 5:46

GoogleCodeExporter commented 8 years ago
Lol,...I hope you got enough tears left for the next android-frustrations :D

Thx,...good point. I will change this asap.

Original comment by thomas.t...@googlemail.com on 17 Jul 2012 at 9:59

GoogleCodeExporter commented 8 years ago
lol yeah, I just noticed this the other day when I saw people complaining about 
it in the forums. Knew right away what it was.

Original comment by ascensio...@gmail.com on 17 Jul 2012 at 4:01

GoogleCodeExporter commented 8 years ago
commited.thx,again

http://code.google.com/p/gamekit/source/detail?r=1118

Original comment by thomas.t...@googlemail.com on 17 Jul 2012 at 4:35