Skip to main content
Participating Frequently
Jun 18, 2013 9:33 AM UTC
Question

how can i put some file (xml) in root apk?

how can i put some file (xml) in root apk?

I put fileA in flash builder mobile project.

build apk.

fileA  →  "main.apk/assets/fileA" . 

expect → "main.apk/fileA" .

PS: view apk by Winrar.

I have a Demo Android java project.

It uses armeabi/libcasdkjni.so .

build apk

↓

+assets

+lib

+META-INF

+res

-AndroidManifest.xml

-classes.dex

-CopyrightDeclaration.xml

-mmiap.xml                                                       ←   fileA

-resources.arsc

-VERSION

i build an ANE include armeabi/libcasdkjni.so.

apk is missing mmiap.xml

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

zongwanAuthor
Participating Frequently
Jun 20, 2013 1:37 PM UTC

finally,adobe air make me grow again.

use aapt.exe to add , jarsigner.exe to sign apk,

before debuging with wifi.

PS:最后还是用中文说吧

实际做法比较简单,但是很难找到相关资料.

也不全怪 air ,android 基本也很少考虑这块的东西 ,两者经常使用的方法 不同.

aapt 可以将其他文件打包如 apk 但是需要签名

用P12签名 需要用到jarsigner

两者都可以 在 JDK的bin中找到

最后感叹下, air is powerfull .

最开始以为 有些ane 根本做不出来,但实际下了功夫后 最终还是有解决方法的.

但目前 还是有一些问题 没找到方法.

如 android  how  to override OnPause ,onActivityResult ...

以后应该会找到解决方法的.

Believe adobe air.

Translate
User Unknow
Legend
Jun 18, 2013 1:13 PM UTC

During compiling you need setup filename at the end. Compiler embeds all files such way.

Translate
zongwanAuthor
Participating Frequently
Jun 18, 2013 6:40 PM UTC

all files will be embed in "assests"(floder in apk ,which includes swf file) in that way.

build apk

↓

+assets                                ←         "assets"

+lib

+META-INF

+res

-AndroidManifest.xml

-classes.dex

-CopyrightDeclaration.xml

-mmiap.xml                                                       ←   fileA

-resources.arsc

-VERSION

Translate