Skip to main content
Participating Frequently
June 18, 2013
Question

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

  • June 18, 2013
  • 2 replies
  • 2015 views

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 has been closed for replies.

2 replies

zongwanAuthor
Participating Frequently
June 20, 2013

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.

User Unknow
Legend
June 18, 2013

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

zongwanAuthor
Participating Frequently
June 18, 2013

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