Code Archives - Jigopost https://www.jigopost.com/category/code/ jigopost is Web And Android Development tutorials for beginners, Our mission: to help people learn to code for free. Level up your blogging skills and become a successful blogger. This includes information on how to start, run, and grow your blog Wed, 22 Apr 2026 15:19:34 +0000 en-US hourly 1 https://www.jigopost.com/wp-content/uploads/2019/12/cropped-logojigodp-32x32.png Code Archives - Jigopost https://www.jigopost.com/category/code/ 32 32 Add items or menu in actionbar/toolbar android studio https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-android-studio/ https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-android-studio/#respond Wed, 22 Apr 2026 04:19:00 +0000 https://www.jigopost.com/?p=647 In this tutorial we will add items in actionbar/toolbar, 3-dot menu in actionbar/toolbar and handle item clicks. There will be three items in menu you can add as many as you want. One item will be displayed on action bar with icon, other two items will be displayed by clicking 3-dot menu. Step 1: Create a...

The post Add items or menu in actionbar/toolbar android studio appeared first on Jigopost.

]]>
https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-android-studio/feed/ 0
How to Change Tint Color for an Image in Android https://www.jigopost.com/change-tint-color-for-image-in-android/ https://www.jigopost.com/change-tint-color-for-image-in-android/#respond Wed, 17 Dec 2025 08:05:00 +0000 https://www.jigopost.com/?p=2314 In this article, we will discuss how to change Tint Color for an Image in Android programmatically as well as in XML. Tint color means when we want to change the color of the image while rendering in ImageView. In XML is very easy to change tint color by just setting up the attribute android:tint="" in the ImageView...

The post How to Change Tint Color for an Image in Android appeared first on Jigopost.

]]>
https://www.jigopost.com/change-tint-color-for-image-in-android/feed/ 0
Adding Floating Action Button (Java) https://www.jigopost.com/adding-floating-action-button-java/ https://www.jigopost.com/adding-floating-action-button-java/#respond Sat, 06 Dec 2025 09:25:00 +0000 https://www.jigopost.com/?p=698 The Floating Action Button (FAB) is a circular button that triggers primary action in your app’s UI. This tutorial shows you how to add the FAB to your layout, customize some of its appearance, and respond to the button taps. We will show Snackbar on FAB click.We will use Java and Android Studio.Minimum API: Android 2.1 is API level 7 Step 1: Create a new project OR Open your...

The post Adding Floating Action Button (Java) appeared first on Jigopost.

]]>
https://www.jigopost.com/adding-floating-action-button-java/feed/ 0
Downloading File From Android WebView https://www.jigopost.com/downloading-file-from-android-webview/ https://www.jigopost.com/downloading-file-from-android-webview/#respond Sat, 08 Nov 2025 11:46:00 +0000 https://www.jigopost.com/?p=693 In this tutorial we will handle downloading files from WebView, we will also need Write_External_Storage permission to download files. ✓ Run-time Permission “WRITE_EXTERNAL_STORAGE” on devices >=Marshmallow. ✓ Download any file.✓ Show download message/progress in notification. Step 1: Create a new project OR Open your project Step 2: Code AndroidManifest.xml activity_main.xml MainActivity.java Step 3:Output

The post Downloading File From Android WebView appeared first on Jigopost.

]]>
https://www.jigopost.com/downloading-file-from-android-webview/feed/ 0
Android WebView with Examples https://www.jigopost.com/android-webview-with-examples/ https://www.jigopost.com/android-webview-with-examples/#respond Fri, 19 Apr 2024 02:14:00 +0000 https://www.jigopost.com/?p=687 In this tutorial we will create a simple webView. WebView will act as an embedded browser to include the web pages content in our activity layout and it won’t contain any features of normal browsers, such as address bar, navigation controls, etc. Step 1: Create a new project OR Open your project Step 2: Code activity_main.xml MainActivity.java add new...

