摘要: public class Fileservice { private Context context; public Fileservice(Context context){ this.context= context; } public void save(String filename,String filecontent) throws Exception{ FileOutputStream outstream = context.openFileOutput(filename, Context.MODE_PR... 阅读全文
posted @ 2012-12-19 17:30 有梦想的小人物 阅读(198) 评论(0) 推荐(0) 编辑
摘要: if (Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) { /* 得到SD卡得路径 */ mRecAudioPath = Environment.getExternalStorageDirectory(); /* 更新所有录音文件到List中 */ musicList(); } else { Toast.make... 阅读全文
posted @ 2012-12-19 15:31 有梦想的小人物 阅读(4594) 评论(0) 推荐(0) 编辑
摘要: 用xml配置文件:<?xml version="1.0" encoding="utf-8"?><menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/item1" android:title="菜单1" /> <item android:id="@+id/item2" android:title="菜单 阅读全文
posted @ 2012-12-19 14:49 有梦想的小人物 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 首先谢谢提供这个代码的同学。之前曾写了一篇随笔,是介绍如何判断应用程序是否是第一次进入使用,结合着这个滑动界面,当用户第一次使用时候就跳转到那个滑动界面,判断不是第一次使用,就直接跳转到主界面。首先用代码自定义一个布局 MyScrollLayoutView Code package com.chen.weixin.test;import android.content.Context;import android.util.AttributeSet;import android.util.Log;import android.view.MotionEvent;import android.vi 阅读全文
posted @ 2012-12-19 09:30 有梦想的小人物 阅读(1706) 评论(0) 推荐(0) 编辑
摘要: android.permission.ACCESS_CHECKIN_PROPERTIES允许读写访问"properties"表在checkin数据库中,改值可以修改上传android.permission.ACCESS_COARSE_LOCATION允许一个程序访问CellID或WiFi热点来获取粗略的位置android.permission.ACCESS_FINE_LOCATION允许一个程序访问精良位置(如GPS)android.permission.ACCESS_LOCATION_EXTRA_COMMANDS允许应用程序访问额外的位置提供命令android.permi 阅读全文
posted @ 2012-12-19 09:14 有梦想的小人物 阅读(425) 评论(0) 推荐(0) 编辑
摘要: Android自定义弹出框 阅读全文
posted @ 2012-12-19 09:11 有梦想的小人物 阅读(2677) 评论(0) 推荐(0) 编辑