2 Forever_lobster

尚未进行身份认证

暂无相关简介

等级
TA的排名 29w+

YUV旋转之后转bitmap

public Bitmap getPreviewBitmap() { long time1 = System.currentTimeMillis(); byte[] newBytes; if (Integer.parseInt(mCameraId) == Camera.CameraInfo.CAMERA_FACING_BACK) { newBytes = ...

2019-03-22 14:05:49

GLES20.glReadPixels获取RGB_888

if(mTakeShot){ mTakeShot = false; int snapWidth = mMeasuredHeight; int snapHeight = mMeasuredWidth; long time1 = System.currentTimeMillis(); int size = sn...

2019-03-15 14:50:00

矢量图转svg

一、<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="48dp" android:height="48dp" android:viewportWidth="48.0" android:viewportHeight="48.0">&a

2018-04-02 15:36:46

android关于弹出式通知的旧方案

/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the “License”); * you may not use this file except in compliance with the License. ...

2018-04-02 15:12:49

文字转语音代码记录

一、百度语音合成部分 package com.example.raisesail.zftts;import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.med...

2018-04-02 15:06:18

关于GAStudio哥玄酷的华为时钟界面代码学习

package gastudio.clock.ui;import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ValueAnimator; import android.content.Context; import andr...

2018-04-02 14:58:38

RecycleView Demo

一、adapter package com.example.zyl.myrecyclerview;import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; imp...

2018-04-02 14:56:35

关于GAStudio哥玄酷的下载动画中代码一些个人的学习

package com.gastudio.gadownloading.ui;import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ValueAnim...

2018-04-02 14:53:38

ContentProvider Demo

一、注册 <provider android:name="com.android.settings.breathlamp.ZF_BreathLampProvider" android:authorities="com.android.settings.breathlamp.Provider" android:exported="tru...

2018-04-02 14:51:15

ZF_BreathLampProvider(ContentProvider)

package com.android.settings.breathlamp;import android.content.ContentProvider; import android.content.ContentValues; import android.content.UriMatcher; import android.database.Cursor; import an...

2018-04-02 14:47:10

ZF_BreathLampDBHelper 数据库辅助类(CotentProvider)

package com.android.settings.breathlamp;import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android....

2018-04-02 14:46:29

ZF_BreathLampDao数据库操作类(ContentProvider)

package com.android.settings.breathlamp;import java.util.ArrayList; import java.util.Collections; import java.util.List;import com.android.settings.breathlamp.ZF_BreathLampDBHelper;import andr...

2018-04-02 14:44:54

AIDL Demo

一、AIDL文件: // IZFTtsAidlInterface.aidl package com.example.raisesail.zftts;interface IZFTtsAidlInterface {void ZFSpeak(String str);}二、实现类: public class MyBinder extends IZFTtsAidlInterface....

2018-03-26 14:24:46

从桌面点击图标启动app流程简要分析5.0

Launcher.java:点击某一图标 1.public void onClick(View v) { if (LauncherLog.DEBUG) { LauncherLog.d(TAG, “Click on view ” + v); } ... else if (tag instanceof AppInfo &...

2018-03-26 09:30:34

SystemUI点击事件

点击状态栏弹出一部分a.)Activity——>dispatchTouchEvent(){ if (getWindow().superDispatchTouchEvent(ev)) {——>mWindow=PolicyManager.makeNewWindow()——>PhoneWindow. return true; ...

2018-03-26 09:29:39

系统引用第三方AIDL,以systemui为例

zftts beginLOCAL_SRC_FILES += \ src/com/example/raisesail/zftts/IZFTtsAidlInterface.aidl \LOCAL_AIDL_INCLUDES += \ com/example/raisesail/zftts/IZFTtsAidlInterface.aid...

2018-03-26 09:29:27

状态栏启动

a)Application类: Application和Activity,Service一样是Android框架的一个系统组件,当Android程序启动时系统会创建一个Application对象,用来存储系统的一些信息。 Android系统自动会为每个程序运行时创建一个Application类的对象且只创建一个,所以Application可以说是单例(singleton)模式的一个类。 通常...

2018-03-26 09:29:08

android mk文件编译第三方jar、so以及AIDL

LOCAL_PATH := (callmy−dir)include(callmy−dir)include(call my-dir) include (CLEAR_VARS)LOCAL_PACKAGE_NAME := ZFTtsLOCAL_CERTIFICATE := platform如果使用的系统的包,需要引入他们使用的资源文件,否则会提示编译资源找不到的错误LOCAL_R...

2018-03-05 15:56:12

状态栏其他应用发送消息显示流程总结

以DeskClock为例: public static void showAlarmNotification(Context context, AlarmInstance instance) { … Notification.Builder notification = new Notification.Builder(context)//构建Notifica...

2018-03-05 15:42:10

Android 5.0 状态栏(SystemUI)系统图标加载流程简单分析

1.PhoneStatusBar.java中复写了BaseStatusBar.java的createAndAddWindows()方法:public void createAndAddWindows() { addStatusBarWindow();}addStatusBarWindow()中:(a)makeStatusBarView()方法即之前提到的加载状态栏布局(b)其

2017-03-20 11:06:41
勋章 我的勋章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!