mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Unlock orientation again after some native fixes. Experiment with Google App Analytics.
The app analytics only tracks usage, sends no other information about what you do with the app. Interested in opinions if anyone thinks this is too much or maybe should be disabled by default.
This commit is contained in:
parent
1eec3a54f1
commit
8489bd15db
6 changed files with 40 additions and 11 deletions
|
@ -5,10 +5,12 @@
|
|||
android:versionName="0.9.1"
|
||||
android:installLocation="auto" >
|
||||
|
||||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/>
|
||||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18"/>
|
||||
|
||||
<uses-feature android:glEsVersion="0x00020000"></uses-feature>
|
||||
<!--
|
||||
<uses-feature android:name="android.hardware.screen.landscape" />
|
||||
-->
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||
<uses-permission android:name="archos.permission.FULLSCREEN.FULL" />
|
||||
|
@ -30,7 +32,8 @@
|
|||
android:label="@string/app_name"
|
||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||
android:configChanges="orientation|locale|keyboard|keyboardHidden|navigation|fontScale|uiMode"
|
||||
android:screenOrientation="landscape" >
|
||||
>
|
||||
<!-- android:screenOrientation="landscape" -->
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
|
|
BIN
android/libs/libGoogleAnalyticsServices.jar
Executable file
BIN
android/libs/libGoogleAnalyticsServices.jar
Executable file
Binary file not shown.
8
android/res/values/analytics.xml
Normal file
8
android/res/values/analytics.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="ga_trackingId">UA-36039055-2</string>
|
||||
<!--Enable automatic activity tracking-->
|
||||
<bool name="ga_autoActivityTracking">true</bool>
|
||||
<!--Enable automatic exception tracking-->
|
||||
<bool name="ga_reportUncaughtExceptions">true</bool>
|
||||
</resources>
|
|
@ -1,6 +1,9 @@
|
|||
package org.ppsspp.ppsspp;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.henrikrydgard.libnative.NativeActivity;
|
||||
import com.google.analytics.tracking.android.EasyTracker;
|
||||
|
||||
public class PpssppActivity extends NativeActivity {
|
||||
static {
|
||||
|
@ -9,11 +12,26 @@ public class PpssppActivity extends NativeActivity {
|
|||
|
||||
public PpssppActivity() {
|
||||
super();
|
||||
}
|
||||
|
||||
public boolean overrideKeys()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
EasyTracker.getInstance(this).activityStart(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStop() {
|
||||
super.onStop();
|
||||
EasyTracker.getInstance(this).activityStop(this);
|
||||
}
|
||||
|
||||
public boolean overrideKeys() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
2
lang
2
lang
|
@ -1 +1 @@
|
|||
Subproject commit 6d8cc479c8be8ba20bdab5595e5c041e7db0cdf7
|
||||
Subproject commit 60b4010fb4b16fb83718172a08a4850df6f0d8da
|
2
native
2
native
|
@ -1 +1 @@
|
|||
Subproject commit c690d4c0e13dce9829e5d2101492b982b9295f06
|
||||
Subproject commit 3778d8d8b1c3cc66470f1575b9959a04812b8f3f
|
Loading…
Add table
Reference in a new issue