I have a method name checkForUpdate()
in UpdateActivity.java
. It looks like this:
@NonNull
@SuppressWarnings("deprecation")
protected String checkForUpdate(int curVersionCode) {
HttpClient httpclient = new DefaultHttpClient();
...
}
I am trying to call it from anotherActivity. So I'm trying to use code like this:
private void callFromAnotherActivity() {
UpdateActivity updateApp = new UpdateActivity();
String result = updateApp.checkForUpdate(...);
}
so when I type updateApp.
then a list of the methods of UpdateActivity.java
appears but there is no checkForUpdate()
method. Why?