// Application ...
Intent i = new Intent();
i.putExtra(EXTRA_FILE_UPLOAD_URIS, mGalleryAdapter.getItems());
Uri[] getItems() { return mItems; }
// Service ...
int
I think what's happening is something as follows:
class Parent { }
class MaleParent extends Parent { }
class FemaleParent extends Parent { }
If the scenario is something as above then the following will fail at runtime:
Parent[] parents = new FemaleParent[]{};
MaleParent[] maleParents = (MaleParent[]) parents;
Something as follows does not raise the exception:
Parent[] parents = new MaleParent[]{};
MaleParent[] maleParents = (MaleParent[]) parents;