// Path: src/net/sourcewalker/olv/data/LiveViewData.java
// public final class LiveViewData {
// 
//     public static final String AUTHORITY = "net.sourcewalker.olv";
// 
//     /**
//      * The "log" database contains a persistent log for the application.
//      * 
//      * @author Xperimental
//      */
//     public static final class Log implements BaseColumns {
// 
//         public static final Uri CONTENT_URI = Uri.parse("content://"
//                 + AUTHORITY + "/log");
// 
//         public static final String CONTENT_TYPE = "vnd.android.cursor.dir/net.sourcewalker.olv.log";
// 
//         public static final String CONTENT_TYPE_ITEM = "vnd.android.cursor.item/net.sourcewalker.olv.log";
// 
//         public static final String TABLE = "log";
// 
//         public static final String TIMESTAMP = "time";
// 
//         public static final String MESSAGE = "message";
// 
//         public static final String DATETIME = "datetime";
// 
//         public static final String SCHEMA = "CREATE TABLE " + TABLE + " ("
//                 + _ID + " INTEGER PRIMARY KEY, " + TIMESTAMP + " INTEGER, "
//                 + MESSAGE + " TEXT)";
// 
//         public static final String[] DEFAULT_PROJECTION = new String[] {
//                 _ID,
//                 TIMESTAMP,
//                 "DATETIME(" + TIMESTAMP
//                         + " / 1000, 'unixepoch', 'localtime') AS " + DATETIME,
//                 MESSAGE };
// 
//         public static final String DEFAULT_ORDER = TIMESTAMP + " DESC, " + _ID
//                 + " ASC";
// 
//     }
// 
// }


import net.sourcewalker.olv.data.LiveViewData;
import android.app.ListActivity;
import android.database.Cursor;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.SimpleCursorAdapter;
package net.sourcewalker.olv;


/**
 * Displays the log from the database to the user.
 * 
 * @author Xperimental
 */
public class LogViewActivity extends ListActivity {

    /*
     * (non-Javadoc)
     * @see android.app.Activity#onResume()
     */
    @Override
    protected void onResume() {
        super.onResume();

        Cursor cursor = managedQuery(LiveViewData.Log.CONTENT_URI, null, null,
                null, null);

        SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
                android.R.layout.two_line_list_item, cursor, new String[] {
// Path: src/net/sourcewalker/olv/data/LiveViewData.java
// public final class LiveViewData {
// 
//     public static final String AUTHORITY = "net.sourcewalker.olv";
// 
//     /**
//      * The "log" database contains a persistent log for the application.
//      * 
//      * @author Xperimental
//      */
//     public static final class Log implements BaseColumns {
// 
//         public static final Uri CONTENT_URI = Uri.parse("content://"
//                 + AUTHORITY + "/log");
// 
//         public static final String CONTENT_TYPE = "vnd.android.cursor.dir/net.sourcewalker.olv.log";
// 
//         public static final String CONTENT_TYPE_ITEM = "vnd.android.cursor.item/net.sourcewalker.olv.log";
// 
//         public static final String TABLE = "log";
// 
//         public static final String TIMESTAMP = "time";
// 
//         public static final String MESSAGE = "message";
// 
//         public static final String DATETIME = "datetime";
// 
//         public static final String SCHEMA = "CREATE TABLE " + TABLE + " ("
//                 + _ID + " INTEGER PRIMARY KEY, " + TIMESTAMP + " INTEGER, "
//                 + MESSAGE + " TEXT)";
// 
//         public static final String[] DEFAULT_PROJECTION = new String[] {
//                 _ID,
//                 TIMESTAMP,
//                 "DATETIME(" + TIMESTAMP
//                         + " / 1000, 'unixepoch', 'localtime') AS " + DATETIME,
//                 MESSAGE };
// 
//         public static final String DEFAULT_ORDER = TIMESTAMP + " DESC, " + _ID
//                 + " ASC";
// 
//     }
// 
// }


// Path: src/net/sourcewalker/olv/LogViewActivity.java
import net.sourcewalker.olv.data.LiveViewData;
import android.app.ListActivity;
import android.database.Cursor;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.SimpleCursorAdapter;

package net.sourcewalker.olv;


/**
 * Displays the log from the database to the user.
 * 
 * @author Xperimental
 */
public class LogViewActivity extends ListActivity {

    /*
     * (non-Javadoc)
     * @see android.app.Activity#onResume()
     */
    @Override
    protected void onResume() {
        super.onResume();

        Cursor cursor = managedQuery(LiveViewData.Log.CONTENT_URI, null, null,
                null, null);

        SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
                android.R.layout.two_line_list_item, cursor, new String[] {
                        LiveViewData.Log.DATETIME, LiveViewData.Log.MESSAGE },