02 2012 档案
摘要:java 导入项目时 Override 报错的解决方案
阅读全文
摘要:Intent在Android应用开发中,占有很大的分量,总结一些重用的Intent使用,仅供参考。1,调用web浏览器UrimyBlogUri=Uri.parse("http://kuikui.iteye.com");returnIt=newIntent(Intent.ACTION_VIEW,myBlogUri);2,调用地图UrimapUri=Uri.parse("geo:38.899533,-77.036476");returnIt=newIntent(Intent.ACTION_VIEW,mapUri);3,调拨打电话界面UritelUri=Uri
阅读全文
摘要:Android广播机制方式一:静态注册第一步:MyBroadcastReceiverextendsBroadcastReceiver重写其中的onReceive(Contextct,Intentintent)方法,在里面完成你想要的工作。第二步:在AndroidManifest.xml注册声明:<receiverandroid:name=".RingerModeChangedReceiver"><intent-filter><actionandroid:name="android.media.RINGER_MODE_CHANGED&q
阅读全文
摘要:服务的生命周期参考自CSDN博客:http://blog.csdn.net/wtao158/archive/2010/01/08/5149721.aspx有了 Service 类我们如何启动他呢,有两种方法: • Context.startService() • Context.bindService() 1. 在同一个应用任何地方调用 startService() 方法就能启动 Service 了,然后系统会回调 Service 类的 onCreate() 以及 onStart() 方法。这样启动的 Service 会一直运行在后台,直到 Context.stopService() 或者..
阅读全文
摘要:android InputType 属性含义
阅读全文

浙公网安备 33010602011771号