Note that there are some explanatory texts on larger screens.

plurals
  1. UShiBrianLee
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COSo it seems like an object of incorrect type is trying to be casted into a PackageInfo object. How that object got into the List<PackageInfo> seems be a bug on Android side like the bug report shows. And yes, if a null object of a different type was added, the error log would probably show empty string since you won't be able to run getClass() on a null object. In that case, your for-loop would work since there actually was a null object of wrong type added to the list.
      singulars
    2. COIn that case, I think you can parse the XML file in the doInBackground() function above, create the ImageView and set the image source, and return a list of ImageView from the doInBackground() function. The onPostExecute() function will take the list of ImageViews, and add them to the view hierarchy after the setContentView(). Anything you do in onPostExecute() runs in the main thread so you can modify the UI elements from here.
      singulars
    3. COAre you looking at the correct version? Maybe the log is for a different version than the source code version (especially since you say it happens on multiple versions), which has a slightly different line number? I'd check the other blocks of code inside the onWindowFocusChange() function to see if there's anything that might cause the NPE, and skip the line 194.
      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