![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
蕜傷悄嘫謝幕
爱搞一些小程序
展开
-
类似于qq登录时账号密码的保存
if (cb.isChecked()) { writeFile(file, name, password,"true"); }else{ writeFile(file, "", "","false"); } Toast.makeText(this, "登录成功", Toast.LENGTH_SHORT).show();原创 2016-03-02 23:04:23 · 1059 阅读 · 0 评论 -
打电话和发送短信(带有发送是否成功,和对方是否接收成功)
this.registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context _context, Intent _intent) { switch (getResultCode()) { case Activity.RESULT_OK: Toast.makeText(MainActivity.this, "短信发送成功", Toast.LENGTH_SHORT原创 2016-03-01 22:54:03 · 1119 阅读 · 0 评论