MessagingStyle.Message[] getAndroidMessages() {
        JSONArray messagesJSONArray = options.optJSONArray("androidMessages");

        // Nothing is set
        if (messagesJSONArray == null) return null;

        MessagingStyle.Message[] messages = new MessagingStyle.Message[messagesJSONArray.length()];

        for (int i = 0; i < messages.length; i++) {
            JSONObject messageJSON = messagesJSONArray.optJSONObject(i);

            // Use person icon if available
            Bitmap personBitmap = assetUtil.getBitmap(messageJSON.optString("personIcon", null));
            IconCompat personIcon = personBitmap != null ? IconCompat.createWithBitmap(AssetUtil.getCircleBitmap(personBitmap)) : null;

            messages[i] = new MessagingStyle.Message(
                messageJSON.optString("message"),
                messageJSON.optLong("date", System.currentTimeMillis()),
                new Person.Builder()
                    .setName(messageJSON.optString("person", null))
                    .setIcon(personIcon).build()
            );
        }

        return messages;
    }
Gets the list of messages to display.
@return null if there are no messages
src/android/Options.java