Android的加入CP866字符集字符集、Android

2023-09-04 04:17:40 作者:时间偷走初衷

我想实现CP 866支持我的Andr​​oid应用程序。我用InteliJ理念社区版12.0.3。我想把 META-INF \服务\ java.nio.charset.spi.CharsetProvider 文件到我的 .apk文件 。但我不知道该怎么做。

I'm trying to implement cp 866 support to my Android application. I use InteliJ Idea Community Edition 12.0.3. I want to put META-INF\service\java.nio.charset.spi.CharsetProvider file into my .apk. But I don't know how to do that.

推荐答案

在META-INF文件夹中的所有文件都通过 JavaResourceFilter 这是由 ApkBuilder 。

All files in META-INF-folders are ignored by JavaResourceFilter which is used by ApkBuilder.

要包含这些文件到您的apk的唯一方法是包装后,把它们放在那里。

The only way to include these files into your apk is to put them there after packaging.

我只是做了一个小的自定义在Android的SDK到build.xml,它工作得很好。

I just did a little customization to build.xml in android-sdk and it works well.

请参阅我的帖子。