problems with the usage of sdcard iso in android sdk 1.6

by Stefan » Thu, 17 Sep 2009 02:34:31 GMT


Sponsored Links
 Hello @all,

have someone tested an app with android sdk 1.6 r1 and the usage of an
sdcard iso??
In my app i use:
private File root = Environment.getExternalStorageDirectory();

and:
root.canWrite()

return false. Why?? In Android 1.5, root.canWrite return true. So I
have create a new iso with the mksdcard tool from sdk 1.6r1 tools
folder, but nothing changed.

Thanks for help,
Stefan

PS: I have of course changed the emulator line to:

-sdcard /Users/Stefan/android-sdk-mac_x86-1.6_r1/tools/newone.iso
--~--~---------~--~----~------------~-------~--~----~



problems with the usage of sdcard iso in android sdk 1.6

by Stefan » Thu, 17 Sep 2009 03:06:42 GMT


 Thanks for the fast answer. How can I request the permission? With a
<uses-permission ...> tag?? I dont find something like/for that??

Thanks,
Stefan




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


problems with the usage of sdcard iso in android sdk 1.6

by Jack Ha » Thu, 17 Sep 2009 03:08:37 GMT


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

--
Jack Ha
Open Source Development Center
obilestick together
The coverage you need at the price you want

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.







--~--~---------~--~----~------------~-------~--~----~



problems with the usage of sdcard iso in android sdk 1.6

by Stefan » Thu, 17 Sep 2009 03:11:31 GMT


 Thanks a lot. Now all works fine :)







--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. SystemProperties.set is inoperative

In file services/java/com/android/server/MountService.java.
In function private void updatePublicVolumeState(String path, String
state) {}

Add:
            SystemProperties.set(path, state);
            Slog.d(TAG, "***** set prop: " + path + " : " + state);
            Slog.d(TAG, "***** get prop: " + path + " : " +
SystemProperties.get(path, "null"));

The value gotten from SystemProperties.get(path, "null") is null, but
it's not null exactly.
Later I use getprop command to get the value of the path, but it does
not exist. But I use setprop, it can set the value of the prop.

Could anyone tell me the reason?
Thanks.

-- 

2. DLNA pada motorola defy.

As subject, sebenarnya apa sih? Fungsi dan bedanya dibanding TV out
misalnya? Sory kalo ga nyambung, he..he..

-- 
===============

3. Desire, DHD, Desire Z and Incredible S update GingerBread

4. My impression of the Xoom and Honeycomb

5. Review Galaxy tab donk

6. (WTB) Accessories Fascinate

7. Cara liat apa yg sedang sync?