I want to implement my database helper class as a service, but it already extends SQLiteOpenHelper… is there an interface for Service available 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.
Dunno if it is a good idea, but anyways, using inheritance does not make a lot of sense in this case – you should go with composition. Your service should extend Service class and include DatabaseHelper as an instance variable.