-
//#if polish.Vendor == BlackBerry
-
//#= import net.rim.device.api.system.GPRSInfo;
-
//#endif
-
-
-
/**
-
* get the cell id in the phone
-
*
-
* @return
-
*/
-
public static String getCellId(){
-
String out = "";
-
try{
-
-
out = System.getProperty("Cell-ID");
-
if(out== null || out.equals("null") || out.equals(""))
-
out = System.getProperty("CellID");
-
if(out== null ||out.equals("null")|| out.equals(""))
-
System.getProperty("phone.cid");
-
//#if polish.Vendor == Nokia
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.nokia.mid.cellid");
-
//#elif polish.Vendor == Sony-Ericsson
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.sonyericsson.net.cellid");
-
//#elif polish.Vendor == Motorola
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("phone.cid");//System.getProperty("CellID");
-
//#elif polish.Vendor == Samsung
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.samsung.cellid");
-
//#elif polish.Vendor == Siemens
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.siemens.cellid");
-
//#elif polish.Vendor == BlackBerry
-
if(out== null ||out.equals("null")|| out.equals(""))
-
//#= out = GPRSInfo.getCellInfo().getCellId();
-
//#else
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("cid");
-
//#endif
-
-
}catch(Exception e){
-
return out==null?"":out;
-
}
-
-
return out==null?"":out;
-
}
-
-
/**
-
* get the lac sring from phone
-
*/
-
public static String getLAC(){
-
String out = "";
-
try{
-
-
out = System.getProperty("phone.lac");
-
-
//#if polish.Vendor == Nokia
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.nokia.mid.lac");
-
//#elif polish.Vendor == Sony-Ericsson
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.sonyericsson.net.lac");
-
//#elif polish.Vendor == Motorola
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("LocAreaCode");
-
//#elif polish.Vendor == Samsung
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.samsung.cellid");
-
//#elif polish.Vendor == Siemens
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.siemens.cellid");
-
//#elif polish.Vendor == BlackBerry
-
if(out== null ||out.equals("null")|| out.equals(""))
-
//#= out = GPRSInfo.getCellInfo().getLAC();
-
//#else
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("cid");
-
//#endif
-
-
}catch(Exception e){
-
return out==null?"":out;
-
}
-
-
return out==null?"":out;
-
}
-
-
/**
-
* Example IMSI (O2 UK): 234103530089555
-
String mcc = imsi.substring(0,3); // 234 (UK)
-
String mnc = imsi.substring(3,5); // 10 (O2)
-
* @return
-
*/
-
public static String getIMSI(){
-
String out = "";
-
try{
-
-
out = System.getProperty("IMSI");
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("phone.imsi") ;
-
//#if polish.Vendor == Nokia
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.nokia.mid.mobinfo.IMSI");
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.nokia.mid.imsi");
-
//#elif polish.Vendor == Sony-Ericsson
-
/* if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.sonyericsson.imsi");*/
-
//#elif polish.Vendor == Motorola
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("IMSI");
-
//#elif polish.Vendor == Samsung
-
/* if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.samsung.imei");*/
-
//#elif polish.Vendor == Siemens
-
/* if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.siemens.imei");*/
-
//#elif polish.Vendor == BlackBerry
-
if(out== null ||out.equals("null")|| out.equals(""))
-
//#= out = GPRSInfo.getCellInfo().getBSIC();
-
//#else
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("imsi");
-
//#endif
-
-
}catch(Exception e){
-
return out==null?"":out;
-
}
-
-
return out==null?"":out;
-
}
-
-
/**
-
*
-
* For moto, Example IMSI (O2 UK): 234103530089555
-
String mcc = imsi.substring(0,3); // 234 (UK)
-
* @return
-
*/
-
public static String getMCC(){
-
String out = "";
-
try{
-
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("phone.mcc") ;
-
//#if polish.Vendor == Nokia
-
if(out== null ||out.equals("null")|| out.equals(""))
-
//out = System.getProperty("com.nokia.mid.mobinfo.IMSI");
-
//#elif polish.Vendor == Sony-Ericsson
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.sonyericsson.net.mcc");
-
//#elif polish.Vendor == Motorola
-
if(out== null ||out.equals("null")|| out.equals("")){
-
out = getIMSI().equals("")?"": getIMSI().substring(0,3);
-
}
-
//#elif polish.Vendor == Samsung
-
/* if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.samsung.imei");*/
-
//#elif polish.Vendor == Siemens
-
/* if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.siemens.imei");*/
-
//#elif polish.Vendor == BlackBerry
-
if(out== null ||out.equals("null")|| out.equals(""))//getMNC()
-
//#= out = GPRSInfo.getCellInfo().getMCC();
-
//#else
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("mcc");
-
//#endif
-
-
}catch(Exception e){
-
return out==null?"":out;
-
}
-
-
return out==null?"":out;
-
}
-
-
/**
-
*
-
* For moto, Example IMSI (O2 UK): 234103530089555
-
String mnc = imsi.substring(3,5); // 10 (O2)
-
* @return
-
*/
-
public static String getMNC(){
-
String out = "";
-
try{
-
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("phone.mnc") ;
-
//#if polish.Vendor == Nokia
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = getIMSI().equals("")?"": getIMSI().substring(3,5);
-
//#elif polish.Vendor == Sony-Ericsson
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.sonyericsson.net.mnc");
-
//#elif polish.Vendor == Motorola
-
if(out== null ||out.equals("null")|| out.equals("")){
-
out = getIMSI().equals("")?"": getIMSI().substring(3,5);
-
}
-
//#elif polish.Vendor == Samsung
-
/* if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.samsung.imei");*/
-
//#elif polish.Vendor == Siemens
-
/* if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.siemens.imei");*/
-
//#elif polish.Vendor == BlackBerry
-
if(out== null ||out.equals("null")|| out.equals(""))//getMNC()
-
//#= out = GPRSInfo.getCellInfo().getMNC();
-
//#else
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("mnc");
-
//#endif
-
-
}catch(Exception e){
-
return out==null?"":out;
-
}
-
-
return out==null?"":out;
-
}
-
-
/**
-
* not used now
-
* get the IMEI (International Mobile Equipment Identity (IMEI)) in the phone
-
*
-
* @return
-
*/
-
public static String getIMEI(){
-
String out = "";
-
try{
-
-
out = System.getProperty("com.imei");
-
//#if polish.Vendor == Nokia
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("phone.imei");
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.nokia.IMEI");
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.nokia.mid.imei");
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.nokia.mid.imei");
-
//#elif polish.Vendor == Sony-Ericsson
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.sonyericsson.imei");
-
//#elif polish.Vendor == Motorola
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("IMEI");
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.motorola.IMEI");
-
//#elif polish.Vendor == Samsung
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.samsung.imei");
-
//#elif polish.Vendor == Siemens
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("com.siemens.imei");
-
//#else
-
if(out== null ||out.equals("null")|| out.equals(""))
-
out = System.getProperty("imei");
-
//#endif
-
-
}catch(Exception e){
-
return out==null?"":out;
-
}
-
-
return out==null?"":out;
-
}
相关推荐
Java ME(J2ME)是Java技术在移动设备和嵌入式设备上的应用平台,它为开发小型设备上的应用程序提供了标准化的环境。本压缩包"j2me-gps.rar"聚焦于在J2ME平台上实现GPS(全球定位系统)功能。下面我们将详细探讨J2ME...
Java ME,全称为Java Micro Edition,是Java平台的一个版本,主要应用于移动设备、嵌入式系统等资源有限的环境。这个压缩包中的内容是关于如何在Java ME平台上获取设备的IMEI(国际移动设备识别码)和Cell ID(基站...
《基于CELLID设备管理测试规范》是中国移动通信企业标准的一部分,旨在规范基于CELLID位置业务(LBS,Location-Based Services)的LSP(Location Service Platform)设备的测试流程。这份文档详细阐述了测试的各项...
在移动通信领域,CELLID(Cell Identifier)是用于标识手机基站的一个重要参数,它与位置区(Location Area)和小区(Cell Site)的概念密切相关。在Android操作系统中,开发者可以通过特定的技术手段来抓取和分析...
### j2me获取基站信息 在移动通信领域中,基站信息是进行位置服务的重要依据之一。J2ME(Java 2 Micro Edition)作为一款适用于移动设备的开发平台,在早期的移动应用开发中占据了一席之地。本文将详细介绍如何在...
在移动通信领域,获取Cell ID是一项重要的技术,它与网络定位息息相关。Cell ID,全称为Cell Identity,是基站(Base Station)或者小区(Cell)的一个唯一标识,用于区分不同的无线覆盖区域。在AGPS(Assisted ...
./getlocal.sh --mcc={MCC} --mnc={MNC} --lac={LAC} --cid={CELLID} --radio=|wcdma> --flac={FROM} --tlac={TO} --fcid={FROM} --tcid={TO} Options: --flac: scan the LAC and start from the specified ...
在移动通信领域,基站(Base Station,简称BS)是无线通信网络的重要组成部分,负责与移动设备进行无线连接。为了实现精确的位置服务,如GPS定位、紧急呼叫定位等,我们需要获取基站的相关信息,其中包括逻辑接入...
移动设备上的GPS基站定位是利用手机接收多个移动通信基站发出的信号来确定设备位置的一种技术。这种方法结合了全球定位系统(GPS)与蜂窝网络的数据,特别是在GPS信号弱或者不可用的情况下,如室内环境,基站定位能...
CelliD v0.99 R包,用于从单细胞RNA-seq的单个细胞水平提取基因签名和细胞身份。 欢迎来到在BioRxiv预印本展示的CelliD软件的官方Github存储库 概述 CelliD是一种强大的统计方法,可对单细胞RNA-seq数据集中的每...
【基于CELLID位置业务(LBS)的LSP设备测试规范】 本文档详细阐述了基于CELLID位置业务(Location-Based Service, LBS)的Logical Service Provider (LSP)设备的测试规范,旨在确保这些设备在提供基于网络CELL-ID...
【标题】"NiceTrack_source_1_6.zip" 是一个包含C#源代码的压缩包,主要用于实现获取手机在移动网络中的位置信息,具体来说是CellID(小区ID)和LAC(位置区码)。这类功能常用于定位服务,通过手机连接到的基站信息...
- SQL语句示例:`SELECT Cell.CellID, Cell.BtsName FROM Cell, Antenna WHERE Cell.CellID = Antenna.CellID AND Pt > 4;` - 解析:通过连接Cell表和Antenna表,查找天线发射功率大于4dbm的小区ID及其所属基站...
【CellID EVC源码】是一款专用于获取基站信息的软件源码,它基于EVC(Embedded Visual C++)开发,允许用户通过AT命令与移动设备进行通信,从而获取到手机当前连接的基站识别信息,如Cell ID和LAC(Location Area ...
* 可以用于区域内目标检索,根据cellid建立索引,查询区域内cellid in (list)的区域 S2计算点距离 计算地球上某个点是否在矩形区域内 计算点s2是否在圆中心为s1半径为capHeight的圆形区域内 判断点是否在任意形状内...
### 基于CELLID 的位置业务(LBS)技术要求 #### 一、概述 本文档详述了基于CELLID的位置业务(Location Based Service, LBS)的技术要求和技术规格,旨在为中国移动通信集团公司及其下属各省份公司的LBS业务提供...
"移动LTE网络TAI、ENODEBID、CELLID编号原则.pdf" 移动LTE网络中的跟踪区(TA)、ENODEBID、CELLID编号原则是LTE网络中的基本概念。这些概念都是LTE网络中用户位置管理和小区标识的基础。 首先,我们来了解跟踪区...
return $"{{\"cellId\": {cellId}, \"locationAreaCode\": {lac}}}"; } ``` 在上面的代码中,`GetLocationAsync`方法接收cell-id和LAC,构造请求内容,并使用HttpClient发送POST请求到Google Geolocation API。...
IMEI(International Mobile Equipment Identity,国际移动设备身份码)是全球唯一的移动设备识别码,用于标识每一部手机。它由15位数字组成,通常在手机的包装盒、电池下面或者通过拨号*#06#可以查看到。IMEI码的...
- **SQL语句**:`INSERT INTO REPORTTOTAL (REPID, REPNAME, REPDATE, ORGID, CELLID, TOTAL_VALUE) SELECT REPID, REPNAME, REPDATE, (SELECT ORGID FROM ORG WHERE ORGNAME = '国有商业银行'), '1A', SUM(VALUE) ...