Tag: Employee Directory Example

Building a Mobile Employee Directory – Step 6: Create a Search Interface using Android’s search dialog
For the source code relating to this post, checkout this Github repository. Continuing with the mobile employee directory example, I’ve added a Search Interface using Android’s search dialog. MainActivity.java package com.himebaugh.employeedirectory; import java.util.List; import android.annotation.TargetApi; import android.app.ListActivity; import android.app.SearchManager; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import android.support.v4.widget.SimpleCursorAdapter; import […]

Building a Mobile Employee Directory – Step 5: Create a ContentProvider to access the database.
For the source code relating to this post, checkout this Github repository. Continuing with the mobile employee directory example, I’ve added a ContentProvider to access the database. MainActivity.java package com.himebaugh.employeedirectory; import java.util.List; import android.app.ListActivity; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.widget.SimpleCursorAdapter; import android.view.Menu; import android.view.View; import android.widget.ListView; import android.widget.TextView; // GOAL: […]

Building a Mobile Employee Directory – Step 4: Pass data to DetailActivity to display more data and provide other functionality (w/ intent.putExtra)
For the source code relating to this post, checkout this Github repository. Continuing with the mobile employee directory example, I’ve added the detail activity. MainActivity.java package com.himebaugh.employeedirectory; import java.util.List; import android.app.ListActivity; import android.content.Intent; import android.database.Cursor; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.widget.SimpleCursorAdapter; import android.view.Menu; import android.view.View; import android.widget.ListView; import android.widget.TextView; // GOAL: Build a native android Mobile […]

Building a Mobile Employee Directory – Step 3: Save (Persist) the data into a SQLite Database & Load a ListView from a SQLite Database
For the source code relating to this post, checkout this Github repository. Continuing with the mobile employee directory example, I’ve added persistent storage with an SQLite database. MainActivity.java package com.himebaugh.employeedirectory; import java.util.List; import android.app.ListActivity; import android.database.Cursor; import android.os.AsyncTask; import android.os.Bundle; import android.support.v4.widget.SimpleCursorAdapter; import android.view.Menu; // GOAL: Build a native android Mobile Employee Directory // ** The […]

Building a Mobile Employee Directory – Step 2: Load data into the ListActivity from an XML file via XmlParser
For the source code relating to this post, checkout this Github repository. Parsing XML data with XmlPullParser into an Android ListView. After reviewing the SAX (Simple API for XML) Parser, the DOM (Document Object Model) Parser and the XmlPullParser. I’ve decided to use the XmlPullParser because it is supposed to be the fastest. I have not tried […]

Building a Mobile Employee Directory – Step 1: Display a ListActivity with some data
For the source code relating to this post, checkout this Github repository. A few years ago I came across this tutorial for Building a mobile employee directory sample with Flex and Flash Builder. The following few posts will outline what I have learned by developing a Native Android App with similar functionality. Employee Directory App To […]