An .apk is really just a zip file (and a jar file too), so in theory you can
use any zip tools you want on it, you just need to make sure that you
correctly re-sign it after making changes.  There is a caveat, however, that
aapt does a few special things to make sure to not compress certain files
and enforce alignment of uncompressed files for more efficient access at
runtime; you'll want to make sure you don't lose these things if using
normal zip tools.

The aapt command also has some zip-like options to add and remove files.

On Wed, Feb 4, 2009 at 9:49 AM, Georgios Galyfos <yorg...@gmail.com> wrote:

> thanks for the reply, however I am trying to do this without needing to
> rebuild the APK..
>
>
> On Wed, Feb 4, 2009 at 7:46 PM, Mark Murphy <mmur...@commonsware.com>wrote:
>
>>
>> Yorgos wrote:
>> > Do you have any other ideas of how I can store/alter information into
>> > the APK?
>>
>> Simple answer: Just re-run Ant to rebuild/resign your APK after
>> modifying the XML.
>>
>> More complicated answer: Tease out the specific steps from Ant that will
>> achieve those ends. I think you will need aapt and apkbuilder at minimum.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com
>> Android Training in Sweden -- http://www.sotrium.com/training.php
>>
>>
>>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
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