简体   繁体   中英

Is it possible to download activities online and load them into tabs in Android?

是否可以下载其他人的示例,并将其代码加载到选项卡中?

I don't know its your answer, what you are looking for it, (And As I understand your question)

Simple strategic logic. What about the code compilation , code build-up and make a .dex code for it? Android .apk file is build up using .dex files and only executable, If you are adding new code then you have to compile those classes once again and make a new .apk file, I don't think any device provides such platforms for it. And if you want to do this on .apk file on your machine then you have to make some reverse engineering process and add newly download code into it, tehn again build up process for application.

不,所有活动必须在您的清单中声明

No you cannot load Activity es dynamically as they need to be declared in Manifest.

What you can do is to have WebView in your Activity and load their contents hosted some where, but this will be a Web Application rather a native Android application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM