Ok, that is a pity, because the app would contain code that will never be
used again.
I know it is probably not much space, but not neat to my opinion.

On Mon, Sep 10, 2012 at 10:29 PM, lbendlin <l...@bendlin.us> wrote:

> not to my knowledge.
>
>
> On Monday, September 10, 2012 4:12:33 PM UTC-4, drstikko wrote:
>
>> In linux for example you can use an install script
>> that is part of the install package or organize it
>> in such a way that the distro 'knows' where to place it.
>>
>> I don't like it that the app itself has to do install tasks
>>
>> Is there such an approach?
>>
>> On Mon, Sep 10, 2012 at 10:04 PM, lbendlin <lu...@bendlin.us> wrote:
>>
>>> 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/**fi**les<http://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 android-d...@**googlegroups.com
>>>
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Reply via email to