📄 release_notes.txt
字号:
S60 Platform: Location Example
----------------------------------------
This C++ code example implements a practical use case of location-based services.
The example demonstrates a use case of asking the GPS location of another device
via SMS and showing its location and the distance to it.
Prerequisites
-------------
Understanding the basics of C and Symbian C++.
Important files
---------------
clocationexamplesmsengine.h:
- SMS sending and receiving, SMS API
clocationexamplepositionrequestor.h
- Location listening, Location API
clocationexamplemapengine.h
- Showing your friend's location in textual format
- Calculating the distance and direction of your friend (e32math.h)
clocationexamplecontainer.h
- Container class of the view
Running the example
----------------------------
Start the LocationExample.
Selecting GPS from the Options menu either starts the built-in GPS if available in the device or launches the Bluetooth device selection UI to find and connect to an external GPS receiver.
After the position has been retrieved, more commands appear in Options->GPS: It is possible to close the GPS, or use SMS to send your location or ask for another device's location.
Once both the own and another device's location have been retrieved, the application shows the distance and direction compared to the other device.
When requesting a friend抯 location, the Location example needs to be installed and running on the remote device. In addition, the user's permission is needed to send the coordinates.
Compiling to hardware
---------------------
cd Location_Example\group
bldmake bldfiles
abld build gcce urel
Signing
---------------------
Location capability does not work with a self-signed certificate, so a developer certificate
(or better) is needed for signing. You can obtain it from www.symbiansigned.com. After the
key generation process, you have the following files: certificate.key, certificate.cer.
Save them in the sis folder and then:
cd Location_Example\sis
makesis locationexample_gcce.pkg
signsis mapexample_gcce.SIS locationexample_gcce.sisx certificate.cer certificate.key YOUR_PASSWORD
Install the generated locationexample_gcce.SIS file to your device.
Emulator
------------------
cd Location_Example\group
bldmake bldfiles
abld build winscw udeb
Start the emulator and then the LocationExample application.
Compatibility
-------------
S60 3rd Edition, Feature Pack 1
S60 3rd Edition
Tested with the Nokia 6110 Navigator, Nokia E90, and Nokia N95.
Developed with S60 3rd Edition SDK for Symbian OS, for C++, Maintenance Release
Evaluate this resource
-------------
Please spare a moment to help us improve documentation quality and recognize the examples
you find most valuable, by rating this resource at
http://www.forum.nokia.com/main/1%2C%2C90%2C00.html?surveyId=e8a10f99-aff4-4495-bb5b-db419eb3d7a1/S60_Platform_Map_and_Location_Example_v1_0_en.zip
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -