随笔分类 -  安卓

灵变
安卓获取手机内存,SD卡内存使用状态的方法
摘要:内存状态获取类:public class MemoryUtils { public static final int TotalMemory = 0; public static final int AvailableMemory = 1; public static final int freeM... 阅读全文
posted @ 2015-07-12 03:32 WeiLight 阅读(238) 评论(0) 推荐(0)
安卓读写文件和路劲注意事项
摘要:写文件:private void writeToLocal(String filesString,String content,int mode) { try { FileOutputStream fisStream=openFileOutput(filesString,mode); fi... 阅读全文
posted @ 2015-07-12 03:28 WeiLight 阅读(265) 评论(0) 推荐(0)
安卓打电话和发短信
摘要:拨打电话:权限:EditText text=(EditText)findViewById(R.id.txtphone);String phone=text.getText().toString();Intent intent=new Intent();intent.setAction(Intent.... 阅读全文
posted @ 2015-07-09 11:51 WeiLight 阅读(153) 评论(0) 推荐(0)