Note that there are some explanatory texts on larger screens.

plurals
  1. POUnfortunately app has stopped issue in android app
    primarykey
    data
    text
    <p>i have this source code which i am trying to make it work, i took it from a tutorial online. The issue with it is that i get an error: "Unfortunately MainScreen has stopped" ;</p> <p>Now, i looked online to find a possible solution and found that it might be in AndroidManifest.xml and i changed the name of the ap to com.example.androidhive and no chance again..</p> <p>Here is the code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.androidhive" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="8" /&gt; &lt;application android:configChanges="keyboardHidden|orientation" android:icon="@drawable/ic_launcher" android:label="@string/app_name" &gt; &lt;activity android:name=".MainScreenActivity" android:label="@string/app_name" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;!-- All Product Activity --&gt; &lt;activity android:name=".AllProductsActivity" android:label="All Products" &gt; &lt;/activity&gt; &lt;!-- Add Product Activity --&gt; &lt;activity android:name=".NewProductActivity" android:label="Add New Product" &gt; &lt;/activity&gt; &lt;!-- Edit Product Activity --&gt; &lt;activity android:name=".EditProductActivity" android:label="Edit Product" &gt; &lt;/activity&gt; &lt;/application&gt; &lt;!-- Internet Permissions --&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;/manifest&gt; </code></pre> <p>Thanks..</p> <p>Log</p> <pre><code>05-06 08:29:03.940: E/AndroidRuntime(757): FATAL EXCEPTION: AsyncTask #1 05-06 08:29:03.940: E/AndroidRuntime(757): java.lang.RuntimeException: An error occured while executing doInBackground() 05-06 08:29:03.940: E/AndroidRuntime(757): at android.os.AsyncTask$3.done(AsyncTask.java:299) 05-06 08:29:03.940: E/AndroidRuntime(757): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) 05-06 08:29:03.940: E/AndroidRuntime(757): at java.util.concurrent.FutureTask.setException(FutureTask.java:124) 05-06 08:29:03.940: E/AndroidRuntime(757): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) 05-06 08:29:03.940: E/AndroidRuntime(757): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 05-06 08:29:03.940: E/AndroidRuntime(757): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 05-06 08:29:03.940: E/AndroidRuntime(757): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 05-06 08:29:03.940: E/AndroidRuntime(757): at java.lang.Thread.run(Thread.java:856) 05-06 08:29:03.940: E/AndroidRuntime(757): Caused by: java.lang.NullPointerException 05-06 08:29:03.940: E/AndroidRuntime(757): at com.example.androidhive.AllProductsActivity$LoadAllProducts.doInBackground(AllProductsActivity.java:130) 05-06 08:29:03.940: E/AndroidRuntime(757): at com.example.androidhive.AllProductsActivity$LoadAllProducts.doInBackground(AllProductsActivity.java:1) 05-06 08:29:03.940: E/AndroidRuntime(757): at android.os.AsyncTask$2.call(AsyncTask.java:287) 05-06 08:29:03.940: E/AndroidRuntime(757): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 05-06 08:29:03.940: E/AndroidRuntime(757): ... 4 more </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload