Commits

M Haidar Hanif committed 489d322

Initial project commit

Comments (0)

Files changed (22)

+# Custom personal files
+misc/
+tmp/
+*.swp
+*.jar
+
+# Backup files
+*.un~
+
+# Built application files
+*.apk
+*.ap_
+
+# Files for the dex VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+
+# Local configuration files
+local.properties
+
+# Maven project files
+target/
+
+# Intellij project files
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# Eclipse project files
+.classpath
+.project
+.settings
+
+# Proguard folder generated by Eclipse
+proguard/
+

AndroidManifest.xml

+<?xml version="1.0" encoding="utf-8"?>
+<manifest
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.mhaidarhanif.android.kargu"
+    android:versionCode="0"
+    android:versionName="0.0" >
+
+    <uses-sdk
+        android:minSdkVersion="10"
+        android:targetSdkVersion="16" />
+
+    <application
+        android:debuggable="true"
+        android:allowBackup="true"
+        android:icon="@drawable/ic_launcher"
+        android:label="@string/app_name"
+        android:theme="@style/AppTheme" >
+
+        <activity
+            android:name=".MainActivity"
+            android:label="@string/app_name" >
+
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+
+        </activity>
+
+    </application>
+
+</manifest>
+

ic_launcher-web.png

Added
New image

libs/.GoogleAnalyticsAndroid/Changelog.txt

+Google Analytics SDK for Android Changelog
+
+
+--------------------------------------------
+Version: 2.0beta4 (January 2013)
+--------------------------------------------
+* Fourth beta release.
+* The SDK will now respect the sample rate setting. If you previously set the
+  sample rate to other than 100% you will now see a corresponding decrease in
+  some of your Analytics metrics compared with beta 3.
+* Changed track methods to send (e.g. trackView now called sendView).
+* Use HTTPS by default instead of HTTP.
+* SDK will not attempt to dispatch hits if there is no network connectivity.
+* Avoid ANRs while attempting to handle install campaign data.
+* Removed TrackedActivity classes from the SDK.
+* Move SDK initialization off the main UI Thread.
+* Improve the SDK's ability to recover from a corrupted SQLite database.
+* Several other crashes and bugs fixed.
+
+--------------------------------------------
+Version: 2.0beta3 (August 2012)
+--------------------------------------------
+* Third beta release.
+* Implemented custom dimensions and metrics.
+* Fixed occasional crashes during initialization of the SDK.
+* Fixed INSTALL_REFERRER broadcasts being ignored on some devices.
+* Fixed ConcurrentModificationExceptions in GoogleTracker class.
+* Made StandardExceptionParser class public.
+* Implemented social tracking.
+* Other bugfixes and enhancements.
+
+--------------------------------------------
+Version: 2.0beta2 (June 2012)
+--------------------------------------------
+* Second beta release.
+* Simplified EasyTracker interface.
+* Control of dispatching moved to a new class, GAServiceManager.
+* Updated to latest wire format.
+* sampleRate changed to double.
+* Excessive tracking is throttled.
+* Undispatched tracking information is deleted when opt-out is enabled.
+* Undispatched tracking information older than 30 days will be deleted.
+* Other bugfixes and enhancements.
+
+--------------------------------------------
+Version: 2.0beta1 (May 2012)
+--------------------------------------------
+* Initial internal beta release.
+* startSession method has been removed.  Use setStartSession instead.
+* Added ga_sessionTimeout parameter to EasyTracker.  See javadoc for details.
+* Uncaught exceptions on the Analytics Thread should no longer cause app
+  crashes.
+* Implemented power save mode.  Automatic dispatch calls will now be turned off
+  if no hits are queued for dispatch.
+* Exposed several new Tracker methods in EasyTracker.  See javadoc for details.
+* Added trackView method to GAITracker which takes no argument.
+* Fixed a bug that prevented exception parameters from being sent on hits.
+* Hits that can't be read from the database are discarded instead of
+  permanently blocking all hits from being dispatched.
+* Updated to latest wire format.
+* Implemented timing hit type.
+* Implemented Ecommerce hit types (transaction and item).
+
+--------------------------------------------
+Version: 2.0alpha1 (April 2012)
+--------------------------------------------
+* Initial internal alpha release.

libs/.GoogleAnalyticsAndroid/Readme.txt

