Category: Android

Android is a mobile operating system based on a modified version of the Linux kernel and other open source software, designed primarily for touchscreen mobile devices such as smartphones and tablets.

Difference between getString() and optString() in Json 1

Difference between getString() and optString() in Json

While fetching the data from JSON , we might have null data for a particular Key value, at that time instead of implementing Null conditions, better make use of this optimized method optString(“<keyname>”) optString(“<KeyName>”) returns the empty string (“”) if...