android
NolanCui
这个作者很懒,什么都没留下…
展开
-
tombstone内不带call stack时如何调试
tombstone内不带call stack时如何调试?可以arm-linux-androideabi-addr2line.exe -e xxx.so -f 00018908 | arm-linux-androideabi-c++filt原创 2021-04-22 11:10:59 · 164 阅读 · 0 评论 -
ffmpeg android
#!/bin/bashNDK=/home/myusr/Downloads/android-ndk-r14bADDI_CFLAGS="-mfloat-abi=softfp -fPIE -pie"ADDI_LDFLAGS="-fPIE -pie"configure(){CPU=$1 PREFIX=$(pwd)/android/$CPUHOST=""CROSS_PREFIX=""SYS...原创 2019-11-15 10:54:55 · 298 阅读 · 0 评论 -
android上如何写配置文件
android上如何写配置文件:使用SharedPreferencesSharedPreferences是Android平台上一个轻量级的存储类,用来保存应用的一些常用配置,比如Activity状态,Activity暂停时,将此activity的状态保存到SharedPereferences中;当Activity重载,系统回调方法onSaveInstanceState时,再从SharedPre转载 2017-05-27 14:12:32 · 3961 阅读 · 0 评论 -
android studio出现部分依赖库error
主要考虑是由于网络的原因导致gradle没有成功下载依赖库。此时可以考虑在setting的http proxy中添加代理服务器,并通过check connection来判断代理服务器是否可以连接。当本地使用的是proxy方式来上网时,会不能连接成功。此时再考虑在proxy server上开启无线网络,让其他机器可以上网,这样就能成功下载各种依赖库。原创 2017-08-30 13:09:36 · 263 阅读 · 0 评论 -
runOnUiThread 更新ui
/** * Runs the specified action on the UI thread. If the current thread is the UI * thread, then the action is executed immediately. If the current thread is * not the UI thread, the action is post原创 2017-09-01 11:37:21 · 214 阅读 · 0 评论 -
tombstones分析方法--转载自CrazyDiode的cnblog
1.什么是tombstone当一个动态库(native 程序)开始执行时,系统会注册一些连接到 debuggerd 的 signal handlers,当系统 crash 的时候,会保存一个 tombstone 文件到/data/tombstones目录下(Logcat中也会有相应的信息),文件的确就像墓碑一样记录了死亡了的进程的基本信息(例如进程的进程号,线程号),死亡的地址(在哪个地址上发...转载 2018-09-13 18:31:18 · 5301 阅读 · 0 评论 -
valgrind使用
1. valgrind对于一些大型的android app可能没法通过activity启动程序,对于存native调试可以自己编写一个main函数直接调用native的code,这样就可以正常运行起来。2.使用android studio 创建executable 程序,引用之前需要调试的动态库3.对于在native so内可能引用了之前package相关的资源,需要修改引用路径,可以改为...转载 2019-02-20 15:40:41 · 915 阅读 · 0 评论