- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 字体高亮显示
String display=b[0]+""+"n"+""+b[1]; TextView tv=new TextView(this); tv.setText(Html.fromHtml(display));
2012-03-29 10:41:37 657
原创 android popuwindow
onCreate: setContentView(R.layout.main); ImageView myiv=(ImageView)findViewById(R.id.myiv); ImageView iv=new ImageView(this); iv.setBackgroundResource(R.drawable.popup_u
2012-02-08 14:48:05 7656
原创 android 语音识别
onCreate: try{ Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);//通过Intent传递语音识别的模式,开启语音 intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODE
2012-02-08 13:44:23 798 1
转载 android 通讯录跳转
case 0: //新建联系人 Intent intent = new Intent(Insert.ACTION, Contacts.CONTENT_URI); intent.putExtra(Insert.PHONE, key_textedit.getText());
2012-02-06 15:05:55 853
原创 android 判断有没有和服务器连接上
HttpURLConnection urlConn=null; try { urlConn = (HttpURLConnection)new URL("fssdf").openConnection();} catch (MalformedURLException e) {// TODO Auto-generated catch blocke.pr
2012-02-04 15:07:14 1087
转载 webview将网页显示在屏幕区域内
WebView wv=new WebView(this); WebSettings settings = wv.getSettings(); settings.setUseWideViewPort(true); settings.setLoadWithOverviewMode(true); wv.loadUrl("http
2012-02-04 14:28:27 812
转载 android webView的使用方法
如何创建WebView: 1、添加权限:AndroidManifest.xml中必须使用许可"android.permission.INTERNET",否则会出Web page not available错误。 2、在要Activity中生成一个WebView组件:WebView webView = new WebView(this); 3、设置WebView基本信
2012-02-04 14:10:19 923
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人