文章分类 -  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 阅读全文
posted @ 2012-06-28 10:11 雪中飞雁 阅读(378) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2012-03-22 19:01 雪中飞雁 阅读(334) 评论(0) 推荐(0)