private void button1_Click(object sender, EventArgs
e) { //OpenFileDialog dlg = new OpenFileDialog(); OpenFileDialog fileDialog1 =
new OpenFileDialog....
分类:
其他好文 时间:
2014-05-08 13:27:26
阅读次数:
229
你的电脑需要和手机在同一个局域网内并且这个手机要通过wifii已正常连接.1、打开cmd,输入adb shell2、获取权限# su3、设置远程调试#
setprop service.adb.tcp.port 55554、重启adbd服务# stop adbd; start adbd5、重新打开一个...
分类:
移动开发 时间:
2014-05-08 13:17:56
阅读次数:
365
总是忘记, 备份一下,方便下次用.第一种:File directory = new
File("");//参数为空String courseFile = directory.getCanonicalPath()
;System.out.println(courseFile);结果:C:\Docume...
分类:
编程语言 时间:
2014-05-08 12:43:50
阅读次数:
343
每天积累一点点,一、获取获取根目录的URL的方法#region 获取本页根目录URL
public static string GetRootURI() { string AppPath = ""; HttpContext HttpCurrent
= HttpCont...
分类:
Web程序 时间:
2014-05-08 12:26:13
阅读次数:
346
Synchronizationsynchronized语法可以获取锁,
当其他线程持有锁的时候该线程想要获取锁将会进入等待状态, 直到没有其他线程持有该锁显示使用 synchronized (lock)
将会获取lock对象的锁没有显示指定锁对象将会获取当前类的class对象的锁Wait and N...
分类:
编程语言 时间:
2014-05-08 12:20:52
阅读次数:
327
一、获取API Key1、先获取SHA-1
fingerprint数字证书是有两种,一种是debug,还有release。前者只能用于测试;后者才可以用于实际产品。debug:在命令行中输入命令:keytool
-list -v -keystore "C:\Users\your_user_name\...
分类:
移动开发 时间:
2014-05-08 12:08:40
阅读次数:
521
C#获取当前路径的方法如下:1.
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName-获取模块的完整路径。2.
System.Environment.CurrentDirectory-获取和设置当前目录(该进程从中启动...
分类:
其他好文 时间:
2014-05-08 11:52:05
阅读次数:
240
上代码String sql = "BEGIN insert into
itil_task_plan (PLAN_CODE) values (?) returning id into ?;
END;";CallableStatement ps = conn.prepareCall(sql);ps......
分类:
数据库 时间:
2014-05-08 11:48:52
阅读次数:
518
从意图返回结果
startActivity()方法调用另一个活动,但并没有返回结果给当前活动。此时如想从一个活动中回传数据,就要使用startActivityForResult()方法。
点此获取完整代码~
...
分类:
移动开发 时间:
2014-05-07 23:21:36
阅读次数:
430
详情请参考官网:http://www.erlang.org/doc/reference_manual/records.htmlhttp://www.erlang.org/doc/programming_examples/records.html1.
record本质上是tuple.2.获取recor...
分类:
其他好文 时间:
2014-05-07 21:17:40
阅读次数:
362