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 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模拟器启动慢的加速技巧

在Android项目开发过程中,如果你没有一个可用的Android系统的手机,那么你肯定会有这么一个记忆。就是android的模拟器启动的实在太慢了, 慢的简直就是无法接受。最近看到一个这么技巧,试了一下好像可行,因此想在这里跟大家分享下,希望能帮助大家。 阅读全文...
了解android退出应用程序的原理
Android编程时遇到的一个奇怪的现象是,android没有“用户已关闭应用程序“这个事件。一个应用活动往往只是退出屏幕而仍然运行于后台,只要Android系统缺乏资源,系统可能随时会停止他们,即使应用程序的另一个活动仍然在前台运行。 阅读全文...
多个Activity共享一个变量:Application context
多个Activity中经常使用同一变量时,使用Bundle则比较麻烦,每次调用Activity都需要设置一次。 如想在整个应用中使用,在java中一般是使用静态变量,而在android中有个更优雅的方式是使用Application context。 阅读全文...


