我们可以通过如下代码获取现在的充电状态是否为AC充电。 IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);Intent batteryStatus = this.registerReceiver(null, f ...
分类:
其他好文 时间:
2019-08-25 18:23:49
阅读次数:
217
1.Intent对象简介 Intent中文意思指"意图",按照Android的设计理念,Android使用Intent来封装程序的"调用意图",不管启动Activity、Service、BroadcastReceiver,Android都使用统一的Intent对象来封装这一"启动意图"。此外,Int ...
分类:
其他好文 时间:
2019-08-20 12:56:45
阅读次数:
103
orig url: https://accu.org/index.php/journals/255 roperties are a feature of a number of programming languages - Visual Basic and C# are two of them. ...
分类:
编程语言 时间:
2019-08-09 01:18:29
阅读次数:
129
使用intent可以吊起其他应用 例如发送电子邮件 ...
分类:
移动开发 时间:
2019-07-31 15:23:23
阅读次数:
92
from pyspark.sql import SparkSession import math from os.path import abspath def cosSim(v1, v2): member = reduce(lambda x, y: x+y, map(lambda d: d[0]* ...
分类:
其他好文 时间:
2019-07-30 20:11:11
阅读次数:
116
Beautiful is better than ugly. 优美胜于丑陋 Explicit is better than implicit. 明确胜于隐晦 Simple is better than complex. 简单胜于复杂 Complex is better than complicate ...
分类:
编程语言 时间:
2019-07-29 00:44:52
阅读次数:
144
1.引入jar swaggerConfig.注解使用 3注解使用 user实体类 效果 note: lisi是默认值 ...
分类:
其他好文 时间:
2019-07-27 13:04:40
阅读次数:
93
<activity android:name=".MainActivity" > <intent-filter> <action android:name="android.intent.action.MAIN" /> //主活动 <category android:name="android.in ...
分类:
移动开发 时间:
2019-07-23 09:47:06
阅读次数:
132
2.3 使用 Intent 在 Activity 之间穿梭 在上一节中我们已经学会了如何创建一个 Activity 了。对于一个应用程序来说,肯定不可能只有一个 Activity。下面就来学习多个 Activity 是专门跳转的。 2.3.1 使用显式 Intent 对于创建 Activity 的过 ...
分类:
移动开发 时间:
2019-07-23 00:21:15
阅读次数:
120
swagger2升级2.9.2后NumberFormatException异常*问题:升级后再IntegerLongdoublefloat等number类型上出现了java.lang.NumberFormatException原因:number类型在swagger的ApiImplicitParam注解上有一个example默认值是“”空字符串在启动时会先生成默认值空字符直接转number肯定抛异常
分类:
其他好文 时间:
2019-07-20 10:13:42
阅读次数:
104