문제

This works just fine :

FileHandle handle = Gdx.files.internal("data/data.txt");
String dataFile = handle.readString();

But when I do this, nothing happens to the file and no error happens either :

FileHandle handle = Gdx.files.local("data/data.txt");
handle.writeString( "Hello world", false );

I've added this to the manifest file :

<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />

올바른 솔루션이 없습니다

다른 팁

Could you try to use the permission: WRITE_EXTERNAL_STORAGE?

It seems that the permission you are trying to use: WRITE_INTERNAL_STORAGE does not exist. Please check on this list: http://developer.android.com/reference/android/Manifest.permission.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top