Not sure what you mean. This is all very pedestrian. use standard file 
management routines. Inputstream, outputstream etc. Here is an example to 
copy a database from the package to a usable location

    InputStream myInput = myContext.getAssets().open(DB_NAME);
    // Path to the just created empty db
    String outFileName = DB_PATH + DB_NAME;
    // Open the empty db as the output stream
    OutputStream myOutput = new FileOutputStream(outFileName);
    // transfer bytes from the inputfile to the outputfile
    byte[] buffer = new byte[1024];
    int length;
    while ((length = myInput.read(buffer)) > 0) {
        myOutput.write(buffer, 0, length);
    }

    // Close the streams
    myOutput.flush();
    myOutput.close();
    myInput.close();
    buffer = null;



On Monday, September 10, 2012 5:27:25 AM UTC-4, drstikko wrote:
>
> Ok, but how do I do that? 
> Is there a standard scriptname that contains these commands?
>
> Dave
>
> Op zaterdag 8 september 2012 14:30:48 UTC+2 schreef lbendlin het volgende:
>>
>> During the initial run of your application you can copy the required 
>> files from the package to the sd card.Bonus points if you use the standard 
>> folder ( /data/Android/your.app.name/files  or some such)
>>
>> On Friday, September 7, 2012 7:53:45 AM UTC-4, drstikko wrote:
>>
>>> Hello, 
>>>
>>> as far as I know only audio that is located in /mnt/sdcard is played by 
>>> the webview class.
>>> No my question is: "how do I let the installation apk install the in a 
>>> folder on /mnt/sdcard?"
>>> Or if people think it is possible to play them from the res or assets 
>>> folder :  "how do I do that?"
>>>
>>> regards,
>>>
>>> Dave
>>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to