InflateException: Binary XML file line : Error inflating class <unknown> - android

I am having a terrible time, this error happens on only one particular phone LG E405, has android version 2.3.6. The app works on every other device and emulator. All solution suggested in other cases dont apply to mine.
05-01 14:10:31.549: W/dalvikvm(3060): threadid=1: thread exiting with uncaught exception (group=0x401ff560)
05-01 14:10:31.569: E/AndroidRuntime(3060): FATAL EXCEPTION: main
05-01 14:10:31.569: E/AndroidRuntime(3060): java.lang.RuntimeException: Unable to start activity ComponentInfo{mf.sgh.activity/mf.sgh.activity.LoginScreenActivity}: android.view.InflateException: Binary XML file line #29: Error inflating class
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1658)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1674)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:942)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.os.Handler.dispatchMessage(Handler.java:99)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.os.Looper.loop(Looper.java:130)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.app.ActivityThread.main(ActivityThread.java:3735)
05-01 14:10:31.569: E/AndroidRuntime(3060): at java.lang.reflect.Method.invokeNative(Native Method)
05-01 14:10:31.569: E/AndroidRuntime(3060): at java.lang.reflect.Method.invoke(Method.java:507)
05-01 14:10:31.569: E/AndroidRuntime(3060): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
05-01 14:10:31.569: E/AndroidRuntime(3060): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:662)
05-01 14:10:31.569: E/AndroidRuntime(3060): at dalvik.system.NativeStart.main(Native Method)
05-01 14:10:31.569: E/AndroidRuntime(3060): Caused by: android.view.InflateException: Binary XML file line #29: Error inflating class
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
05-01 14:10:31.569: E/AndroidRuntime(3060): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-01 14:10:31.569: E/AndroidRuntime(3060): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2240)
05-01 14:10:31.569: E/AndroidRuntime(3060): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2295)
05-01 14:10:31.569: E/AndroidRuntime(3060): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:203)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.app.Activity.setContentView(Activity.java:1657)
05-01 14:10:31.569: E/AndroidRuntime(3060): at mf.sgh.activity.LoginScreenActivity.onCreate(LoginScreenActivity.java:40)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622)
05-01 14:10:31.569: E/AndroidRuntime(3060): ... 11 more
05-01 14:10:31.569: E/AndroidRuntime(3060): Caused by: java.lang.reflect.InvocationTargetException
05-01 14:10:31.569: E/AndroidRuntime(3060): at java.lang.reflect.Constructor.constructNative(Native Method)
05-01 14:10:31.569: E/AndroidRuntime(3060): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
05-01 14:10:31.569: E/AndroidRuntime(3060): ... 25 more
05-01 14:10:31.569: E/AndroidRuntime(3060): Caused by: java.lang.StringIndexOutOfBoundsException
05-01 14:10:31.569: E/AndroidRuntime(3060): at java.lang.String.substring(String.java:1651)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.provider.Settings$System.getSystemLocaleR2L(Settings.java:884)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.provider.Settings$System.getCursorDirection(Settings.java:878)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.widget.TextView.getImeWritingLanguageR2L(TextView.java:1045)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.widget.TextView.chkCurrentDirection(TextView.java:1031)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.widget.TextView.setPadding(TextView.java:1751)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.view.View.(View.java:2264)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.widget.TextView.(TextView.java:390)
05-01 14:10:31.569: E/AndroidRuntime(3060): at android.widget.TextView.(TextView.java:383)
05-01 14:10:31.569: E/AndroidRuntime(3060): ... 28 more
05-01 14:10:31.579: E/AndroidRuntime(3060): [Blue Error Handler] Make Debugging Report file for main
05-01 14:10:31.579: E/AndroidRuntime(3060): java.lang.RuntimeException: Unable to start activity ComponentInfo{mf.sgh.activity/mf.sgh.activity.LoginScreenActivity}: android.view.InflateException: Binary XML file line #29: Error inflating class
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1658)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1674)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:942)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.os.Handler.dispatchMessage(Handler.java:99)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.os.Looper.loop(Looper.java:130)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.app.ActivityThread.main(ActivityThread.java:3735)
05-01 14:10:31.579: E/AndroidRuntime(3060): at java.lang.reflect.Method.invokeNative(Native Method)
05-01 14:10:31.579: E/AndroidRuntime(3060): at java.lang.reflect.Method.invoke(Method.java:507)
05-01 14:10:31.579: E/AndroidRuntime(3060): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
05-01 14:10:31.579: E/AndroidRuntime(3060): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:662)
05-01 14:10:31.579: E/AndroidRuntime(3060): at dalvik.system.NativeStart.main(Native Method)
05-01 14:10:31.579: E/AndroidRuntime(3060): Caused by: android.view.InflateException: Binary XML file line #29: Error inflating class
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
05-01 14:10:31.579: E/AndroidRuntime(3060): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-01 14:10:31.579: E/AndroidRuntime(3060): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2240)
05-01 14:10:31.579: E/AndroidRuntime(3060): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2295)
05-01 14:10:31.579: E/AndroidRuntime(3060): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:203)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.app.Activity.setContentView(Activity.java:1657)
05-01 14:10:31.579: E/AndroidRuntime(3060): at mf.sgh.activity.LoginScreenActivity.onCreate(LoginScreenActivity.java:40)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622)
05-01 14:10:31.579: E/AndroidRuntime(3060): ... 11 more
05-01 14:10:31.579: E/AndroidRuntime(3060): Caused by: java.lang.reflect.InvocationTargetException
05-01 14:10:31.579: E/AndroidRuntime(3060): at java.lang.reflect.Constructor.constructNative(Native Method)
05-01 14:10:31.579: E/AndroidRuntime(3060): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
05-01 14:10:31.579: E/AndroidRuntime(3060): ... 25 more
05-01 14:10:31.579: E/AndroidRuntime(3060): Caused by: java.lang.StringIndexOutOfBoundsException
05-01 14:10:31.579: E/AndroidRuntime(3060): at java.lang.String.substring(String.java:1651)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.provider.Settings$System.getSystemLocaleR2L(Settings.java:884)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.provider.Settings$System.getCursorDirection(Settings.java:878)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.widget.TextView.getImeWritingLanguageR2L(TextView.java:1045)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.widget.TextView.chkCurrentDirection(TextView.java:1031)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.widget.TextView.setPadding(TextView.java:1751)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.view.View.(View.java:2264)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.widget.TextView.(TextView.java:390)
05-01 14:10:31.579: E/AndroidRuntime(3060): at android.widget.TextView.(TextView.java:383)
05-01 14:10:31.579: E/AndroidRuntime(3060): ... 28 more
I really need help

