Android (JAVA) Archives - Jigopost https://www.jigopost.com/category/code/learn-java/ 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 Thu, 18 Jun 2026 09:03:33 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 https://www.jigopost.com/wp-content/uploads/2019/12/cropped-logojigodp-32x32.png Android (JAVA) Archives - Jigopost https://www.jigopost.com/category/code/learn-java/ 32 32 Handling Click events in Button | Android studio https://www.jigopost.com/handling-click-events-in-button-android-studio/ https://www.jigopost.com/handling-click-events-in-button-android-studio/#respond Thu, 18 Jun 2026 09:03:00 +0000 https://www.jigopost.com/?p=711 In this post, we explain how to work the button click event on Android JAVA. Below shows an example. Step 1: Create a new project or open your project How to create a new project? Step 2: activity_main.xml: Step2: MainActivity.java Step 3: Output:

The post Handling Click events in Button | Android studio appeared first on Jigopost.

]]>
https://www.jigopost.com/handling-click-events-in-button-android-studio/feed/ 0
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
Popup Window Android Example https://www.jigopost.com/popup-window-android-example/ https://www.jigopost.com/popup-window-android-example/#comments Wed, 06 Oct 2021 05:44:00 +0000 https://www.jigopost.com/?p=811 Inflate and show the popup window in Android Here is the code for the main activity of our example. Whenever the button is clicked, the popup window is inflated and shown over the activity. Touching anywhere on the screen dismisses the popup window Show this tutorial popup window in android To create a simple working PopupWindow, we need to do...

The post Popup Window Android Example appeared first on Jigopost.

]]>
https://www.jigopost.com/popup-window-android-example/feed/ 1
circle shape xml android https://www.jigopost.com/circle-shape-xml-android/ https://www.jigopost.com/circle-shape-xml-android/#respond Wed, 06 Oct 2021 04:57:00 +0000 https://www.jigopost.com/?p=819 This is a simple circle shape xml as a drawable in Android. Note: To make the oval shape appear as a circle, in these examples, either your view that you are using this shape as its background should be a square or you have to set the height and width properties of the shape tag to an equal value. Android Example, Circle shape in XML drawable file on Android, custom cricle shape, custom butom,...

The post circle shape xml android appeared first on Jigopost.

]]>
https://www.jigopost.com/circle-shape-xml-android/feed/ 0
Web Browser using WebView https://www.jigopost.com/web-browser-using-webview/ https://www.jigopost.com/web-browser-using-webview/#respond Fri, 24 Sep 2021 03:31:00 +0000 https://www.jigopost.com/?p=689 In this tutorial we will create a simple web browser (with EditText to input, Button to search,WebView to load Url). ✓Search a query(with google search engine) ✓Load a Url ✓Auto correct Url ✓Go to previous page Step 1: Create a new project OR Open your project Step 2: Code AndroidManifest.xml activity_main.xml MainActivity.java Run Project

The post Web Browser using WebView appeared first on Jigopost.

]]>
https://www.jigopost.com/web-browser-using-webview/feed/ 0
Show Snackbar on button click Android Studio https://www.jigopost.com/show-snackbar-on-button-click-android-studio/ https://www.jigopost.com/show-snackbar-on-button-click-android-studio/#respond Fri, 24 Sep 2021 02:25:00 +0000 https://www.jigopost.com/?p=667 In this tutorial we will display a snackbar on Button click. To display snack bar we have to include design library into build.gradle(app). Step 1: Create a new project OR Open your project Step 2: Add design library in build.gradle(Module: app) in dependencies section. add this design libraryimplementation ‘com.android.support:design:27.0.2’ Step 3: Snackbar code activity_main.xml MainActivity.java Note: in the following...

The post Show Snackbar on button click Android Studio appeared first on Jigopost.

]]>
https://www.jigopost.com/show-snackbar-on-button-click-android-studio/feed/ 0