上一页 1 2 3 4 5 6 7 ··· 20 下一页
摘要: 类和对象的定义格式: /** 面向过程:以步骤为单位,一步一步完成某一个具体事情 面向对象:以对象为单位,通过调度组合不同的对象来完成某一个事情 */ public class Test1{ public static void main(String[] args){ //int i = 0; H 阅读全文
posted @ 2021-11-18 22:58 juham 阅读(34) 评论(0) 推荐(0) 编辑
摘要: finall关键字: →final声明的类不能被继承,类似太监 final声明的类不能被重写: → 使用final声明的变量变成常量,常量不可以被修改: → JAVA抽象类: 抽象类不能直接被实例化: abstract class Abs{ private int age; public void 阅读全文
posted @ 2021-10-11 17:05 juham 阅读(30) 评论(0) 推荐(0) 编辑
摘要: SharedPreference数据的读写操作: MainActivity.java: package com.imooc.sharedpreference; import androidx.appcompat.app.AppCompatActivity; import android.app.Ac 阅读全文
posted @ 2021-09-09 22:29 juham 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 02-Android中基于HTTP的通信技术 MainActivity.java: package com.jikexueyuan.httpget; import java.io.BufferedReader; import java.io.IOException; import java.io.I 阅读全文
posted @ 2021-09-07 17:26 juham 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 01-使用 BroadcastReceiver: activity_main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/and 阅读全文
posted @ 2021-09-03 11:10 juham 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 01-跨应用启动 Service 02-跨应用绑定 Service: anotherapp: activity_main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.a 阅读全文
posted @ 2021-09-02 23:08 juham 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 跨应用启动 Service: app: AppService.java: package com.example.startservicefromanotherapp; import android.app.Service; import android.content.Intent; import 阅读全文
posted @ 2021-09-02 17:25 juham 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 启动service并传输数据: main_activity.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xml 阅读全文
posted @ 2021-08-31 23:02 juham 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 使用Service: activity.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="ht 阅读全文
posted @ 2021-08-30 14:32 juham 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-08-28 15:13 juham 阅读(14) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 20 下一页