随笔分类 -  Android

Android WebView loadData读取两次才能显示的问题
摘要:webview.loadDataWithBaseURL(null,result,"text/html", "utf-8", null); 使用loadDataWithBaseURL替代loadData 参考网址:http://stackoverflow.com/questions/17501860/ 阅读全文

posted @ 2016-01-27 22:23 圣光 阅读(513) 评论(0) 推荐(0)

android下修改hosts文件不起作用(无效)的解决办法
摘要:转自:https://plus.google.com/105237252862440264277/posts/CF9F42e4axj首先请确认你修改的是文件是 /system/etc/hosts ,如果不是,那你即使改了也无效。其次,如果你是在windows下修改hosts文件,那就必须注意换行符的问题,以及hosts文件格式的问题:android下的hosts文件必须像以下这样写:IP 域名注意:在IP和域名之间保留一个空格 每行只能有一个域名,不能一个IP后面跟多个域名。android上的换行符(也就是回车)是LF,也就是\n,而windows上的换行符是CR LF,也就是\r\n所以在w 阅读全文

posted @ 2013-05-31 04:39 圣光 阅读(1233) 评论(0) 推荐(0)

Example for dummy surface view
摘要://Here is the example for dummy surface view.public void takePictureNoPreview(Context context) { // open back facing camera by default Camera myCamera=Camera.open(); if(myCamera!=null) { try { //set camera parameters if you want to //... // here, the ... 阅读全文

posted @ 2012-09-07 07:58 圣光 阅读(562) 评论(0) 推荐(0)

Eclipse 自动提示代码功能消失的解决方法【转】
摘要:如果你在Eclipse中,输入“.”后没有代码提示出现,请看下面的解决步骤。1.window->Preferences->Java->Editor->Content Assist->Advanced上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把Other Java Proposals选项打上勾:(如下图)2.window->Preferences->Java->Editor->content assist把E 阅读全文

posted @ 2012-09-06 03:49 圣光 阅读(375) 评论(0) 推荐(0)

导航