new Thread(new Runnable() {
public String run() {
android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);
// a potentially time consuming task
SharedPreferences sharedPreferences = context.getSharedPreferences(SHARED_SP, Context.MODE_PRIVATE);
return sharedPreferences.getString(APP_VERSION, "");
}
}).start();
}
—->
here is my code, is it wrong?
Please format the code you posted, by wrapping it in triple backticks. -> `
https://hastebin.com/isowuralen.java when i say public String run() in third line here, it says "attempting to use incompatible return type" i know this error is a nooby and basic one, but i don't understand why it is being called
Обсуждают сегодня