![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
海风鸥
这个作者很懒,什么都没留下…
展开
-
AS @RunWith(AndroidJUnit4.class)无法识别问题
@RunWith(AndroidJUnit4.class)无法识别问题 尝试解决办法如下: //一般没有添加这两行,添加下即可 implementation 'junit:junit:4.12' implementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' .原创 2021-10-14 14:32:26 · 1392 阅读 · 0 评论 -
自定义BroadcastReceiver 静态注册广播无法接收的问题
问题原因: 从android 8.0(API26)开始,对清单文件AndroidManifest.xml中静态注册广播接收者作了限制(官方对耗电量的优化,避免APP滥用广播的一种处理方式)。 除了少部分的广播仍支持静态注册(如开机广播),其余的都会出现失效的情况。 //开机广播 <receiver android:name=".RebootReceiver" android:enabled="true" android:...原创 2020-10-10 15:32:14 · 1067 阅读 · 1 评论 -
Android设置主屏幕应用
文章转载于:https://blog.csdn.net/qq_36881363/article/details/106620048 一、在AndroidManifest.xml内activity的intent-filter标签内添加红色内容 <intent-filter> <action android:name="android.intent.action.MAIN" /> ...转载 2020-09-04 11:21:12 · 2701 阅读 · 0 评论 -
android 开机界面/动画素材制作
背景 最近需要制作一个带公司LOGO的android开机动画,此前对android基本没啥了解,从应用开发又来搞android开发。感觉自己的职业完全没有规划过,只是为了混生活。聊着聊着,聊出了人生百态,还是转到正题吧。 素材组成 android开机动画素材由三部分组成: 启动页 :由一张图片显示,格式一般采用BMP 加载页:由一张图片显示,格式一般采用BMP。外加一个加载文字显示 开机动画:由一组开机动画的序列帧图片(png格式)组成,再把这些图片最终打包成一个...原创 2020-09-03 11:39:18 · 996 阅读 · 0 评论