Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kunin <dkunin@mapswith.me>2013-06-26 13:06:54 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:57:04 +0300
commit107604101e68ad8f6ee49188ca69c2190e29cf68 (patch)
treee46fb75f40f0f44918e46af0b87d28c4f1d1c168 /android/src/com/mapswithme/maps/MWMApplication.java
parent90e9361e53dd4a5262d396256e827198eb02bdec (diff)
[android] Used foreground time as criteria for statistics.
Diffstat (limited to 'android/src/com/mapswithme/maps/MWMApplication.java')
-rw-r--r--android/src/com/mapswithme/maps/MWMApplication.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/MWMApplication.java b/android/src/com/mapswithme/maps/MWMApplication.java
index 5981ad5f28..89a2a1e95a 100644
--- a/android/src/com/mapswithme/maps/MWMApplication.java
+++ b/android/src/com/mapswithme/maps/MWMApplication.java
@@ -206,6 +206,11 @@ public class MWMApplication extends android.app.Application implements MapStorag
/// Check if we have free space on storage (writable path).
public native boolean hasFreeSpace(long size);
+ public double getForegroundTime()
+ {
+ return nativeGetDouble("AllForegroundTime", 0);
+ }
+
public boolean isProVersion()
{
return m_isProVersion;
@@ -265,4 +270,7 @@ public class MWMApplication extends android.app.Application implements MapStorag
public native void nativeSetInt(String name, int value);
public native long nativeGetLong(String name, long defaultValue);
public native void nativeSetLong(String name, long value);
+
+ public native double nativeGetDouble(String name, double defaultValue);
+ public native void nativeSetDouble(String name, double value);
}