小编Rav*_*udi的帖子

Places类从Android播放服务9.2.0中删除

今天,我更新了谷歌播放服务到9.2.0.我收到了一个错误

com.google.android.gms.location.places.Places

未找到.这打破了两行

.addApi(Places.GEO_DATA_API)
.addApi(Places.PLACE_DETECTION_API)
Run Code Online (Sandbox Code Playgroud)

我可以在哪里找到GEO_DATA_API,PLACE_DETECTION_API

提前致谢.

android google-play-services

29
推荐指数
1
解决办法
7983
查看次数

如何使用滑动库旋转图像?(就像毕加索一样)

我正在尝试使用滑动库旋转图像.以前,能够与毕加索合作(由于一个问题,我开始滑行).现在我在滑行中缺少旋转功能.我尝试使用转换,但没有工作.

//使用的代码

public class MyTransformation extends BitmapTransformation {

private float rotate = 0f;

public MyTransformation(Context context, float rotate) {
    super(context);
    this.rotate = rotate;
}

@Override
protected Bitmap transform(BitmapPool pool, Bitmap toTransform,
                           int outWidth, int outHeight) {
    return rotateBitmap(toTransform, rotate);
}

@Override
public String getId() {
    return "com.example.helpers.MyTransformation";
}

public static Bitmap rotateBitmap(Bitmap source, float angle)
{
    Matrix matrix = new Matrix();
    matrix.postRotate(angle);
    return Bitmap.createBitmap(source, 0, 0, source.getWidth(), source.getHeight(), matrix, true);
}
}
Run Code Online (Sandbox Code Playgroud)

//滑翔

Glide.with(context)
                .load(link)
                .asBitmap()
                .transform(new MyTransformation(context, 90))
                .into(imageView); …
Run Code Online (Sandbox Code Playgroud)

android android-glide

6
推荐指数
2
解决办法
8422
查看次数

由于错误-24,无法分配大小为2097152的CursorWindow'/ pos-db'

例外信息

cannot open file at line 30176 of [00bb9c9ce4]
 (14) os_unix.c:30176: (24) open(/data/data/c/databases/pos-db-journal) - 
 (14) cannot open file at line 30176 of [00bb9c9ce4]
 (14) os_unix.c:30176: (24) open(/data/data/c/pos-db-journal) - 
 (14) statement aborts at 14: [SELECT T."_id",T."PRINTDATA",T."POSITION",T."DOUBLEFORMAT",
 T."PRINTERMODE",T."INSERTTIME" FROM "PRINT_DATA_ITEM" T] unable to open database file
 E/SQLiteQuery: exception: unable to open database file (code 14); query: SELECT T."_id",T.
 "PRINTDATA",T."POSITION",T."DOUBLEFORMAT",T."PRINTERMODE",T."INSERTTIME" FROM "PRINT_DATA_ITEM" T
Run Code Online (Sandbox Code Playgroud)

零件代码:

 private PrinterTask(Context context) {
        this.mContext = context;
        helper = new DaoMaster.DevOpenHelper(context, "pos-db", null);
        db = helper.getWritableDatabase();
        mDaoMaster = new …
Run Code Online (Sandbox Code Playgroud)

android greendao

5
推荐指数
1
解决办法
579
查看次数