![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
胖子兰
这个作者很懒,什么都没留下…
展开
-
CarPlay认证经验
3、CarPlay ITU Siri Audio认证。2、CarPlay ITU 环路延迟认证。1、CarPlay 3S连接经验。原创 2023-08-12 19:12:14 · 248 阅读 · 0 评论 -
Android 获取CPU架构(指令集)
1、 String[] abis = new String[]{}; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { abis = Build.SUPPORTED_ABIS; } else { abis = new String[]{Bu...原创 2020-03-24 11:47:33 · 1211 阅读 · 0 评论 -
android进程通信之 AIDL 的使用
https://blog.csdn.net/u011240877/article/details/72765136 作者: 拭心读完本文你将了解:AIDL 是什么AIDL 支持的数据类型AIDL 如何编写AIDL 实例创建 AIDL编写服务端代码编写客户端代码运行结果总结代码地址Thanks记得 2015 年实习面试,笔试题里就有这道题:请介绍下 AIDL。当时的...转载 2019-01-29 19:37:15 · 103 阅读 · 0 评论 -
安卓文件下载库 PRDownloader(断点续传)
文章出处:https://www.jianshu.com/p/3cf8b31f3a11安卓文件下载库 | PRDownloader96 两只黄鹂鸣翠鸟 关注2017.12.05 11:05 字数 171 阅读 852评论 0喜欢 4名称 PRDownloader语言 Android平台 GitHub作者 MindorksOpenSource链接 点此进入今天推荐的是一款具备完善...原创 2019-02-18 12:01:35 · 2235 阅读 · 0 评论 -
Android Socket 服务器本地发送图片给客户端
https://blog.csdn.net/yineng7758258/article/details/86497357转载 2019-02-28 08:31:16 · 324 阅读 · 0 评论 -
android实现侧滑SlidingMenu(XML或者新的Activity)
1、GitHub下载项目SlidingMenu开源库地址:https://github.com/jfeinstein10/SlidingMenu ①、首先要在GitHub下载库包并解压,将SlidingMenu-master目录下的library文件夹拷贝到自己的Project的app\libs目录下,然后我把文件夹名“library”改成“SlidingMenu”了②、Sliding...原创 2019-02-19 11:27:00 · 255 阅读 · 0 评论 -
android二维码xzing使用
1、添加依赖app:/添加依赖/implementation ‘com.github.yuzhiqiang1993:zxing:2.0.0’project: maven { url 'https://jitpack.io' }2、扫描①、扫描Intent intent = new Intent(MainActivity.this, CaptureActivity.class);...原创 2019-02-19 13:48:57 · 1355 阅读 · 0 评论 -
android导航页制作appintro
1、注入依赖project: allprojects { repositories { google() jcenter() maven { url 'https://jitpack.io' } }}app: implementation 'com.github.apl-devs:appintro:v4.2.2'2、...原创 2019-02-19 15:33:33 · 1316 阅读 · 0 评论 -
android FlexboxLayout可伸缩布局
1、app添加依赖 //响应式伸缩性布局 implementation 'com.google.android:flexbox:0.2.2'2、MainActivitypublic class MainActivity extends AppCompatActivity {private FlexboxLayout flexboxLayout; @Override ...原创 2019-02-19 16:28:29 · 1135 阅读 · 0 评论 -
android内存优化 内存泄露检测工具Leakcanary
1、添加依赖debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1' releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1' testImplementation 'com.squ...原创 2019-01-29 10:46:30 · 251 阅读 · 0 评论 -
android customactivityoncrashchau 程序崩溃处理
1、添加依赖implementation ‘cat.ereza:customactivityoncrash:2.2.0’//奔溃处理依赖2、Application注册package com.example.administrator.myerror;import android.annotation.SuppressLint;import android.app.Application;...原创 2019-01-22 20:30:23 · 1720 阅读 · 0 评论 -
android prorobuf3.3添加本地jar包
一、添加本地方式1、libs添加jar包 (3.3版本)2、添加依赖api files('libs/protobuf-java-util-3.3.0.jar')api files('libs/protobuf-java-3.3.0.jar')3、生成的protos放入对应的位置①使用过程**×××.Builder demo =×××.newBuilder();demo.setX(...原创 2019-01-24 11:25:48 · 377 阅读 · 0 评论 -
android recyclerView适配器adpter
1、注入依赖allprojects {repositories {google()//jcenter()maven { url ‘https://maven.aliyun.com/repository/google’ }maven { url ‘https://maven.aliyun.com/repository/jcenter’ }maven { url ‘http://mave...转载 2019-01-24 14:08:05 · 480 阅读 · 0 评论 -
android Retrofit+RXJAVA
1、添加依赖//only Retrofit(只用Retrofit联网) implementation 'com.squareup.retrofit2:retrofit:2.1.0' implementation 'com.squareup.retrofit2:converter-gson:2.1.0'//Rxjava and Retrofit(Retrofit+Rx需要添加的依...原创 2019-01-25 10:20:30 · 241 阅读 · 0 评论 -
adnroid 线程频繁上传等耗时操作优化方案
实现思路,创建一个全局线程,开始就启动并且休眠,等待通知,实在两个List集合,一个设置为空对象的集合,生产和消费的时候加锁和释放1、全局线程开始就启动① if (myFaceThread == null) {//启动线程 myFaceThread = new MyFaceThread(); myFaceT...原创 2019-01-25 11:47:11 · 162 阅读 · 0 评论 -
android GIF drawable和PhotoView图片缩放
1、添加依赖implementation 'pl.droidsonroids.gif:android-gif-drawable:1.1.17'2、编写XML <pl.droidsonroids.gif.GifImageButton android:id="@+id/gifImageButton" android:layout_width="match原创 2019-01-25 20:00:10 · 554 阅读 · 0 评论 -
Android第三方框架LitePal的使用
1、app:添加依赖implementation 'org.litepal.android:core:1.6.1'2、assets中创建litepal.xml(直接复制代码使用)<litepal> //数据库名字 <dbname value="BookStore" ></dbname> <version value="1" &...原创 2019-01-26 09:39:48 · 1201 阅读 · 0 评论 -
android弹出广告cn.yipianfengye.android:ad-library:1.0使用
1、添加依赖//广告弹屏implementation ‘cn.yipianfengye.android:ad-library:1.0’2、添加权限下面使用3、添加数据/*** 初始化数据*/private void initData() {advList = new ArrayList();AdInfo adInfo = new AdInfo();adInfo.setAc...原创 2019-01-22 14:39:25 · 966 阅读 · 0 评论 -
AndroidAutoSize使用(屏幕适配)
1、application 配置目标屏幕分辨率做基数(1080*)2、需要的Acticity继承CustomAdapt3、取消的时候继承CancelAdapt 就可以原创 2019-01-22 16:52:54 · 8101 阅读 · 4 评论 -
adnroid饺子播放器jiaozivideoplayer
1、implementation ‘cn.jzvd:jiaozivideoplayer:6.4.1’//饺子播放器implementation ‘com.github.bumptech.glide:glide:3.7.0’//图片加载2、Layout XML添加控件3、Activity 使用package com.example.administrator.myads;import ...原创 2019-01-22 18:34:32 · 776 阅读 · 0 评论 -
android EventBus3.1.1使用
1、注入依赖implementation 'org.greenrobot:eventbus:3.1.1'2、自定义消息类型(实体类,可以随意字段)public class Message {private String message;public Message(String message) { this.message = message;}public Str...原创 2019-01-24 10:46:58 · 781 阅读 · 0 评论