Android的加入CP866字符集 [英] Android adding a cp866 Charset

查看:280
本文介绍了Android的加入CP866字符集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现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文件夹中的所有文件都通过<一个被忽略href="https://android.googlesource.com/platform/sdk/+/10e712627b86b2b0061dbd3a20f5f966b2cd7330/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/build/JavaResourceFilter.java"相对=nofollow> JavaResourceFilter 这是由<一个href="https://android.googlesource.com/platform/tools/adt/idea/+/e54608a9498ced0348c84cf87f90dfebe907429a/android/common/src/org/jetbrains/android/compiler/tools/AndroidApkBuilder.java"相对=nofollow> 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.

请参阅我的帖子

这篇关于Android的加入CP866字符集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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