上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: 获取Android设备挂载的所有存储器public class StorageInfo{ public String path; public String state; public boolean isRemoveable;//判断存储器是否可以移除 public Sto... 阅读全文
posted @ 2015-08-25 19:05 Thereisnospon 阅读(294) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/xiongbo/archive/2011/08/15/2098130.html一、Android编码规范1.java代码中不出现中文,最多注释中可以出现中文2.局部变量命名、静态成员变量命名只能包含字母,单词首字母出第一个外,都为大写,其他字母都为小写3... 阅读全文
posted @ 2015-08-22 08:24 Thereisnospon 阅读(261) 评论(0) 推荐(0) 编辑
摘要: public class ImagActivity extends Activity { AssetManager assetManager=null; String []dec; int currentImg=0; @Override protected void o... 阅读全文
posted @ 2015-08-21 11:52 Thereisnospon 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 在 res/values目录下的attrs.xml中定义资源 定义一个自定义组件public class MyButton extends Button{ int duration; public MyButton(Context context,... 阅读全文
posted @ 2015-08-20 15:26 Thereisnospon 阅读(141) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceS... 阅读全文
posted @ 2015-08-20 13:37 Thereisnospon 阅读(211) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceS... 阅读全文
posted @ 2015-08-20 10:51 Thereisnospon 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 来源于网络云课堂中Android开发工程师课程,1980¥价格让人望而却步。只能看看它的课程安排了,不过至少也有了学习的方向=_=Android应用开发实战章节发布时间一.Android开发简介1.平台介绍第一周:9月1日2.Android系统架构3.发展历史4.开发特点5.搭建开发环境二.Andr... 阅读全文
posted @ 2015-08-20 08:27 Thereisnospon 阅读(216) 评论(0) 推荐(0) 编辑
摘要: public class MultiComponentActivity extends Activity { NotificationManager notificationManager; private final int NOTIFICATION_ID=0x123; @O... 阅读全文
posted @ 2015-08-19 19:57 Thereisnospon 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 布局文件就不给出了=_=public class MyFragment extends Fragment { public static String s1="Yeah";//用于保存getArguments()获得的参数 @Override public void onCreat... 阅读全文
posted @ 2015-08-19 19:04 Thereisnospon 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 静态加载MyFragment.javapublic class MyFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, ... 阅读全文
posted @ 2015-08-19 14:29 Thereisnospon 阅读(127) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页