Android Open Source - bnote Note






From Project

Back to project page bnote.

License

The source code is released under:

MIT License

If you think the Android project bnote listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.rd.bnote;
//from   w ww .  ja va 2  s  . c o m
public class Note {
  
  public static final String FIELD__ID = "_id";
  public static final String FIELD_PUB_DATE = "pub_date";
  public static final String FIELD_SNAP = "snap";
  public static final String FIELD_CONTENT = "content";
  public static final int MAX_SNAP_LEN = 50;
  
  public int _id;
  public int pub_date;
  public String snap;
  public String content;
  
  public Note(int _id) {
    this._id = _id;
  }
  
  public Note(String content) {
    setContent(content);
  }
  
  public void setContent(String content) {
    this.content = content;
    int snap_len = content.length();
    snap_len = (snap_len > MAX_SNAP_LEN) ? MAX_SNAP_LEN : snap_len;
    this.snap = content.substring(0, snap_len);
  }
}




Java Source Code List

com.rd.bnote.DBHelper.java
com.rd.bnote.DBManager.java
com.rd.bnote.DateSimpleCursorAdapter.java
com.rd.bnote.EditActivity.java
com.rd.bnote.JSONParser.java
com.rd.bnote.ListActivity.java
com.rd.bnote.Note.java
com.rd.bnote.SearchableActivity.java