Getting a Result from an Activity| Android startActivityForResult Example Kotlin

Activity in the Android application development, you can do 2-way communication on starting a new Activity. A first Activity can get the result from another Activity. It can be done by call startActivityForResult() method instead of instead of startActivity() method. Build an app to get Result from an Activity using Android startActivityForResult method : Think about Read More…


How to Save UI States | Android Activity State onSaveInstanceState Method – Kotlin

Saving a UI state in the android app is very important, UI state to remain the same, but the system destroys the activity. To improve user experience and handle it system behavior you can use ViewModel object, onSaveInstanceState() method and local storage to persist the UI state across such application. You can use any or combination of Read More…


Python capitalize String method | First, all or every Letter example

Python capitalizes string method is used to converts the first character of a string (first letter of the first word in the sentence) to the capital (uppercase) letter. The string will same if the string has first character capital. Syntax The capitalize() method returns a string where the first letter is upper case. And this method does not take Read More…


Array to ArrayList | Create ArrayList from Array in Java

Conversion of Array To ArrayList in Java is the top question in one of most viewed and voted questions on StackOverflow. You can convert an array to ArrayList using the following ways. Using Arrays.asList() method: Simply pass the array in method. Collections.addAll() method: Create a new list and add array elements using this method to Read More…


Hide Soft keyboard android code in Kotlin | programmatically?

Hiding a Soft keyboard in Android app is easy, just press the back button of the Android phone. But in some situations, it does not work, as a full-screen Activity. So How to Hide Soft keyboard android? Let’s assume, we have an EditText and a Button in my layout. After click and writing in the edit field then clicking Read More…


Create shortcuts android App | Show Menu Long press on App icon – Kotlin

Have you seen the android app options menu on press any application? Android shortcuts menu deliver specific types of content to your users. In this tutorial, you will learn how to Create shortcuts android App in different ways. In this tutorial, you will learn the following: App shortcuts overview Shortcut types Create shortcuts App shortcuts Read More…