git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5054
ffa7fe5e-494d-0410-b361-
a75ebd5db220
// --> dont use android.os.Build.VERSION.SDK_INT, needs API >= 4\r
Log.e("Navit", "android.os.Build.VERSION.SDK_INT=" + Integer.valueOf(android.os.Build.VERSION.SDK));\r
NavitMain(this, NavitLanguage, Integer.valueOf(android.os.Build.VERSION.SDK), my_display_density, NAVIT_DATA_DIR+"/bin/navit");\r
// --> dont use android.os.Build.VERSION.SDK_INT, needs API >= 4\r
Log.e("Navit", "android.os.Build.VERSION.SDK_INT=" + Integer.valueOf(android.os.Build.VERSION.SDK));\r
NavitMain(this, NavitLanguage, Integer.valueOf(android.os.Build.VERSION.SDK), my_display_density, NAVIT_DATA_DIR+"/bin/navit");\r
showInfos();\r
\r
Navit.mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r
showInfos();\r
\r
Navit.mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r
-\r
- // unpack some localized Strings\r
- // a test now, later we will unpack all needed string for java, here at this point!!\r
- String x = NavitGraphics.getLocalizedString("Austria");\r
- Log.e("Navit", "x=" + x);\r
}\r
\r
private void activateAllMaps()\r
}\r
\r
private void activateAllMaps()\r
package org.navitproject.navit;
package org.navitproject.navit;
-import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
\r
private static void p(String key, String[] values)\r
{\r
\r
private static void p(String key, String[] values)\r
{\r
- HashMap<String, String> t = null;\r
- t = new HashMap<String, String>();\r
- Log.e("NavitTextTranslations", "trying: " + key);\r
+ HashMap<String, String> t = new HashMap<String, String>();\r
+ //Log.e("NavitTextTranslations", "trying: " + key);\r
try\r
{\r
for (int i = 0; i < (int) (values.length / 2); i++)\r
try\r
{\r
for (int i = 0; i < (int) (values.length / 2); i++)\r
strcat(path, "/");
strcat(path, path2);
if (!strlen(pattern)) {
strcat(path, "/");
strcat(path, path2);
if (!strlen(pattern)) {
- dbg(0,"found %s\n",path);
+ dbg(1,"found %s\n",path);
pglob->gl_pathv=realloc(pglob->gl_pathv, (pglob->gl_pathc+1)*sizeof(char *));
if (!pglob->gl_pathv) {
pglob->gl_pathc=0;
pglob->gl_pathv=realloc(pglob->gl_pathv, (pglob->gl_pathc+1)*sizeof(char *));
if (!pglob->gl_pathv) {
pglob->gl_pathc=0;
pglob->gl_pathv[pglob->gl_pathc++]=path;
return 0;
}
pglob->gl_pathv[pglob->gl_pathc++]=path;
return 0;
}
- dbg(0,"searching for %s in %s\n",pattern,path);
+ dbg(1,"searching for %s in %s\n",pattern,path);
flen=strcspn(pattern,"/");
next=pattern+flen;
if (*next == '/')
flen=strcspn(pattern,"/");
next=pattern+flen;
if (*next == '/')
if (glob_requires_match(fname, 0)) {
DIR *dh;
struct dirent *de;
if (glob_requires_match(fname, 0)) {
DIR *dh;
struct dirent *de;
- dbg(0,"in dir %s search for %s\n",path,fname);
+ dbg(1,"in dir %s search for %s\n",path,fname);
dh=opendir(path);
if (dh) {
while ((de=readdir(dh))) {
dh=opendir(path);
if (dh) {
while ((de=readdir(dh))) {