Mapper  0.9.0
API documentation
Public Member Functions | Static Public Member Functions | List of all members
org.openorienteering.mapper.MapperActivity Class Reference

Contains Android Java code for Mapper. More...

Inheritance diagram for org.openorienteering.mapper.MapperActivity:
Inheritance graph
[legend]
Collaboration diagram for org.openorienteering.mapper.MapperActivity:
Collaboration graph
[legend]

Public Member Functions

void onCreate (Bundle savedInstanceState)
 
void onNewIntent (Intent intent)
 Call setIntent, as recommended for singleTask launch mode. More...
 
String takeIntentPath ()
 Returns the data string from the intent, and resets the intent. More...
 

Static Public Member Functions

static void setTranslatableStrings (String yes_string, String no_string, String gps_disabled_string)
 
static void lockOrientation ()
 Locks the current display orientation. More...
 
static void unlockOrientation ()
 Unlocks the display orientation by setting the requested orientation to unspecified. More...
 
static int getDisplayRotation ()
 Returns the display's current rotation. More...
 
static void startService (String message)
 Starts a foreground service with the given notification message. More...
 
static void stopService ()
 Stops the foreground service. More...
 

Detailed Description

Contains Android Java code for Mapper.

Member Function Documentation

◆ getDisplayRotation()

static int org.openorienteering.mapper.MapperActivity.getDisplayRotation ( )
inlinestatic

Returns the display's current rotation.

◆ lockOrientation()

static void org.openorienteering.mapper.MapperActivity.lockOrientation ( )
inlinestatic

Locks the current display orientation.

While a native "locked" mode comes in API level 18, this method tries to determine and lock the current orientation even on devices with lower API level. On these devices, the screen may be temporary in reverse orientation.

◆ onCreate()

void org.openorienteering.mapper.MapperActivity.onCreate ( Bundle  savedInstanceState)
inline

◆ onNewIntent()

void org.openorienteering.mapper.MapperActivity.onNewIntent ( Intent  intent)
inline

Call setIntent, as recommended for singleTask launch mode.

◆ setTranslatableStrings()

static void org.openorienteering.mapper.MapperActivity.setTranslatableStrings ( String  yes_string,
String  no_string,
String  gps_disabled_string 
)
inlinestatic

◆ startService()

static void org.openorienteering.mapper.MapperActivity.startService ( String  message)
inlinestatic

Starts a foreground service with the given notification message.

◆ stopService()

static void org.openorienteering.mapper.MapperActivity.stopService ( )
inlinestatic

Stops the foreground service.

◆ takeIntentPath()

String org.openorienteering.mapper.MapperActivity.takeIntentPath ( )
inline

Returns the data string from the intent, and resets the intent.

◆ unlockOrientation()

static void org.openorienteering.mapper.MapperActivity.unlockOrientation ( )
inlinestatic

Unlocks the display orientation by setting the requested orientation to unspecified.


The documentation for this class was generated from the following file: