- 浏览: 74994 次
- 性别:
- 来自: 武汉
最新评论
文章列表
string.xml
<resources>
<string name="aaa">
<Data><![CDATA[<font color="#ff6600"><b>截图存放在<br/>手机根目录 _car_vedio_capture 文件夹中</b></font>]]></Data>
</string>
</resources>
android布局中使用这个st ...
使用zxing实现生成二维码
- 博客分类:
- android
github:
https://github.com/billcarbit/QRCodeDemo
package qrcode.com.qrcodedemo;
/**
* Created by Administrator on 2016-11-27.
*/
import android.graphics.Bitmap;
import android.graphics.Canvas;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com ...
android将视频文件转化为图片
- 博客分类:
- android
public void getBitmapsFromVideo() {
String dataPath = Environment.getExternalStorageDirectory() + "/11211015_1555.mp4";
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
retriever.setDataSource(dataPath);
// 取得视频的长度(单位为毫秒)
Strin ...
android通过文件管理器选择文件
- 博客分类:
- android
public void openSystemFile() {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("*/*");
intent.addCategory(Intent.CATEGORY_OPENABLE);
try {
startActivityForResult(Intent.createChooser(intent, "请选择文件!"),1 ...
将bitmap保存为文件
- 博客分类:
- android
public void saveBitmap(Bitmap bm, String path) {
String dir = path.substring(0,path.lastIndexOf("/"));
File dirFile = new File(dir);
if (!dirFile.exists()) {
dirFile.mkdirs();
}
File f = new File(path);
if (f.exists()) { ...
Camera
Android's camera Hardware Abstraction Layer (HAL) connects the higher level camera framework APIs in android.hardware to your underlying camera driver and hardware. The camera subsystem includes implementations for camera pipeline components while the camera HAL provides interfaces for use i ...
Media
Android includes Stagefright, a media playback engine at the native level that has built-in software-based codecs for popular media formats.
Stagefright audio and video playback features include integration with OpenMAX codecs, session management, time-synchronized rendering, transport contr ...
https://source.android.com/devices/audio/index.html
Audio
Android's audio Hardware Abstraction Layer (HAL) connects the higher-level, audio-specific framework APIs in android.media to the underlying audio driver and hardware. This section includes implementation instructions and tips for improving ...
https://source.android.com/devices/bluetooth.html
Android provides a default Bluetooth stack that is divided into two layers: The Bluetooth Embedded System (BTE), which implements the core Bluetooth functionality, and the Bluetooth Application Layer (BTA), which communicates with Android framew ...
1.首先,先写一个类DemoProject,继承Component
紧接着,为他写一个构造器
constructor(props) {
super(props);
this.state = {
dataSource: new ListView.DataSource({
rowHasChanged: function(row1, row2) {return row1 !== row2},
}),
loaded: fals ...
Animator animator = ViewAnimationUtils.createCircularReveal(btn2,
btn2.getWidth() / 2,
btn2.getHeight() / 2, 0,
btn2.getHeight());
animator.addListener(new AnimatorListenerAdapter() {
...
设置NPM淘宝代理镜像
- 博客分类:
- 备忘
1.npm config set registry https://registry.npm.taobao.org
2.npm info underscore
如果配置成功,第二步会有字符串返回
ServiceApkInstaller.java
public class ServiceApkInstaller {
public final static String TAG = ServiceApkInstaller.class.getSimpleName();
private final String apkPackName = "net.easyconn.carmanservice";
private String apkName;
private final String newApkPath = Environmen ...
1.在values目录下新建attrs.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="MusicView">
<attr name="height1" format="integer" />
</declare-styleable>
</resources>
h ...