What would be the best scenario and practice of using EofSensorInputStream in Android?
What would be the best scenario and practice of using EofSensorInputStream in Android?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EofSensorInputStreamis stream wrapper that triggers actions onclose()andEOF. Primarily used to auto-release an underlying connection when the response body is consumed or no longer needed.If you are sure about the number of server iterations count and would like to perform some action on connection close like exit application or notify something, this is the best thing to do.
roht