当前位置:网站首页>Live app development to determine whether the user is logging in to the platform for the first time
Live app development to determine whether the user is logging in to the platform for the first time
2022-06-11 12:04:00 【Yunbao network technology】
live broadcast app Development , Determine whether the user is the relevant code implemented by the platform for the first time
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
firstRun();
}
private void firstRun() {
SharedPreferences sharedPreferences = getSharedPreferences("FirstRun",0);
Boolean firstrun = sharedPreferences.getBoolean("First",true); if (firstrun){
sharedPreferences.edit().putBoolean("First",false).commit();
Toast.makeText(this," for the first time ",Toast.LENGTH_LONG).show();
}
else {
Toast.makeText(this," Not for the first time ",Toast.LENGTH_LONG).show();
}
}
That's all live broadcast app Development , Determine whether the user is the relevant code implemented by the platform for the first time , More content welcome to follow the article
边栏推荐
- 刷题笔记(十三)--二叉树:前中后序遍历(复习)
- Publish WordPress database cache plug-in: DB cache reloaded 3.1
- 线程五种状态(线程生命周期)
- Splunk Bucket 背后的秘密
- Using fast and slow pointer method to solve the problem of array (C language)
- The no category parents plug-in helps you remove the category prefix from the category link
- WordPress database cache plug-in: DB cache Reloaded
- Interview experience of Xiaomi Android development post~
- 01_ Description object_ Class diagram
- Zhejiang University and Microsoft Asia Research Institute released a new method of video recognition, which can recognize video frame by frame without data marking, or can be used for sign language tr
猜你喜欢

Let you understand selection sorting (C language)

The role of Gerber file in PCB manufacturing

Software project management 7.1 Basic concept of project schedule

深度学习与CV教程(14) | 图像分割 (FCN,SegNet,U-Net,PSPNet,DeepLab,RefineNet)

JS 加法乘法错误解决 number-precision

Notes on topic brushing (XIV) -- binary tree: sequence traversal and DFS, BFS

Let you understand bubble sorting (C language)

2022 | framework for Android interview -- Analysis of the core principles of binder, handler, WMS and AMS!

【LeetCode】1049. Weight of the last stone II (wrong question 2)

Iframe value transfer
随机推荐
Use of Chinese input method input event composition
InputStream读取文件OutputStream创建文件
01_ Description object_ Class diagram
调整数组顺序使奇数位于偶数前面(C语言)
Learning in Bi design 03
Full Permutation (recursion, backtracking)
你管这破玩意儿叫 MQ?
Elk - x-pack set user password
浙大联合微软亚研院发布视频识别新方法,可对视频逐帧识别且无需,数据标记,或可用于手语翻译等
Read geo expression matrix
PS does not display text cursor, text box, and does not highlight after selection
快速搭建ELK7.3
微信web开发者,如何学习web开发
C # convert ofd to PDF
Centos7.x下安装mysql8遇到的问题Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
CVPR 2022 𞓜 text guided entity level image manipulation manitrans
JS merge two objects (interview questions)
ELK - Hearthbeat实现服务监控
Count the top k strings with the most occurrences
Recommend several gravatar avatar caching plug-ins