![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 72
tanglie1234
这个作者很懒,什么都没留下…
展开
-
Android中蓝牙通信的实现
0. 在Manifest文件中注册Service和蓝牙权限略。1. 创建Service的子类public class BleService extends Service{ public BleService() { mHandler = new IncomingHandler(this); } @Override public IBinder onBin原创 2015-06-18 21:17:28 · 1347 阅读 · 0 评论 -
《Android面试宝典》学习笔记(第三章:组件)
Android支持哪些方式显示富文本信息?1,利用富文本标签,类似于html标签,如,,等,不过不能直接作为textview.settext的参数值,而应该将这些文本转换为charsequence对象。如果想要显示图片的时候,还需要实现imagegetter接口2,重写ondraw3,利用webview组件显示html页面4,textview中显示图片还可以使用imagespan对象,该对象用来封原创 2015-06-04 23:44:50 · 374 阅读 · 0 评论 -
《Android面试宝典》学习笔记(第四章:对话框、信息提示和菜单)
Android的标准对话框最多可以有几个按钮?显示对话框按钮的方法是什么?3个。new AlertDialog.Builder(this).setTitle("我的对话框").setPositiveButton("关闭", new DialogInterface.onClickListener(){ public void onClick(DialogInterface d原创 2015-06-04 23:44:53 · 361 阅读 · 0 评论 -
Developing for Android VI The Rules: Storage
This section covers many practices that are specific to how data is stored and accessed on the platform.Avoid Hard-coded File PathsConstruct paths, instead, from the Context or the Environment转载 2015-06-07 21:44:57 · 389 阅读 · 0 评论 -
Developing for Android VII The Rules: Framework
This section details important details related to Android framework APIs and usage patterns.Avoid Architecting Around Application ComponentsApplication components (activities, services, provid转载 2015-06-07 21:45:35 · 370 阅读 · 0 评论 -
Developing for Android, III: The Rules: Performance
On Android, performance and memory are closely intertwined, since the memory footprint of the overall system can affect the performance of all of the processes, and since the garbage collector can hav转载 2015-06-07 19:26:59 · 371 阅读 · 0 评论 -
Developing for Android, IV: The Rules: Networking
This section covers practices around network behavior of applications.Don’t Over-SyncSending data to and from the cloud is one of the largest consumers of battery. The problem is not that any转载 2015-06-07 19:37:51 · 337 阅读 · 0 评论 -
Developing for Android V: The Rules: Language and Libraries
This section covers practices around the Java programming language and core libraries.Use Android-Appropriate Data StructuresTraditional collections classes tend to be sub-optimal on Android d转载 2015-06-07 20:46:44 · 469 阅读 · 0 评论 -
Android应用的打包
为什么Android应用需要打包?Android系统要求具有其开发者签名的私人密钥的应用程序才能够被安装。因此,打包之后才能发布该应用。打包的步骤?1. 选中项目–>”Android Tools”–>”Export Signed Application Package…”2. 点击”next” 其中,Location为证书库将要存放的位置,Password是证书库的密码。3. 选择”Create原创 2015-06-28 19:41:46 · 376 阅读 · 0 评论 -
《Android best practices》笔记
好久没更新了。最近忙成狗。刚才试图登陆的时候居然死活登录不上去,最后才发现原来我是用QQ绑定登陆的,长久不登陆竟然忘了。这一点以后一定要记住。以下是我前几天阅读《Android best practices》时所做的笔记。JNI和信息安全那两章我不感兴趣,所以没看。http://pan.baidu.com/s/1dDyeSdN原创 2015-08-29 00:19:53 · 384 阅读 · 0 评论 -
《Android开发技术周报》笔记
#Issue48bug reporthttps://github.com/mattprecious/telescopehttps://github.com/bugtags/Bugtags-AndroidExpandableLayouthttps://github.com/AAkira/ExpandableLayoutFrenchToast自定义Toast转载 2015-11-13 11:08:17 · 1419 阅读 · 0 评论 -
《Android开发技术周报》笔记
Issue #53Android无需权限显示悬浮窗:将悬浮窗设置为TYPE_TOAST。http://www.jianshu.com/p/634cd056b90c具体实现:https://github.com/liaohuqiu/android-UCToastAndroid 高清加载巨图方案:使用BitmapRegionDecoder。http://blog.c转载 2015-10-31 20:09:35 · 602 阅读 · 0 评论 -
《Android面试宝典》学习笔记(第二章:布局)
如何让三个按钮以水平方向分别左对齐、居中对齐和右对齐?android:layout_gravity="left"android:layout_gravity="center_horizonal"android:layout_gravity="right"如何获得组件的宽度和高度?先调用view.measure方法测量组件的宽度和高度,再调用view.getMeasuredWidth和view.ge原创 2015-06-04 23:44:47 · 358 阅读 · 0 评论 -
Android development guide 笔记
在原pdf的基础上划了重点。下载地址:http://pan.baidu.com/s/1eQ4Ei6Q原创 2015-06-04 23:44:23 · 236 阅读 · 0 评论 -
Developing for Android, II The Rules: Memory
Developing for Android, IIThe Rules: Memory[Previous Chapter: Understanding the Mobile Context]The use of memory in an application can be the single-most important determinant of how转载 2015-06-05 00:17:34 · 367 阅读 · 0 评论 -
Android ADB的使用
ADB(Android debug bridge)可用于管理设备的状态。它的主要功能有:更新设备或手机模拟器中的代码,如应用或Android系统升级;在设备上运行Shell命令;管理设备或手机模拟器上的预定端口;在设备或手机模拟器上复制或粘贴文件。 什么是Shell? A shell is a user interface for access to an operating syste原创 2015-06-21 21:15:52 · 347 阅读 · 0 评论 -
Android内核剖析:Binder
什么是Binder?Base class for a remotable object, the core part of a lightweight remote procedure call mechanism defined by IBinder. This class is an implementation of IBinder that provides the standard sup原创 2015-06-22 21:34:10 · 518 阅读 · 0 评论 -
疯狂android讲义笔记
在原pdf的基础上划了重点。下载地址:http://pan.baidu.com/s/1mgh1vew原创 2015-06-04 23:44:26 · 325 阅读 · 0 评论 -
《Android面试宝典》学习笔记(第一章:android入门)
MVC框架及其与android的联系:MVC全名是Model View Controller,是模型(model)-视图(view)-控制器(controller)的缩写。其中,model用于存储和控制数据,view用于信息的展示,controller用于接收输入,并将其转换为发给model的指令。如下图:650) this.width=650;" src="http://upload.wikim原创 2015-06-04 23:44:45 · 381 阅读 · 0 评论 -
《Android面试宝典》学习笔记(第五章:文件存储)
Android SDK 支持哪些文件存储技术?SharedPreferences、流文件存储、XML半结构化存储、JSON存储、数据库、第三方面向对象数据库。如何使用ShardPreferences存取key-value类型的数据?//实例化SharedPreferences对象(第一步) SharedPreferences mySharedPreferences= getSharedPrefe原创 2015-06-04 23:44:55 · 381 阅读 · 0 评论 -
《Android面试宝典》学习笔记(第七章:网络和加密)
创建Socket对象至少需要指定哪些信息?IP和端口号:Socket socket = new Socket("www.microsoft.com",80); socket连接服务器及与服务器端交互的代码:http://www.cnblogs.com/linzheng/archive/2011/01/23/1942328.html 哪些情况下socket会被关闭?1:Socket.close方法;原创 2015-06-04 23:45:01 · 482 阅读 · 0 评论 -
Android 网络通信框架Volley的解析
在2013年Google I/O大会上,Android开发团队公布了一个新的网络通信框架:Volley。它适合处理通信频繁的网络操作,但对于每一次通信的数据量则有较为苛刻的限制。本文将介绍该通信框架的用法(包括使用现成和自定义的Request),并从源码的角度探究其工作机制。目前,Android系统中用于实现HTTP通信的方式主要有HttpURLConnection和HttpClient两个类[1原创 2015-06-04 23:44:15 · 489 阅读 · 0 评论 -
android内存管理工具MAT的使用
http://blog.csdn.net/lg707415323/article/details/7749125转载 2015-06-04 23:44:18 · 319 阅读 · 0 评论 -
Android 编程下的 TraceView 简介及其案例实战
http://www.cnblogs.com/sunzn/p/3192231.html转载 2015-06-04 23:44:20 · 230 阅读 · 0 评论 -
Developing for Android, I: Understanding the Mobile Context
ContextorWhy These Rules MatterIt is important to understand the context in which these best practices are necessary. In particular, it is critical to understand that mobile devices转载 2015-06-04 23:48:52 · 485 阅读 · 0 评论 -
《Android面试宝典》学习笔记(第六章:数据库)
如何将table1的内容复制到table2上?create table table2 as select * from table1;创建视图的SQL语句?create view if not exists view1 as select * from table1;abs(X)的返回值有几种情况?X为正值和0:返回X;X为负值:返回-X;X为NULL,返回NULL;不是数值:返回0;超出范围:溢原创 2015-06-04 23:44:58 · 288 阅读 · 0 评论 -
Android开发技术周报 Issue61笔记
15个必知的Android开发者选项其中有用的有:Stay awake:充电时保持屏幕唤醒Allow mock locationsShow layout bounds:显示布局格子(每当有PM过来问我人家这个界面是Native实现的,还是类似 Hybrid方案的Web实现时,我就让他开启这个功能,WebView是一个整体的格子,Native View是各种小格 子组合而成)原创 2015-12-26 21:28:52 · 496 阅读 · 0 评论