'Can't see implementation of protected abstract functions in Android package
I have been going over the android package a bit. I am using sdk 30 and for example in SensorManager.java there is a function
protected abstract List<Sensor> getFullSensorList();
Now, even though it is not implemented, getFullSensor(); list is used in
public List<Sensor> getSensorList(int type)
Can someone explain me how is this possible? Also how can I see the implementation of getFullSensorList(); ? I understand that I can implement the method via a subclass and that they use @hide annotation in the comment because they don't want me to use it in their API, but I just want to see the read-only implementation. How does this work in here if it is not implemented since it's abstract though I am using it to for, for example read sensor data and similar?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
