
android
文章平均质量分 51
曹玉杰77
这个作者很懒,什么都没留下…
展开
-
通过一个activity打开多个fragment,每个fragment包含一个List
本人新手,第一次写博客,学习androids原创 2014-09-17 14:34:00 · 1444 阅读 · 0 评论 -
百度地图V3.1删除折线
LatLng p1 = new LatLng(39.97923, 116.357428);LatLng p2 = new LatLng(39.94923, 116.397428);LatLng p3 = new LatLng(39.97923, 116.437428);List points = new ArrayList();points.add(p1);points.add原创 2014-09-29 10:57:00 · 4146 阅读 · 0 评论 -
Android HttpGet,HttpPost,HttpPut设置超时
HttpPost和HttpPut:private Runnable runnable = new Runnable() { @Override public void run() { String url = BaseServicesInfo.SERVER_BASE_PATH + fileName; H转载 2014-10-24 11:24:30 · 901 阅读 · 0 评论 -
获取activity的几种写法
getApplicationContext() 返回应用的上下文,生命周期是整个应用,应用摧毁它才c原创 2014-10-11 16:26:44 · 649 阅读 · 0 评论 -
android listView更新数据
更新listView需要调用SimpleAdapter.notifyDataSetChanged原创 2014-10-13 14:06:37 · 549 阅读 · 0 评论 -
利用回调接口实现activity之前传数据
例如第一个activity向第二个activity传送数据原创 2014-10-15 17:29:56 · 733 阅读 · 0 评论 -
导致notifyDataSetChanged()不起作用的问题
planeAdapter = new SimpleAdapter(this, listPlane,R.layout.list_item, new String[] { "ItemImg", "ItemId" },new int[] { R.id.img, R.id.text });原创 2014-10-20 16:52:30 · 572 阅读 · 0 评论 -
android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compilin
今天一直报这个错,究其原因就是sqlite操作数据库是一条条执行的,不能并发执行,然后我发现我写完beginTransaction忘了写endTransaction。加上endTransactioN就可以进行数据库的其他操作。原创 2015-01-12 17:21:59 · 926 阅读 · 0 评论