今天,我更新了谷歌播放服务到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
提前致谢.
我正在尝试使用滑动库旋转图像.以前,能够与毕加索合作(由于一个问题,我开始滑行).现在我在滑行中缺少旋转功能.我尝试使用转换,但没有工作.
//使用的代码
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) 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)