本文介绍了移植Android应用到黑莓手机中西里尔应用程序的名称不正确连接codeD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有小问题上显示的PlayBook和BB10模拟器西里尔应用程序的名称。看起来这是不正确的途中从俄罗斯codeD。
问题从1.3版更新BB eclipse插件到1.5,与插件V.1.3出现后,它的工作只是正常。

I have small problem with displaying cyrillic app name on PlayBook and BB10 simulator. Looks like it's incorrectly encoded from russian.Problem appeared after updating bb eclipse plugin from version 1.3 to 1.5, with plugin v.1.3 it worked just ok.

我将AP preciate任何帮助或想法。

I'll appreciate any help or ideas.

下面是BB10模拟器截图:

Here is screenshot from bb10 simulator:

推荐答案

我发现自己的解决方法。

I found workaround myself.

当我用BB eclipse插件encodding的问题,我决定做同样的事情comandline工具。

When I got problems with encodding with bb eclipse plugin, I decided to do the same thing with comandline tools.

在工具设置(唱键,调试​​令牌等),我试图重新打包我的apk文件使用此命令(来源apk文件在APK /文件夹和目标文件酒吧是酒吧/文件夹)

After tools setup (sing keys, debug tokens, etc), I've tried to repackage my apk file with this command (source apk file was in apk/ folder and destination for bar file was bar/ folder)

./apk2bar apk/ -d bbplaybookdebugtoken.bar -t bar/ -a "zasadnyy" -cg

当我已经得到的.bar文件,我已经命令安装它:

When I've got .bar file, I've installed it with command:

/batchbar-deploy bar/ 192.168.1.35 mysecretpass

可惜的是结果是unsuccsessful,应用程序的名称是不正确的连接codeD一次。第一次失败后,我读过的文档多一点,并试图用这种方式:http://developer.blackberry.com/android/documentation/creating_a_custom_manifest_file_2016828_11.htm...

当我解压栏中的文件,打开 MANIFEST.MS - 我发现这行:

When I unzipped bar file and opened MANIFEST.MS - I've found this line:

Application-Name: –ì–µ—Ä–æ–∏

根据文档解决方案应该是相当strainforward:
1.重命名 MANIFEST.MS <你APK名称>即.mf
2.更新不正确的属性,在我的情况我已经改变从线以上应用程序名称:Герои
3.将编辑在同一文件夹清单文件作为<您的apk名称> .apk文件并重新运行 apk2bar 工具, ** - M ** 参数,例如:

According to documentation solution should be quite strainforward:1. Rename MANIFEST.MS to <you apk name>.mf2. Update incorrect properties, in my case I've changed line from above to "Application-Name: Герои"3. Put edited manifest file in the same folder as <your apk name>.apk and rerun apk2bar tool with **-m** parameter, e.g.:

./apk2bar apk/ -d bbplaybookdebugtoken.bar -t bar/ -a "zasadnyy" -m -cg

重新打包,部署,运行和.....又一次的失败。应用程序名称是-i-μ-A-AE-Π。

Repackage, deploy, run and ..... and again FAIL. Application name was "–ì–µ—Ä–æ–∏".

第二次失败后,我决定把肮脏的黑客,我已经编辑 MANIFEST.MF 直接以新的包装条文件(解压缩 - >编辑清单 - >拉链 - >改变文件扩展名.bar的)。结果
部署的.bar文件更新到剧本和.... YEAH ,我们已经得到了cyrilic应用程序名称!

After second fail, I decided to make dirty hack, I've edited MANIFEST.MF directly in repackaged bar file (Unzip -> edit manifest -> zip -> change file extension to .bar).
Deploy updated .bar file to playbook and .... YEAH, we've got cyrilic app name!

结论与FIX:


  • 看起来像在1.5版本中,如果apk2bar工具清单编码配置错误(在版本1.3,它的工作只是OK)

  • 在奥得河为 FIX 的问题:解压缩签名栏文件 - >编辑清单 - >拉链 - >更改文件扩展名回到.bar的

  • Looks like in 1.5 release if apk2bar tool manifest encoding is misconfigured (in ver. 1.3 it worked just ok)
  • In oder to FIX issue: Unzip unsigned bar file -> edit manifest -> zip -> change file extension back to .bar

这篇关于移植Android应用到黑莓手机中西里尔应用程序的名称不正确连接codeD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 14:58
查看更多