Skip to content

Instantly share code, notes, and snippets.

View davidjoneshedgehog's full-sized avatar

davidjoneshedgehog

View GitHub Profile

Incrementing Android Version Documentation

Setup

Step One

Append the following version variable definitions to your app's build.gradle file, this can be anywhere but preferably at the top of the file above all "apply" declarations. You may set the values to your current build/version codes if this is not a new project.

def VERSION_BUILD=0
def VERSION_MAJOR=0
def VERSION_MINOR=0
@davidjoneshedgehog
davidjoneshedgehog / MainActivity.java
Created January 17, 2017 11:34
Android activity demonstrating having progress bars within RecyclerView elements and how these progress bars can be updated from an Asynchronous task.
package com.hedgehoglab.progressrecyclerviewsample;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;