23tony
Well-Known Member
As I've been trying to learn Android development, I have been noticing that the documentation seems to be rather lacking. Specifically, I'm finding out of date or inaccurate information.
For example, at https://developer.android.com/training/basics/network-ops/connecting#HeadlessFragment they have this example code:
- but this results in an error Inner classes cannot have static declaration
And the Volley overview at https://developer.android.com/training/volley/ has this:
- but compile is deprecated and was scheduled for removal end of 2018.
I ran into a similar issue at the very beginning, when the Create an Android project guide had information on the older Android Studio version, so it didn't match the latest version that I had installed. (This page has since been updated)
Almost everywhere I look, the information seems to be out of date, inaccurate, or incomplete. So I'm wondering what your suggestions are for where to look for accurate and up-to-date information and tutorials.
Thanks in advance!
For example, at https://developer.android.com/training/basics/network-ops/connecting#HeadlessFragment they have this example code:
Code:
private class DownloadTask extends AsyncTask<String, Integer, DownloadTask.Result> {
...
/**
* Wrapper class that serves as a union of a result value and an exception. When the download
* task has completed, either the result value or exception can be a non-null value.
* This allows you to pass exceptions to the UI thread that were thrown during doInBackground().
*/
static class Result {
public String mResultValue;
public Exception mException;
public Result(String resultValue) {
mResultValue = resultValue;
}
public Result(Exception exception) {
mException = exception;
}
}
And the Volley overview at https://developer.android.com/training/volley/ has this:
Code:
dependencies {
...
compile 'com.android.volley:volley:1.1.1'
}
I ran into a similar issue at the very beginning, when the Create an Android project guide had information on the older Android Studio version, so it didn't match the latest version that I had installed. (This page has since been updated)
Almost everywhere I look, the information seems to be out of date, inaccurate, or incomplete. So I'm wondering what your suggestions are for where to look for accurate and up-to-date information and tutorials.
Thanks in advance!