Edited; Android app SQLite exceptions different emulators
<p>Edited;</p>

<p>My application works fine in the android emulator. Now i've installed the .apk in "Bluestacks", a client for running android apps on your pc, and on the android-x86 VM. Both crash or restart, the moment i press the button to go to the next activity.</p>

<p>After making sure only the main activity has its installed icon shown, I start the application, and as soon as I press a button linked to an intent to the next activity, the main activity restarts in bluestacks, and gives a crash error in the VM.</p>

<p>This behaviour isn't shown on the android emulator. What could be the reason for this? </p>

<p>AndroidManifest:</p>

<pre><code>....
&lt;application
    android:name="MainApplication"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" &gt;
    &lt;activity
        android:name=".activities.MainActivity"
        android:label="@string/title_activity_main" &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;activity
        android:name=".activities.NewAuditActivity"
        android:label="@string/title_activity_index" &gt;
       &lt;intent-filter&gt;
           &lt;category android:name="android.intent.category.DEFAULT" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
....
</code></pre>

<p>In the main activity i do this; </p>

<pre><code>public void viewNewAudits(View view) {

    Intent intent = new Intent(this, NewAuditActivity.class);
    TextView auditorView = (TextView) findViewById(R.id.MainViewAuditor);
    intent.putExtra("auditor", auditorView.getText());
    startActivity(intent);
}
</code></pre>

<p>The button clicked in the xml view correctly calls the onclick:"viewNewAudits" method.</p>

<p>What could be the reason for the application not to continue to the next activity? As the android emulator runs the app, i can't find out what error/exception could be the reason for the crash.</p>

<p>Edit:</p>

<p>My search for logs on the VBox VM made me experiment some with the adb logcat command. I've found some logs from the VM and it gives an SQLite exception. This makes sense because in the second activity I start intantiating my DB and querymanager. Weird thing is though, that the sqliteexception is a syntax error. Is there any way in which a SQLite syntax would be different on another emulator? short piece of logcat log: </p>

<pre><code>I/ActivityManager( 2039): Starting activity: Intent { cmp=..../.activ
ities.NewAuditActivity (has extras) }
I/Database( 2797): sqlite returned: error code = 1, msg = near ",": syntax error

D/AndroidRuntime( 2797): Shutting down VM
W/dalvikvm( 2797): threadid=1: thread exiting with uncaught exception (group=0xb
5891290)
E/AndroidRuntime( 2797): FATAL EXCEPTION: main
E/AndroidRuntime( 2797): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{.....activities.NewAuditActivity}: androi
d.database.sqlite.SQLiteException: near ",": syntax error: , while compiling: IN
SERT INTO Criteria (auditTemplateId, code, requirement, MOE, description) VALUES
('145', '.A.25(a)', 'Facility, size and segregation', '1.8-2.7 exhibit 5-2.3', ...... *more of the same inserts with a lot of comma's
</code></pre>
