随笔分类 -  Android

摘要:之前在尝试Google Map,但是它的API v2不是很顺利所以还是来做百度地图了,算是简单练习下,这里我们实现的主要功能:定位。首先下载v1.3.5的lib包并引用:点击下载然后去申请百度地图Android SDK的KEY建立MainActivity:MainActivity.java import com.baidu.mapapi.*;import android.app.AlertDialog;import android.content.Context;import android.content.DialogInterface;import android.content.Inte 阅读全文
posted @ 2013-03-10 00:44 Duelsol 阅读(844) 评论(0) 推荐(0)
摘要:String st = editText.getText().toString().trim(); Uri uri = null; try { uri = Uri.parse("http://www.baidu.com/s?&ie=utf-8&oe=UTF-8&wd=" + URLEncoder.encode(st, "UTF-8")); } catch (UnsupportedEncodingException e1) { e1.printStackTrace(); } final Intent intent = new Int 阅读全文
posted @ 2013-03-08 21:36 Duelsol 阅读(651) 评论(0) 推荐(0)