public ContentValues createSnapshotValues(Bitmap bm){
  WebView web=getWebView();
  if (web == null)   return null;
  ContentValues values=new ContentValues();
  values.put(Snapshots.TITLE,mCurrentState.mTitle);
  values.put(Snapshots.URL,mCurrentState.mUrl);
  values.put(Snapshots.BACKGROUND,web.getPageBackgroundColor());
  values.put(Snapshots.DATE_CREATED,System.currentTimeMillis());
  values.put(Snapshots.FAVICON,compressBitmap(getFavicon()));
  values.put(Snapshots.THUMBNAIL,compressBitmap(bm));
  return values;
}

public ContentValues createSnapshotValues ( Bitmap bm ) { WebView web = getWebView ( ) ; if ( web == null ) return null ; ContentValues values = new ContentValues ( ) ; values . put ( Snapshots . TITLE , mCurrentState . mTitle ) ; values . put ( Snapshots . URL , mCurrentState . mUrl ) ; values . put ( Snapshots . BACKGROUND , web . getPageBackgroundColor ( ) ) ; values . put ( Snapshots . DATE_CREATED , System . currentTimeMillis ( ) ) ; values . put ( Snapshots . FAVICON , compressBitmap ( getFavicon ( ) ) ) ; values . put ( Snapshots . THUMBNAIL , compressBitmap ( bm ) ) ; return values ; }
must be called on the ui thread
