- 博客(197)
- 资源 (38)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 Android知识整理
1.Android四大组件:活动(activity)、服务(service)、广播(Broadcast Receive)、内容提供者(Content Provider)熟悉其生命周期和Activity的启动模式。https://blog.csdn.net/xchaha/article/details/80398620https://blog.csdn.net/xiaoyangchun/article/details/798374442.了解Android的framework层WMS、AMS的运行原理,
2022-04-06 10:16:04
1753
4
原创 ErrnoException: open failed: EPERM (Operation not permitted)
在应用权限管理里面没有文件读写权限。
2024-06-27 11:39:33
247
原创 Android 画图板(画笔、箭头、 直线、 折线、橡皮擦)功能优化
【代码】Android 画图板(画笔、箭头、 直线、 折线、橡皮擦)功能优化。
2024-05-29 16:24:27
125
原创 antd中的form表单数据不更新
理解 : initialValue就是所谓的defaultValue,只会在第一次赋值的时候改变,却又有一些不同,因为 initialValue又会因其他改动而改变。antd中的form表单 initialValue导致数据不更新问题。
2023-11-15 11:27:17
416
转载 移动推送检测到小米SDK自启动行为
小米应用市场会检测出这个检测网络变化的action。删除EMAS初始化 小米sdk的调用, 改为自己初始化。移动推送检测到小米SDK自启动行为:扫描堆栈中有。
2023-04-20 11:08:43
2174
3
原创 Android app更新(apk下载、安装)
支持使用HttpsURLConnection或OkHttpClient进行下载。支持通知栏提示内容和流程全部可配置。支持文件MD5校验,避免重复下载。支持Android 11( R)专注于App更新一键傻瓜式升级。支持Android 10(Q)支持Android 12(S)支持监听下载和自定义下载流程。支持下载失败时,可重新下载。
2023-04-18 17:50:24
664
原创 Android自定义Textview 蒙语显示(蒙古文字)
Android自定义Textview 蒙语显示(蒙古文字)竖排Textview 自动换行 从左到右。
2023-01-05 16:22:32
334
1
原创 微信分享功能封装
需要微信的 String APPID = “wxe8484247d2xxxxxxxx”;回调添加 WXEntryActivity。
2022-12-22 13:51:55
315
原创 RecyclerView侧滑删除按钮
只需要修改 RecyclerView 支持侧滑在ietm布局 超出屏幕的地方添加自己的删除按钮就可以此方法入侵程度低 容易修改
2022-12-06 09:54:18
477
原创 Android 解压缩
android 自带的zip:解压效率很高,但是压缩文件不能超过2G,否则会解压失败apache ant.zip 解压包使用简单,解压效率一般(xapk解压的时候和系统zip比起来会慢很多)AndroidUn7zip 第三方库具体效率没测试,但是解压部分xapk的压缩格式会失败推荐 zip4j 第三方库和antzip解压对比效率高一点(3.7G的xapk文件,ant耗时3m50s,zip4j耗时3m30s)支持解压密码,支持指定位置解压,功能齐全,可以参考git说明...
2022-05-13 17:44:49
1189
1
原创 WebView长按选中获取内容
修改webviewpackage com.whsz.mywebtest;import android.content.Context;import android.os.Build;import android.util.AttributeSet;import android.view.ActionMode;import android.view.Menu;import android.view.MenuItem;import android.webkit.JavascriptInter.
2022-04-15 16:33:25
3527
原创 JS获取选中内容,以及选中内容所在段落(内容标注)
<!DOCTYPE html><html><head><meta charset="utf-8"><title>菜鸟教程(runoob.com)</title><script>function foo() { let selObj = window.getSelection(); var range = selObj.getRangeAt(0); console.log(selObj) co.
2022-04-15 16:18:50
1610
原创 Android项目创建基本配置
build.gradle// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { google() jcenter() maven { url "https://jitpack.io" } } dependencies {
2022-03-28 16:28:33
2886
原创 Unity 动态隐藏显示UI上的image
把canvas上的图片绑定到cube下在需要隐藏的ui上绑定脚本 初始化的时候让其隐藏using System.Collections;using System.Collections.Generic;using UnityEngine;public class RawEditor : MonoBehaviour{ // Start is called before the first frame update void Start() { GameO.
2022-03-09 09:33:45
7086
原创 Android 离线webview浏览pdf使用PDF.js
pdf.js下载地址http://mozilla.github.io/pdf.js/getting_started/下载PDF.js放到assets目录下使用 mWebView.loadUrl("file:///android_asset/pdfjs/web/viewer.html?file=" + pdfUrl);预览效果
2021-12-09 14:19:50
2587
1
原创 Android 根目录listFiles()文件列表返回值为null
String dir = "/storage/emulated/0";File f = new File(dir);Log.v("Files",f.exists()+"");Log.v("Files",f.listFiles()+""); // 返回结果:truenull检查文件AndroidManifest.xml,权限配置<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
2021-09-14 17:40:38
1592
原创 检查数组是否包含某个值
//使用Listpublic static boolean useList(String[] arr, String targetValue) { return Arrays.asList(arr).contains(targetValue);}//使用Setpublic static boolean useSet(String[] arr, String targetValue) { Set<String> set = new HashSet<String&
2021-08-09 13:56:29
552
原创 AndroidAutoSize( android:process) 多进程适配
打开另外一个进程的页面,适配失效java.lang.IllegalArgumentException: you must set design_width_in_dp in your AndroidManifest file多个进程需要使用AutoSize.initCompatMultiProcess(this);https://github.com/JessYanCoding/AndroidAutoSize/blob/master/demo/src/main/java/me/jessyan/
2021-07-06 11:08:42
358
原创 android 集成 unity 3d 错误 Caused by: android.content.res.Resources$NotFoundException: String resource
android 集成 unity 3d 错误1.资源找不到java.lang.RuntimeException: Unable to start activity ComponentInfo{com.what.mobile.maintenance/com.unity3d.player.UnityPlayerActivity}: android.content.res.Resources$NotFoundException: String resource ID #0x0 Caused by: a
2021-06-18 09:56:37
1031
2
原创 Android 项目中依赖项目、依赖库、依赖module中的jar包(第三方库)
如果module中的jar需要给主项目使用则需要使用api:“xxxxx”,api是可以共整个项目使用的,implement依赖的jar包只能给当前module使用。
2021-06-04 09:27:08
535
Android SurfaceView
2015-12-14
Android--7种网络请求方式
2015-12-10
Android (kotlin)MVP基础模板
2021-01-08
Spirng+SpringMVC+Maven+Mybatis+MySQL项目Demo项目源码
2018-01-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人