Blackberry JAVA DEVELOPMENT ENVIRONMENT - - GPS AND MAPS - DEVELOPMENT GUIDE Instrukcja Użytkownika Strona 7

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 16
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 6
Feature Description
requesting geolocation
with GPS updates
You can use one of the following new methods in the BlackBerryCriteria class to request
geolocation fixes whenever GPS fixes are unavailable. The geolocation fix that is returned is the
optimal geolocation fix that is available.
enableGeolocationWithGPS() returns a GPS fix as soon as it's available or within
the specified timeout period. If the GPS fix is unavailable, a geolocation fix is returned. This
method can be used for single and multiple fix requests.
enableGeolocationWithGPS(int mode) returns a GPS fix as soon as it's available
or within the specified timeout period. With this method, you can specify the option to return
the fastest single fix that is available. The fastest single fix might be the first geolocation or
GPS fix received.
requesting both GPS
and geolocation
updates
You can now specify parallel requests for GPS and geolocation updates. For example, you can
provide the user with a quick approximate location before a GPS fix is available. To request both
GPS and geolocation updates in parallel, create two separate threads to request separate
instances of the BlackBerryLocationProvider class. One thread specifies a GPS mode,
and the other thread specifies a geolocation mode.
foreign key constraint
keep support in the
SQLite® API
You can use the DatabaseOptions.set("foreign_key_contraints", "on")
method to enable foreign key support for your SQLite database.
support for pinch
gestures
Devices with touch screens now support pinch gestures. A pinch begins when two touch points
are detected on the touch screen. A pinch's focal point is defined as the midpoint between the
two initial touch points.
When two touch points are detected, a TouchGesture.PINCH_BEGIN event is sent. The
focal point of the pinch gesture is stored as TouchEvent.getX(1) and
TouchEvent.getY(1). You can access the initial zoom value by invoking
TouchGesture.getPinchMagnitude().
a s the user moves one or both touch points, a series of
TouchGesture.PINCH_UPDATE events are sent. You can access the zoom values during
the pinch by invoking TouchGesture.getPinchMagnitude().
hen the user completes the gesture, a TouchGesture.PINCH_END event is sent. You
can access the final zoom value by invoking
TouchGesture.getPinchMagnitude().
RIM Confidential and Proprietary Information - Beta Customers Only. Content and software are subject to change.
5
Przeglądanie stron 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 15 16

Komentarze do niniejszej Instrukcji

Brak uwag