When I run my android application it gives an error "The application has stopped working,please try again". Please help me to solve this problem. i have created a method which gets called when the button gets clicked. When I include the code for calling another class in this method it shows the above error & when I remove that code it neither shows the error nor goes ahead when listview etc. gets clicked. Can you please check my code and help me please.
CODE:
public void myClickHandler(View view)
{
//Toast.makeText(this, "yesss",Toast.LENGTH_LONG).show();
setContentView(R.layout.screen1);
ListAdapter adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, city);
ListView FirstProjectActivity = (ListView) findViewById(R.id.mylist1);
FirstProjectActivity.setAdapter(adapter);
Intent myIntent = new Intent(FirstProjectActivity.this,
City.class);
FirstProjectActivity.this.startActivity(myIntent);
//startActivity(new Intent(FirstProjectActivity.this, City.class));
}
LOGCAT is as follows:
03-02 18:56:28.136: D/AndroidRuntime(316): Shutting down VM
03-02 18:56:28.136: W/dalvikvm(316): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-02 18:56:28.226: E/AndroidRuntime(316): FATAL EXCEPTION: main
03-02 18:56:28.226: E/AndroidRuntime(316): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.FirstProject/com.example.FirstProject.FirstProjectActivity}: java.lang.NullPointerException
03-02 18:56:28.226: E/AndroidRuntime(316): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
03-02 18:56:28.226: E/AndroidRuntime(316): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-02 18:56:28.226: E/AndroidRuntime(316): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-02 18:56:28.226: E/AndroidRuntime(316): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-02 18:56:28.226: E/AndroidRuntime(316): at android.os.Handler.dispatchMessage(Handler.java:99)
03-02 18:56:28.226: E/AndroidRuntime(316): at android.os.Looper.loop(Looper.java:123)
03-02 18:56:28.226: E/AndroidRuntime(316): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-02 18:56:28.226: E/AndroidRuntime(316): at java.lang.reflect.Method.invokeNative(Native Method)
03-02 18:56:28.226: E/AndroidRuntime(316): at java.lang.reflect.Method.invoke(Method.java:521)
03-02 18:56:28.226: E/AndroidRuntime(316): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-02 18:56:28.226: E/AndroidRuntime(316): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-02 18:56:28.226: E/AndroidRuntime(316): at dalvik.system.NativeStart.main(Native Method)
03-02 18:56:28.226: E/AndroidRuntime(316): Caused by: java.lang.NullPointerException
03-02 18:56:28.226: E/AndroidRuntime(316): at com.example.FirstProject.FirstProjectActivity.onCreate(FirstProjectActivity.java:37)
03-02 18:56:28.226: E/AndroidRuntime(316): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-02 18:56:28.226: E/AndroidRuntime(316): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-02 18:56:28.226: E/AndroidRuntime(316): ... 11 more
03-02 18:56:35.396: I/Process(316): Sending signal. PID: 316 SIG: 9
03-02 19:02:51.836: D/AndroidRuntime(351): Shutting down VM
03-02 19:02:51.836: W/dalvikvm(351): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-02 19:02:51.866: E/AndroidRuntime(351): FATAL EXCEPTION: main
03-02 19:02:51.866: E/AndroidRuntime(351): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.FirstProject/com.example.FirstProject.FirstProjectActivity}: java.lang.NullPointerException
03-02 19:02:51.866: E/AndroidRuntime(351): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
03-02 19:02:51.866: E/AndroidRuntime(351): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-02 19:02:51.866: E/AndroidRuntime(351): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-02 19:02:51.866: E/AndroidRuntime(351): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-02 19:02:51.866: E/AndroidRuntime(351): at android.os.Handler.dispatchMessage(Handler.java:99)
03-02 19:02:51.866: E/AndroidRuntime(351): at android.os.Looper.loop(Looper.java:123)
03-02 19:02:51.866: E/AndroidRuntime(351): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-02 19:02:51.866: E/AndroidRuntime(351): at java.lang.reflect.Method.invokeNative(Native Method)
03-02 19:02:51.866: E/AndroidRuntime(351): at java.lang.reflect.Method.invoke(Method.java:521)
03-02 19:02:51.866: E/AndroidRuntime(351): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-02 19:02:51.866: E/AndroidRuntime(351): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-02 19:02:51.866: E/AndroidRuntime(351): at dalvik.system.NativeStart.main(Native Method)
03-02 19:02:51.866: E/AndroidRuntime(351): Caused by: java.lang.NullPointerException
03-02 19:02:51.866: E/AndroidRuntime(351): at com.example.FirstProject.FirstProjectActivity.onCreate(FirstProjectActivity.java:37)
03-02 19:02:51.866: E/AndroidRuntime(351): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-02 19:02:51.866: E/AndroidRuntime(351): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-02 19:02:51.866: E/AndroidRuntime(351): ... 11 more
03-02 19:03:03.647: I/Process(351): Sending signal. PID: 351 SIG: 9
03-02 20:11:17.722: W/KeyCharacterMap(379): No keyboard for id 0
03-02 20:11:17.926: W/KeyCharacterMap(379): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
03-02 20:11:28.441: D/dalvikvm(379): GC_EXPLICIT freed 3121 objects / 172672 bytes in 1696ms
03-03 01:03:02.696: W/KeyCharacterMap(406): No keyboard for id 0
03-03 01:03:02.696: W/KeyCharacterMap(406): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
03-03 01:03:08.566: D/dalvikvm(406): GC_EXPLICIT freed 2874 objects / 162408 bytes in 192ms
03-03 01:33:06.566: D/AndroidRuntime(432): Shutting down VM
03-03 01:33:06.566: W/dalvikvm(432): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-03 01:33:06.726: E/AndroidRuntime(432): FATAL EXCEPTION: main
03-03 01:33:06.726: E/AndroidRuntime(432): java.lang.IllegalStateException: Could not execute method of the activity
03-03 01:33:06.726: E/AndroidRuntime(432): at android.view.View$1.onClick(View.java:2072)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.view.View.performClick(View.java:2408)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.view.View$PerformClick.run(View.java:8816)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.os.Handler.handleCallback(Handler.java:587)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.os.Handler.dispatchMessage(Handler.java:92)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.os.Looper.loop(Looper.java:123)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-03 01:33:06.726: E/AndroidRuntime(432): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 01:33:06.726: E/AndroidRuntime(432): at java.lang.reflect.Method.invoke(Method.java:521)
03-03 01:33:06.726: E/AndroidRuntime(432): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-03 01:33:06.726: E/AndroidRuntime(432): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-03 01:33:06.726: E/AndroidRuntime(432): at dalvik.system.NativeStart.main(Native Method)
03-03 01:33:06.726: E/AndroidRuntime(432): Caused by: java.lang.reflect.InvocationTargetException
03-03 01:33:06.726: E/AndroidRuntime(432): at com.example.FirstProject.FirstProjectActivity.myClickHandler(FirstProjectActivity.java:69)
03-03 01:33:06.726: E/AndroidRuntime(432): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 01:33:06.726: E/AndroidRuntime(432): at java.lang.reflect.Method.invoke(Method.java:521)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.view.View$1.onClick(View.java:2067)
03-03 01:33:06.726: E/AndroidRuntime(432): ... 11 more
03-03 01:33:06.726: E/AndroidRuntime(432): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.FirstProject/com.example.FirstProject.City}; have you declared this activity in your AndroidManifest.xml?
03-03 01:33:06.726: E/AndroidRuntime(432): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.app.Activity.startActivityForResult(Activity.java:2817)
03-03 01:33:06.726: E/AndroidRuntime(432): at android.app.Activity.startActivity(Activity.java:2923)
03-03 01:33:06.726: E/AndroidRuntime(432): ... 15 more
03-03 01:33:08.956: I/Process(432): Sending signal. PID: 432 SIG: 9
03-03 01:34:05.387: D/AndroidRuntime(460): Shutting down VM
03-03 01:34:05.387: W/dalvikvm(460): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-03 01:34:05.417: E/AndroidRuntime(460): FATAL EXCEPTION: main
03-03 01:34:05.417: E/AndroidRuntime(460): java.lang.IllegalStateException: Could not execute method of the activity
03-03 01:34:05.417: E/AndroidRuntime(460): at android.view.View$1.onClick(View.java:2072)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.view.View.performClick(View.java:2408)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.view.View$PerformClick.run(View.java:8816)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.os.Handler.handleCallback(Handler.java:587)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.os.Handler.dispatchMessage(Handler.java:92)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.os.Looper.loop(Looper.java:123)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-03 01:34:05.417: E/AndroidRuntime(460): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 01:34:05.417: E/AndroidRuntime(460): at java.lang.reflect.Method.invoke(Method.java:521)
03-03 01:34:05.417: E/AndroidRuntime(460): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-03 01:34:05.417: E/AndroidRuntime(460): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-03 01:34:05.417: E/AndroidRuntime(460): at dalvik.system.NativeStart.main(Native Method)
03-03 01:34:05.417: E/AndroidRuntime(460): Caused by: java.lang.reflect.InvocationTargetException
03-03 01:34:05.417: E/AndroidRuntime(460): at com.example.FirstProject.FirstProjectActivity.myClickHandler(FirstProjectActivity.java:70)
03-03 01:34:05.417: E/AndroidRuntime(460): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 01:34:05.417: E/AndroidRuntime(460): at java.lang.reflect.Method.invoke(Method.java:521)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.view.View$1.onClick(View.java:2067)
03-03 01:34:05.417: E/AndroidRuntime(460): ... 11 more
03-03 01:34:05.417: E/AndroidRuntime(460): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.FirstProject/com.example.FirstProject.City}; have you declared this activity in your AndroidManifest.xml?
03-03 01:34:05.417: E/AndroidRuntime(460): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.app.Activity.startActivityForResult(Activity.java:2817)
03-03 01:34:05.417: E/AndroidRuntime(460): at android.app.Activity.startActivity(Activity.java:2923)
03-03 01:34:05.417: E/AndroidRuntime(460): ... 15 more
03-03 01:34:11.016: I/Process(460): Sending signal. PID: 460 SIG: 9
03-03 01:35:33.547: D/AndroidRuntime(490): Shutting down VM
03-03 01:35:33.557: W/dalvikvm(490): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-03 01:35:33.577: E/AndroidRuntime(490): FATAL EXCEPTION: main
03-03 01:35:33.577: E/AndroidRuntime(490): java.lang.IllegalStateException: Could not execute method of the activity
03-03 01:35:33.577: E/AndroidRuntime(490): at android.view.View$1.onClick(View.java:2072)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.view.View.performClick(View.java:2408)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.view.View$PerformClick.run(View.java:8816)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.os.Handler.handleCallback(Handler.java:587)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.os.Handler.dispatchMessage(Handler.java:92)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.os.Looper.loop(Looper.java:123)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-03 01:35:33.577: E/AndroidRuntime(490): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 01:35:33.577: E/AndroidRuntime(490): at java.lang.reflect.Method.invoke(Method.java:521)
03-03 01:35:33.577: E/AndroidRuntime(490): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-03 01:35:33.577: E/AndroidRuntime(490): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-03 01:35:33.577: E/AndroidRuntime(490): at dalvik.system.NativeStart.main(Native Method)
03-03 01:35:33.577: E/AndroidRuntime(490): Caused by: java.lang.reflect.InvocationTargetException
03-03 01:35:33.577: E/AndroidRuntime(490): at com.example.FirstProject.FirstProjectActivity.myClickHandler(FirstProjectActivity.java:70)
03-03 01:35:33.577: E/AndroidRuntime(490): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 01:35:33.577: E/AndroidRuntime(490): at java.lang.reflect.Method.invoke(Method.java:521)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.view.View$1.onClick(View.java:2067)
03-03 01:35:33.577: E/AndroidRuntime(490): ... 11 more
03-03 01:35:33.577: E/AndroidRuntime(490): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.FirstProject/com.example.FirstProject.City}; have you declared this activity in your AndroidManifest.xml?
03-03 01:35:33.577: E/AndroidRuntime(490): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.app.Activity.startActivityForResult(Activity.java:2817)
03-03 01:35:33.577: E/AndroidRuntime(490): at android.app.Activity.startActivity(Activity.java:2923)
03-03 01:35:33.577: E/AndroidRuntime(490): ... 15 more
03-03 01:35:39.176: I/Process(490): Sending signal. PID: 490 SIG: 9
03-03 01:36:06.947: D/AndroidRuntime(517): Shutting down VM
03-03 01:36:06.947: W/dalvikvm(517): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-03 01:36:06.967: E/AndroidRuntime(517): FATAL EXCEPTION: main
03-03 01:36:06.967: E/AndroidRuntime(517): java.lang.IllegalStateException: Could not execute method of the activity
03-03 01:36:06.967: E/AndroidRuntime(517): at android.view.View$1.onClick(View.java:2072)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.view.View.performClick(View.java:2408)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.view.View$PerformClick.run(View.java:8816)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.os.Handler.handleCallback(Handler.java:587)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.os.Handler.dispatchMessage(Handler.java:92)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.os.Looper.loop(Looper.java:123)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-03 01:36:06.967: E/AndroidRuntime(517): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 01:36:06.967: E/AndroidRuntime(517): at java.lang.reflect.Method.invoke(Method.java:521)
03-03 01:36:06.967: E/AndroidRuntime(517): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-03 01:36:06.967: E/AndroidRuntime(517): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-03 01:36:06.967: E/AndroidRuntime(517): at dalvik.system.NativeStart.main(Native Method)
03-03 01:36:06.967: E/AndroidRuntime(517): Caused by: java.lang.reflect.InvocationTargetException
03-03 01:36:06.967: E/AndroidRuntime(517): at com.example.FirstProject.FirstProjectActivity.myClickHandler(FirstProjectActivity.java:70)
03-03 01:36:06.967: E/AndroidRuntime(517): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 01:36:06.967: E/AndroidRuntime(517): at java.lang.reflect.Method.invoke(Method.java:521)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.view.View$1.onClick(View.java:2067)
03-03 01:36:06.967: E/AndroidRuntime(517): ... 11 more
03-03 01:36:06.967: E/AndroidRuntime(517): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.FirstProject/com.example.FirstProject.City}; have you declared this activity in your AndroidManifest.xml?
03-03 01:36:06.967: E/AndroidRuntime(517): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.app.Activity.startActivityForResult(Activity.java:2817)
03-03 01:36:06.967: E/AndroidRuntime(517): at android.app.Activity.startActivity(Activity.java:2923)
03-03 01:36:06.967: E/AndroidRuntime(517): ... 15 more
03-03 01:36:13.306: I/Process(517): Sending signal. PID: 517 SIG: 9
When you want to detect if you click on an item you need to implement the onItemClickedListener i will give you an example below like i would do it:
listView.setOnItemClickListener(new MyOnitemClickListener());
//no i make my own class that impelemnts the onitemclicklistener
public class MyOnitemClickListener implements OnItemClickListener {
private int position = 0;
public void onItemClick(AdapterView<?> parent, View view, int pos,
long lat) {
// clicked on parent.getid()
if (parent.getId() == R.id.listView) {
//do something
}
}
}
after a crash, try looking for the first couple of red lines the LOGCAT spews to you as they usually explain what happened.
the following line :
java.lang.NullPointerException
(in line 5) showed up on you log, it usually means your trying to use an uninitialized object.
refer to:
What is a NullPointerException, and how do I fix it?
Related
case R.id.action_logout:
Intent offer = new Intent(context,OfferDetailActivity.class);
//offer.addFlags(offer.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
FacebookHelper.logoutUser(this);
startActivity(offer);
The Above mentioned code cause an error and force closes the application i cant understand what the error
The logcat is showing below Errors
03-03 10:06:51.590: D/AndroidRuntime(8707): Shutting down VM
03-03 10:06:51.590: W/dalvikvm(8707): threadid=1: thread exiting with uncaught exception (group=0x40018578)
03-03 10:06:51.590: E/AndroidRuntime(8707): FATAL EXCEPTION: main
03-03 10:06:51.590: E/AndroidRuntime(8707): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cartperk.android.cartperk/com.cartperk.android.cartperk.ui.OfferDetailActivity}: java.lang.NullPointerException
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.os.Handler.dispatchMessage(Handler.java:99)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.os.Looper.loop(Looper.java:123)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.app.ActivityThread.main(ActivityThread.java:3687)
03-03 10:06:51.590: E/AndroidRuntime(8707): at java.lang.reflect.Method.invokeNative(Native Method)
03-03 10:06:51.590: E/AndroidRuntime(8707): at java.lang.reflect.Method.invoke(Method.java:507)
03-03 10:06:51.590: E/AndroidRuntime(8707): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
03-03 10:06:51.590: E/AndroidRuntime(8707): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
03-03 10:06:51.590: E/AndroidRuntime(8707): at dalvik.system.NativeStart.main(Native Method)
03-03 10:06:51.590: E/AndroidRuntime(8707): Caused by: java.lang.NullPointerException
03-03 10:06:51.590: E/AndroidRuntime(8707): at com.cartperk.android.cartperk.ui.OfferDetailFragment.onActivityCreated(OfferDetailFragment.java:92)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1508)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:947)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1086)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1884)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:566)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.app.Activity.performStart(Activity.java:3791)
03-03 10:06:51.590: E/AndroidRuntime(8707): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1624)
03-03 10:06:51.590: E/AndroidRuntime(8707): ... 11 more
Thank You
I am a newbie to Android App programming. I decompiled an APK and imported into Eclipse. I ran it on an Android emulator and I got the message below on Logcat. Can someone give me an idea where to start looking. The app works on the Android phone. Thanks.
11-24 13:41:39.046: D/AndroidRuntime(363): Shutting down VM
11-24 13:41:39.046: W/dalvikvm(363): threadid=1: thread exiting with uncaught exception (group=0x40015560)
11-24 13:41:39.126: E/AndroidRuntime(363): FATAL EXCEPTION: main
11-24 13:41:39.126: E/AndroidRuntime(363): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.breakeven/com.breakeven.BreakEvenCalculatorActivity}: java.lang.ClassNotFoundException: com.breakeven.BreakEvenCalculatorActivity in loader dalvik.system.PathClassLoader[/data/app/com.breakeven-1.apk]
11-24 13:41:39.126: E/AndroidRuntime(363): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
11-24 13:41:39.126: E/AndroidRuntime(363): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
11-24 13:41:39.126: E/AndroidRuntime(363): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
11-24 13:41:39.126: E/AndroidRuntime(363): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
11-24 13:41:39.126: E/AndroidRuntime(363): at android.os.Handler.dispatchMessage(Handler.java:99)
11-24 13:41:39.126: E/AndroidRuntime(363): at android.os.Looper.loop(Looper.java:123)
11-24 13:41:39.126: E/AndroidRuntime(363): at android.app.ActivityThread.main(ActivityThread.java:3683)
11-24 13:41:39.126: E/AndroidRuntime(363): at java.lang.reflect.Method.invokeNative(Native Method)
11-24 13:41:39.126: E/AndroidRuntime(363): at java.lang.reflect.Method.invoke(Method.java:507)
11-24 13:41:39.126: E/AndroidRuntime(363): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-24 13:41:39.126: E/AndroidRuntime(363): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-24 13:41:39.126: E/AndroidRuntime(363): at dalvik.system.NativeStart.main(Native Method)
11-24 13:41:39.126: E/AndroidRuntime(363): Caused by: java.lang.ClassNotFoundException: com.breakeven.BreakEvenCalculatorActivity in loader dalvik.system.PathClassLoader[/data/app/com.breakeven-1.apk]
11-24 13:41:39.126: E/AndroidRuntime(363): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
11-24 13:41:39.126: E/AndroidRuntime(363): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
11-24 13:41:39.126: E/AndroidRuntime(363): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
11-24 13:41:39.126: E/AndroidRuntime(363): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
11-24 13:41:39.126: E/AndroidRuntime(363): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
11-24 13:41:39.126: E/AndroidRuntime(363): ... 11 more
11-24 13:43:41.106: I/Process(363): Sending signal. PID: 363 SIG: 9
11-24 13:44:17.136: D/AndroidRuntime(393): Shutting down VM
11-24 13:44:17.136: W/dalvikvm(393): threadid=1: thread exiting with uncaught exception (group=0x40015560)
11-24 13:44:17.206: E/AndroidRuntime(393): FATAL EXCEPTION: main
11-24 13:44:17.206: E/AndroidRuntime(393): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.breakeven/com.breakeven.BreakEvenCalculatorActivity}: java.lang.ClassNotFoundException: com.breakeven.BreakEvenCalculatorActivity in loader dalvik.system.PathClassLoader[/data/app/com.breakeven-1.apk]
11-24 13:44:17.206: E/AndroidRuntime(393): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
11-24 13:44:17.206: E/AndroidRuntime(393): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
11-24 13:44:17.206: E/AndroidRuntime(393): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
11-24 13:44:17.206: E/AndroidRuntime(393): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
11-24 13:44:17.206: E/AndroidRuntime(393): at android.os.Handler.dispatchMessage(Handler.java:99)
11-24 13:44:17.206: E/AndroidRuntime(393): at android.os.Looper.loop(Looper.java:123)
11-24 13:44:17.206: E/AndroidRuntime(393): at android.app.ActivityThread.main(ActivityThread.java:3683)
11-24 13:44:17.206: E/AndroidRuntime(393): at java.lang.reflect.Method.invokeNative(Native Method)
11-24 13:44:17.206: E/AndroidRuntime(393): at java.lang.reflect.Method.invoke(Method.java:507)
11-24 13:44:17.206: E/AndroidRuntime(393): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-24 13:44:17.206: E/AndroidRuntime(393): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-24 13:44:17.206: E/AndroidRuntime(393): at dalvik.system.NativeStart.main(Native Method)
11-24 13:44:17.206: E/AndroidRuntime(393): Caused by: java.lang.ClassNotFoundException: com.breakeven.BreakEvenCalculatorActivity in loader dalvik.system.PathClassLoader[/data/app/com.breakeven-1.apk]
11-24 13:44:17.206: E/AndroidRuntime(393): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
11-24 13:44:17.206: E/AndroidRuntime(393): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
11-24 13:44:17.206: E/AndroidRuntime(393): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
11-24 13:44:17.206: E/AndroidRuntime(393): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
11-24 13:44:17.206: E/AndroidRuntime(393): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
11-24 13:44:17.206: E/AndroidRuntime(393): ... 11 more
11-24 13:44:23.546: I/Process(393): Sending signal. PID: 393 SIG: 9
11-24 13:49:28.816: D/AndroidRuntime(403): Shutting down VM
11-24 13:49:28.816: W/dalvikvm(403): threadid=1: thread exiting with uncaught exception (group=0x40015560)
there is no error in application but when running it in android emulator I get a sorry message saying my application "has stopped unexpectedly. Please try again".I'm new in android and don't know what is wrong. Please help me.
Logcat is as follows:
06-10 16:55:38.587: D/szipinf(460): Initializing inflate state
06-10 16:55:45.569: D/szipinf(460): Initializing inflate state
06-10 16:55:48.497: D/szipinf(460): Initializing inflate state
06-10 16:55:51.207: I/dalvikvm(460): Jit: resizing JitTable from 512 to 1024
06-10 16:55:53.140: D/szipinf(460): Initializing inflate state
06-10 16:56:02.108: D/AndroidRuntime(460): Shutting down VM
06-10 16:56:02.108: W/dalvikvm(460): threadid=1: thread exiting with uncaught exception (group=0x40015560)
06-10 16:56:02.188: E/AndroidRuntime(460): FATAL EXCEPTION: main
06-10 16:56:02.188: E/AndroidRuntime(460): java.lang.RuntimeException: Unable to start activity ComponentInfo{de.uvwxy.footpath/de.uvwxy.footpath.gui.Loader}: java.lang.StringIndexOutOfBoundsException
06-10 16:56:02.188: E/AndroidRuntime(460): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
06-10 16:56:02.188: E/AndroidRuntime(460): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
06-10 16:56:02.188: E/AndroidRuntime(460): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-10 16:56:02.188: E/AndroidRuntime(460): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
06-10 16:56:02.188: E/AndroidRuntime(460): at android.os.Handler.dispatchMessage(Handler.java:99)
06-10 16:56:02.188: E/AndroidRuntime(460): at android.os.Looper.loop(Looper.java:123)
06-10 16:56:02.188: E/AndroidRuntime(460): at android.app.ActivityThread.main(ActivityThread.java:3683)
06-10 16:56:02.188: E/AndroidRuntime(460): at java.lang.reflect.Method.invokeNative(Native Method)
06-10 16:56:02.188: E/AndroidRuntime(460): at java.lang.reflect.Method.invoke(Method.java:507)
06-10 16:56:02.188: E/AndroidRuntime(460): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
06-10 16:56:02.188: E/AndroidRuntime(460): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
06-10 16:56:02.188: E/AndroidRuntime(460): at dalvik.system.NativeStart.main(Native Method)
06-10 16:56:02.188: E/AndroidRuntime(460): Caused by: java.lang.StringIndexOutOfBoundsException
06-10 16:56:02.188: E/AndroidRuntime(460): at java.lang.String.substring(String.java:1651)
06-10 16:56:02.188: E/AndroidRuntime(460): at de.uvwxy.footpath.gui.Loader.onCreate(Loader.java:231)
06-10 16:56:02.188: E/AndroidRuntime(460): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-10 16:56:02.188: E/AndroidRuntime(460): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
06-10 16:56:02.188: E/AndroidRuntime(460): ... 11 more
06-10 16:56:12.558: I/Process(460): Sending signal. PID: 460 SIG: 9
As you can tell by reading the stack trace, you have a StringIndexOutOfBoundsException, stemming from line 231 of your de.uvwxy.footpath.gui.Loader class, in its onCreate() method.
You're getting a StringIndexOutOfBoundsException in the Loader.java class at line 231. Check the substringing you're doing at that line.
Hi I am new to android any one help me out from this error...
my code looks like
wheelArrayList = (ArrayList<String>) bundle.get("listData");
Logcat:
03-15 18:29:54.967: E/AndroidRuntime(527): FATAL EXCEPTION: main
03-15 18:29:54.967: E/AndroidRuntime(527): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pack.customadpterforendless/com.pack.customadpterforendless.MainActivity}: java.lang.ClassCastException: java.lang.String
03-15 18:29:54.967: E/AndroidRuntime(527): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
03-15 18:29:54.967: E/AndroidRuntime(527): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-15 18:29:54.967: E/AndroidRuntime(527): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-15 18:29:54.967: E/AndroidRuntime(527): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-15 18:29:54.967: E/AndroidRuntime(527): at android.os.Handler.dispatchMessage(Handler.java:99)
03-15 18:29:54.967: E/AndroidRuntime(527): at android.os.Looper.loop(Looper.java:123)
03-15 18:29:54.967: E/AndroidRuntime(527): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-15 18:29:54.967: E/AndroidRuntime(527): at java.lang.reflect.Method.invokeNative(Native Method)
03-15 18:29:54.967: E/AndroidRuntime(527): at java.lang.reflect.Method.invoke(Method.java:521)
03-15 18:29:54.967: E/AndroidRuntime(527): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-15 18:29:54.967: E/AndroidRuntime(527): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-15 18:29:54.967: E/AndroidRuntime(527): at dalvik.system.NativeStart.main(Native Method)
03-15 18:29:54.967: E/AndroidRuntime(527): Caused by: java.lang.ClassCastException: java.lang.String
03-15 18:29:54.967: E/AndroidRuntime(527): at com.pack.customadpterforendless.MainActivity.onCreate(MainActivity.java:42)
03-15 18:29:54.967: E/AndroidRuntime(527): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-15 18:29:54.967: E/AndroidRuntime(527): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-15 18:29:54.967: E/AndroidRuntime(527): ... 11 more
You should use
getIntent().getXXXArrayListExtra("Name");
Where XXX represents the type of objects what ArraList contains, For Example if your ArrayList is a list of Strings, then use
getIntent().getStringArrayListExtra("Name");
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