Suggestion : It may be possible that xml is not able to load the images due to which it goes Out of Memory and not able to Inflate the xml at the run time. Decrease the size of Images.

The solution is to first make sure all strings are in the default language before entering them in the locale file.

Related

can we use owasp-ESAPI for logging android application?

can we use owasp-ESAPI for logging android application, as I have tried to search on google and then as per my understanding I found OWASP-ESAPI can be used with JAVA-EE.
can someone help me to integrate secure logger with OWASP-ESAPI on android application?
For better understanding my problem please go though following :
"esapi-2.1.0.jar" allow us to write
Following code that I am trying:
private final Logger logger = ESAPI.getLogger(MyActivity.class.getName());
logger.error(Logger.SECURITY_FAILURE, "session has expired, log out user");
when I run my project it gives following on logcat:
05-01 13:02:52.455: D/ResourcesManager(9936): creating new AssetManager and set to /data/app/com.example.loggerlatestjar-1/base.apk
05-01 13:02:52.555: I/System.out(9936): Attempting to load ESAPI.properties via file I/O.
05-01 13:02:52.555: I/System.out(9936): Attempting to load ESAPI.properties as resource file via file I/O.
05-01 13:02:52.555: I/System.out(9936): Not found in 'org.owasp.esapi.resources' directory or file not readable: /ESAPI.properties
05-01 13:02:52.565: I/System.out(9936): Not found in SystemResource Directory/resourceDirectory: .esapi/ESAPI.properties
05-01 13:02:52.565: I/System.out(9936): Not found in 'user.home' () directory: /esapi/ESAPI.properties
05-01 13:02:52.565: I/System.out(9936): Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException
05-01 13:02:52.565: I/System.out(9936): Attempting to load ESAPI.properties via the classpath.
05-01 13:02:52.615: I/System.out(9936): ESAPI.properties could not be loaded by any means. Fail. Exception was: java.lang.IllegalArgumentException: Failed to load ESAPI.properties as a classloader resource.
05-01 13:02:52.615: D/AndroidRuntime(9936): Shutting down VM
05-01 13:02:52.620: E/AndroidRuntime(9936): FATAL EXCEPTION: main
05-01 13:02:52.620: E/AndroidRuntime(9936): Process: com.example.loggerlatestjar, PID: 9936
05-01 13:02:52.620: E/AndroidRuntime(9936): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.loggerlatestjar/com.example.loggerlatestjar.MainActivity}: org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException SecurityConfiguration class (org.owasp.esapi.reference.DefaultSecurityConfiguration) CTOR threw exception.
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2702)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.app.ActivityThread.access$900(ActivityThread.java:177)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.os.Handler.dispatchMessage(Handler.java:102)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.os.Looper.loop(Looper.java:145)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.app.ActivityThread.main(ActivityThread.java:5951)
05-01 13:02:52.620: E/AndroidRuntime(9936): at java.lang.reflect.Method.invoke(Native Method)
05-01 13:02:52.620: E/AndroidRuntime(9936): at java.lang.reflect.Method.invoke(Method.java:372)
05-01 13:02:52.620: E/AndroidRuntime(9936): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
05-01 13:02:52.620: E/AndroidRuntime(9936): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
05-01 13:02:52.620: E/AndroidRuntime(9936): Caused by: org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException SecurityConfiguration class (org.owasp.esapi.reference.DefaultSecurityConfiguration) CTOR threw exception.
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129)
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.ESAPI.securityConfiguration(ESAPI.java:184)
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.ESAPI.logFactory(ESAPI.java:137)
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.ESAPI.getLogger(ESAPI.java:154)
05-01 13:02:52.620: E/AndroidRuntime(9936): at com.example.loggerlatestjar.MainActivity.onCreate(MainActivity.java:23)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.app.Activity.performCreate(Activity.java:6289)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
05-01 13:02:52.620: E/AndroidRuntime(9936): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
05-01 13:02:52.620: E/AndroidRuntime(9936): ... 10 more
05-01 13:02:52.620: E/AndroidRuntime(9936): Caused by: java.lang.reflect.InvocationTargetException
05-01 13:02:52.620: E/AndroidRuntime(9936): at java.lang.reflect.Method.invoke(Native Method)
05-01 13:02:52.620: E/AndroidRuntime(9936): at java.lang.reflect.Method.invoke(Method.java:372)
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:86)
05-01 13:02:52.620: E/AndroidRuntime(9936): ... 17 more
05-01 13:02:52.620: E/AndroidRuntime(9936): Caused by: org.owasp.esapi.errors.ConfigurationException: ESAPI.properties could not be loaded by any means. Fail.
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfiguration(DefaultSecurityConfiguration.java:439)
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.reference.DefaultSecurityConfiguration.<init>(DefaultSecurityConfiguration.java:227)
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.reference.DefaultSecurityConfiguration.getInstance(DefaultSecurityConfiguration.java:75)
05-01 13:02:52.620: E/AndroidRuntime(9936): ... 20 more
05-01 13:02:52.620: E/AndroidRuntime(9936): Caused by: java.lang.IllegalArgumentException: Failed to load ESAPI.properties as a classloader resource.
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfigurationFromClasspath(DefaultSecurityConfiguration.java:667)
05-01 13:02:52.620: E/AndroidRuntime(9936): at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfiguration(DefaultSecurityConfiguration.java:436)
05-01 13:02:52.620: E/AndroidRuntime(9936): ... 22 more
Note : I am not using ESAPI.property file. because i do not know how to use it in android app.

