在 SDK 26,通过令静态注册的广播接收器失效 以限制后台过多应用启动,接受广播等情况。 当运行时,会有以下LOG: Background execution not allowed: receiving Intent 1. 如果是自己编写发送广播,可以通过 以下方式使广播工作 (1) (2) i ...
分类:
其他好文 时间:
2019-02-08 15:56:20
阅读次数:
412
import android.app.ListActivity; import android.os.Bundle; import android.widget.ArrayAdapter; public class Lesbian extends ListActivity { public void... ...
分类:
其他好文 时间:
2019-02-07 20:29:32
阅读次数:
195
导包 还得加一个mavn地址自己也看一下作者git把有详细解释(自己也要导入recycleview的包) 我的例子下载地址 https://www.lanzous.com/i32yzaj 其实简单用法很简单 导包后 activity 和fragment 都可以 implements OnRefres ...
分类:
其他好文 时间:
2019-02-06 17:06:10
阅读次数:
878
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name MessageResource, locale zh_CN at java.util.ResourceBund ...
分类:
编程语言 时间:
2019-02-03 11:05:21
阅读次数:
263
set nocompatiblefiletype offset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()Plugin 'VundleVim/Vundle.vim'call vundle#end()filetype plugin indent o ...
分类:
系统相关 时间:
2019-02-02 17:23:02
阅读次数:
254
1)PC与移动设备建立连接。 2)找到ADB的安装路径,双击启动uiautomator。 路径:D:\ProgramFiles\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\tools 3)点击截图 ...
分类:
其他好文 时间:
2019-02-01 23:02:53
阅读次数:
316
What is Docker? Docker to run and manage apps side-by-side in isolated containers to get better compute density. Using containers, everything required ...
分类:
其他好文 时间:
2019-01-29 23:09:19
阅读次数:
597
//1.拨打电话 // 给移动客服10086拨打电话 Uri uri = Uri.parse("tel:10086"); Intent intent = new Intent(Intent.ACTION_DIAL, uri); startActivity(intent); //2.发送短信 // 给 ...
分类:
移动开发 时间:
2019-01-28 17:42:20
阅读次数:
178
从 Android 7.0 开始,Android SDK 中的 StrictMode 策略禁止开发人员在应用外部公开 file:// URI。具体表现为,当我们在应用中使用包含 file:// URI 的 Intent 离开自己的应用时,程序会发生FileUriExposedException 异常 ...
分类:
移动开发 时间:
2019-01-28 10:46:13
阅读次数:
387