Update entry(existing row) in microsoft azure database through android application -
i making android application database connectivity through microsoft azure. have created table in azure , connected application.i have used sql management studio(2014) creating database. able enter data table application, according methods specified in microsoft azure mobile services, facing problem in updating database. entered information database @ 1 point in app. @ later stage need enter data other columns corresponding previous entry (i.e updating existing row), not able do. solutions available not helping me obtain goal. please tell me exact code(java) need write in android application or procedure should follow update properly. thanks.
the following code shows how update data in table. in example, item reference row in todoitem table, has had changes made it. following method updates table , ui adapter.
private void updateitem(final todoitem item) { if (mclient == null) { return; } new asynctask<void, void, void>() { @override protected void doinbackground(void... params) { try { mtodotable.update(item).get(); runonuithread(new runnable() { public void run() { if (item.iscomplete()) { madapter.remove(item); } refreshitemsfromtable(); } }); } catch (exception exception) { createandshowdialog(exception, "error"); } return null; } }.execute(); } for further queries visit :https://azure.microsoft.com/en-us/documentation/articles/mobile-services-android-how-to-use-client-library/#updating
Comments
Post a Comment