Back to project page GestureMechanism.
The source code is released under:
GNU Lesser General Public License
If you think the Android project GestureMechanism listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *// ww w . ja v a2 s. co m * Please send inquiries to huber AT ut DOT ee */ package com.in.mobile.database.adcontainer; import com.in.mobile.gesture.ad.contentprovider.*; import android.content.ContentValues; import android.content.Context; import android.net.Uri; /** * * @author Huber Flores * */ public class DatabaseManager { private Uri dbUri; private Context dContext; public DatabaseManager(Context c) { this.dContext = c; } public void saveData(String adName, String adUrl, double priority, double timeToLive) { ContentValues values = new ContentValues(); values.put(AdDescriptor.COLUMN_AD_NAME, adName); values.put(AdDescriptor.COLUMN_AD_URL, adUrl); values.put(AdDescriptor.COLUMN_AD_PRIORITY, priority); values.put(AdDescriptor.COLUMN_AD_TIMETOLIVE, timeToLive); dbUri = dContext.getContentResolver().insert( AdContentProvider.CONTENT_URI, values); } public void setDbUri(Uri cursor) { this.dbUri = cursor; } public String getAdFilePath(int adIdentifier) { /* * TODO database query */ return ""; } }