@@ -0,0 +1,1393 @@
+public class MainActivity extends Activity %7B%0A%0A    //Json Node names%0A    private static final String TAG_VERSION = %22current%22;%0A%0A    // URL to get version_control JSON - replace with web address%0A    private static String url = %22http://x.com/version_control.json%22;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_main;%0A        %0A        LayoutInflater inflater = (LayoutInflater)context.getSystemService%0A                (Context.LAYOUT_INFLATER_SERVICE);%0A%0A        View myFragmentView = inflater.inflate(R.layout.activity_main, null);%0A%0A        Context cont = MainActivity.this;%0A        %0A        //This is the image view of the image you want to notify the user with when an upadate is avaliable%0A        final ImageView imageView = (ImageView)findViewById(R.id.imageview);%0A        %0A        //Since Json crashes the app when there is no internet connection, we use connection detector %0A        //to check if there is a valid internet connection before starting the process.%0A      %0A        ConnectionDetector cd = new ConnectionDetector(getApplicationContext());%0A        boolean internet_status = cd.isConnectingToInternet();%0A%0A        try %7B%0A            if (internet_status)%0A                new AsyncTaskParseJson(imageView).execute();%0A        %7D%0A        catch (Exception e) %7B%0A        %7D%0A    %7D%0A%7D%0A

Create MainActivity.java