• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Dev Documentation

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:
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;
        }
    }
- 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:
Code:
dependencies {
    ...
    compile 'com.android.volley:volley:1.1.1'
}
- 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!
 
You're correct in the observation that the developer docs/guides is patchy, or even incorrect in places.
I find myself consulting the package Javadocs for bang up to date information on the APIs

https://developer.android.com/reference/packages

Other than that, you are usually better off locating other resources on the internet for better tutorials/walkthroughs explaining how to use specific features.

And there's always the source code to debug into, if you really get stuck.
 
Back
Top Bottom