app/src/main/java/org/qinshuihepan/bbs/util/update/UpdateChecker.java
/**
     * Heart of the library. Check if an update is available for download
     * parsing the desktop Play Store page of the app
     */
Heart of the library. Check if an update is available for download
parsing the desktop Play Store page of the app
Heart of the library . Check if an update is available for download parsing the desktop Play Store page of the app
private void checkForUpdates() {
        mThread = new Thread() {
            @Override
            public void run() {
                String json = sendPost();
                if (json != null) {
                    parseJson(json);
                } else {
                    Log.e(TAG, "can't get app update json");
                }
            }
        };
        mThread.start();
    }
private void checkForUpdates ( ) { mThread = new Thread ( ) { @ Override public void run ( ) { String json = sendPost ( ) ; if ( json != null ) { parseJson ( json ) ; } else { Log . e ( TAG , "can't get app update json" ) ; } } } ; mThread . start ( ) ; }
Heart of the library.
Heart of the library .
// if (isNetworkAvailable(mContext)) { // }