Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid LaunchActivity error
    primarykey
    data
    text
    <p>I am developing a basic android application for a school project. Everything was working fine until I put in a new class which acts as my file object - I write to its variables and then save the object to the SD card. However I now get a debug error. It doesn't include any references to my own code - it seems to be referring to what happens while it is launching the activity, not when it is executing my code. Any suggestions? The error message in the debug console is below:</p> <pre><code>Homework Planner [Android Application] DalvikVM[localhost:8600] Thread [&lt;1&gt; main] (Suspended (exception RuntimeException)) &lt;VM does not provide monitor information&gt; ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2194 ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2229 ActivityThread.access$600(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 139 ActivityThread$H.handleMessage(Message) line: 1261 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 154 ActivityThread.main(String[]) line: 4945 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 511 ZygoteInit$MethodAndArgsCaller.run() line: 784 ZygoteInit.main(String[]) line: 551 NativeStart.main(String[]) line: not available [native method] Thread [&lt;10&gt; Binder Thread #2] (Running) Thread [&lt;9&gt; Binder Thread #1] (Running) Daemon Thread [&lt;8&gt; FinalizerWatchdogDaemon] (Running) Daemon Thread [&lt;7&gt; FinalizerDaemon] (Running) Daemon Thread [&lt;6&gt; ReferenceQueueDaemon] (Running) </code></pre> <p>And here is the code for the start of the activity:</p> <pre><code>public class InputActivity extends Activity { String chosenSubject = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_input); // Set up the spinner and it's listener Spinner subjectSpinner = (Spinner) findViewById(R.id.deadlinePicker); subjectSpinner.setOnItemSelectedListener(new OnItemSelectedListener() { public void onNothingSelected(AdapterView&lt;?&gt; arg0) {} public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1, int arg2, long arg3) { chosenSubject = (String) arg0.getItemAtPosition(arg2); } }); // Set up save button Button saveButton = (Button) findViewById(R.id.btnSave); saveButton.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { //saveFile(); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_input, menu); return true; } </code></pre>
    singulars
    1. This table or related slice is empty.
    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