Android添加书签(二)
运行结果:
Bookmarker.java:
Java代码
package com.iaiai;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Browser;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageButton;
import android.widget.ListView;
/**
*
* <p>
* Title: Bookmarker.java
* </p>
* <p>
* E-Mail: 176291935@qq.com
* </p>
* <p>
* QQ: 176291935
* </p>
* <p>
* Http: iaiai.iteye.com
* </p>
* <p>
* Create time: 2011-8-29
* </p>
*
* @author 丸子
* @version 0.0.1
*/
public class Bookmarker extends Activity implements OnItemClickListener,
OnClickListener {
/** Called when the activity is first created. */
private ListView mListView;
private BookmarkAdapter bookmarkAdapter;
private ImageButton upButton;
private ImageButton downButton;
private ImageButton deleteButton;
private ImageButton launchButton;
private ImageButton topButton;
private ImageButton bottomButton;
private static final int DIALOG_YES_NO_MESSAGE = 1;
private static final int DIALOG_WELCOME = 2;
private int currentPos = -1;
private static final String PREFS_NAME = "BookmarkerPrefs";
private static final String LAUNCHED_KEY = "LAUNCHED";
private static final int MENU_ABOUT = 0;
private static final int MENU_ADD = 1;
相关新闻>>
- 发表评论
-
- 最新评论 更多>>