Motorola manual Agps On The i88s Phone, Overview

Page 5

Motorola Inc.

i88s J2ME Developers’ Guide

1 AGPS On The i88s Phone

1.1Overview

The i88s phone provides users and developers access to GPS position information such as latitude, longitude, altitude, speed, and etc. This feature is provided as a built-in application in the phone’s standard ergonomics and as a J2ME API developers can use to create custom AGPS based applications.

This section describes some of the phone’s features that affect AGPS accuracy and availability from a J2ME MIDlet.

Location Privacy

To protect users’ position information privacy, the i88s phone allows users to choose their privacy setting before or while a GPS application is running on the device.

Privacy Settings

There are three privacy settings in the i88s phone:

By Permission – Applications must request permission from the user before accessing GPS services

Restricted – Does not allow any applications access to GPS services

Unrestricted – Allow applications to access GPS services

By Permission

By default, the Privacy setting under the GPS Main Menu item is set to “By Permission”. With this privacy setting, when the user launches any GPS MIDlet for the first time, the phone will ask the user for permission to access GPS position information. Once “By Permission” has been selected, the phone creates the Privacy Settings menu item under the Java Privacy Settings screen for this MIDlet. The MIDlet Privacy Settings has three different Location Read settings: Always, Ask, and Never.

When “Always” has been selected for Location Read, this MIDlet is allowed to access GPS data at any time even if “By Permission” is selected at the GPS Main Menu. If “Ask” has been selected, the phone will request user for permission to access GPS data; however, if “Never” is selected, then the MIDlet cannot access GPS data when it is launched.

Restricted

If the GPS Privacy setting is set to “Restricted”, all GPS MIDlets will not be able to retrieve GPS data. In addition, when this setting is selected, the phone does not create the Privacy Settings menu item under the Java MIDlet System Screen.

Unrestricted

If the GPS Privacy setting is set to “Unrestricted”, then all MIDlets can access GPS data. When this setting is selected, the phone does not create the Privacy Settings menu item.

Version 1.0 - Page 5

Image 5
Contents I88s Multi-Communication Device J2ME Developers’ Guide J2ME Networking Disclaimer Document OverviewAcronyms Used In This Guide Terminology Definition Contact InformationAcronyms and Definitions Overview Agps On The i88s PhoneAssist Data Position APIAccuracy Example PositionConnection ClassAlmanac Out Of Date Retrieving Position in Java Method DescriptionsGetPosition GetPositionString nameGetStatus Using Position in JavaExample Using PositionConnection Positionresponsenoalmanacoverride Addition, to obtain better accurate speed and direction Recommendation Http Https J2ME NetworkingClass Descriptions Supported Protocols on the i88s Phone HttpHttps ServerSockets TCP SocketsSSL Secure Sockets UDP Sockets Serial Port AccessCommunicating on a Port Connection Optional ParametersImplementation Notes Example using StreamConnectionConcurrent Connections For The i88s Phone Protocol Maximum TipsMethod Descriptions Opening a file File I/OClass Description Code Examples Deleting a fileReading and Writing Example # 2 Complete MIDlet code Motorola Inc I88s J2ME Developers’ Guide Os = sc.openOutputStream //get InputStream Sc.close Caveats Motorola Inc I88s J2ME Developers’ Guide
Related manuals
Manual 43 pages 17.94 Kb