会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
EndlessShw
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
10
下一页
2021年10月7日
第六章 动态注册监听软件的安装与卸载(Android 8.1) 1.1
摘要: 1. AppStateChange: 1 package com.example.broadcastdemo; 2 3 import android.app.Activity; 4 import android.content.BroadcastReceiver; 5 import android.
阅读全文
posted @ 2021-10-07 16:53 EndlessShw
阅读(227)
评论(0)
推荐(0)
编辑
2021年10月4日
第六章 四大组件之广播监听(电池目前电量,百分比以及充电接口是否接入) 1.0
摘要: 1. MainActivity: 1 package com.example.broadcastdemo; 2 3 import androidx.appcompat.app.AppCompatActivity; 4 5 import android.content.BroadcastReceive
阅读全文
posted @ 2021-10-04 16:38 EndlessShw
阅读(128)
评论(0)
推荐(0)
编辑
2021年10月3日
第五章 Android的启动模式singleTop、singleTask、singleInstance 3.0.2
摘要: 1. 在前文的基础上,修改SecondActivity,android:launchMode="三种模式名" * singleTop模式:* singleTop模式下,如果栈顶已经是当前的任务了,那么就不会创建新的相同的任务,但是依旧可以创建其他的任务。即不可以连续创建多个相同的任务在栈顶* 使用场
阅读全文
posted @ 2021-10-03 15:10 EndlessShw
阅读(211)
评论(0)
推荐(0)
编辑
第五章 Activity的启动模式standard 3.0
摘要: 1. FirstActivity: 1 package com.example.activitylaunchmode; 2 3 import androidx.appcompat.app.AppCompatActivity; 4 5 import android.content.Intent; 6
阅读全文
posted @ 2021-10-03 14:56 EndlessShw
阅读(31)
评论(0)
推荐(0)
编辑
2021年10月2日
第五章 横竖屏幕切换时Activity的生命周期变化以及开发带来的问题 2.9.4
摘要: 1. 先写一个程序来查看结果,HVTransform(详情内容见注释): 1 package com.example.activitycircledemo; 2 3 import android.app.Activity; 4 import android.os.Bundle; 5 import a
阅读全文
posted @ 2021-10-02 17:31 EndlessShw
阅读(62)
评论(0)
推荐(0)
编辑
2021年9月30日
第五章 Activity中的onResume和onPause方法 2.9.3
摘要: 1. FirstActivity: 1 package com.example.activitycircledemo; 2 3 import android.app.Activity; 4 import android.content.Intent; 5 import android.os.Bund
阅读全文
posted @ 2021-09-30 17:08 EndlessShw
阅读(251)
评论(0)
推荐(0)
编辑
2021年9月29日
第五章 Activity的生命周期onStart和onStop 2.9.2
摘要: 1. MainActivity: 1 package com.example.activitycircledemo; 2 3 import android.app.Activity; 4 import android.os.Bundle; 5 import android.util.Log; 6 i
阅读全文
posted @ 2021-09-29 19:15 EndlessShw
阅读(60)
评论(0)
推荐(0)
编辑
第五章 Activity的生命周期onCreate和onDestory 2.9
摘要: 1. MainActivity: 1 package com.example.activitycircledemo; 2 3 import androidx.annotation.Nullable; 4 import androidx.appcompat.app.AppCompatActivity;
阅读全文
posted @ 2021-09-29 15:40 EndlessShw
阅读(53)
评论(0)
推荐(0)
编辑
2021年9月25日
第五章 模拟跳转充值界面以及requestCode和resultCode的解释 2.8
摘要: 1. requestCode和resultCode requestCode:由跳转前的界面定义,通过startActivityForResult()来将定义的intent(同时也代表着要跳转的界面)与requestCode绑定。接着复写onActivityResult(int requestCode
阅读全文
posted @ 2021-09-25 18:48 EndlessShw
阅读(648)
评论(0)
推荐(0)
编辑
2021年9月23日
第五章 模拟跳转短信发送 2.8
摘要: 1. MainActivity: 1 /** 2 * 用隐式意图跳转 3 * @param view 4 */ 5 public void sendMsg(View view){ 6 Intent intent= new Intent(); 7 intent.setAction("com.examp
阅读全文
posted @ 2021-09-23 17:51 EndlessShw
阅读(53)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
···
10
下一页