I don’t understand what should be the context when I want to create a directory in internal memory using context.getDir(). How can I get this context object.
Thank you
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.
Activity is a subclass of Context. You get your
ContextfromActivityor a subclass of it. You have to pass yourContextwhen initializing a class that isn’t a subclass ofContextorActivity.