AdMob making my app crash in release version

i just added AdMob to my app. Everything seem to work well when i debug or install release version of app (HTC m7). The problem occurs on CHUWI VX2 device (esky82_tb_cn_kk, Android 4.4). It is very strange because on this device my App works in debug mode but doesn't works in release version. I try turn of pro-gourd but it doesn't help me.
Any one have idea for that?
my manifest
instruction inside my onCreate method:
mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.setAdListener(new AdListener() {
#Override
public void onAdClosed() {
super.onAdClosed();
mAdView.setVisibility(View.GONE);
}
#Override
public void onAdOpened() {
super.onAdOpened();
mAdView.startAnimation(fade_in);
mAdView.setVisibility(View.VISIBLE);
}
#Override
public void onAdFailedToLoad(int errorCode) {
super.onAdFailedToLoad(errorCode);
mAdView.setVisibility(View.GONE);
}
#Override
public void onAdLoaded() {
super.onAdLoaded();
mAdView.startAnimation(fade_in);
mAdView.setVisibility(View.VISIBLE);
}
#Override
public void onAdLeftApplication() {
super.onAdLeftApplication();
mAdView.setVisibility(View.GONE);
}
});
mAdView.loadAd(adRequest);
code inside layout.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.google.android.gms.ads.AdView android:id="#+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adSize="SMART_BANNER"
ads:adUnitId="#string/banner_ad_unit_id"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:visibility="gone">
</com.google.android.gms.ads.AdView>
</RelativeLayout>
Crash log:
05-01 19:39:16.305 124-124/? I/SurfaceFlinger﹕ Skip composition for [Built-in Screen (type:0)] since dirtyRegion is empty
05-01 19:39:16.321 124-124/? I/SurfaceFlinger﹕ Skip composition for [Built-in Screen (type:0)] since dirtyRegion is empty
05-01 19:39:16.330 2162-2162/? D/AndroidRuntime﹕ Shutting down VM
05-01 19:39:16.330 2162-2162/? W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41d79c98)
05-01 19:39:16.330 2162-2162/? W/dalvikvm﹕ threadid=1: uncaught exception occurred
05-01 19:39:16.331 2162-2162/? W/System.err﹕ java.lang.RuntimeException: Unable to start activity ComponentInfo{freshfrog.pytomat/freshfrog.pytomat.Main}: java.lang.NullPointerException
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.app.ActivityThread.access$800(ActivityThread.java:151)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:110)
05-01 19:39:16.332 2162-2162/? W/System.err﹕ at android.os.Looper.loop(Looper.java:193)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5292)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
05-01 19:39:16.333 2162-2162/? W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)
05-01 19:39:16.334 2162-2162/? W/System.err﹕ Caused by: java.lang.NullPointerException
05-01 19:39:16.334 2162-2162/? W/System.err﹕ at freshfrog.pytomat.Main.onCreate(Main.java:450)
05-01 19:39:16.334 2162-2162/? W/System.err﹕ at android.app.Activity.performCreate(Activity.java:5264)
05-01 19:39:16.334 2162-2162/? W/System.err﹕ at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
05-01 19:39:16.334 2162-2162/? W/System.err﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
05-01 19:39:16.335 2162-2162/? W/System.err﹕ ... 11 more
05-01 19:39:16.335 2162-2162/? W/dalvikvm﹕ threadid=1: calling UncaughtExceptionHandler
05-01 19:39:16.336 124-124/? I/SurfaceFlinger﹕ Skip composition for [Built-in Screen (type:0)] since dirtyRegion is empty
05-01 19:39:16.339 2162-2162/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: freshfrog.pytomat, PID: 2162
java.lang.RuntimeException: Unable to start activity ComponentInfo{freshfrog.pytomat/freshfrog.pytomat.Main}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at freshfrog.pytomat.Main.onCreate(Main.java:450)
at android.app.Activity.performCreate(Activity.java:5264)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
            at android.app.ActivityThread.access$800(ActivityThread.java:151)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
            at android.os.Handler.dispatchMessage(Handler.java:110)
            at android.os.Looper.loop(Looper.java:193)
            at android.app.ActivityThread.main(ActivityThread.java:5292)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
            at dalvik.system.NativeStart.main(Native Method)
