NFC writing Smartposter to a tag

评论 
smartposter

In this serial post, I will introduce how we can write a smart poster record to a tag using an NFC supported Android devices, and use the class ParsedNdefRecord.java provided by Android API to parse the record. 阅读全文...

NFC writing plain text to a tag

评论 
android-nfe-writing-plain-text-to-a-tag

Android currently supports writing well known of three types of most widely used NdefMessages: Plain text, URI and Smartposter. In this tutorial, I will briefly introduce how we can use NFC supported Android devices writing plain text to a tag. 阅读全文...

Android长度单位px, dp, dip 和 sp的区别

评论 

在Android编程时,使用长度单位时有多种选择,各个单位使用的场景各有不同. 区别在正文介绍。 阅读全文...

Android模拟器启动慢的加速技巧

android-2-3-emulator

在Android项目开发过程中,如果你没有一个可用的Android系统的手机,那么你肯定会有这么一个记忆。就是android的模拟器启动的实在太慢了, 慢的简直就是无法接受。最近看到一个这么技巧,试了一下好像可行,因此想在这里跟大家分享下,希望能帮助大家。 阅读全文...

了解android退出应用程序的原理

评论 

Android编程时遇到的一个奇怪的现象是,android没有“用户已关闭应用程序“这个事件。一个应用活动往往只是退出屏幕而仍然运行于后台,只要Android系统缺乏资源,系统可能随时会停止他们,即使应用程序的另一个活动仍然在前台运行。 阅读全文...

多个Activity共享一个变量:Application context

多个Activity中经常使用同一变量时,使用Bundle则比较麻烦,每次调用Activity都需要设置一次。 如想在整个应用中使用,在java中一般是使用静态变量,而在android中有个更优雅的方式是使用Application context。 阅读全文...

简单Android相对布局实例

评论 
android相对视图

一个简单的Android相对视图实例,附实例代码,你可以尝试在Eclipse运行它,是开始学习Android视图的最好例子。 阅读全文...

简单的Android线性视图实例

评论 

一个简单的Android线性视图实例,附实例代码,你可以尝试在Eclipse运行它,是开始学习Android视图的最好例子。 阅读全文...

Android 视图布局官网实例

view

这是一个“Hello World“式的简单Android 基础教程,让你可以快速开始使用常用的Android布局和部件的教程集合。 阅读全文...