背景一些东西可以存在自己定义的文件里面,这个文件可以在手机中,可以在SD卡中,在这里就主要介绍一下在SD卡中的存储和读取吧~代码public class
save { public static void savefile2card(Context context,String usernam...
分类:
移动开发 时间:
2014-06-16 10:45:43
阅读次数:
223
1. 创建实体类 -> 使用 ef Power Tool2. 创建连接 -> 查询数据
-> 操作using (TestContext context = new TestContext()) { foreach (Model m in
conte...
分类:
其他好文 时间:
2014-06-16 10:33:19
阅读次数:
353
1. VS2010 创建 实体数据模型
报错如图,目前还未找到解决方案,可能是某个配置有问题,替换方案,使用 ef Power Tool2. 未处理NotSupportedExceptionList
modelList = context.WaitingReplies.Where(w => w.Ag...
分类:
其他好文 时间:
2014-06-16 09:31:52
阅读次数:
175
Android开发中,通常会使用BroadcastReceiver来接受Push推送消息。当APP收到推送通知时,我们需要在通知的点击事件中加入自己的逻辑。比如跳转到MainActivity。比如下面的代码(注意红色部分):public void onReceive(Context context, Intent intent) {
Bundle bundle = intent.g...
分类:
移动开发 时间:
2014-06-15 19:54:15
阅读次数:
251
自定义TextView 调用ttf格式字体
将ttf格式文件存放在assets/fonts/下
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* 修改字体
*...
分类:
其他好文 时间:
2014-06-15 18:57:33
阅读次数:
177
///// 第一步:获取NotificationManager
NotificationManager nm = (NotificationManager)
getSystemService(Context.NOTIFICATION_SERVICE);
///// 第二步:定义Notification
Intent intent = new Intent(this, Oth...
分类:
移动开发 时间:
2014-06-15 16:16:47
阅读次数:
182
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import android.content.Context;
import android.o...
分类:
其他好文 时间:
2014-06-14 07:39:11
阅读次数:
309
一 初始化手机开机初始化调用GSMPhone 构造函数。GSMPhone (Context
context, CommandsInterface ci, PhoneNotifier notifier, boolean unitTestMode)创建
mSMS = new GsmSMSDispatch...
分类:
移动开发 时间:
2014-06-13 20:04:05
阅读次数:
407