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 setKeypressCallback (int kp_cb_id, NavitGraphics ng)
 
void setMotionCallback (int mo_cb_id, NavitGraphics ng)
 
NavitGraphics getNavitGraphics ()
 
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 ()
 
void onDestroy ()
 
void fullscreen (int fullscreen)
 
void disableSuspend ()
 
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 Navit getInstance ()
 

Static Public Attributes

static InputMethodManager mgr = null
 
static DisplayMetrics metrics = null
 
static int status_bar_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 final String NAVIT_PREFS = "NavitPrefs"
 

Protected Member Functions

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

Package Functions

String getTstring (int Rid)
 
void setDestination (float latitude, float longitude, String address)
 

Static Package Functions

 [static initializer]
 

Package Attributes

Boolean isFullscreen = false
 

Static Package Attributes

static String map_filename_path = null
 
static final String NAVIT_DATA_DIR = "/data/data/" + NAVIT_PACKAGE_NAME
 

Private Member Functions

boolean extractRes (String resname, String result)
 
void showInfos ()
 
void parseNavigationURI (String schemeSpecificPart)
 
void setMapLocation ()
 
void exit ()
 
String getLocalizedString (String text)
 

Private Attributes

NavitDialogs dialogs
 
PowerManager.WakeLock wl
 
NavitActivityResult[] ActivityResults
 
NavitGraphics N_NavitGraphics = null
 

Static Private Attributes

static int action_bar_default_height = 0
 
static Intent startup_intent = null
 
static long startup_intent_timestamp = 0L
 
static String my_display_density = "mdpi"
 
static final int NavitDownloaderSelectMap_id = 967
 
static final int NavitAddressSearch_id = 70
 
static final int NavitSelectStorage_id = 43
 
static String NavitLanguage
 
static Resources NavitResources = null
 
static final String NAVIT_PACKAGE_NAME = "org.navitproject.navit"
 
static final String TAG = "Navit"
 
static final String NAVIT_DATA_SHARE_DIR = NAVIT_DATA_DIR + "/share"
 
static final int MY_PERMISSIONS_REQUEST_ALL = 101
 
static NotificationManager nm
 
static Navit navit
 

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 ( )
inlineprivate
boolean org.navitproject.navit.Navit.extractRes ( String  resname,
String  result 
)
inlineprivate
void org.navitproject.navit.Navit.fullscreen ( int  fullscreen)
inline
String org.navitproject.navit.Navit.getLocalizedString ( String  text)
inlineprivate
NavitGraphics org.navitproject.navit.Navit.getNavitGraphics ( )
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
void org.navitproject.navit.Navit.setKeypressCallback ( int  kp_cb_id,
NavitGraphics  ng 
)
inline
void org.navitproject.navit.Navit.setMotionCallback ( int  mo_cb_id,
NavitGraphics  ng 
)
inline
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.

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
staticprivate
NavitDialogs org.navitproject.navit.Navit.dialogs
private
Boolean org.navitproject.navit.Navit.isFullscreen = false
package
long org.navitproject.navit.Navit.last_pressed_menu_key = 0L
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"
staticprivate
final int org.navitproject.navit.Navit.MY_PERMISSIONS_REQUEST_ALL = 101
staticprivate
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
Navit org.navitproject.navit.Navit.navit
staticprivate
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"
staticprivate
final String org.navitproject.navit.Navit.NAVIT_PACKAGE_NAME = "org.navitproject.navit"
staticprivate
final int org.navitproject.navit.Navit.NavitDownloaderSelectMap_id = 967
staticprivate
String org.navitproject.navit.Navit.NavitLanguage
staticprivate
Resources org.navitproject.navit.Navit.NavitResources = null
staticprivate
final int org.navitproject.navit.Navit.NavitSelectStorage_id = 43
staticprivate
NotificationManager org.navitproject.navit.Navit.nm
staticprivate
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: