How can I get location without internet in android, using only GPS
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want to get location using GPS only. I don't want to use internet and GPRS in this application. My code is below; tell me where I'm wrong in this. code: package com . getlocation ; import android . app . Activity ; import android . content . Context ; import android . location . Criteria ; import android . location . Location ; import android . location . LocationListener ; import android . location . LocationManager ; import android . os . Bundle ; import android . util . Log ; import android . widget . Toast ; public class