V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  liuymf  ›  全部回复第 1 页 / 共 24 页
回复总数  476
1  2  3  4  5  6  7  8  9  10 ... 24  
重在参与
28.9w
65 天前
回复了 cdoco 创建的主题 Markdown Markdown 语法详解
```java
public class Example {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
```
65 天前
回复了 rainABC 创建的主题 程序员 九彩固件-我被当猴耍了
```java

public void onReceive(Context context, Intent intent) {
if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())
|| "android.intent.action.MEDIA_MOUNTED".equals(intent.getAction())
|| "android.intent.action.MEDIA_UNMOUNTED".equals(intent.getAction())
|| "android.intent.action.MEDIA_EJECT".equals(intent.getAction())
|| "android.intent.action.MEDIA_REMOVED".equals(intent.getAction())
|| "android.intent.action.LOCKED_BOOT_COMPLETED".equals(intent.getAction())
|| "android.intent.action.BOOT_PROGRESS".equals(intent.getAction())
|| "android.intent.action.REBOOT".equals(intent.getAction())) {

SharedPreferences sharedPreferences = context.getSharedPreferences("boot_count", 0);
int i = sharedPreferences.getInt("count", 0) + 1;
SharedPreferences.Editor edit = sharedPreferences.edit();
edit.putInt("counta", i);
edit.apply();
// 400 次啊,你妹的,你耍我。
if (i < 400) {
return;
}

Intent intent2 = new Intent(context, MainActivity.class);
intent2.addFlags(268435456);
context.startActivity(intent2);
}
}


```
分子
164 天前
回复了 gordon96 创建的主题 生活 感觉心好累
上班十一年了,心真的好累。闲起来了还好,停下来真的会垮掉…
分母+1
240 天前
回复了 sommer 创建的主题 推广 「夜晚限定抽奖」评论送 B 站年度大会员 X 1
分子+1 分母+1
241 天前
回复了 o0 创建的主题 优惠信息 [抽奖] 踩楼抽奖送 OneKey Mini
分子+1 分母+1
1  2  3  4  5  6  7  8  9  10 ... 24  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3544 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 41ms · UTC 04:53 · PVG 12:53 · LAX 21:53 · JFK 00:53
Developed with CodeLauncher
♥ Do have faith in what you're doing.