![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
after_leaving
这个作者很懒,什么都没留下…
展开
-
启动系统照相机Camera的方法
1、直接调用系统的照相机功能 <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="StartCamera" android:onClick="startCamera"/>原创 2016-02-29 10:14:52 · 1150 阅读 · 0 评论 -
使用照相机拍照后读取当前拍到的图片方法
文件布局代码如下:<Button android:layout_width="match_parent" android:layout_height="wrap_content" android:text="startCamera1" android:onClick="StartCamera1"/><Button android:layo原创 2016-02-29 13:41:03 · 814 阅读 · 0 评论 -
在Fragment中获取AndroidManifest.xml根元素(<manifest>)下的版本信息
String appVersionName=null;try{PackageManage manage=this.getActivity().getPackageManage(); PackageInfo info=manage.getPackageInfo( this.getActicity().getPackageName(),0); appVersio原创 2016-09-08 15:56:41 · 1339 阅读 · 0 评论 -
AlertDialog.Builder和AlertDialog之间的关系
在没有正确认识这两个关系之前,做了一个自定义布局添加到对话框中,自定义布局中的按钮的监听里面写的让对话框消失的功能无法实现,因为使用了AlerDialog.Builder而没有使用builder.create()来创建对话框,查看了API发现:/** * Set a custom view to be the contents of the Dialog. If the supplied vie原创 2016-09-08 19:32:17 · 908 阅读 · 0 评论 -
EditText获取焦点的一系列方法
/** * Set whether this view can receive the focus. * * Setting this to false will also ensure that this view is not focusable * in touch mode. * * @param focusable If true, this view can re原创 2016-09-08 20:59:15 · 1343 阅读 · 0 评论