上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 随着乔布斯的回归,iPad2的发布,看来移动端的开发话题越来越火热了。在此列出一些能够在iOS的最大竞争者——安卓(Android)系统的检测方法。 JavaScript判断方法 搜索user agent字符串中的Android单词是最省事儿的方法:1.if(navigator.userAgent.match(/Android/i)) { 2.// Do something! 3.// Redirect to Android-site? 4. window.location ='http://android.davidwalsh.name'; 5. } PHP判断方法 同样,我 阅读全文
posted @ 2013-01-12 00:30 ggzjj 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Android操作系统 Android是一个基于Linux、使用java作为程序接口的操作系统。他提供了一些工具,比如编译器、调试器、还有他自己的仿真器(DVM — Dalvik Virtual Machine)。Android是由google领导的Open Handset Alliance开发的。 Android使用的虚拟机比较特别。Dalvik使用了一些特别的方法。你在Android上不能运行普通的Java程序。Android提供了一个dx的工具,可以把普通的Java类文件转换为dex(Dalvik Executable)文件。Android程序最后通过aapt(Android As... 阅读全文
posted @ 2013-01-11 23:40 ggzjj 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 一、完成该功能要具备以下知识点得到位图Bitmap的方式我总结了四种方式,不管哪种方式得到的图片相关的位图,都可以用ImageView对象的setImageBitmap(Bitmap bitmap)函数,把与位图相关的图片设置在ImageView中显示出来(1)从sdcard中图片路径去取,本例就是采取这种方式 ,如下面的代码,filename代表图片的路径Bitmap bm = BitmapFactory.decodeFile(fileName);(2)从项目的/res/drawable中去取Bitmap bm = ((BitmapDrawable)getResources().getDra 阅读全文
posted @ 2013-01-11 16:40 ggzjj 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个BroadcastReceiver[java] view plaincopyprint?publicclassBootReceiverextendsBroadcastReceiver{publicvoidonReceive(Contextctx,Intentintent){Log.d("BootReceiver","systembootcompleted");//startactivity Stringaction="android.intent.action.MAIN";Stringcategory="andr 阅读全文
posted @ 2013-01-11 16:34 ggzjj 阅读(186) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页