My specific case:
I'm developing an Android app and was using a flag in an Intent
to bring an Activity
to front instead of re-creating it. It worked, mostly as expected. The EditText
in a Fragment
(that was inside the Activity
) broke, for lack of a better term. Despite its name, the EditText
could not be edited, and attempting to do so would crash the application.
After extensive trial and error, and pro Google skills, I found a property that could be declared in Manifest.xml
:
android:launchMode="singleInstance"
I declared that where I needed to and everything works perfectly fine (problem solved!).
However, I'm still wondering why the EditText
was 'broken' (uneditable, attempting to type/delete/etc crashed the app). I've solved my problem, but the problem shouldn't have occurred in the first place. Would a well-formed question regarding the why of the behavior (and looking for a solution for the previous method I was using) be on-topic even if I've already found another solution that works?