`
jiangyang5157
  • 浏览: 3869 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

Check Module Number

 
阅读更多
private boolean checkModuleNumber(Activity activity,
   String[] moduleNumbers) {
  boolean ret = false;

  int length = moduleNumbers.length;

  for (int i = 0; i < length; i++) {
   try {
    final String model = Build.MODEL;
    if (model.trim().substring(0, moduleNumbers[i].length())
      .equalsIgnoreCase(moduleNumbers[i])) {
     ret = true;
     break;
    } else {
     ret = false;
    }
   } catch (Exception e) {
    ret = false;
   }
  }

  return ret;
 }

 

0
0
分享到:
评论

相关推荐

    Nero.v11.2.00900.Crack.Tool.Kit.Incl.AdvrCntr.Module.v11.0.1.23-Kindly

    In this case, at your own risk, replace dll again, apply fix.reg and re-enter required activation number. Nero serial numbers don`t get checked via internet, blocking program functions. Therefore ...

    ABAP Programming Standards ABAP Programming Standards

    INTERNAL TABLES: NUMBER OF ENTRIES 21 INTERNAL TABLES: EXPLICIT WORK AREAS 21 INTERNAL TABLES: SORTING 23 INTERNAL TABLES: DELETING RECORDS 23 LOGIC: NESTED IFS 23 LOGIC: CASE VS. IF 23 LOGIC: MOVE-...

    php.ini-development

    SAPI module specific location. ; 2. The PHPRC environment variable. (As of PHP 5.2.0) ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) ; 4. Current working directory (except CLI...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX Add pen width zero check in TPenProp.GetPaintData method. - FIX Add moving block for first and last connector's segments also for non-orthogonal connectors. - FIX Class TPenProp rewrote ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    Previous revisions did not range-check the palette index number, and hard crashes could be produced if out-of-range values were supplied to this routine. Previous release 1.33b Release date: ...

    android lint performance probe帮助.zip

    how much time is spent upfront analyzing a Kotlin module before Lint detectors can start. To include your own custom Lint checks in the output of the tool, you can add to the list of regular ...

    微软内部资料-SQL性能优化5

    Keeping your clustered key value small increases the number of index rows that can be placed on an index page and decreases the number of levels that must be traversed. This minimizes I/O. As we’ll ...

    EurekaLog_7.5.0.0_Enterprise

    2)....Fixed: Range check error in processes information for x64 machines (affects startup of any EurekaLog-enabled module) 3)....Fixed: Auto-detect personality by project extension if --el_mode switch...

    Turbo C 2.00[DISK]

    Please remember to include your serial number or we will be unable to process your letter. 4. If you have an urgent problem that cannot wait and you have sent in the license agreement from the ...

    vmtools-linux.iso

    Please enter a number between 1 and 13: [2] 3 X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: Linux 2.6.9-34.EL i...

    drupal 6.12

    * your site runs a number of web server front-ends behind a load balancer or reverse proxy (modify the file system path on each server to point to a shared file repository). To modify the file ...

    开发PHP扩展详细教程

    \"0.1\", /* Replace with version number for your extension */ #endif STANDARD_MODULE_PROPERTIES }; #ifdef COMPILE_DL_ICBC ZEND_GET_MODULE(icbc) #endif PHP_MINIT_FUNCTION(icbc) { return ...

    ABAP面试大全

    9.1.1 CHECK、EXIT、RETURN命令的区别? 23 9.1.2初始化内表有几种方式? 23 9.1.3 一个程序如何调用另外一个程序 24 9.1.4 在一个程序中如何调用其他事物代码 24 9.1.5在进行画面跳转时,CALL SCREEN与LEAVE TO ...

    VB编程资源大全(英文源码 其它)

    This is used to make 3D text.&lt;END&gt;&lt;br&gt;27 , basMath.zip This module contains functions for various math equations. &lt;END&gt;&lt;br&gt;28 , calc.zip This is a basic calculator written in Visual Basic.&lt;END&gt;...

    建伍378G写频软件

    Signalling Tone number or enter the desired Signalling Tone number with the keyboard, then press [Enter]. (See the Service Manual for details) Wide/Narrow Help (M,K,C TYPE) First tune all items in ...

    Turbo C++ 3.0[DISK]

    Check with your local software dealer or users' group. 3. Borland's TECHFAX service. Call (800) 822-4269 for a FAX catalog of entries. 4. If you have an urgent problem that cannot wait and you ...

    Turbo C++ 3.00[DISK]

    Check with your local software dealer or users' group. 3. Borland's TECHFAX service. Call (800) 822-4269 for a FAX catalog of entries. 4. If you have an urgent problem that cannot wait and you ...

    微软内部资料-SQL性能优化2

    Paging is represented by a number of counters including page faults/sec, page input/sec and page output/sec. Page faults/sec include soft and hard page faults where as the page input/output counters ...

    ZendFramework中文文档

    1. Introduction to Zend Framework 1.1. 概述 1.2. 安装 2. Zend_Acl 2.1. 简介 2.1.1. 关于资源(Resource) 2.1.2. 关于角色(Role) 2.1.3. 创建访问控制列表(ACL) ...2.1.5. 定义访问控制 ...

    Turbo C 2.01[DISK]

    Please remember to include your serial number or we will be unable to process your letter. 4. If you have an urgent problem that cannot wait and you have sent in the license agreement from the ...

Global site tag (gtag.js) - Google Analytics