Merge branch 'handsomejun' of https://git.trustie.net/lileilei/group_fighting into handsomejun
# Conflicts: # code/AddressToLatitudeLongitude.java # code/MyOriencode\AddressToLatitudeLongitude.java code\MyOrientationListener.java tationListener.java
This commit is contained in:
commit
75eb5c1d6e
|
@ -47,7 +47,11 @@ public class AddressToLatitudeLongitude {
|
|||
e.printStackTrace();
|
||||
}
|
||||
try {
|
||||
<<<<<<< HEAD
|
||||
// httpsConn = (URLConnection) myURL.openConnection();//建立连接
|
||||
=======
|
||||
httpsConn = (URLConnection) myURL.openConnection();//建立连接
|
||||
>>>>>>> 7f69e754f933ab5ea326e502569b912a9177d2ff
|
||||
if (httpsConn != null) {
|
||||
InputStreamReader insr = new InputStreamReader(//传输数据
|
||||
httpsConn.getInputStream(), "UTF-8");
|
||||
|
|
|
@ -32,12 +32,21 @@ public class MyOrientationListener implements SensorEventListener{
|
|||
mSensor=mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
|
||||
}
|
||||
//判断是否有方向传感器
|
||||
<<<<<<< HEAD
|
||||
// if(mSensor!=null)
|
||||
// {
|
||||
// //注册监听器
|
||||
// mSensorManager.registerListener(this,mSensor,SensorManager.SENSOR_DELAY_UI);
|
||||
|
||||
// }
|
||||
=======
|
||||
if(mSensor!=null)
|
||||
{
|
||||
//注册监听器
|
||||
mSensorManager.registerListener(this,mSensor,SensorManager.SENSOR_DELAY_UI);
|
||||
|
||||
}
|
||||
>>>>>>> 7f69e754f933ab5ea326e502569b912a9177d2ff
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue