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. Developers to offer priced applications in Europe?

Does any body have a clue when developers from all the
countries ,where G1 development edition phone was offered, will be
able to offer priced applications? I am particularly interested in
Finland or Poland. I see that there is ongoing process in Germany,
Austria, Netherlands, France, and Spain but it already took 2-3 months
and is still not finished!

So how long will other countries have to wait? 6 months? 12 months?

Is it only me who things that offering G1 to some countries and then
not allowing them to sell their applications is a bit hmm ...
disappointing?


regards
m
--~--~---------~--~----~------------~-------~--~----~

2. ALSA channels

when i use the code below.
status_t ALSAStreamOps::channelCount(int channels) {
    int err;
    if (!mHandle)
        return NO_INIT;
    err = snd_pcm_hw_params_set_channels(mHandle, mHardwareParams,
channels);
    if (err < 0) {
        LOGE("Unable to set channel count to %i: %s",
            channels, snd_strerror(err));
        return BAD_VALUE;
    }
    LOGD("Using %i %s for %s.",
        channels, channels == 1 ? "channel" : "channels", streamName());
    return NO_ERROR;
}

i want to set channel 1 when recoring audio. but the message of "Unable to
set channel count to %i: %s" will be print .who know why?

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

3. Eclipse Error: SWT on ubuntu (amd turion )64 bit

4. PingUsage Server failed

5. Questions on Tab (TabWidget) Width

6. Get Latitude/Longitude informations of an image

7. Hello World Tutorial Error Message