我可以将 android 应用程序转换为在 java 通用手机下运行吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12377067/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Could I convert an android application to run under a java generic cellphone?
提问by Please_Dont_Bully_Me_SO_Lords
I have seen many questions about old java applications made for old cellphones trying to run under android cellphones.
我看到很多关于为旧手机制作的旧 java 应用程序的问题,这些应用程序试图在 android 手机下运行。
Is it possible to run an android application (made 100% in java and android default libraries) in an old java cellphone, converting somehow, the apk file into a jar file?
是否可以在旧的 java 手机中运行 android 应用程序(在 java 和 android 默认库中 100% 制作),以某种方式将 apk 文件转换为 jar 文件?
Imagine we using cool and useful android apps into those 3d gen cellphones...
想象一下,我们在那些 3d 代手机中使用很酷且有用的 android 应用程序......
I have discovered a project of a library that converts Android Activities and hardware interface to S60 5th edition phones.
我发现了一个将 Android 活动和硬件接口转换为 S60 第 5 版手机的库项目。
Different from what many people think, this is widely important because these phones are cheaper and we can develop android applications (faster and more efficient) to them and use for personal and corporate purposes.
与许多人的想法不同,这非常重要,因为这些手机更便宜,我们可以为它们开发安卓应用程序(更快、更高效),用于个人和企业用途。
When we need to buy 30 of 50 phones, price is everything.
当我们需要购买 50 部手机中的 30 部时,价格就是一切。
回答by CommonsWare
Is it possible to run an android application (made 100% in java and android default libraries) in an old java cellphone, converting somehow, the apk file into a jar file?
是否可以在旧的 java 手机中运行 android 应用程序(在 java 和 android 默认库中 100% 制作),以某种方式将 apk 文件转换为 jar 文件?
In a word, no. There is little to no commonality between a JavaME device and an Android device in terms of application runtime environments.
一句话,没有。在应用程序运行时环境方面,JavaME 设备和 Android 设备之间几乎没有共性。
You are welcome to attempt to port the Android OS to run on those devices, though they usually had far too little RAM for such a role.
欢迎您尝试移植 Android 操作系统以在这些设备上运行,尽管它们通常没有足够的 RAM 来承担这样的角色。
回答by Please_Dont_Bully_Me_SO_Lords
I found a project to convert S60 phones to run android applications:
我找到了一个将 S60 手机转换为运行 android 应用程序的项目:
Phones like nokia n95 and above are better suited with fast hardware and more memory than other java phones.
诺基亚 n95 及以上的手机比其他 java 手机更适合快速的硬件和更多的内存。
回答by Gladen
I don't think that is possible since the Android SDK relies on features that are supported by Android. Since you don't know if the Java based cellphone offers the same features I would say it's highly unlikely that it will ever run.
我认为这是不可能的,因为 Android SDK 依赖于 Android 支持的功能。由于您不知道基于 Java 的手机是否提供相同的功能,我想说它永远不可能运行。