文章分类 - Android
摘要:1.首先获得基站信息public static SCell getSCellInfo(Context context) throws Exception{...}2.通过基站信息获得经纬度public static SItude getItude(SCell cell) throws Exception{...}3.通过经纬度信息来获得具体的地理位置信息public static String getLocation(SItude itude) throws Exception{...}ps:其中SCell类封装基站信息的数据,SItude类封装经纬度的数据完整代码如下:GpsUtil.jav
阅读全文
摘要:package com.alin.test;import android.app.Activity;import android.app.PendingIntent;import android.app.PendingIntent.CanceledException;import android.content.Intent;import android.net.Uri;import android.os.Bundle;import android.provider.Settings;import android.util.Log;import android.view.View;import
阅读全文

浙公网安备 33010602011771号