navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
org.navitproject.navit.Navit Class Reference
Inheritance diagram for org.navitproject.navit.Navit:

Data Structures

class  SoftInputRestorer
 A Runnable to restore soft input when the user returns to the activity. More...
 

Public Member Functions

void removeFileIfExists (String source)
 
void copyFileIfExists (String source, String destination) throws IOException
 
void onCreate (Bundle savedInstanceState)
 
void onResume ()
 
void onPause ()
 
void onRequestPermissionsResult (int requestCode, String permissions[], int[] grantResults)
 
void setActivityResult (int requestCode, NavitActivityResult ActivityResult)
 
boolean onPrepareOptionsMenu (Menu menu)
 
void start_targetsearch_from_intent (String target_address)
 
boolean onOptionsItemSelected (MenuItem item)
 
void runOptionsItem (int id)
 
void showMenu ()
 Shows the Options menu. More...
 
int showNativeKeyboard ()
 Shows the native keyboard or other input method. More...
 
void hideNativeKeyboard ()
 Hides the native keyboard or other input method. More...
 
boolean onSearchRequested ()
 
boolean setMapLocation ()
 
void onDestroy ()
 
void fullscreen (int fullscreen)
 
void disableSuspend ()
 
void exit ()
 
native void NavitMain (Navit x, String lang, int version, String display_density_string, String path, String path2)
 
native void NavitDestroy ()
 

Static Public Member Functions

static String T (String in)
 
static void setKeypressCallback (int kp_cb_id, NavitGraphics ng)
 
static void setMotionCallback (int mo_cb_id, NavitGraphics ng)
 

Data Fields

NavitDialogs dialogs
 

Static Public Attributes

static InputMethodManager mgr = null
 
static DisplayMetrics metrics = null
 
static int status_bar_height = 0
 
static int action_bar_default_height = 0
 
static int navigation_bar_height = 0
 
static int navigation_bar_height_landscape = 0
 
static int navigation_bar_width = 0
 
static Boolean show_soft_keyboard = false
 
static Boolean show_soft_keyboard_now_showing = false
 
static long last_pressed_menu_key = 0L
 
static long time_pressed_menu_key = 0L
 
static String my_display_density = "mdpi"
 
static final int NavitDownloaderSelectMap_id = 967
 
static final int MAP_NUM_PRIMARY = 11
 
static final int NavitAddressSearch_id = 70
 
static final int NavitSelectStorage_id = 43
 
static String NavitLanguage
 
static Resources NavitResources = null
 
static final int MAP_NUM_SECONDARY = 12
 
static final String NAVIT_PREFS = "NavitPrefs"
 
static NotificationManager nm
 
static NavitGraphics N_NavitGraphics = null
 

Protected Member Functions

void onActivityResult (int requestCode, int resultCode, Intent data)
 
void onPrepareDialog (int id, Dialog dialog)
 
Dialog onCreateDialog (int id)
 

Package Functions

void setDestination (float latitude, float longitude, String address)
 

Static Package Functions

 [static initializer]
 

Package Attributes

Boolean isFullscreen = false
 

Static Package Attributes

static final String NAVIT_PACKAGE_NAME = "org.navitproject.navit"
 
static final String TAG = "Navit"
 
static String map_filename_path = null
 
static final String NAVIT_DATA_DIR = "/data/data/" + NAVIT_PACKAGE_NAME
 
static final String NAVIT_DATA_SHARE_DIR = NAVIT_DATA_DIR + "/share"
 
static final String FIRST_STARTUP_FILE = NAVIT_DATA_SHARE_DIR + "/has_run_once.txt"
 

Private Member Functions

boolean extractRes (String resname, String result)
 
void showInfos ()
 
void parseNavigationURI (String schemeSpecificPart)
 

Private Attributes

PowerManager.WakeLock wl
 
NavitActivityResult ActivityResults []
 

Static Private Attributes

static Intent startup_intent = null
 
static long startup_intent_timestamp = 0L
 
static final int MY_PERMISSIONS_REQUEST_ALL = 101
 

Member Function Documentation

org.navitproject.navit.Navit.[static initializer] ( )
inlinestaticpackage
void org.navitproject.navit.Navit.copyFileIfExists ( String  source,
String  destination 
) throws IOException
inline
void org.navitproject.navit.Navit.disableSuspend ( )
inline
void org.navitproject.navit.Navit.exit ( )
inline
boolean org.navitproject.navit.Navit.extractRes ( String  resname,
String  result 
)
inlineprivate
void org.navitproject.navit.Navit.fullscreen ( int  fullscreen)
inline
void org.navitproject.navit.Navit.hideNativeKeyboard ( )
inline

Hides the native keyboard or other input method.

References org.navitproject.navit.Navit.show_soft_keyboard_now_showing.

