Back to project page sana.
The source code is released under:
Copyright (c) 2010, Moca All rights reserved. The source code for Moca is licensed under the BSD license as follows: Redistribution and use in source and binary forms, with or without modification, ...
If you think the Android project sana listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.moca.db; /*from w w w . j av a 2 s . co m*/ import org.moca.db.MocaDB.SavedProcedureSQLFormat; import android.content.Context; import android.database.Cursor; import android.net.Uri; public class EncounterDAO { public static String getEncounterGuid(Context context, Uri encounterUri) { Cursor cursor = null; String guid = ""; try { cursor = context.getContentResolver().query(encounterUri, new String [] { SavedProcedureSQLFormat.GUID }, null, null, null); if (cursor.moveToFirst()) { guid = cursor.getString(cursor.getColumnIndex(SavedProcedureSQLFormat.GUID)); } } catch (Exception e) { e.printStackTrace(); EventDAO.logException(context, e); } finally { if (cursor != null) cursor.deactivate(); } return guid; } }