随笔分类 -  Android

摘要:最近想做一个程序,需要用到获取手机的地理位置,网上一搜一摞一摞的,但基本方法还是一样的。于是,找了一个比较工整的,看了下程序的逻辑,便直接用了。但是发现location每次都获取为null, 最后改完之后代码如下:1.AndroidManifest.xml 文件中加入以下许可:1 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>2 <uses-permission android:name="androi 阅读全文
posted @ 2012-10-16 09:18 lihui_yy 阅读(12298) 评论(2) 推荐(0) 编辑
摘要:xml文件内容如下:<EditText android:id="@+id/displayText" android:layout_width="fill_parent" android:layout_height="match_parent" android:singleLine="false" android:scrollbars="vertical" android:editable="false" android:textSize="12px" 阅读全文
posted @ 2012-09-19 15:21 lihui_yy 阅读(9548) 评论(0) 推荐(0) 编辑