cmparts: Anonymous stats
* Import anonymous user-counting from previous releases.
* Original work by:
- Chris Soyars
- Danesh Mondegarian
- Roman Birg
- Steve Kondik
- Ricardo Cerqueira
- Adnan Begovic
Change-Id: Ib068c15b1ad238c9fe8818cf4eb9df46ba80d783
diff --git a/res/xml/anonymous_stats.xml b/res/xml/anonymous_stats.xml
new file mode 100644
index 0000000..30a65d5
--- /dev/null
+++ b/res/xml/anonymous_stats.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:title="@string/anonymous_statistics_title">
+
+ <cyanogenmod.preference.CMSecureSettingSwitchPreference
+ android:key="stats_collection"
+ android:title="@string/stats_collection_title"
+ android:summary="@string/stats_collection_summary"
+ android:defaultValue="true" />
+
+ <PreferenceScreen
+ android:title="@string/preview_data_title"
+ android:fragment="org.cyanogenmod.cmparts.cmstats.PreviewData" />
+
+</PreferenceScreen>