Search in sources :

Example 6 with SandExif

use of com.yydcdut.note.entity.SandExif in project PhotoNoter by yydcdut.

the class SandBoxTest method testSave.

public void testSave() {
    SandPhoto sandPhoto = new SandPhoto(SandPhoto.ID_NULL, 1l, "0", 1, false, 1, "111", 11, ImageFormat.JPEG, new SandExif(0, "s", "ss", 0, 0, 0, 1, "1", "1"));
    mRxSandBox.saveOne(sandPhoto).subscribe(new Subscriber<SandPhoto>() {

        @Override
        public void onCompleted() {
            YLog.i("yuyidong", "onCompleted");
        }

        @Override
        public void onError(Throwable e) {
            YLog.i("yuyidong", "onError");
        }

        @Override
        public void onNext(SandPhoto sandPhoto) {
            YLog.i("yuyidong", sandPhoto.toString());
        }
    });
}
Also used : SandExif(com.yydcdut.note.entity.SandExif) SandPhoto(com.yydcdut.note.entity.SandPhoto)

Aggregations

SandExif (com.yydcdut.note.entity.SandExif)6 SandPhoto (com.yydcdut.note.entity.SandPhoto)5 SQLiteDatabase (android.database.sqlite.SQLiteDatabase)4 Cursor (android.database.Cursor)3 ContentValues (android.content.ContentValues)1 Bitmap (android.graphics.Bitmap)1 BitmapFactory (android.graphics.BitmapFactory)1 ImageFormat (android.graphics.ImageFormat)1 Rect (android.graphics.Rect)1 YuvImage (android.graphics.YuvImage)1 ExifInterface (android.media.ExifInterface)1 PhotoNote (com.yydcdut.note.entity.PhotoNote)1 RxPhotoNote (com.yydcdut.note.model.rx.RxPhotoNote)1 RxSandBox (com.yydcdut.note.model.rx.RxSandBox)1 ICameraServicePresenter (com.yydcdut.note.presenters.service.ICameraServicePresenter)1 Const (com.yydcdut.note.utils.Const)1 FilePathUtils (com.yydcdut.note.utils.FilePathUtils)1 Utils (com.yydcdut.note.utils.Utils)1 YLog (com.yydcdut.note.utils.YLog)1 IView (com.yydcdut.note.views.IView)1