Note that there are some explanatory texts on larger screens.

plurals
  1. POBasic android with eclipse : the process android.process.acore has stopped unexpectedly
    text
    copied!<p>I have started doing some exercises from an android development book. All i have done is </p> <ul> <li><p>create a project</p></li> <li><p>Input some code </p> <pre><code>package com.wuhu.testapps; import android.app.Activity; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; public class AndroidbasicsActivity extends ListActivity { String tests[] = {"LifeCycleTest", "SingleTouchTest","MultiTouchTest"}; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); setListAdapter( new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1,tests)); } protected void onListItemClick( ListView list, View view, int position, long id) { super.onListItemClick(list, view, position, id ); String testName = tests[position]; try { Class clazz = Class.forName("com.wuhu.testapps." + testName); Intent intent = new Intent( this, clazz ); startActivity(intent); } catch( ClassNotFoundException e) { e.printStackTrace(); } } } </code></pre></li> <li><p>Run as android application</p></li> <li><p>VM starts with activity in the background, but an error keeps appearing 'the process android.process.acore has stopped unexpectedly' Force close.</p></li> </ul> <p>The first few lines of error in logcat are as follows :</p> <pre><code>02-04 03:05:21.218: ERROR/ContactsProvider(343): Cannot start provider 02-04 03:05:21.218: ERROR/ContactsProvider(343): java.lang.IllegalStateException: error upgrading the database to version 353 02-04 03:05:21.218: ERROR/ContactsProvider(343): at com.android.providers.contacts.ContactsDatabaseHelper.onUpgrade(ContactsDatabaseHelper.java:1545) 02-04 03:05:21.218: ERROR/ContactsProvider(343): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:132) 02-04 03:05:21.218: ERROR/ContactsProvider(343): at com.android.providers.contacts.ContactsDatabaseHelper.getWritableDatabase(ContactsDatabaseHelper.java:2550) 02-04 03:05:21.218: ERROR/ContactsProvider(343): at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187) 02-04 03:05:21.218: ERROR/ContactsProvider(343): at com.android.providers.contacts.LegacyApiSupport.&lt;init&gt;(LegacyApiSupport.java:525) </code></pre> <p>Am not sure what is going wrong, can anyone help me? Tried searching for an answer but to avail. Thanks in advance,</p>
 

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