How to use Android Preference

Android provided a class that makes it easy to implement your preference screen. In this example, I’m going to show you how to easily put in some preference/ settings options in your own android app. 1. You need to create an XML file (something called: userpreference.xml) in the /res/xml/ folder.   2. You simply need […]

Taking a Picture with Camera (using built-in intent)

This example shows you easiest way to instruct Android to run Camera app (comes with android system) to take a photo and returns. import needed for this to work: import java.io.File;   import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.provider.MediaStore; private constants & variable uses in the class: private static int […]