难度在发送包含用户的来自用户的经纬度信息给朋友(消息始终显示0.0 0.0作为LON北纬) [英] Difficulty in sending message containing user's longitude and latitude from user to a friend(message always show 0.0 0.0 as lon n lat)

查看:120
本文介绍了难度在发送包含用户的来自用户的经纬度信息给朋友(消息始终显示0.0 0.0作为LON北纬)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了code发送短信给朋友,但现在我想送经度和纬度friend.I修改了code,但它始终是发送0.0 0.0经度和纬度friend.What会错C $ c.Can人的$帮助我?

I have written a code for sending sms to the friend but now I want to send longitude and latitude to friend.I modified my code but it is always sending " 0.0 0.0 " as longitude and latitude to friend.What is going wrong with the code.Can anyone help me with this?

下面是我的清单文件:

http://pastebin.com/wLiHDs3A

下面是我的.java文件: http://pastebin.com/nCmpneB8

Here is my .java file : http://pastebin.com/nCmpneB8

下面是我的main.xml文件:

Here is my main.xml file :

http://pastebin.com/m52f31eT

推荐答案

您测试这一点上emlator?如果是这样,那么GPS坐标大概没有设置,因此,它没有任何有效的传输。要设置GPS坐标上的模拟器做的:

Are you testing this out on the emlator? If so, then the GPS coordinates probably aren't set and therefore it has nothing valid to transmit. To set the gps coordinates on your emulator do:

telnet localhost 5554 geo fix <longitude value> <latitude value>

这将设置在模拟器上的经度和纬度。然后,尝试运行你的应用程序。

This will set the latitude and longitude on the emulator. Then try running your app.

这篇关于难度在发送包含用户的来自用户的经纬度信息给朋友(消息始终显示0.0 0.0作为LON北纬)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