简
4年前
深度解读ArrayMap优势与缺陷
ArrayMap在内存使用上较HashMap更有优势,在Android开发中广为使用的基础API,也是大家所推荐的方法,但你是否想过Google如此重要的基础类存在缺陷?一、引言在移动设备端内存资源很珍贵,HashMap为实现快速查询带来了很大内存的浪费。为此,2013年5月20日Google工程师DianneHackborn在Android
Stella981 Stella981
3年前
Android上可执行ELF文件中的段不能有基址
Android上可执行ELF文件中的段不能有基址@(Android研究)\android\\TOC\场景我使用AndroidNDK的编译工具交叉编译qemu项目(编译可在Android上运行的qemuusermode(http://my.os
Stella981 Stella981
3年前
Android 复选框 以及回显
activity\_main.xml<?xmlversion"1.0"encoding"utf8"?<LinearLayoutxmlns:android"http://schemas.android.com/apk/res/android"xmlns:app"http:/
Wesley13 Wesley13
3年前
UltimateAndroid快速开发框架教程
UltimateAndroid是一套集成了许多现有优秀的Android开源类库并将之组合成一个整体的Android快速开发框架。框架目前主要包含的功能有ViewInjection,ORM,异步网络请求和图片加载,自动化脚本测试,磁盘LRU等功能.同时提供了类似于TripleDes、Webview快速设置、Md5处理、String处理,Htt
Stella981 Stella981
3年前
Flutter不完全安裝指南(AndroidStudio集成)
Flutter是谷歌的移动UI框架,可以快速在iOS和Android上构建高质量的原生用户界面。真心無力吐槽這些所谓的中文站以及社区的文档,整理一下安装流程吧。本人是android开发,基于此基础上(androidstudio3.3SDK为28)1.首先下载flutterSdk(https://www.oschina.net/action/G
Stella981 Stella981
3年前
Kotlin与ButterKinfe的混合使用
在学习Kotlin开发Android应用的过程中,势必要配合很多Android的开源框架一起使用,而ButterKnife是其中可能会经常用到的一个框架。但是如果在Kotlin中直接使用ButterKnife的注解方式的话,会出现空指针的异常,导致绑定失败。那么要如何才能在Kotlin的环境中使用ButterKinfe呢?不要慌,ButterKn
Stella981 Stella981
3年前
Android Intent隐式意图显示菜单
package com.example.mytest;import android.os.Bundle;import android.app.Activity;import android.view.Menu;public class MainActivity extends Activity { @
Stella981 Stella981
3年前
Android SharedPreferences 数据升级
在应用开发时,可能随着需求或者其他因素,原设计的SharedPreferences的值需要更改,这时我们该怎么做呢?下面来看一个例子,这是我们第一版开发的,package com.laomou.demo;import android.content.SharedPreferences;public c