我正在开发一个显示,保存和删除任务的应用程序。这些任务存储在服务器上。我可以发布任务并从服务器获取任务,但由于出现此错误而无法删除:
E /表面:getSlotFromBufferLocked:未知缓冲区:0xb8e7e8b8
改造界面:
select * from table_name where to_char(date_field,'YYYYMMDD HH24MISS') > '20190410 180614'
我如何将任务保存在服务器中:
package com.e.databaseapp
import retrofit2.Call
import retrofit2.http.*
interface Service {
@Headers("user: joan","Content-Type: application/json")
@GET( "task" )
fun getListTask() : Call<TaskListContainer>
@Headers("user: joan")
@FormUrlEncoded
@POST("task")
fun saveTask (@Field("task") taskname: String) : Call<Task>
@Headers("user: joan")
@FormUrlEncoded
@DELETE("task")
fun deleteTask (@Field("task") taskname: String) : Call<Void>
}
fun delete(task: Task) {
DeleteAsyncTask(taskDao, service).execute(task)
...
}