Android BottomSheetBehavior Examples and Tutorials.

A BottomSheetBehavior is an interaction behavior plugin for a child view of CoordinatorLayout to make it work as a bottom sheet.

Android JSONArray Tutorial and Examples

JSONArray is a class representing a dense indexed sequence of values..

For these mapping names have to be unique and non-null strings.

On the hand values may be any mix of :

  1. JSONObjects
  2. JSONArrays
  3. Strings
  4. Booleans
  5. Integers
  6. Longs
  7. Doubles
  8. NULL
  9. null.

Values may not be NaNs, infinities, or of any type not listed above.

Null and null, beware are different.

Instances of JSONArray class are not thread safe. Moreover, JSONArray should not be subclassed as it was not designed for inheritance.

Android JSONObject Tutorial and Examples

JSONObject is a class representing a modifiable set of name/value mappings.

For these mapping names have to be unique and non-null strings.

On the hand values may be any mix of :

  1. JSONObjects
  2. JSONArrays
  3. Strings
  4. Booleans
  5. Integers
  6. Longs
  7. Doubles or
  8. NULL.

Values may not be null, NaNs, infinities, or of any type not listed above.

Take note that NULL is different from null. Continue reading to check difference.

This involves tutorials and examples involving using the native JSONObject and JSONArray classes.

Here we see examples involving generating and processing JSON data using JSONObject and JSONArray which do reside in the org.json package.

Android Google Gson Examples and Tutorials.

Gson (also known as Google Gson) is a small Java-based library for parsing and creating JSON objects.

It's a serialization/deserialization library to convert Java Objects into JSON and back.

Google developed Gson for its own projects, but later made Gson publicly available, starting with version 1.0.

Gson is very powerful and is capable of working with arbitrary Java objects including pre-existing objects that you do not have source-code of.

JSON stands for JavaScript Object Notation and is a language-independent data format that expresses JSON objects as human-readable lists of properties(name-value pairs).

It is a data format derived from the literals of the JavaScript programming language.

You can also think of it as a textual representation defined by a small set of governing rules in which data is structured.

As a subset of the JavaScript language JSON does not possess any additional features that the JavaScript language itself does not already possess.

Android Firebase Realtime Database ListView Examples.

Android Firebase Realtime Database RecyclerView Examples.

Android Fast Networking Library JSON Examples.

Android Firebase Realtime Database GridView Examples.