In this video it shows the steps to fix the error – ‘org.json.JSONException’ exception Expected literal value at character 65 of … In this demonstration it first reproduces the issue by introducing an erroneous comma (,) at the end of the JSON string and then shows the fix by removing…
Tag: string
How to convert TextView to WebView (HTML) using the WebView.loadData in your Android App?
The video demonstrates how to convert a TextView to a WebView using the loadData API in HTML MIME type. This conversion is performed using the Java package com.programmerworld.textviewtowebview by creating a ‘MainActivity’ class with TextView and WebView properties. Then, in a method called ‘buttonGTextViewToWebView’, the TextView is converted into a string and loaded as ‘text/html’ into the WebView. The corresponding XML design layout uses a ConstraintLayout containing a TextView, Button, and WebView. For queries or suggestions, viewers can contact through the given website or email.
How to access the HDMI Passthrough input in TvView of your Android TV App?
In this video it shows the steps to access the HDMI Passthrough input in your Android TV App. It shows the inputs whatever is passed through the HDMI cable in the TvView widget of your TV App. I hope you like this video. For any questions, suggestions or appreciation please…
How to convert an image to BLOB (bytes array) and vice-versa using Base64 encoder in your Android App? API 34 | Android 14
This video shows the steps to read an image file from the download folder of the android device. Then convert it into a Blob type, basically a bytes array. Then it encodes it into string type using Base64 character encoding. And it decodes it back. It displays both encoded and…
How to get the clipboard text (copied data) programmatically in your Android App?
This video shows the steps to get the clipboard text (copied data) in your Android App programmatically. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Complete source code and other details:
How to get the Text of the Button pressed/ clicked in your Android App?
In this video it shows the code to fetch the text of button which is clicked in your Android App. It shows how one can type cast the View to Button variable type and fetch the respective text from it in your Android App. I hope you like this video….
How to download an image file from AWS S3 using signed URL in your Android App?
In this video it shows the steps for downloading an image file from AWS (Amazon Web Services) S3 (Amazon Simple Storage Service) in your Android App. It uses the signed URL of the file which is valid for a limited period (max 12 hours). In this demo the signed URL…
Difference between List vs Set in Java code of your Android App?
As shown in this video, the main difference are: Set: List: I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Complete source code and other details: With Duplicate entry of “Tokyo” Without any duplicate entry:
How to translate texts into different languages (English, German, Arabic, Korean) in your Android App using ML Kit?
In this video it shows the steps to implement and use google’s ML Kit to translate languages in your Android App. It refers to google developers page to get the required implementation for this App’s development:https://developers.google.com/ml-kit/language/translation/android#java I hope you like this video. For any questions, suggestions or appreciation please contact…
How to get alphabets from string (includes special characters, spaces) in Android App using regex?
How to extract or filter out only alphabets from an alphanumeric string (including special characters and spaces) in your Android App using regular expression (regex)? In this video it shows how one can use regular expressions to filter or extract only the alphabets from a string which contains special characters,…