Archive for July, 2013

Building a Mobile Employee Directory – Step 7: Create an App Widget with it’s own ContentProvider & Service.

Building a Mobile Employee Directory – Step 7: Create an App Widget with it’s own ContentProvider & Service.

| July 23, 2013 | 18 Comments

Continuing with the mobile employee directory example, I’ve added three App Widgets to embed information on the phone’s main screen. Create EmployeeWidgetProvider (Changes every 30 minutes, with a random selection. Click to view Employee in DetailActivity.) Create EmployeeWidgetProvider2 & EmployeeWidgetService2 (Changes when clicked, with a random selection) Create EmployeeStackWidgetProvider & EmployeeStackWidgetService (Changes when scrolled. Click [...]

Continue Reading

Building a Mobile Employee Directory – Step 6: Create a Search Interface using Android’s search dialog

Building a Mobile Employee Directory – Step 6: Create a Search Interface using Android’s search dialog

| July 22, 2013 | 1 Comment

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 android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.ListView; import android.widget.SearchView; import android.widget.TextView; [...]

Continue Reading

Building a Mobile Employee Directory – Step 5: Create a ContentProvider to access the database.

Building a Mobile Employee Directory – Step 5: Create a ContentProvider to access the database.

| July 21, 2013 | 1 Comment

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: Build a native android Mobile Employee Directory // ** The result [...]

Continue Reading

Building a Mobile Employee Directory – Step 4: Pass data to DetailActivity to display more data and provide other functionality (w/ intent.putExtra)

Building a Mobile Employee Directory – Step 4: Pass data to DetailActivity to display more data and provide other functionality (w/ intent.putExtra)

| July 20, 2013 | 1 Comment

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 Employee Directory // ** The result is similar to the sample [...]

Continue Reading