集成一个Android应用程序(.apk文件)到现有的Andr​​oid项目 [英] Integrate an Android app (.apk) into an existing Android project

查看:246
本文介绍了集成一个Android应用程序(.apk文件)到现有的Andr​​oid项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是用例:

我和一个朋友正在构建一个Android应用程序,并与它一起要整合一个游戏。该应用程序的核心已经内置在Eclipse,但我们正在研究建立游戏与一个应用程序创建工具,如谷歌AppInventer(的http:// appinventor.googlelabs.com/about/ )或电晕( http://www.anscamobile.com/corona/)。我们希望现有的应用程序,我们已经建立有像玩游戏,将推出我们建立使用这些工具之一本场比赛的一个按钮。

A friend and I are building an Android app and along with it want to integrate a game. The core of the app has been built in Eclipse but we are looking into building the game with an app building tool like Google AppInventer (http://appinventor.googlelabs.com/about/) or Corona (http://www.anscamobile.com/corona/). We'd like the existing app we've built to have a button like "Play Game" which will launch the game we build using one of these utilities.

然而,当我搞砸周围的谷歌应用程序发明家,我注意到,我只能将项目导出为一个.apk文件,它是二进制文件。理想情况下,我会建立应用程序的AppInventor,导出源$ C ​​$ c和包添加到我们在Eclipse现有的项目。嗯,这不是那么容易,因为我们只能访问一个的apk文件。所以我的问题是可以这样做?怎么样?

However when I messed around with Google App Inventor I noticed that I could only export the project as a .apk, which are binary files. Ideally, I'd build the app in AppInventor, export the source code and add the package to our existing project in Eclipse. Well, it's not that easy since we only have access to a .apk file. So my question is can this be done? How?

有些人建议使用的 APK反编译器,但就这甚至是值得的?是否有良好的apk反编译器,这将使我们获得了一些源$ C ​​$ C(java文件,XML文件,资源)没有太大的头痛?是否有另一种工具,在那里,可以导出源$​​ C ​​$ C?任何其他方式来整合2个单独.apks?

Some have suggested using an apk decompiler, but would this even be worth it? Are there any good apk decompilers that will give us access to some source code (java files, xml files, resources) without too big of a headache? Is there another tool out there that can export source code? Any other way to integrate 2 separate .apks?

还是我们需要建立2个独立的应用程序? :(

Or will we need to build 2 separate apps? :(

推荐答案

写在应用发明的项目无法导出到Eclipse中。

A project written in App Inventor cannot be exported into Eclipse.

所创建的apk文件不是二进制文件。这是几个文件和文件夹的ZIP档案,但他们都不是用java code。

The created .apk file is not a binary file. It is a ZIP archive of several files and folders, but none of them is java code.

有什么可以做一个App Inventor中的应用程序结合了Android SDK创建一个应用程序是使用应用发明内部的ActivityStarter成分。上详细信息在这里: http://appinventor.googlelabs.com/learn/reference/other/activitystarter.html

What can be done to combine an App Inventor app with an app created with Android SDK is to make use of the ActivityStarter component inside App Inventor. Details on that are here: http://appinventor.googlelabs.com/learn/reference/other/activitystarter.html

最后,请记住,应用发明的应用程序无法直接上传到市场。但是,某些用户已经创建了一个过程,它允许这样做,它被称为Marketizer

Finally, keep in mind that App Inventor apps cannot be uploaded directly to the Market. However, some users have created a process that allows to do that, it is called Marketizer.

如果你花一些时间,从这个论坛阅读帖子:编程与 - 应用发明人(这是一个谷歌论坛论坛),你可能会得到更好的想法

If you spend some time reading posts from this forum: programming-with-app-inventor (it is a Google Groups forum), you might get even better ideas.

这篇关于集成一个Android应用程序(.apk文件)到现有的Andr​​oid项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