Category: Uncategorized

  • 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: Copy Asset To SD Card

    Assets folder is where you can store some files for you app. Today I’m going to show you how to copy files from your android app’s asset’s folder to the device SD card. I used this when I have to deploy some default text files for my app and manipulate it at later time. Some […]

  • Android libphonenumber Example

    Today I want to show you a simple example code on how to use a very useful library called libphonenumber, a phone number handling library from Google. It can validate the correct number format for your country. In this example we’re using PH (Philippines) as country code. It is optimized for running on smartphones, and […]

  • Android Camera Code Tutorial

    Today we are going to do a code that can enable your android application to capture images using the device camera. In this example code, we will have: A “Take Picture” button on our main activity, when the user clicks it, the device camera will be shown that will enable your user the take a […]

  • Android Webview Example Code

    Hi there! Today I’m gonna share how to view a website or webpage to your Android apllication. You’ll be able to view webpages from the internet or from the storage of your Adroid device such as your sdcard. This is useful if you want your app not to open a web browser for web links. […]

  • Verify if Java was Installed in Ubuntu 11.10

    Ubuntu Quick Tip: After my JDK installation, I wanted to verify if it was really installed in my computer. Here’s how I verified it 1. Run your terminal. 2. Type:           $ sudo updatedb          $ locate java It asked me to enter my password after typing sudo […]

  • Android Download File With Progress Bar Example

    Hi guys! Today we are going to do a script that will show an Android progress bar while downloading a file. A progress bar looks good for the user to be notified about the progress of the download. We will easily use a UI thread with Android AsyncTask. In other terms, we will use a […]

  • Center Screen Two Android Buttons

    Recently I was into a problem when I was unable to center screen two Android buttons, in a simplest way. My Google skills failed me to find a simple way, so I had to figure it out myself. I wanted my buttons to be centered horizontally and vertically on the screen. And those buttons would […]