05-01 19:39:16.341 654-669/? V/Provider/Settings﹕ from settings cache , name = dropbox:data_app_crash , value = null
05-01 19:39:16.342 654-669/? D/dalvikvm﹕ create interp thread : stack size=128KB
05-01 19:39:16.342 654-669/? D/dalvikvm﹕ create new thread
05-01 19:39:16.343 654-669/? D/dalvikvm﹕ new thread created
05-01 19:39:16.343 654-669/? D/dalvikvm﹕ update thread list
05-01 19:39:16.343 916-2188/? D/dalvikvm﹕ create interp thread : stack size=128KB
05-01 19:39:16.343 916-2188/? D/dalvikvm﹕ create new thread
05-01 19:39:16.343 916-2188/? D/dalvikvm﹕ new thread created
05-01 19:39:16.343 916-2188/? D/dalvikvm﹕ update thread list
05-01 19:39:16.343 654-2191/? D/dalvikvm﹕ threadid=82: interp stack at 0x64403000
05-01 19:39:16.343 654-2191/? D/dalvikvm﹕ threadid=82: created from interp
05-01 19:39:16.343 654-669/? D/dalvikvm﹕ start new thread
05-01 19:39:16.343 654-669/? V/Provider/Settings﹕ from settings cache , name = send_action_app_error , value = 1
05-01 19:39:16.343 654-669/? W/ActivityManager﹕ Force finishing activity freshfrog.pytomat/.Main
Logcat indicate this line (Main.java:450)
mAdView.setAdListener(new AdListener() {
what is this ?
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
what were you expecting? to hit both sides?
try this
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
and let the rest go
You are getting a NullPointerException on line 450 of Main.
Look at that line. Something there has not been initialised.
I solve my problem. This issue isn't connect with AdView. It was problem with project. I made small mistakes. I don't have this line
<?xml version="1.0" encoding="utf-8"?>
on the start of xml layout file. I don't know how it can event works.
I reboot device
I added missing line to xml
I clean project (Build > Clean Project)
I rebuild project (Build > Rebuild Project)
Then my apk starts work without progourd but crash when I enable this feature. So i find this solution
I configure progourd configuration file like this.

android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>

Added ActionBarCompat + NavDrawer to my project, running on 4.3 device is smooth, on 2.3 device I get the following exception:
09-08 15:09:15.229: E/AndroidRuntime(2964): FATAL EXCEPTION: main
09-08 15:09:15.229: E/AndroidRuntime(2964): android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
09-08 15:09:15.229: E/AndroidRuntime(2964): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:332)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.AbsListView.obtainView(AbsListView.java:1582)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.ListView.makeAndAddView(ListView.java:1801)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.ListView.fillDown(ListView.java:724)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.ListView.fillFromTop(ListView.java:781)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.ListView.layoutChildren(ListView.java:1652)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.AbsListView.onLayout(AbsListView.java:1412)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.View.layout(View.java:7175)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:702)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.View.layout(View.java:7175)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.View.layout(View.java:7175)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.View.layout(View.java:7175)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.View.layout(View.java:7175)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.View.layout(View.java:7175)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.ViewRoot.performTraversals(ViewRoot.java:1146)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.ViewRoot.handleMessage(ViewRoot.java:1866)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.os.Handler.dispatchMessage(Handler.java:99)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.os.Looper.loop(Looper.java:130)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.app.ActivityThread.main(ActivityThread.java:3687)
09-08 15:09:15.229: E/AndroidRuntime(2964): at java.lang.reflect.Method.invokeNative(Native Method)
09-08 15:09:15.229: E/AndroidRuntime(2964): at java.lang.reflect.Method.invoke(Method.java:507)
09-08 15:09:15.229: E/AndroidRuntime(2964): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
09-08 15:09:15.229: E/AndroidRuntime(2964): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
09-08 15:09:15.229: E/AndroidRuntime(2964): at dalvik.system.NativeStart.main(Native Method)
09-08 15:09:15.229: E/AndroidRuntime(2964): Caused by: java.lang.reflect.InvocationTargetException
09-08 15:09:15.229: E/AndroidRuntime(2964): at java.lang.reflect.Constructor.constructNative(Native Method)
09-08 15:09:15.229: E/AndroidRuntime(2964): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
09-08 15:09:15.229: E/AndroidRuntime(2964): ... 35 more
09-08 15:09:15.229: E/AndroidRuntime(2964): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x10102fd a=-1}
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.content.res.Resources.loadDrawable(Resources.java:1681)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.view.View.<init>(View.java:1951)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.TextView.<init>(TextView.java:389)
09-08 15:09:15.229: E/AndroidRuntime(2964): at android.widget.TextView.<init>(TextView.java:382)
09-08 15:09:15.229: E/AndroidRuntime(2964): ... 38 more
I've set up everything according to the manual with the right support packages etc...
Any idea ?
How can I determine the culprit xml file ?
Then you add ActionBarCompat to google's Navigation Drawer sample do not forget change native methods to SupportMethods: getActionBar() -> getSupportActionBar(); invalidateOptionsMenu() -> supportInvalidateOptionsMenu(); ...
and remove from drawer_list_item.xml and others attributes "?android:attr/..." that work only with API 14+
This great tutorial by Gabriele Mariotti must help you.

