Category: Android

  • Show ListView as Dropdown in Android – a Spinner Alternative

    Our code for today will give us an alternative to using the Android spinner. We will show ListView as dropdown in Android. This ListView dropdown works just like a spinner but: I love how it looks and response to user touch, it feels smoother and faster than a spinner. It can also be easily customized, […]

  • Copy or Move File From One Directory to Another on Android

    Today we are going to take a look at how to programmatically “copy” or “move” a file from one directory to another on Android. In case you want to be clarified about the difference, copying a file means the file will be seen on another directory (target location) without deleting the original file from the […]

  • Android Bluetooth Printing Example Code with Actual Printer Device

    Android Bluetooth Printing Example Code with Actual Printer Device

    Recently, I was asked to make a program for printing some data to a small or handheld Bluetooth printer device. This can be used for printing receipts, simple tickets, or customer notes. I like how it works because usually, we are getting our program output on a computer screen. But this time we are getting […]

  • Android Custom ListView Tutorial

    Almost all Android apps uses ListView – showing list of records, settings, songs, articles, and many other types of data a certain app can handle. An Android ListView is simply a vertically scrollable list of items.This tutorial will show you how to create a customized row in your ListView (with image and text). This is […]

  • Android XML Parser Example with XML from SD Card, URL or Assets

    XML parsing could be one of the most basic requirement on your Android application. In today’s tutorial, we are going to read XML files using three input sources. There can be three sources of your XML: 1. XML from device SD Card. Your dynamic XML file could be downloaded first for offline use. 2. XML […]

  • Ways to Create a Splash Screen for Android App

    Today we’re going to create a splash screen for your Android app. A splash screen is usually an image or a view that appears to the user while the app is loading, it is also a way to make your brand or logo easier to be recognize by the user. Some android apps that uses […]

  • Android Share Intent Example for URL, Text or Image

    Today I’m going to give you an android share intent example that you can use to enable your app to share contents such as URL or text and Image to other apps installed in your Android device like Facebook, Twitter, Messaging, Instagram, Evernote, etc.. Example uses of this code include: You are building an app […]

  • Android SQLite Database CRUD Tutorial with Example Application

    Android SQLite Database CRUD Tutorial with Example Application

    This is a step by step android CRUD tutorial where we’ll create an Android application that demonstrates Android’s SQLite database capabilities. Operations such as create, read, update and delete (CRUD) in Android is an essential skill every aspiring Android developer must have. In this post, we will cover the following contents: