在程序运行时申请限权(CALL_PHONE),CALL_PHONE这个限权是编写拨打电话功能的时候需要声明的,安卓6.0之后的,实现,在布局文件中添加 <uses-permission android:name="android.permission.CALL_PHONE"/>声明其限权 之后在Ma ...
分类:
移动开发 时间:
2020-05-21 00:21:10
阅读次数:
67
package com.example.sevenzuoy; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import a ...
分类:
其他好文 时间:
2020-05-19 10:54:05
阅读次数:
50
1、log 打印所有内容 log hello word 2、定义变量 ${a} Set variable 92 log ${a} 3、连接对象 ${a} Catenate hello word log ${a} 加上“SEPARATOR=”可以对多个连接的信息进行分割。 ${a} Catenate ...
分类:
其他好文 时间:
2020-05-13 14:06:59
阅读次数:
63
1.Intent显式跳转页面 val button5 = findViewById<Button>(R.id.mButton5) button5.setOnClickListener { val intent = Intent() intent.setClass(this, ThirdActivit ...
分类:
其他好文 时间:
2020-05-13 11:58:06
阅读次数:
54
1 CREATE function [dbo].[Split] 2 ( 3 @SourceString nvarchar(max), 4 @Separator nvarchar(max)=',' 5 ) 6 returns @temp table(split nvarchar(128)) 7 --实 ...
分类:
数据库 时间:
2020-05-13 09:47:34
阅读次数:
63
seq seq: squeue 是一个序列的缩写,主要用来输出序列化的东西 seq常见命令参数 用法: 参数: s 指定分隔符 s, separator=字符串 使用指定字符串分隔数字(默认使用:\n) 参数: w 自动补位,格式对齐 w, equal width 在列前添加0 使得宽度相同【自动补 ...
分类:
其他好文 时间:
2020-05-12 11:15:36
阅读次数:
81
1、登录界面 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width= ...
分类:
移动开发 时间:
2020-05-10 17:16:19
阅读次数:
67
系统自带的变量 $IFS 内部字段分隔符(Internal Field Separator, IFS)定义一个定界符,默认是空格。 [root@cnblogs ~]# cat test.sh #!/bin/bash IFS=',' for i in `echo "$1"` do echo "$i" ...
分类:
系统相关 时间:
2020-05-08 13:07:36
阅读次数:
75
AndroidManifest.xml 只有两个同时匹配,才能响应 注:一个活动只能指定一个action,但可以指定多个category java ...
分类:
移动开发 时间:
2020-05-07 00:50:27
阅读次数:
65