Android Update database

StudentProvider.java

@Override
public int update(Uri uri, ContentValues values, String selection,
String[] selectionArgs) {
SQLiteDatabase db=MyStudentDB.getWritableDatabase();
int result=0;
result=db.update(”Students”,
values, selection,selectionArgs);
return result;

————————————–

MainActivity.java
public void OnUpdate(View view)
{
ContentValues values=new ContentValues();
EditText edfirstnamed=(EditText)findViewById(
R.id.edfirstname);
values.put(”firstname”,edfirstnamed.getText().toString());
EditText edlastname=(EditText)findViewById(
R.id.edlastname);
values.put(”lastname”, edlastname.getText().toString());
//values.put(”lastname”, “yyyyy”);
int result=this.getContentResolver().update(Uri.parse(”content://rmutp.students”),
values,
“studentid=?”,
new String[]{”001″});
Toast.makeText(this,”"+result,
Toast.LENGTH_LONG).show();
}

—————————————

Main.xml

<Button
android:id=”@+id/button5″
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:onClick=”OnUpdate”
android:text=”Update” />
</LinearLayout>
<ListView
android:id=”@+id/listView1″
android:layout_width=”match_parent”
android:layout_height=”wrap_content” >
</ListView>
</LinearLayout>

—————————————-

Before run