Android
奋斗中的码奴
软件设计是我最喜欢做的一件事,庆幸的是,毕业之后,能做自己喜欢的工作,嗨皮的不能讲。
展开
-
android include使用
android 中include的使用原创 2015-03-23 14:53:49 · 388 阅读 · 0 评论 -
Please ensure that adb is correctly located at 解决
遇到问题描述:运行android程序控制台输出 [2013-10-13 16:45:50 - ] The connection to adb is down, and a severe error has occured. [2013-10-1316:45:50 - ] You must restart adb and Eclipse. [2013-10-转载 2015-03-23 19:54:40 · 309 阅读 · 0 评论 -
Android 开发笔记——通过 Intent 传递类对象
http://www.cnblogs.com/shaocm/archive/2013/01/08/2851248.htmlAndroid中Intent传递类对象提供了两种方式一种是 通过实现Serializable接口传递对象,一种是通过实现Parcelable接口传递对象。要求被传递的对象必须实现上述2种接口中的一种才能通过Intent直接传递。Intent中传递这2转载 2015-07-27 16:50:56 · 248 阅读 · 0 评论 -
Android:利用SharedPreferences实现自动登录
主要代码:public class LoginActivity extends Activity { private EditText username; private EditText userpassword; private CheckBox remember; private CheckBox autologin; private Butt转载 2015-08-07 15:12:14 · 490 阅读 · 0 评论 -
android数据持久化 SharedPreferences
SharedPreferences sharedPreferences= getSharedPreferences("test", Activity.MODE_PRIVATE); // 使用getString方法获得value,注意第2个参数是value的默认值 String name =sharedPreferences.getString("name", ""); String hab原创 2015-08-07 14:54:46 · 263 阅读 · 0 评论 -
Android 实现多个输入框的对话框
需要一个布局 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical原创 2015-08-07 14:16:51 · 5184 阅读 · 0 评论