+Google Analytics Android SDK version 2.0 beta 4
+
+Copyright 2009 - 2013 Google, Inc. All rights reserved.
+
+================================================================================
+DESCRIPTION:
+
+This SDK provides developers with the capability to use Google Analytics
+to track Android application usage.
+
+The SDK is packaged as a jar file, a zip file containing javadocs, a file
+Changelog.txt and this file (Readme.txt).
+
+Details on how to use this SDK can be found at:
+
+   http://developers.google.com/analytics/devguides/collection/android/v2.
+
+================================================================================
+BUILD REQUIREMENTS:
+
+Android SDK 2.1+
+
+================================================================================
+RUNTIME REQUIREMENTS:
+
+Android SDK 2.1+
+
+================================================================================
+PACKAGING LIST:
+
+libGoogleAnalyticsV2.jar
+javadocs.zip
+Changelog.txt
+Readme.txt

libs/.GoogleAnalyticsAndroid/javadocs.zip

Binary file added.

res/drawable-hdpi/ic_launcher.png

Added
New image

res/drawable-ldpi/ic_launcher.png

Added
New image

res/drawable-mdpi/ic_launcher.png

Added
New image

res/drawable-xhdpi/ic_launcher.png

Added
New image

res/drawable-xxhdpi/ic_launcher.png

Added
New image

res/drawable/ic_launcher.png

Added
New image

res/layout/activity_main.xml

+<RelativeLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:paddingBottom="@dimen/activity_vertical_margin"
+    android:paddingLeft="@dimen/activity_horizontal_margin"
+    android:paddingRight="@dimen/activity_horizontal_margin"
+    android:paddingTop="@dimen/activity_vertical_margin"
+    tools:context=".MainActivity" >
+
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="@string/app_name" />
+
+</RelativeLayout>

res/menu/main.xml

+<menu xmlns:android="http://schemas.android.com/apk/res/android" >
+
+    <item
+        android:id="@+id/action_settings"
+        android:orderInCategory="100"
+        android:showAsAction="never"
+        android:title="@string/action_settings"/>
+
+</menu>

res/values-sw600dp/dimens.xml

+<resources>
+
+    <!--
+         Customize dimensions originally defined in res/values/dimens.xml (such as
+         screen margins) for sw600dp devices (e.g. 7" tablets) here.
+    -->
+
+</resources>

res/values-sw720dp-land/dimens.xml

+<resources>
+
+    <!--
+         Customize dimensions originally defined in res/values/dimens.xml (such as
+         screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
+    -->
+    <dimen name="activity_horizontal_margin">128dp</dimen>
+
+</resources>

res/values-v11/styles.xml

+<resources>
+
+    <!--
+        Base application theme for API 11+. This theme completely replaces
+        AppBaseTheme from res/values/styles.xml on API 11+ devices.
+    -->
+    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
+        <!-- API 11 theme customizations can go here. -->
+    </style>
+
+</resources>

res/values-v14/styles.xml

+<resources>
+
+    <!--
+        Base application theme for API 14+. This theme completely replaces
+        AppBaseTheme from BOTH res/values/styles.xml and
+        res/values-v11/styles.xml on API 14+ devices.
+    -->
+    <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
+        <!-- API 14 theme customizations can go here. -->
+    </style>
+
+</resources>

res/values/dimens.xml

+<resources>
+
+    <!-- Default screen margins, per the Android Design guidelines. -->
+    <dimen name="activity_horizontal_margin">16dp</dimen>
+    <dimen name="activity_vertical_margin">16dp</dimen>
+
+</resources>

res/values/strings.xml

+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+	<string name="app_name">Kargu</string>
+	<string name="edition_name">Listrik</string>
+	<string name="welcome">Selamat Datang!</string>
+	<string name="action_settings">Settings</string>
+
+</resources>

res/values/styles.xml

+<resources>
+
+    <!--
+        Base application theme, dependent on API level. This theme is replaced
+        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+    -->
+    <style name="AppBaseTheme" parent="android:Theme.Light">
+        <!--
+            Theme customizations available in newer API levels can go in
+            res/values-vXX/styles.xml, while customizations related to
+            backward-compatibility can go here.
+        -->
+    </style>
+
+    <!-- Application theme. -->
+    <style name="AppTheme" parent="AppBaseTheme">
+        <!-- All customizations that are NOT specific to a particular API-level can go here. -->
+    </style>
+
+</resources>

src/main/java/com/mhaidarhanif/android/kargu/MainActivity.java

+package com.mhaidarhanif.android.kargu;
+
+import android.os.Bundle;
+import android.app.Activity;
+import android.view.Menu;
+import android.util.Log;
+
+public class MainActivity extends Activity {
+
+    private static String TAG = "kargu";
+
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        Log.i(TAG, "onCreate");
+        setContentView(R.layout.activity_main);
+    }
+
+    @Override
+    public boolean onCreateOptionsMenu(Menu menu) {
+        // Inflate the menu; this adds items to the action bar if it is present.
+        getMenuInflater().inflate(R.menu.main, menu);
+        return true;
+    }
+
+}