package com.renard.ocr;

import java.lang.reflect.Field;

import org.acra.annotation.ReportsCrashes;

import android.app.Application;
import android.view.ViewConfiguration;

import com.renard.util.PreferencesUtils;

@ReportsCrashes(formKey = "dDZFZXFpU1NocWUwZ0x0aURsVUhNSXc6MQ", socketTimeout = 10000)
public class MyApplication extends Application {

	public void onCreate() {
		PreferencesUtils.initPreferencesWithDefaultsIfEmpty(getApplicationContext());

		// force overflow button for actionbar for devices with hardware option
		// button
		try {
			ViewConfiguration config = ViewConfiguration.get(this);
			Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey");
			if (menuKeyField != null) {
				menuKeyField.setAccessible(true);
				menuKeyField.setBoolean(config, false);
			}
		} catch (Exception ex) {
			// Ignore
		}
		// ACRA.init(this);

	};

}

@@ -55,52 +55,8 @@
 d;%0A%0A
-import org.acra.annotation.ReportsCrashes;%0A%0A
 impo
@@ -165,16 +165,18 @@
 Utils;%0A%0A
+//
 @Reports

remove acra from application