摘要: 文档及官方参考实例代码Camerafile:///E:/baiduyunpan/android_doc_v1.0/android_doc/guide/topics/media/camera.html#considerations调用真机中的摄像机或照相机:1、在清单文件中增加权限:2、使用实例:public class MainActivity extends Activity { @Overri... 阅读全文
posted @ 2015-01-19 00:14 就不呵呵呵 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 如果bootloader.img是不好使的,手机就废了erase 将bootloader檫除,自毁命令fastboot命令只能在bootloader模式下使用:flash主要是刷机erase是檫除 vivoS7t测试:system是只读的emmc@android /system ext4 ro,noatime,user_xattr,commit=1,barrier=1,data=ordere... 阅读全文
posted @ 2015-01-18 13:59 就不呵呵呵 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 概述:A Fragment represents a behavior or a portion of user interface in anActivity. You can combine multiple fragments in a single activity to build amulti-pane UI and reuse a fragment in multiple activ... 阅读全文
posted @ 2015-01-17 00:04 就不呵呵呵 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 在ContextWrapper类中有一个方法registerReceiver(BroadcastReceiverreceiver,IntentFilterfilter)该方法可以实现动态注册广播接受者receiver = new ScreemRecevicer(); IntentFilter filter = new IntentFilter(); filter.addAction("a... 阅读全文
posted @ 2015-01-12 16:10 就不呵呵呵 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 开启服务有两种方式: 如果不会可以看老师的百度音乐盒的案例1、start方式: start方式的生命周期: *服务只会被开启一次,直到用户手动停止 服务才会被销毁 *开启需要调用startService 会执行onCreate(),onStartCommand() *注:当再次点击startService时只会执行onStartCommand... 阅读全文
posted @ 2015-01-12 14:50 就不呵呵呵 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 采用匿名内部类的方式:// 1 找到拨打电话号码按钮 Button btn_call = (Button) findViewById(R.id.btn_call); // 2 给按钮设置点击事件 因为这个参数 是以借口 所有我搞以实现类// btn_call.setOnClickListener(new MyButtonListener()); // 3 按钮的第二种... 阅读全文
posted @ 2015-01-12 11:42 就不呵呵呵 阅读(358) 评论(0) 推荐(0) 编辑
摘要: /** * 发送一条无序广播 * @param v */ public void click(View v){ Intent intent = new Intent(); //如何定义这个action intent.setAction("com.itheima"); //找到 //加点数据 intent.putExtra("name", "每天晚上7点 新闻联... 阅读全文
posted @ 2015-01-11 00:04 就不呵呵呵 阅读(152) 评论(0) 推荐(0) 编辑
摘要: doGet请求方式: String path = "http://192.168.22.73:8080/web/LoginServlet?username="+URLEncoder.encode(name, "utf-8")+"&password="+URLEncoder.encode(pwd, "utf-8")+""; URL url = new URL(path); ... 阅读全文
posted @ 2015-01-09 00:21 就不呵呵呵 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 来自为知笔记(Wiz) 阅读全文
posted @ 2015-01-07 23:00 就不呵呵呵 阅读(128) 评论(0) 推荐(0) 编辑
摘要: url代码:过程:1、创建url对象 2、打开一个url连接 3、设置get请求 4、设置连接超时时间 5、服务器返回码 6、取服务器返回的数据,以流的形式把数据返回 7、需要把inputStream 转换成string 这个操作是一个非常常用的操作 我把它抽成一个... 阅读全文
posted @ 2015-01-06 21:29 就不呵呵呵 阅读(128) 评论(0) 推荐(0) 编辑