_:n1ef8c2bce73046528f21b6055404d5f9xb1
<http://schema.org/text>
"Hallo in die Runde,<br />\r\n<br />\r\nich habe anhand eines Tutorials so ne Art Trinkgeldrechner entwickelt. code scheint problemfrei zu sein. aber die app funktioniert trotzdem nicht. und ich bekomme ne grosse Liste von Problemen aufgeliste. Ich blicke da nicht mehr durch, da ich schon sehr lange daran gearbeitet hab. Vielleicht kann mir jemand sagen was das problem ist. ich weiss das ist viel code, ich hoffe trotzdem jemand hat die Geduld.. <br />\r\n<br />\r\ndanke!<br />\r\n<br />\r\nGrüße,<br />\r\nMel<br />\r\n<br />\r\ncode<pre style=\"margin: 1em 0\">package com.newthinktank.crazytipcalc;\r\n\r\nimport android.support.v7.app.ActionBarActivity;\r\nimport android.support.v7.app.ActionBar;\r\nimport android.support.v4.app.Fragment;\r\nimport android.text.Editable;\r\nimport android.text.TextWatcher;\r\nimport android.os.Bundle;\r\nimport android.view.LayoutInflater;\r\nimport android.view.Menu;\r\nimport android.view.MenuItem;\r\nimport android.view.View;\r\nimport android.view.ViewGroup;\r\nimport android.widget.EditText;\r\nimport android.widget.SeekBar;\r\nimport android.widget.SeekBar.OnSeekBarChangeListener;\r\nimport android.os.Build;\r\n\r\npublic class CrazyTipCalc extends ActionBarActivity {\r\n\t\r\n\tprivate static final String TOTAl_BILL = &quot;TOTAL_BILL&quot;;\r\n\tprivate static final String CURRENT_TIP = &quot;CURRENT_TIP&quot;;\r\n\tprivate static final String BILL_WITHOUT_TIP = &quot;BILL_WITHOUT_TIP&quot;;\r\n\t\r\n\tprivate double billBeforeTip;\r\n\tprivate double tipAmount;\r\n\tprivate double finalBill;\r\n\t\r\n\tEditText billBeforeTipET;\r\n\tEditText tipAmountET;\r\n\tEditText finalBillET;\r\n\t\r\n\tSeekBar tipSeekBar;\r\n\t\r\n\t@Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_crazy_tip_calc);\r\n\r\n        if (savedInstanceState == null) {\r\n              \r\n        \tbillBeforeTip = 0.0;\r\n        \ttipAmount = .15;\r\n        \tfinalBill = 0.0;\r\n        } else{\r\n        \tbillBeforeTip = savedInstanceState.getDouble(BILL_WITHOUT_TIP);\r\n        \ttipAmount = savedInstanceState.getDouble(CURRENT_TIP);\r\n        \tfinalBill = savedInstanceState.getDouble(TOTAl_BILL);\r\n        }\r\n        billBeforeTipET = (EditText) findViewById(R.id.billEditText);\r\n    \ttipAmountET=(EditText) findViewById(R.id.tipEditText);\r\n    \tfinalBillET=(EditText) findViewById(R.id.finalBillEditText);\r\n    \t\r\n    \ttipSeekBar = (SeekBar) findViewById(R.id.changeTipSeekBar);\r\n    \t\r\n    \ttipSeekBar.setOnSeekBarChangeListener(tipSeekBarListener);\r\n    \t\r\n    \tbillBeforeTipET.addTextChangedListener(billBeforeTipListener);\r\n    }\r\n\t\r\n\tprivate TextWatcher billBeforeTipListener = new TextWatcher(){\r\n\r\n\t\t@Override\r\n\t\tpublic void afterTextChanged(Editable arg0) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic void beforeTextChanged(CharSequence arg0, int arg1, int arg2,\r\n\t\t\t\tint arg3) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t@Override\r\n\t\tpublic void onTextChanged(CharSequence arg0, int arg1, int arg2,\r\n\t\t\t\tint arg3) {\r\n\t\t\t\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbillBeforeTip = Double.parseDouble(arg0.toString());\r\n\t\t\t\t\t} catch (NumberFormatException e){\r\n\t\t\t\t\t\tbillBeforeTip = 0.0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tupdateBillAndFinalBill();\r\n\t\t}\r\n\t};\r\n\r\n\tprivate void updateBillAndFinalBill() {\r\n\t\tdouble tipAmount = Double.parseDouble(tipAmountET.getText().toString());\r\n\t\t\r\n\t\tdouble finalBill = billBeforeTip + billBeforeTip*tipAmount;\r\n\t\t\r\n\t\tfinalBillET.setText(String.format(&quot;%02f&quot;, finalBill));\r\n\t}\r\n\t\r\n\t\r\n\tprotected void onSaveInstanceState(Bundle outState){\r\n\t\tsuper.onSaveInstanceState(outState);\r\n\t\t\r\n\t\toutState.putDouble(TOTAl_BILL, finalBill);\r\n\t\toutState.putDouble(CURRENT_TIP, tipAmount);\r\n\t\toutState.putDouble(BILL_WITHOUT_TIP, billBeforeTip);\r\n\t\t\r\n\t}\r\n\t\r\n\tprivate OnSeekBarChangeListener tipSeekBarListener = new OnSeekBarChangeListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\r\n\t\t\t\r\n\t\t\ttipAmount= (tipSeekBar.getProgress())*.01;\r\n\t\t\t\r\n\t\t\ttipAmountET.setText(String.format(&quot;%.02f&quot;, tipAmount));\r\n\t\t\t\r\n\t\t\tupdateBillAndFinalBill();\r\n\t\t}\r\n\t};\r\n\t\r\n    @Override\r\n    public boolean onCreateOptionsMenu(Menu menu) {\r\n        \r\n        // Inflate the menu; this adds items to the action bar if it is present.\r\n        getMenuInflater().inflate(R.menu.crazy_tip_calc, menu);\r\n        return true;\r\n    }\r\n\r\n    @Override\r\n    public boolean onOptionsItemSelected(MenuItem item) {\r\n        // Handle action bar item clicks here. The action bar will\r\n        // automatically handle clicks on the Home/Up button, so long\r\n        // as you specify a parent activity in AndroidManifest.xml.\r\n        int id = item.getItemId();\r\n        if (id == R.id.action_settings) {\r\n            return true;\r\n        }\r\n        return super.onOptionsItemSelected(item);\r\n    }\r\n\r\n    /**\r\n     * A placeholder fragment containing a simple view.\r\n     */\r\n    public static class PlaceholderFragment extends Fragment {\r\n\r\n        public PlaceholderFragment() {\r\n        }\r\n\r\n        @Override\r\n        public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n                Bundle savedInstanceState) {\r\n            View rootView = inflater.inflate(R.layout.fragment_crazy_tip_calc, container, false);\r\n            return rootView;\r\n        }\r\n    }\r\n\r\n}</pre>meine strings:<br />\r\n<br />\r\n <blockquote>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />\r\n&lt;resources&gt;<br />\r\n<br />\r\n    &lt;string name=&quot;app_name&quot;&gt;CrazyTipCalc&lt;/string&gt;<br />\r\n    &lt;string name=&quot;action_settings&quot;&gt;Settings&lt;/string&gt;<br />\r\n    <br />\r\n    &lt;string name=&quot;bill_text_view&quot;&gt;Bill&lt;/string&gt;<br />\r\n    &lt;string name=&quot;bill_edit_text&quot;&gt;0.0&lt;/string&gt;<br />\r\n    <br />\r\n    &lt;string name=&quot;tip_text_view&quot;&gt;Tip&lt;/string&gt;<br />\r\n    &lt;string name=&quot;tip_edit_text&quot;&gt;0.15&lt;/string&gt;<br />\r\n    <br />\r\n    &lt;string name=&quot;final_text_view&quot;&gt;Final Bill&lt;/string&gt;<br />\r\n    &lt;string name=&quot;final_bill_edit_text&quot;&gt;0.15&lt;/string&gt;<br />\r\n    <br />\r\n    &lt;string name=&quot;change_tip_text_view&quot;&gt;Tip&lt;/string&gt;<br />\r\n<br />\r\n&lt;/resources&gt;</blockquote>und die xml für graphical layout <br />\r\n<br />\r\n<pre style=\"margin: 1em 0\">&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;\r\n    xmlns:tools=&quot;http://schemas.android.com/tools&quot;\r\n    android:layout_width=&quot;match_parent&quot;\r\n    android:layout_height=&quot;match_parent&quot;\r\n    android:paddingBottom=&quot;@dimen/activity_vertical_margin&quot;\r\n    android:paddingLeft=&quot;@dimen/activity_horizontal_margin&quot;\r\n    android:paddingRight=&quot;@dimen/activity_horizontal_margin&quot;\r\n    android:paddingTop=&quot;@dimen/activity_vertical_margin&quot;\r\n    tools:context=&quot;com.newthinktank.crazytipcalc.CrazyTipCalc$PlaceholderFragment&quot; &gt;\r\n\r\n    &lt;EditText\r\n        android:id=&quot;@+id/tipEditText&quot;\r\n        android:layout_width=&quot;wrap_content&quot;\r\n        android:layout_height=&quot;wrap_content&quot;\r\n        android:layout_alignBaseline=&quot;@+id/tipTextView&quot;\r\n        android:layout_alignBottom=&quot;@+id/tipTextView&quot;\r\n        android:layout_toRightOf=&quot;@+id/tipTextView&quot;\r\n        android:ems=&quot;4&quot;\r\n        android:inputType=&quot;numberDecimal&quot; /&gt;\r\n\r\n    &lt;TextView\r\n        android:id=&quot;@+id/tipTextView&quot;\r\n        android:layout_width=&quot;wrap_content&quot;\r\n        android:layout_height=&quot;wrap_content&quot;\r\n        android:layout_alignBaseline=&quot;@+id/billEditText&quot;\r\n        android:layout_alignBottom=&quot;@+id/billEditText&quot;\r\n        android:layout_marginLeft=&quot;16dp&quot;\r\n        android:layout_toRightOf=&quot;@+id/billEditText&quot;\r\n        android:text=&quot;@string/tip_text_view&quot; /&gt;\r\n\r\n    &lt;TextView\r\n        android:id=&quot;@+id/finalBiltextView&quot;\r\n        android:layout_width=&quot;wrap_content&quot;\r\n        android:layout_height=&quot;wrap_content&quot;\r\n        android:layout_alignLeft=&quot;@+id/tipTextView&quot;\r\n        android:layout_below=&quot;@+id/tipEditText&quot;\r\n        android:layout_marginTop=&quot;52dp&quot;\r\n        android:text=&quot;@string/final_text_view&quot; /&gt;\r\n\r\n    &lt;EditText\r\n        android:id=&quot;@+id/finalBillEditText&quot;\r\n        android:layout_width=&quot;wrap_content&quot;\r\n        android:layout_height=&quot;wrap_content&quot;\r\n        android:layout_alignRight=&quot;@+id/tipEditText&quot;\r\n        android:layout_below=&quot;@+id/finalBiltextView&quot;\r\n        android:ems=&quot;5&quot;\r\n        android:inputType=&quot;numberDecimal&quot; &gt;\r\n\r\n        &lt;requestFocus /&gt;\r\n    &lt;/EditText&gt;\r\n\r\n    &lt;TextView\r\n        android:id=&quot;@+id/changeTipTextView&quot;\r\n        android:layout_width=&quot;wrap_content&quot;\r\n        android:layout_height=&quot;wrap_content&quot;\r\n        android:layout_above=&quot;@+id/finalBillEditText&quot;\r\n        android:layout_alignLeft=&quot;@+id/billTextView&quot;\r\n        android:text=&quot;@string/change_tip_text_view&quot; /&gt;\r\n\r\n    &lt;TextView\r\n        android:id=&quot;@+id/billTextView&quot;\r\n        android:layout_width=&quot;wrap_content&quot;\r\n        android:layout_height=&quot;wrap_content&quot;\r\n        android:layout_alignParentLeft=&quot;true&quot;\r\n        android:layout_alignParentTop=&quot;true&quot;\r\n        android:layout_marginLeft=&quot;21dp&quot;\r\n        android:layout_marginTop=&quot;27dp&quot;\r\n        android:text=&quot;@string/bill_text_view&quot; /&gt;\r\n\r\n    &lt;EditText\r\n        android:id=&quot;@+id/billEditText&quot;\r\n        android:layout_width=&quot;wrap_content&quot;\r\n        android:layout_height=&quot;wrap_content&quot;\r\n        android:layout_alignBaseline=&quot;@+id/billTextView&quot;\r\n        android:layout_alignBottom=&quot;@+id/billTextView&quot;\r\n        android:layout_toRightOf=&quot;@+id/changeTipTextView&quot;\r\n        android:ems=&quot;5&quot;\r\n        android:inputType=&quot;numberDecimal&quot;\r\n        android:text=&quot;@string/bill_edit_text&quot; /&gt;\r\n\r\n    &lt;SeekBar\r\n        android:id=&quot;@+id/changeTipSeekBar&quot;\r\n        android:layout_width=&quot;match_parent&quot;\r\n        android:layout_height=&quot;wrap_content&quot;\r\n        android:layout_alignRight=&quot;@+id/billEditText&quot;\r\n        android:layout_alignTop=&quot;@+id/finalBillEditText&quot;\r\n        android:layout_marginTop=&quot;19dp&quot;\r\n        android:progress=&quot;15&quot; /&gt;\r\n    \r\n&lt;/RelativeLayout&gt;</pre>und jetzt kommt die superlange fehlerliste.<br />\r\n<br />\r\n04-15 18:36:03.680: D/AndroidRuntime(999): Shutting down VM<br />\r\n04-15 18:36:03.680: W/dalvikvm(999): threadid=1: thread exiting with uncaught exception (group=0xb2aeeba8)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): FATAL EXCEPTION: main<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): Process: com.newthinktank.crazytipcalc, PID: 999<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.newthinktank.crazytipcalc/com.newthinktank.crazytipcalc.CrazyTipCalc}: java.lang.NullPointerException<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.app.ActivityThread.access$800(ActivityThread.java:135)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.os.Handler.dispatchMessage(Handler.java:102)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.os.Looper.loop(Looper.java:136)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.app.ActivityThread.main(ActivityThread.java:5017)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat java.lang.reflect.Method.invokeNative(Native Method)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat java.lang.reflect.Method.invoke(Method.java:515)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat dalvik.system.NativeStart.main(Native Method)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): Caused by: java.lang.NullPointerException<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat com.newthinktank.crazytipcalc.CrazyTipCalc.onCreate(CrazyTipCalc.java:56)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.app.Activity.performCreate(Activity.java:5231)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)<br />\r\n04-15 18:36:03.710: E/AndroidRuntime(999): \t... 11 more<br />\r\n04-15 18:36:11.580: I/Process(999): Sending signal. PID: 999 SIG: 9<br />\r\n04-15 18:36:18.090: D/AndroidRuntime(1045): Shutting down VM<br />\r\n04-15 18:36:18.090: W/dalvikvm(1045): threadid=1: thread exiting with uncaught exception (group=0xb2aeeba8)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): FATAL EXCEPTION: main<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): Process: com.newthinktank.crazytipcalc, PID: 1045<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.newthinktank.crazytipcalc/com.newthinktank.crazytipcalc.CrazyTipCalc}: java.lang.NullPointerException<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.app.ActivityThread.access$800(ActivityThread.java:135)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.os.Handler.dispatchMessage(Handler.java:102)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.os.Looper.loop(Looper.java:136)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.app.ActivityThread.main(ActivityThread.java:5017)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat java.lang.reflect.Method.invokeNative(Native Method)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat java.lang.reflect.Method.invoke(Method.java:515)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat dalvik.system.NativeStart.main(Native Method)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): Caused by: java.lang.NullPointerException<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat com.newthinktank.crazytipcalc.CrazyTipCalc.onCreate(CrazyTipCalc.java:56)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.app.Activity.performCreate(Activity.java:5231)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)<br />\r\n04-15 18:36:18.130: E/AndroidRuntime(1045): \t... 11 more<br />\r\n04-15 18:38:10.871: D/AndroidRuntime(1159): Shutting down VM<br />\r\n04-15 18:38:10.871: W/dalvikvm(1159): threadid=1: thread exiting with uncaught exception (group=0xb2aeeba8)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): FATAL EXCEPTION: main<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): Process: com.newthinktank.crazytipcalc, PID: 1159<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.newthinktank.crazytipcalc/com.newthinktank.crazytipcalc.CrazyTipCalc}: java.lang.NullPointerException<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.app.ActivityThread.access$800(ActivityThread.java:135)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.os.Handler.dispatchMessage(Handler.java:102)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.os.Looper.loop(Looper.java:136)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.app.ActivityThread.main(ActivityThread.java:5017)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat java.lang.reflect.Method.invokeNative(Native Method)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat java.lang.reflect.Method.invoke(Method.java:515)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat dalvik.system.NativeStart.main(Native Method)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): Caused by: java.lang.NullPointerException<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat com.newthinktank.crazytipcalc.CrazyTipCalc.onCreate(CrazyTipCalc.java:56)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.app.Activity.performCreate(Activity.java:5231)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)<br />\r\n04-15 18:38:10.931: E/AndroidRuntime(1159): \t... 11 more<br />\r\n04-15 18:38:17.291: I/Process(1159): Sending signal. PID: 1159 SIG: 9<br />\r\n04-15 18:38:51.411: D/AndroidRuntime(1194): Shutting down VM<br />\r\n04-15 18:38:51.411: W/dalvikvm(1194): threadid=1: thread exiting with uncaught exception (group=0xb2aeeba8)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): FATAL EXCEPTION: main<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): Process: com.newthinktank.crazytipcalc, PID: 1194<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.newthinktank.crazytipcalc/com.newthinktank.crazytipcalc.CrazyTipCalc}: java.lang.NullPointerException<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.app.ActivityThread.access$800(ActivityThread.java:135)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.os.Handler.dispatchMessage(Handler.java:102)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.os.Looper.loop(Looper.java:136)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.app.ActivityThread.main(ActivityThread.java:5017)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat java.lang.reflect.Method.invokeNative(Native Method)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat java.lang.reflect.Method.invoke(Method.java:515)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat dalvik.system.NativeStart.main(Native Method)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): Caused by: java.lang.NullPointerException<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat com.newthinktank.crazytipcalc.CrazyTipCalc.onCreate(CrazyTipCalc.java:56)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.app.Activity.performCreate(Activity.java:5231)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)<br />\r\n04-15 18:38:51.441: E/AndroidRuntime(1194): \t... 11 more<br />\r\n04-15 18:38:55.631: I/Process(1194): Sending signal. PID: 1194 SIG: 9<br />\r\n04-15 18:53:49.701: I/Process(1214): Sending signal. PID: 1214 SIG: 9"
<https://www.android-hilfe.de/forum/android-app-entwicklung.9/erste-app-und-schon-gescheitert.558366.html>