<activity android:name=".NavitDownloadSelectMapActivity"></activity>
<activity android:name=".NavitAddressResultListActivity"></activity>
</application>
- <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="@ANDROID_API_VERSION@"/>
+ <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="@ANDROID_API_VERSION@"/>
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true" android:anyDensity="true"/>
@ANDROID_PERMISSIONS@
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
int height_ = display_.getHeight();\r
metrics = new DisplayMetrics();\r
display_.getMetrics(Navit.metrics);\r
+ int densityDpi = (int)(( Navit.metrics.density*160)+.5f);\r
Log.e("Navit", "Navit -> pixels x=" + width_ + " pixels y=" + height_);\r
- Log.e("Navit", "Navit -> dpi=" + Navit.metrics.densityDpi);\r
+ Log.e("Navit", "Navit -> dpi=" + densityDpi);\r
Log.e("Navit", "Navit -> density=" + Navit.metrics.density);\r
Log.e("Navit", "Navit -> scaledDensity=" + Navit.metrics.scaledDensity);\r
\r
Log.e("Navit", "Failed to extract language resource " + langc);\r
}\r
\r
- if (Navit.metrics.densityDpi <= 120)\r
+ if (densityDpi <= 120)\r
{\r
my_display_density = "ldpi";\r
}\r
- else if (Navit.metrics.densityDpi <= 160)\r
+ else if (densityDpi <= 160)\r
{\r
my_display_density = "mdpi";\r
}\r
- else if (Navit.metrics.densityDpi < 320)\r
+ else if (densityDpi < 320)\r
{\r
my_display_density = "hdpi";\r
}\r
protected void onSizeChanged(int w, int h, int oldw, int oldh)
{
Log.e("Navit", "NavitGraphics -> onSizeChanged pixels x=" + w + " pixels y=" + h);
- Log.e("Navit", "NavitGraphics -> onSizeChanged dpi=" + Navit.metrics.densityDpi);
Log.e("Navit", "NavitGraphics -> onSizeChanged density=" + Navit.metrics.density);
Log.e("Navit", "NavitGraphics -> onSizeChanged scaledDensity="
+ Navit.metrics.scaledDensity);