(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package apptest.realm.io.androidmtest; | |
| import android.Manifest; | |
| import android.content.pm.PackageManager; | |
| import android.os.Bundle; | |
| import android.os.Environment; | |
| import android.support.design.widget.FloatingActionButton; | |
| import android.support.design.widget.Snackbar; | |
| import android.support.v4.app.ActivityCompat; | |
| import android.support.v4.content.ContextCompat; |
| package com.example; | |
| import android.content.Context; | |
| import android.support.v7.widget.GridLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.ViewGroup; | |
| public class SpanningGridLayoutManager extends GridLayoutManager { | |
| RequestQueue queue = VolleyClient.getInstance(getActivity()).getRequestQueue(); //Obtain the instance | |
| StringRequest volleyRequest = new StringRequest(Request.Method.POST,url, //Change the url parameter | |
| new Response.Listener<String>() { | |
| @Override | |
| public void onResponse(String response) { | |
| try { | |
| JSONArray jsonResponse = new JSONArray(response); // Convert string to JSONArray | |
| //TODO: parse the JSON or whatever |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.