自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

原创 android speechRecognizer原生语音识别使用指南

android speechRecognizer原生语音识别使用指南

2022-10-28 19:28:50 3758 3

原创 Trace使用(camera)

Camera性能Strace 之启动问题

2022-09-29 14:53:25 1329

原创 Camera ANR分析案例

Camera ANR

2022-09-28 20:11:38 587

原创 Camera2 和CameraX 从入门到精通 java实现

Camera 2 预览拍照Camera X 预览拍照

2022-09-28 15:12:40 2801 1

原创 Camera2预览流程简单附demo

根据这个流程图配合代码很好理解package com.example.camera2;import androidx.annotation.NonNull;import androidx.appcompat.app.AppCompatActivity;import androidx.core.app.ActivityCompat;import androidx.core.content.ContextCompat;import android.Manifest;imp...

2021-10-18 16:45:05 819

原创 Camera2 完整相机demo(预览拍照录制视频) 菜鸟教程

一 .功能介绍(UI布局)打开camera app首先会进入拍照模式的预览界面:拍照的预览界面 总共就四个控件 1.整体的预览控件TextureView 2.左下角的缩略图I...

2021-09-28 14:04:23 6999 12

原创 Camera 2 录像

package com.example.camera;import android.annotation.SuppressLint;import android.content.Context;import android.content.Intent;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.ImageFormat;import android.

2021-09-24 15:18:36 255

原创 基于Camera2 原生相机通过缩略图或者button调用图库

下面拿Butoon 举列首先 在CameraAactivity 写一个Button 用来启动ImageShowActivitypublic class ImageShowActivity extends AppCompatActivity implements View.OnClickListener { private final static String TAG = "ImageShowActivity"; private String lastImagePath; .

2021-09-17 17:47:24 473

原创 Android中Uri简介 用法

1.Uri通用资源标识符(Universal Resource Identifier) 简称UriUri 代表要操作的数据,Android 上可用的资源(图像、视频片段)都可以用Uri表示 Android的Uri由以下三部分组成 1."content://"、数据的路径、标识ID(可选)例如所有图片 1. Uri:content://media/external 2. Uri uri = MediaStore.Images....

2021-09-16 14:54:44 4542

原创 Android 子线程向handle中传出字符串String

public class ImageSaver implements Runnable { @Override public void run() { //列如 传出这个路径 String path = Environment.getExternalStorageDirectory() + "/DCIM/myPicture" + System.currentTimeMillis() + ".jpg..

2021-09-15 14:57:27 489 1

原创 Camera 2 最简单的预览拍照保存小白指南

1.Camera 2 的架构图: camera2架构图Camera2引用了管道的概念将安卓设备和摄像头之间联通起来,系统向摄像头发送Capture请求,而摄像头会返回CameraMetada。这一切都建立在CameraCaptureSession的会话中。2.camera2拍照流程图: ...

2021-09-13 18:45:10 1548 10

原创 Android绝对布局AbsoluteLayout

用android:layout_x=”xxdp“android:layout_y=”xxdp“指定坐标,由于Android型号太多屏幕大小分辨率不同可能导致有些机型不能完全显示所以被弃用。<?xml version="1.0" encoding="utf-8"?><AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="matc

2021-09-07 10:08:41 136

原创 Android帧布局FrameLayout

这种布局方式在七大大布局中最为简单,这个布局直接在屏幕上开辟出一块空白的区域,当我们往里面添加控件的时候,会默认把他们放到这块区域的左上角,而这种布局方式却没有任何的定位方式,所以它应用的场景并不多。<?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_p

2021-09-07 09:56:38 88

原创 Android线性布局LinearLayout

1. 排列方式纵向:android:orientation="vertical" 横向:android:orientation="horizontal" 系统默认采用横向布局2. 对齐方式两种设置边距的方式,分别是 android:paddingStart="150dp" //和左侧的边距 android:paddingTop="50dp" //和顶部的边距 3. 权重线性布局中可以规定控件的权重,通过android:layout_weight=""实现。...

2021-09-07 09:43:40 106

原创 Android约束布局ConstarainLayout

xml代码:<?xml version="1.0" encoding="utf-8"?><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent

2021-09-06 21:22:34 145

原创 Android网格布局GridLayout

xml文件代码<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/GridLayout1" android:layout_width="match_parent" android:layout_height="match_parent" an

2021-09-06 21:18:04 614

原创 Android表格布局TableLayout

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/TableLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:s.

2021-09-06 20:58:02 86

原创 Android相对布局RalativeLayout

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="10dp"> <TextVi.

2021-09-06 20:50:58 83

原创 Java 基础语法

一个 Java 程序可以认为是一系列对象的集合,而这些对象通过调用彼此的方法来协同工作。下面简要介绍下类、对象、方法和实例变量的概念。对象:对象是类的一个实例,有状态和行为。例如,一条狗是一个对象,它的状态有:颜色、名字、品种;行为有:摇尾巴、叫、吃等。 类:类是一个模板,它描述一类对象的行为和状态。 方法:方法就是行为,一个类可以有很多方法。逻辑运算、数据修改以及所有动作都是在方法中完成的。 实例变量:每个对象都有独特的实例变量,对象的状态由这些实例变量的值决定。 public class

2021-08-05 17:55:03 146

原创 认识java语言

第一句java语言 public class hellohuaqin { public static void main(String[] args) { System.out.println("Hello huaqin I am th

2021-08-05 17:36:29 81

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除