上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 66 下一页
摘要: 1:UploadingService.javapackage com.example.service;import com.example.broadcast.AlarmReceiver;import com.example.utils.DateUtil;import android.app.Act... 阅读全文
posted @ 2014-11-08 15:57 yshy 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 之前使用时没有出现任何问题的,我把D:\IDE\ADT\adt-bundle-windows-x86_64-20140321\eclipse目录下面的eclipse.exe重名名为adt.exe并设置了环境变量(Path),然后通过输入adt命令运行eclipse,允许Java没有问题,但是新建An... 阅读全文
posted @ 2014-11-07 22:33 yshy 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 对于要进行序列化操作的对象需要添加[Serializable]声明,例如:namespace filetest{ [Serializable] //必须添加序列化特性 class User { public String name; public int... 阅读全文
posted @ 2014-11-04 21:53 yshy 阅读(196) 评论(0) 推荐(0) 编辑
摘要: namespace filetest{ class FileUtil { public static void WriteFile(string file) { using (FileStream fs = new FileStream(... 阅读全文
posted @ 2014-11-04 21:09 yshy 阅读(621) 评论(0) 推荐(0) 编辑
摘要: private void btnOpen_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { ... 阅读全文
posted @ 2014-11-04 20:53 yshy 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 应用场景:在主Activity中,采用InstrumentedActivity侧边栏的方式,侧边栏的每一项对应一个Fragment,要实现不同的Fragment动态显示与隐藏ActionBar Menu。处理思路:在onCreateOptionsMenu()方法中,根据标识flag动态设置MenuI... 阅读全文
posted @ 2014-11-04 16:16 yshy 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 1:对象初始化操作C#3.0中引入了新的对象初始化方法,之前的方式:User user = new User();user.name = "test";user.age = 10;现在的方式:User user = new User(){name="test",age=10};变得更简洁,可读性更好... 阅读全文
posted @ 2014-11-01 12:23 yshy 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1:MainActivity.javapackage com.example.notificationtest;import android.app.Activity;import android.app.Notification;import android.app.NotificationMan... 阅读全文
posted @ 2014-10-25 11:15 yshy 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1:Contact.javapackage com.example.bean;public class Contact { private String name; private String phoneNumber; public String getName() { ... 阅读全文
posted @ 2014-10-25 09:56 yshy 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 使用nm-tool命令在最底下有一行: IPv4 Settings: Address: 192.168.0.166 Prefix: 24 (255.255.255.0) Gateway: 192.168.0.1 DNS: ... 阅读全文
posted @ 2014-10-22 08:38 yshy 阅读(1717) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 66 下一页