native void org.navitproject.navit.Navit.NavitDestroy ( )
native void org.navitproject.navit.Navit.NavitMain ( Navit  x,
String  lang,
int  version,
String  display_density_string,
String  path,
String  path2 
)
Dialog org.navitproject.navit.Navit.onCreateDialog ( int  id)
inlineprotected
void org.navitproject.navit.Navit.onDestroy ( )
inline
boolean org.navitproject.navit.Navit.onOptionsItemSelected ( MenuItem  item)
inline
void org.navitproject.navit.Navit.onPause ( )
inline
void org.navitproject.navit.Navit.onPrepareDialog ( int  id,
Dialog  dialog 
)
inlineprotected
boolean org.navitproject.navit.Navit.onPrepareOptionsMenu ( Menu  menu)
inline
void org.navitproject.navit.Navit.onRequestPermissionsResult ( int  requestCode,
String  permissions[],
int[]  grantResults 
)
inline
boolean org.navitproject.navit.Navit.onSearchRequested ( )
inline
void org.navitproject.navit.Navit.parseNavigationURI ( String  schemeSpecificPart)
inlineprivate
void org.navitproject.navit.Navit.removeFileIfExists ( String  source)
inline
void org.navitproject.navit.Navit.setActivityResult ( int  requestCode,
NavitActivityResult  ActivityResult 
)
inline
void org.navitproject.navit.Navit.setDestination ( float  latitude,
float  longitude,
String  address 
)
inlinepackage
static void org.navitproject.navit.Navit.setKeypressCallback ( int  kp_cb_id,
NavitGraphics  ng 
)
inlinestatic
static void org.navitproject.navit.Navit.setMotionCallback ( int  mo_cb_id,
NavitGraphics  ng 
)
inlinestatic
void org.navitproject.navit.Navit.showInfos ( )
inlineprivate
void org.navitproject.navit.Navit.showMenu ( )
inline

Shows the Options menu.

Calling this method has the same effect as pressing the hardware Menu button, where present, or touching the overflow button in the Action bar.

int org.navitproject.navit.Navit.showNativeKeyboard ( )
inline

Shows the native keyboard or other input method.

Returns
true
if an input method is going to be displayed,
false
if not

References org.navitproject.navit.Navit.show_soft_keyboard_now_showing, and org.navitproject.navit.Navit.TAG.

void org.navitproject.navit.Navit.start_targetsearch_from_intent ( String  target_address)
inline

Field Documentation

int org.navitproject.navit.Navit.action_bar_default_height = 0
static
NavitDialogs org.navitproject.navit.Navit.dialogs
final String org.navitproject.navit.Navit.FIRST_STARTUP_FILE = NAVIT_DATA_SHARE_DIR + "/has_run_once.txt"
staticpackage
Boolean org.navitproject.navit.Navit.isFullscreen = false
package
long org.navitproject.navit.Navit.last_pressed_menu_key = 0L
static
final int org.navitproject.navit.Navit.MAP_NUM_PRIMARY = 11
static
final int org.navitproject.navit.Navit.MAP_NUM_SECONDARY = 12
static
DisplayMetrics org.navitproject.navit.Navit.metrics = null
static
InputMethodManager org.navitproject.navit.Navit.mgr = null
static
String org.navitproject.navit.Navit.my_display_density = "mdpi"
static
final int org.navitproject.navit.Navit.MY_PERMISSIONS_REQUEST_ALL = 101
staticprivate
NavitGraphics org.navitproject.navit.Navit.N_NavitGraphics = null
static
int org.navitproject.navit.Navit.navigation_bar_height = 0
static
int org.navitproject.navit.Navit.navigation_bar_height_landscape = 0
static
int org.navitproject.navit.Navit.navigation_bar_width = 0
static
final String org.navitproject.navit.Navit.NAVIT_DATA_DIR = "/data/data/" + NAVIT_PACKAGE_NAME
staticpackage
final String org.navitproject.navit.Navit.NAVIT_DATA_SHARE_DIR = NAVIT_DATA_DIR + "/share"
staticpackage
final String org.navitproject.navit.Navit.NAVIT_PACKAGE_NAME = "org.navitproject.navit"
staticpackage
final int org.navitproject.navit.Navit.NavitDownloaderSelectMap_id = 967
static
String org.navitproject.navit.Navit.NavitLanguage
static
Resources org.navitproject.navit.Navit.NavitResources = null
static
final int org.navitproject.navit.Navit.NavitSelectStorage_id = 43
static
NotificationManager org.navitproject.navit.Navit.nm
static
Boolean org.navitproject.navit.Navit.show_soft_keyboard = false
static
Intent org.navitproject.navit.Navit.startup_intent = null
staticprivate
long org.navitproject.navit.Navit.startup_intent_timestamp = 0L
staticprivate
int org.navitproject.navit.Navit.status_bar_height = 0
static
long org.navitproject.navit.Navit.time_pressed_menu_key = 0L
static
PowerManager.WakeLock org.navitproject.navit.Navit.wl
private

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