- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 android请求获取图片的方法
public static Bitmap getUrlBitmap(String path) { Bitmap bm = null; try { URL url = new URL(path);//创建一个URL对象,其参数为网络图片的链接地址 //使用一个URL对象开启一个链接 HttpURLConnection con = (HttpURLConnection) url.openConnection(); //设置相关参数.
2021-08-10 17:25:08
258
原创 android自动版本检测升级APK方法,兼容android 7.0以上权限限制调用
private void permissiongen() { //处理需要动态申请的权限 PermissionGen.with(MainActivity.this) .addRequestCode(200) .permissions(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE) .reques.
2021-06-19 17:03:51
304
2
转载 android中edittext输入,输入中,输入后事件
转载https://blog.csdn.net/zhoujie_xiaobai/article/details/84726760editText.addTextChangedListener(textcarId);TextWatcher textWatcher = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) {...
2021-04-20 12:09:53
267
转载 android返回上一界面时更新上一界面信息
转至https://blog.csdn.net/weixin_42996187/article/details/112363126有些界面需要返回上一个界面刷刷新数据,再此做个记录.首先startActivityForResult进行Actvity进行跳转,这是跳转前的界面.// 通过 startActivityForResult() 启动 ActivityB Intent intent = new Intent(getActivity(), NoticeActivity.cl
2021-04-19 23:44:22
414
原创 android解除网络限制
解除对https访问限制,4.0后限制了必须用https访问AndroidManifest.xml文件的application增加android:usesCleartextTraffic="true"主线程下限定不允许直接访问网络,需用thread限制解除@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon
2021-04-08 16:26:02
1000
原创 android重置标题栏
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);//预先设置允许改变的窗口状态,需在 setContentView 之前调用,否则设置标题时抛运行时错误。requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);setContentView(R.layout.actmain);//标题区域可设置为 layout ,如此可以有.
2021-04-06 22:09:23
85
原创 JAVA ZIP解压缩&androidX与C# ICSharpCode.SharpZipLib.dll交互
JAVA解压/** * 解压缩 * * @param str * @return * @throws IOException */public static String zipUncompress(String str) { if (str == null || str.length() == 0) { return ""; } try { ByteArrayOutputStream out = new ByteArrayOutp
2021-04-06 17:45:33
114
原创 JAVA ZIP压缩&androidX与C# ICSharpCode.SharpZipLib.dll交互
JAVA ZIP压缩函数封装/** * 压缩 * * @param str * @return * @throws IOException */public static String zipCompress(String str){ if (str == null || str.length() == 0) { return ""; } ByteArrayOutputStream out = new ByteArrayOutputStream()
2021-04-06 00:00:05
134
硬盘速度检测.rar
2020-05-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人