The post Android WebView with Examples appeared first on Jigopost.

]]>
https://www.jigopost.com/android-webview-with-examples/feed/ 0
SQLite Kotlin – Notes App – Android Studio Tutorial https://www.jigopost.com/sqlite-kotlin-notes-app-android-studio-tutorial/ https://www.jigopost.com/sqlite-kotlin-notes-app-android-studio-tutorial/#respond Sun, 24 Jul 2022 05:13:00 +0000 https://www.jigopost.com/?p=651 In this tutorial we will make a “Notes App” using SQLite and Kotlin. It will contain following features. Enter Data Retrieve Data in ListView Update/Edit Data Delete Data Search Data Copy Data Share Data Step 01: Create a new Project or open new project Step 02: Create layout resource file under res>layout folder Step 03: Create new “Android Resource...

The post SQLite Kotlin – Notes App – Android Studio Tutorial appeared first on Jigopost.

]]>
https://www.jigopost.com/sqlite-kotlin-notes-app-android-studio-tutorial/feed/ 0
Add items or menu in Actionbar/Toolbar (Kotlin) – Android Studio https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-kotlin-android-studio/ https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-kotlin-android-studio/#respond Sun, 24 Jul 2022 04:19:00 +0000 https://www.jigopost.com/?p=645 In this tutorial we will add items in actionbar/toolbar, 3-dot menu in actionbar/toolbar and handle item clicks using Kotlin. There will be three items in menu you can add as many as you want. One item will be displayed on action bar with icon, other two items will be displayed by clicking 3-dot menu. Step...

The post Add items or menu in Actionbar/Toolbar (Kotlin) – Android Studio appeared first on Jigopost.

]]>
https://www.jigopost.com/add-items-or-menu-in-actionbar-toolbar-kotlin-android-studio/feed/ 0
Splash Screen with Kotlin in Android https://www.jigopost.com/splash-screen-with-kotlin-in-android/ https://www.jigopost.com/splash-screen-with-kotlin-in-android/#respond Sun, 24 Jul 2022 01:56:00 +0000 https://www.jigopost.com/?p=658 Android Splash Screen is the 1st screen visible to user when app launches. Splash screen displays some animations or App logo for a short time while some data for the next screen are fetched. Here we are going to implement a Splash Screen for Android with Kotlin. Splash Screen is very common to most of...

The post Splash Screen with Kotlin in Android appeared first on Jigopost.

]]>
https://www.jigopost.com/splash-screen-with-kotlin-in-android/feed/ 0
Volley JsonArrayRequest – kotlin Android https://www.jigopost.com/volley-jsonarrayrequest-kotlin-android/ https://www.jigopost.com/volley-jsonarrayrequest-kotlin-android/#respond Wed, 01 Jun 2022 06:35:00 +0000 https://www.jigopost.com/?p=1098 Android Volley JsonArrayRequest to Post ArrayList data to the server.Store Data in Locle recyclerView list and send to the server.  JsonArrayRequest — A request for retrieving a JSONArray response body at a given URL Example of volley json arrayRequest in kotlin MainActivity.kt VolleySingleton.kt activity_main.xml add this line into app.gradle [dependencies] Out Put

The post Volley JsonArrayRequest – kotlin Android appeared first on Jigopost.

]]>
https://www.jigopost.com/volley-jsonarrayrequest-kotlin-android/feed/ 0
Set EditText digits programmatically kotlin https://www.jigopost.com/set-edittext-digits-programmatically-kotlin/ https://www.jigopost.com/set-edittext-digits-programmatically-kotlin/#respond Wed, 06 Oct 2021 05:56:00 +0000 https://www.jigopost.com/?p=832 If you check the docs for EditText , you’ll find a setText() method. It also inherits TextView ‘s setText(CharSequence) and setText(int) methods, so you can set it just like a regular TextView : This is the solution in Kotlin MainActivity.kt activity_main.xml Output

The post Set EditText digits programmatically kotlin appeared first on Jigopost.

]]>
https://www.jigopost.com/set-edittext-digits-programmatically-kotlin/feed/ 0