如果用xe6自带的LocationSensor控件,默认优先使用网络位置,为了直接使用GPS位置,在网上搜到了以下代码,经实测证实是可用的。uses
Androidapi.JNI.Location, Androidapi.JNIBridge, Androidapi.JNI.JavaTypes, An...
分类:
编程语言 时间:
2014-04-30 21:22:24
阅读次数:
1004
There are many examples out there demonstrating
how AngularJS and Web API can be used together but almost all of them are in
MVC, so I tried to implem...
分类:
移动开发 时间:
2014-04-30 21:19:35
阅读次数:
625
理论上支持的数据库NHibernate is primarily tested on
Microsoft SQL Server 2000. It is also known to work on these databases:Microsoft
SQL Server 2005/2000Oracle...
分类:
数据库 时间:
2014-04-30 20:52:25
阅读次数:
842
2014-04-29 13:19:09先贴出打开远程(Linux)目录所需的配置文件{ //
The tab key will cycle through the settings when first created // Visit
http://wbond.net/sublime_...
分类:
其他好文 时间:
2014-04-30 20:49:48
阅读次数:
657
首先要把andengine.jar复制到libs文件夹里01package
com.hu.anden;0203import org.anddev.andengine.engine.Engine;04import
org.anddev.andengine.engine.camera.Camera;05...
分类:
移动开发 时间:
2014-04-30 20:37:13
阅读次数:
527
package mars.listview;import
java.util.ArrayList;import java.util.HashMap;import
android.app.ListActivity;import android.os.Bundle;import android.view...
分类:
其他好文 时间:
2014-04-30 20:23:44
阅读次数:
474
首先写个php脚本输出json,注意,还要输出回车,方便android的bufferreader读取一行bookid
= $id; $this->bookname = $name; $this->bookinfo = $info; } ...
分类:
移动开发 时间:
2014-04-30 20:19:42
阅读次数:
684
实现文件下载有很多方式:1、后台读取文件,返回io流;2、配置tomcat,用户直接连到文件系统中的文件,进行下载,如下配置:在tomcat6版本中:1、【官方文档】本人不推荐。在tomcat\conf下server.xml中找到在其中添加:这的docBase要改成你的项目目录。2、
不修改serv...
分类:
其他好文 时间:
2014-04-30 20:18:15
阅读次数:
475
我们经常需要判断网络状态的变化,如有无网络,所以需要监听网络状态的变化,比如网络断开,网络连接给予友好提示。如何监听网络状态的变化呢,最近工作中需要用到这个,于是就用广播机制来实现了网络状态的监听。使用广播机制来监听网络状态主要涉及到以下几点:1.需要自己编写个网络广播接收器,该接收器继承Broad...
分类:
移动开发 时间:
2014-04-30 19:38:53
阅读次数:
487
Vim陡峭的学习曲线一直都被很多人诟病,个人认为比较好的学习方法是通过不断地在使用中积累强化自己的Vim使用技巧。经常去使用Vim,遇到不懂得快捷键就去查询,比如刚下载的Vim,什么都没有配置,自己在写程序的过程中需要自动补全括号,那就去查找自动补全的配置方法,例如:1
:inoremap ( .....
分类:
其他好文 时间:
2014-04-30 19:26:39
阅读次数:
438