简体   繁体   English

将Java包导入Android

[英]Importing java packages into Android

Actually I am working on an Android App which utilizes the normalization package of Java. 实际上,我正在开发一个使用Java规范化包的Android应用程序。 This packages has been ported into Android SDK from the version 2.3 (API 9). 该软件包已从2.3版(API 9)移植到Android SDK中。 http://developer.android.com/reference/java/text/Normalizer.html http://developer.android.com/reference/java/text/Normalizer.html

The problem is that I want to my application to reach as much people as possible, and it seems that android 2.2 is still very popular. 问题是我希望我的应用程序能够吸引尽可能多的人,并且似乎android 2.2仍然非常流行。 http://developer.android.com/resources/dashboard/platform-versions.html http://developer.android.com/resources/dashboard/platform-versions.html

My question is, is there any way to import the Normalize package from Java using Android 2.2 (API 8)? 我的问题是,有什么方法可以使用Android 2.2(API 8)从Java导入Normalize程序包吗?

Grab the source code for it, refactor it into some other package (you will not be able to reliably have java.text classes in your app), and give it a whirl. 获取它的源代码,将其重构到其他软件包中(您将无法在应用中可靠地拥有java.text类),并对其进行旋转。 Please adhere to all relevant licensing terms -- for example, the linked-to OpenJDK is licensed under the GPL. 请遵守所有相关的许可条款-例如,链接到的OpenJDK是根据GPL许可的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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