
android
iteye_18405
这个作者很懒,什么都没留下…
展开
-
editText 不可编辑的操作
转帖自:http://tech.techweb.com.cn/viewthread.php?tid=508605android2.2中EditText不可编辑的问题 本来这个也不算个大问题,但我开发中确实遇到了,特开此贴,希望能帮到一些android新手。 可能有人会说,设置EditText不可编辑那还不简单,直接设置 Xml代码 [url=][/url] ...原创 2011-08-24 17:12:34 · 290 阅读 · 0 评论 -
增加滚动布局
文章转自:http://www.devdiv.com/thread-50143-1-1.html原创 2011-08-25 08:29:34 · 86 阅读 · 0 评论 -
android判断GPS是否开启
判断手机GPS是否开启下边这小段代码是用来判断手机的GPS服务是否为开启状态.如果是就提示用户GPS已经打开.如果现在GPS 处于关闭状态,那么给用户一个提示, 然后打开GPS设置界面,让用户更改GPS为启动状态.JAVA代码:private void openGPSSettings(){LocationManager alm =(LocationManag...原创 2011-09-05 08:22:47 · 573 阅读 · 0 评论 -
代码中打开关闭gps(没有测试成功)
查看了Settings源代码,发现其开启关闭GPS的代码如下: /** * Gets the state of GPS location. * * @param context * @return true if enabled. */ private static boolean getGpsState(...原创 2011-09-05 20:17:32 · 152 阅读 · 0 评论 -
代码中打开关闭gps(测试成功)
LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);if (!locationManager .isProviderEnabled(android.location.LocationManager.GPS_PROVIDER)) {...原创 2011-09-08 10:11:26 · 508 阅读 · 0 评论