Tag: Content Provider

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