找回密码
 立即注册

QQ登录

只需一步,快速开始

王岳天

高级会员

5

主题

10

帖子

1795

积分

高级会员

积分
1795

活字格认证微信认证勋章元老葡萄

王岳天
高级会员   /  发表于:2015-3-2 11:35  /   查看:5085  /  回复:4
文档真是太简单了

4 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2015-3-2 14:32:00
沙发
回复 1楼王岳天的帖子

安装包中有随机安装例子,其中有 Support.java 文件中有 license 使用方法代码:

  1. public class Support {
  2.    public static boolean isKernelExpired() {
  3.       return RasterSupport.getKernelExpired();
  4.    }

  5.    public static void setLicense(Context context) {
  6.       // add your license file to the raw folder
  7.       int licenseFileId = 0;//R.raw.YourLicense;
  8.       String developerKey = "";
  9.       try {
  10.          InputStream stream = context.getResources().openRawResource(licenseFileId);
  11.          RasterSupport.setLicense(stream, developerKey);
  12.          Log.w("RasterSupport", RasterSupport.getKernelType().toString());
  13.       } catch(Exception ex) {
  14.          Log.w("RasterSupport", ex.getMessage());
  15.       } finally {
  16.          if(RasterSupport.getKernelType() != RasterKernelType.RELEASE && !isKernelExpired())
  17.             RasterSupport.initialize(context);
  18.       }
  19.    }
  20. }

复制代码

路径:
leadtools18_android\Examples\Android\Leadtools.Demos\src\leadtools\demos
回复 使用道具 举报
王岳天
高级会员   /  发表于:2015-3-2 15:15:00
板凳
难得没有像样的中文文档
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-3-2 15:50:00
地板
回复 3楼王岳天的帖子

您好,

由于葡萄城作为 leadtools 国内总代时间较短,目前还没有汉化相应的文档。

不过,为了方便国内用户使用,我们已经有了汉化的计划。
同时,为了方便您的使用,我们会专门针对您的需求出一篇文章来介绍license使用方法。会在下周发布。
届时会及时通知您。

谢谢
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-3-17 10:45:00
5#
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部