I am new to android development and have a confusion that if an activity( a class extends Activity) has some public methods, can we access these public methods outside that activity.
Regards,
Waneya Iqbal
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.
Yes. public methods are… public. This means that they’re accessible from anywhere.
Read http://download.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html