androidjavaclass.androidjavaclass 构造安卓java类

2014-12-30 13:54| 发布者: 杨炎| 查看: 2213| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: androidjavaclass.androidjavaclass 构造安卓java类static functionandroidjavaclass(classname: string) : androidjavaclassparameters参数classnamespecifies the java class name (e.g. "java.lang.string" or "j ...

androidjavaclass.androidjavaclass 构造安卓java类

static functionandroidjavaclass(classname: string) : androidjavaclass

parameters参数

classname

specifies the java class name (e.g. "java.lang.string" or "java/lang/string")

description描述

construct an androidjavaclass from the class name

基于类名classname,构造一个androidjavaclass。

this essentially means locate the class type and allocate a java.lang.class object of that particular type.

这实际上意味着查找类的类型,并分配一个特定类型的java.lang.class对象

// try to collect som java garbage..

//尝试搜集som的java垃圾

function start() {

var jc = new androidjavaclass("java.lang.system");

jc.callstatic("gc");

}

// retrieve the manufacturer of the product/hardware.

//检索该产品/硬件的制造商

function start() {

var jc = new androidjavaclass("android.os.build");

var manufacturer = jc.get.("manufacturer");

}

相关阅读

文章点评
相关文章