Note that there are some explanatory texts on larger screens.

plurals
  1. USKenneth Evans
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COMaybe I'm missing something, but I don't see how getLauncherIntent tells me whether a package has "Launch by Default" set or not. That would be set by the user. I don't see anything in the Intent returned that would indicate this. The Intent appears to typically have action=Main, category=LAUNCHER, flag=FLAG_RECEIVER_FOREGROUND, and a package and component independent of whether is is set to be "Launch by Default" or not. For example, I have Adobe Reader set to open .pdf files. I don't see anything in the com.adobe.reader Intent that indicates this.
      singulars
    2. COYou're right. I didn't notice. I still like it better than the other way, but neither is completely satisfactory. I ended up not implementing what I was trying to do that way and so didn't use it anyway. I guess you could do what you did and use my version of menu.show with the button coordinates to avoid the position inconsistency.
      singulars
    3. COI used this solution and it worked until the device was upgraded to Android 4.0.3. It then started using the internal storage, not SD card. In tracing, the openOrCreateDatabase method above was _not_ called, and in tracing into SQLiteDatabaseHelper it was on the wrong line (in both 2.3.3 and 4.0.3, which have different code) making it hard to see what was happening. By typing F5 repeatedly, I was able to get to ContextImpl.openOrCreateDatabase(), but the source code was not available. Looks like a bug. Bottom line is this method no longer works. I wrote my own SQLiteOpenHelper to fix it.
      singulars
 

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