Android: Error inflating class <unknown> caused by OutOfMemoryError: bitmap size exceeds VM budget

I have a Error inflating class error that seemed to be caused by Bitmap (more details here: Android: Memory error because of an ImageView?) but when I comment the bitmap I still have the error while when I comment the Imageview5, no error. All the posts on stackoverflow about this error did not help solving my problem
02-04 10:03:04.353: E/AndroidRuntime(17427): FATAL EXCEPTION: main
02-04 10:03:04.353: E/AndroidRuntime(17427): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.kersplatt/com.example.kersplatt.ShareActivity}: android.view.InflateException: Binary XML file line #23: Error inflating class <unknown>
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.os.Handler.dispatchMessage(Handler.java:99)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.os.Looper.loop(Looper.java:130)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.app.ActivityThread.main(ActivityThread.java:3683)
02-04 10:03:04.353: E/AndroidRuntime(17427): at java.lang.reflect.Method.invokeNative(Native Method)
02-04 10:03:04.353: E/AndroidRuntime(17427): at java.lang.reflect.Method.invoke(Method.java:507)
02-04 10:03:04.353: E/AndroidRuntime(17427): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
02-04 10:03:04.353: E/AndroidRuntime(17427): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
02-04 10:03:04.353: E/AndroidRuntime(17427): at dalvik.system.NativeStart.main(Native Method)
02-04 10:03:04.353: E/AndroidRuntime(17427): Caused by: android.view.InflateException: Binary XML file line #23: Error inflating class <unknown>
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
02-04 10:03:04.353: E/AndroidRuntime(17427): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
02-04 10:03:04.353: E/AndroidRuntime(17427): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:209)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.app.Activity.setContentView(Activity.java:1657)
02-04 10:03:04.353: E/AndroidRuntime(17427): at com.example.kersplatt.ShareActivity.onCreate(ShareActivity.java:64)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
02-04 10:03:04.353: E/AndroidRuntime(17427): ... 11 more
02-04 10:03:04.353: E/AndroidRuntime(17427): Caused by: java.lang.reflect.InvocationTargetException
02-04 10:03:04.353: E/AndroidRuntime(17427): at java.lang.reflect.Constructor.constructNative(Native Method)
02-04 10:03:04.353: E/AndroidRuntime(17427): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
02-04 10:03:04.353: E/AndroidRuntime(17427): ... 23 more
02-04 10:03:04.353: E/AndroidRuntime(17427): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:460)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:336)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.content.res.Resources.loadDrawable(Resources.java:1709)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.widget.ImageView.<init>(ImageView.java:118)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.widget.ImageView.<init>(ImageView.java:108)
02-04 10:03:04.353: E/AndroidRuntime(17427): ... 26 more
and my line 23 is imageview5
<ImageView
android:id="#+id/imageView5"
android:layout_width="85dp"
android:layout_height="100dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="20dp"
android:adjustViewBounds="true"
android:src="#drawable/diviseur" />
It's a pretty misleading error, but it's caused by a nested exception, because the VM has run out of memory for the drawable diviseur. See the end of the stack trace:
02-04 10:03:04.353: E/AndroidRuntime(17427): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:460)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:336)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.content.res.Resources.loadDrawable(Resources.java:1709)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.widget.ImageView.<init>(ImageView.java:118)
02-04 10:03:04.353: E/AndroidRuntime(17427): at android.widget.ImageView.<init>(ImageView.java:108)
02-04 10:03:04.353: E/AndroidRuntime(17427): ... 26 more
Sometimes this may happen, the best practice is to create a scaled bitmap using the bitmap factory,
Bitmap result = Bitmap.createScaledBitmap(bitmapPicture,
imageWidth, imageHeight, false);
Try this and see if it helps
Also use,
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inPurgeable = true; // Tell to garbage collector that whether it needs free memory, the Bitmap can be cleared
opts.inTempStorage = new byte[32 * 1024];
and always recycle your bitmap when you leave that activity as it helps in freeing memory.
Hope this helps
I got the same error. My problem was that every phone loaded a 2k image as background of the activity. I solved the problem by scaling down this background image to 800x480 and 1280x720. Then I put this images into the ldpi, mdpi, ... folders.Now it works

ethe App. crashs after adding google maps tag in the xml file

