package com.sigseg.android.worldmap;

import android.util.Log;

public class Application extends android.app.Application {
	private final static String TAG = "Application";
	public final static boolean DEBUG = true;
	
	@Override
	public void onCreate() {
		logMemory("app-start");
		super.onCreate();
		
	}

	private static void logMemory(String tag){
		long freeMemory = Runtime.getRuntime().freeMemory();
		long maxMemory = Runtime.getRuntime().maxMemory();
		if (Application.DEBUG)
			Log.d(tag,String.format("maxMemory=%d, freeMemory=%d, diff=%d",maxMemory,freeMemory,maxMemory-freeMemory));
	}
}

@@ -29,17 +29,19 @@
 orldmap;
-%0A
+%0D%0A%0D
 %0Aimport 
@@ -57,17 +57,19 @@
 til.Log;
-%0A
+%0D%0A%0D
 %0Apublic 
@@ -119,17 +119,20 @@
 cation %7B
-%0A
+%0D%0A//
 %09private
@@ -172,16 +172,17 @@
 cation%22;
+%0D
 %0A%09public
@@ -216,18 +216,20 @@
  = true;
+%0D
 %0A%09
+%0D
 %0A%09@Overr
@@ -231,16 +231,17 @@
 Override
+%0D
 %0A%09public
@@ -258,16 +258,17 @@
 eate() %7B
+%0D
 %0A%09%09logMe
@@ -285,16 +285,17 @@
 start%22);
+%0D
 %0A%09%09super
@@ -310,15 +310,19 @@
 e();
+%0D
 %0A%09%09
+%0D
 %0A%09%7D
-%0A
+%0D%0A%0D
 %0A%09pr
@@ -361,16 +361,17 @@
 ng tag)%7B
+%0D
 %0A%09%09long 
@@ -417,16 +417,17 @@
 emory();
+%0D
 %0A%09%09long 
@@ -471,16 +471,17 @@
 emory();
+%0D
 %0A%09%09if (A
@@ -497,16 +497,17 @@
 n.DEBUG)
+%0D
 %0A%09%09%09Log.
@@ -613,10 +613,13 @@
 y));
+%0D
 %0A%09%7D
+%0D
 %0A%7D
+%0D
 %0A

Remove warnings