08 2018 档案

摘要:private FileOutputStream fileOutputStream; private static final String FILENAME = "Hello"; File file = new File(Environment.getExternalStorageDirector 阅读全文

posted @ 2018-08-29 11:27 endian11 阅读(557) 评论(0) 推荐(0)

摘要:SharedPreference文件 内部存储 openFileOutput,将返回一个OutputStream 使用Write写入到文件 使用close关闭流 保存缓存文件 如果你想要缓存一些文件,而不是永久地存储,应该使用rgetCacheDir(path:/data/data/com.safe 阅读全文

posted @ 2018-08-28 13:07 endian11 阅读(132) 评论(0) 推荐(0)

摘要:新建一个类(ex:UserDBHelper)继承SQLiteOpenHelper 构造函数里面建数据库 public UserDBHelper(Context context, int version) { super(context, DB_NAME,null,version); } onCrea 阅读全文

posted @ 2018-08-27 10:38 endian11 阅读(155) 评论(0) 推荐(0)

摘要:package com.safeluck.floatwindow; import android.app.Service; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.PixelFormat; impor... 阅读全文

posted @ 2018-08-24 14:49 endian11 阅读(521) 评论(0) 推荐(0)

摘要:在应用中集成Stetho Stetho GitHub地址https://github.com/facebook/stetho 新建Application类 public class MyApplication extends Application { @Override public void o 阅读全文

posted @ 2018-08-24 10:36 endian11 阅读(191) 评论(0) 推荐(0)

摘要:如果您希望向现有项目添加原生代码,请执行以下步骤: 如果您已经拥有原生代码或想要导入预构建的原生库,则可以跳过此步骤。 如果您的现有原生库已经拥有 CMakeLists.txt 构建脚本或者使用 ndk-build 并包含 Android.mk 构建脚本,则可以跳过此步骤。 配置完项目后,您可以使用 阅读全文

posted @ 2018-08-15 16:15 endian11 阅读(338) 评论(0) 推荐(0)

该文被密码保护。

posted @ 2018-08-13 14:11 endian11 阅读(1) 评论(0) 推荐(0)

导航