After adding the following lines to the .xml file, the App crashs.
And how to get the map api key??
Any suggestions.
.xml code:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/mainlayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<com.google.android.maps.MapView
android:id="#+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="Your Maps API Key"
android:clickable="true" />
</RelativeLayout>
LogCat:
03-03 19:22:31.978: E/AndroidRuntime(871): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-03 19:22:31.978: E/AndroidRuntime(871): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-03 19:22:31.978: E/AndroidRuntime(871): at android.os.Handler.dispatchMessage(Handler.java:99)
03-03 19:22:31.978: E/AndroidRuntime(871): at android.os.Looper.loop(Looper.java:130)
03-03 19:22:31.978: E/AndroidRuntime(871): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-03 19:22:31.978: E/AndroidRuntime(871): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 19:22:31.978: E/AndroidRuntime(871): at java.lang.reflect.Method.invoke(Method.java:507)
03-03 19:22:31.978: E/AndroidRuntime(871): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-03 19:22:31.978: E/AndroidRuntime(871): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-03 19:22:31.978: E/AndroidRuntime(871): at dalvik.system.NativeStart.main(Native Method)
03-03 19:22:31.978: E/AndroidRuntime(871): Caused by: java.lang.IllegalArgumentException: provider==null
03-03 19:22:31.978: E/AndroidRuntime(871): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:441)
03-03 19:22:31.978: E/AndroidRuntime(871): at com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity.onResume(LocationsAPIDemoActivity.java:54)
03-03 19:22:31.978: E/AndroidRuntime(871): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
03-03 19:22:31.978: E/AndroidRuntime(871): at android.app.Activity.performResume(Activity.java:3832)
03-03 19:22:31.978: E/AndroidRuntime(871): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
03-03 19:22:31.978: E/AndroidRuntime(871): ... 12 more
03-03 20:16:50.698: E/AndroidRuntime(1012): FATAL EXCEPTION: main
03-03 20:16:50.698: E/AndroidRuntime(1012): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.androidbook.LocationsAPIDemo/com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.os.Handler.dispatchMessage(Handler.java:99)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.os.Looper.loop(Looper.java:130)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-03 20:16:50.698: E/AndroidRuntime(1012): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 20:16:50.698: E/AndroidRuntime(1012): at java.lang.reflect.Method.invoke(Method.java:507)
03-03 20:16:50.698: E/AndroidRuntime(1012): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-03 20:16:50.698: E/AndroidRuntime(1012): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-03 20:16:50.698: E/AndroidRuntime(1012): at dalvik.system.NativeStart.main(Native Method)
03-03 20:16:50.698: E/AndroidRuntime(1012): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-03 20:16:50.698: E/AndroidRuntime(1012): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.app.Activity.setContentView(Activity.java:1657)
03-03 20:16:50.698: E/AndroidRuntime(1012): at com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity.onCreate(LocationsAPIDemoActivity.java:27)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
03-03 20:16:50.698: E/AndroidRuntime(1012): ... 11 more
03-03 20:16:50.698: E/AndroidRuntime(1012): Caused by: java.lang.reflect.InvocationTargetException
03-03 20:16:50.698: E/AndroidRuntime(1012): at java.lang.reflect.Constructor.constructNative(Native Method)
03-03 20:16:50.698: E/AndroidRuntime(1012): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
03-03 20:16:50.698: E/AndroidRuntime(1012): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
03-03 20:16:50.698: E/AndroidRuntime(1012): ... 22 more
03-03 20:16:50.698: E/AndroidRuntime(1012): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
03-03 20:16:50.698: E/AndroidRuntime(1012): at com.google.android.maps.MapView.<init>(MapView.java:291)
03-03 20:16:50.698: E/AndroidRuntime(1012): at com.google.android.maps.MapView.<init>(MapView.java:264)
03-03 20:16:50.698: E/AndroidRuntime(1012): at com.google.android.maps.MapView.<init>(MapView.java:247)
03-03 20:16:50.698: E/AndroidRuntime(1012): ... 25 more
03-03 20:18:33.568: E/AndroidRuntime(1045): FATAL EXCEPTION: main
03-03 20:18:33.568: E/AndroidRuntime(1045): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.androidbook.LocationsAPIDemo/com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.os.Handler.dispatchMessage(Handler.java:99)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.os.Looper.loop(Looper.java:130)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-03 20:18:33.568: E/AndroidRuntime(1045): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 20:18:33.568: E/AndroidRuntime(1045): at java.lang.reflect.Method.invoke(Method.java:507)
03-03 20:18:33.568: E/AndroidRuntime(1045): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-03 20:18:33.568: E/AndroidRuntime(1045): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-03 20:18:33.568: E/AndroidRuntime(1045): at dalvik.system.NativeStart.main(Native Method)
03-03 20:18:33.568: E/AndroidRuntime(1045): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-03 20:18:33.568: E/AndroidRuntime(1045): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.app.Activity.setContentView(Activity.java:1657)
03-03 20:18:33.568: E/AndroidRuntime(1045): at com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity.onCreate(LocationsAPIDemoActivity.java:27)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
03-03 20:18:33.568: E/AndroidRuntime(1045): ... 11 more
03-03 20:18:33.568: E/AndroidRuntime(1045): Caused by: java.lang.reflect.InvocationTargetException
03-03 20:18:33.568: E/AndroidRuntime(1045): at java.lang.reflect.Constructor.constructNative(Native Method)
03-03 20:18:33.568: E/AndroidRuntime(1045): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
03-03 20:18:33.568: E/AndroidRuntime(1045): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
03-03 20:18:33.568: E/AndroidRuntime(1045): ... 22 more
03-03 20:18:33.568: E/AndroidRuntime(1045): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
03-03 20:18:33.568: E/AndroidRuntime(1045): at com.google.android.maps.MapView.<init>(MapView.java:291)
03-03 20:18:33.568: E/AndroidRuntime(1045): at com.google.android.maps.MapView.<init>(MapView.java:264)
03-03 20:18:33.568: E/AndroidRuntime(1045): at com.google.android.maps.MapView.<init>(MapView.java:247)
03-03 20:18:33.568: E/AndroidRuntime(1045): ... 25 more
03-03 20:29:14.449: E/AndroidRuntime(1079): FATAL EXCEPTION: main
03-03 20:29:14.449: E/AndroidRuntime(1079): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.androidbook.LocationsAPIDemo/com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.os.Handler.dispatchMessage(Handler.java:99)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.os.Looper.loop(Looper.java:130)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-03 20:29:14.449: E/AndroidRuntime(1079): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 20:29:14.449: E/AndroidRuntime(1079): at java.lang.reflect.Method.invoke(Method.java:507)
03-03 20:29:14.449: E/AndroidRuntime(1079): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-03 20:29:14.449: E/AndroidRuntime(1079): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-03 20:29:14.449: E/AndroidRuntime(1079): at dalvik.system.NativeStart.main(Native Method)
03-03 20:29:14.449: E/AndroidRuntime(1079): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-03 20:29:14.449: E/AndroidRuntime(1079): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.app.Activity.setContentView(Activity.java:1657)
03-03 20:29:14.449: E/AndroidRuntime(1079): at com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity.onCreate(LocationsAPIDemoActivity.java:27)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
03-03 20:29:14.449: E/AndroidRuntime(1079): ... 11 more
03-03 20:29:14.449: E/AndroidRuntime(1079): Caused by: java.lang.reflect.InvocationTargetException
03-03 20:29:14.449: E/AndroidRuntime(1079): at java.lang.reflect.Constructor.constructNative(Native Method)
03-03 20:29:14.449: E/AndroidRuntime(1079): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
03-03 20:29:14.449: E/AndroidRuntime(1079): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
03-03 20:29:14.449: E/AndroidRuntime(1079): ... 22 more
03-03 20:29:14.449: E/AndroidRuntime(1079): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
03-03 20:29:14.449: E/AndroidRuntime(1079): at com.google.android.maps.MapView.<init>(MapView.java:291)
03-03 20:29:14.449: E/AndroidRuntime(1079): at com.google.android.maps.MapView.<init>(MapView.java:264)
03-03 20:29:14.449: E/AndroidRuntime(1079): at com.google.android.maps.MapView.<init>(MapView.java:247)
03-03 20:29:14.449: E/AndroidRuntime(1079): ... 25 more
03-03 20:30:06.300: E/AndroidRuntime(1112): FATAL EXCEPTION: main
03-03 20:30:06.300: E/AndroidRuntime(1112): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.androidbook.LocationsAPIDemo/com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.os.Handler.dispatchMessage(Handler.java:99)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.os.Looper.loop(Looper.java:130)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-03 20:30:06.300: E/AndroidRuntime(1112): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 20:30:06.300: E/AndroidRuntime(1112): at java.lang.reflect.Method.invoke(Method.java:507)
03-03 20:30:06.300: E/AndroidRuntime(1112): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-03 20:30:06.300: E/AndroidRuntime(1112): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-03 20:30:06.300: E/AndroidRuntime(1112): at dalvik.system.NativeStart.main(Native Method)
03-03 20:30:06.300: E/AndroidRuntime(1112): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-03 20:30:06.300: E/AndroidRuntime(1112): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.app.Activity.setContentView(Activity.java:1657)
03-03 20:30:06.300: E/AndroidRuntime(1112): at com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity.onCreate(LocationsAPIDemoActivity.java:27)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
03-03 20:30:06.300: E/AndroidRuntime(1112): ... 11 more
03-03 20:30:06.300: E/AndroidRuntime(1112): Caused by: java.lang.reflect.InvocationTargetException
03-03 20:30:06.300: E/AndroidRuntime(1112): at java.lang.reflect.Constructor.constructNative(Native Method)
03-03 20:30:06.300: E/AndroidRuntime(1112): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
03-03 20:30:06.300: E/AndroidRuntime(1112): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
03-03 20:30:06.300: E/AndroidRuntime(1112): ... 22 more
03-03 20:30:06.300: E/AndroidRuntime(1112): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
03-03 20:30:06.300: E/AndroidRuntime(1112): at com.google.android.maps.MapView.<init>(MapView.java:291)
03-03 20:30:06.300: E/AndroidRuntime(1112): at com.google.android.maps.MapView.<init>(MapView.java:264)
03-03 20:30:06.300: E/AndroidRuntime(1112): at com.google.android.maps.MapView.<init>(MapView.java:247)
03-03 20:30:06.300: E/AndroidRuntime(1112): ... 25 more
03-03 21:05:44.128: E/AndroidRuntime(1148): FATAL EXCEPTION: main
03-03 21:05:44.128: E/AndroidRuntime(1148): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.androidbook.LocationsAPIDemo/com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.os.Handler.dispatchMessage(Handler.java:99)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.os.Looper.loop(Looper.java:130)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-03 21:05:44.128: E/AndroidRuntime(1148): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 21:05:44.128: E/AndroidRuntime(1148): at java.lang.reflect.Method.invoke(Method.java:507)
03-03 21:05:44.128: E/AndroidRuntime(1148): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-03 21:05:44.128: E/AndroidRuntime(1148): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-03 21:05:44.128: E/AndroidRuntime(1148): at dalvik.system.NativeStart.main(Native Method)
03-03 21:05:44.128: E/AndroidRuntime(1148): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-03 21:05:44.128: E/AndroidRuntime(1148): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.app.Activity.setContentView(Activity.java:1657)
03-03 21:05:44.128: E/AndroidRuntime(1148): at com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity.onCreate(LocationsAPIDemoActivity.java:27)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
03-03 21:05:44.128: E/AndroidRuntime(1148): ... 11 more
03-03 21:05:44.128: E/AndroidRuntime(1148): Caused by: java.lang.reflect.InvocationTargetException
03-03 21:05:44.128: E/AndroidRuntime(1148): at java.lang.reflect.Constructor.constructNative(Native Method)
03-03 21:05:44.128: E/AndroidRuntime(1148): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
03-03 21:05:44.128: E/AndroidRuntime(1148): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
03-03 21:05:44.128: E/AndroidRuntime(1148): ... 22 more
03-03 21:05:44.128: E/AndroidRuntime(1148): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
03-03 21:05:44.128: E/AndroidRuntime(1148): at com.google.android.maps.MapView.<init>(MapView.java:291)
03-03 21:05:44.128: E/AndroidRuntime(1148): at com.google.android.maps.MapView.<init>(MapView.java:264)
03-03 21:05:44.128: E/AndroidRuntime(1148): at com.google.android.maps.MapView.<init>(MapView.java:247)
03-03 21:05:44.128: E/AndroidRuntime(1148): ... 25 more
03-03 23:02:31.318: E/AndroidRuntime(1190): FATAL EXCEPTION: main
03-03 23:02:31.318: E/AndroidRuntime(1190): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.androidbook.LocationsAPIDemo/com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.os.Handler.dispatchMessage(Handler.java:99)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.os.Looper.loop(Looper.java:130)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-03 23:02:31.318: E/AndroidRuntime(1190): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 23:02:31.318: E/AndroidRuntime(1190): at java.lang.reflect.Method.invoke(Method.java:507)
03-03 23:02:31.318: E/AndroidRuntime(1190): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-03 23:02:31.318: E/AndroidRuntime(1190): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-03 23:02:31.318: E/AndroidRuntime(1190): at dalvik.system.NativeStart.main(Native Method)
03-03 23:02:31.318: E/AndroidRuntime(1190): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class com.google.android.maps.MapView
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
03-03 23:02:31.318: E/AndroidRuntime(1190): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:207)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.app.Activity.setContentView(Activity.java:1657)
03-03 23:02:31.318: E/AndroidRuntime(1190): at com.androidbook.LocationsAPIDemo.LocationsAPIDemoActivity.onCreate(LocationsAPIDemoActivity.java:27)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
03-03 23:02:31.318: E/AndroidRuntime(1190): ... 11 more
03-03 23:02:31.318: E/AndroidRuntime(1190): Caused by: java.lang.reflect.InvocationTargetException
03-03 23:02:31.318: E/AndroidRuntime(1190): at java.lang.reflect.Constructor.constructNative(Native Method)
03-03 23:02:31.318: E/AndroidRuntime(1190): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
03-03 23:02:31.318: E/AndroidRuntime(1190): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
03-03 23:02:31.318: E/AndroidRuntime(1190): ... 22 more
03-03 23:02:31.318: E/AndroidRuntime(1190): Caused by: java.lang.IllegalArgumentException: MapViews can only be created inside instances of MapActivity.
03-03 23:02:31.318: E/AndroidRuntime(1190): at com.google.android.maps.MapView.<init>(MapView.java:291)
03-03 23:02:31.318: E/AndroidRuntime(1190): at com.google.android.maps.MapView.<init>(MapView.java:264)
03-03 23:02:31.318: E/AndroidRuntime(1190): at com.google.android.maps.MapView.<init>(MapView.java:247)
03-03 23:02:31.318: E/AndroidRuntime(1190): ... 25 more
You haven't posted the LogCat output, so it's hard to know why it is crashing, but it's probably because you've left the comment in there for the Maps key.
Here's a tutorial explaining how to get a (free) Google Maps API key, to insert into your app. Note that you generally need TWO. One is for your app when it's in debug mode (using the debug signing key). the other is for when you use a production version of the app (signed with a production signing key).
http://remwebdevelopment.com/dev/a35/Android-How-To-Set-Up-an-API-Key-for-Google-Maps.html

Categories

Resources