Android Open Source - GestureMechanism Ad Descriptor






From Project

Back to project page GestureMechanism.

License

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.

Java Source Code

/*
 * 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.
 *//from w  w w .j ava  2s. c om
 * Please send inquiries to huber AT ut DOT ee
 */

package com.in.mobile.database.adcontainer;

import android.database.sqlite.SQLiteDatabase;

/**
 * 
 * @author Huber Flores
 * 
 */

public class AdDescriptor {

  // Database schema
  // Table
  public static final String TABLE_TIMESTAMP = "files";
  // Attributes
  public static final String COLUMN_AD_ID = "_id";
  public static final String COLUMN_AD_NAME = "ad_name";
  public static final String COLUMN_AD_URL = "ad_url";
  public static final String COLUMN_AD_PRIORITY = "ad_priority";
  public static final String COLUMN_AD_TIMETOLIVE = "ad_timetolive";

  // Database creation SQL statement
  private static final String DATABASE_CREATE = "create table "
      + TABLE_TIMESTAMP + "(" + COLUMN_AD_ID
      + " integer primary key autoincrement, " + COLUMN_AD_NAME
      + " text not null, " + COLUMN_AD_URL + " text not null, "
      + COLUMN_AD_PRIORITY + " real not null, " + COLUMN_AD_TIMETOLIVE
      + " real not null " + ");";

  // Database creation
  public static void onCreate(SQLiteDatabase database) {
    database.execSQL(DATABASE_CREATE);
  }

  public static void onUpgrade(SQLiteDatabase database, int oldVersion,
      int newVersion) {
    database.execSQL("DROP TABLE IF EXISTS " + TABLE_TIMESTAMP);
    onCreate(database);
  }
}




Java Source Code List

com.in.mobile.common.utilities.Commons.java
com.in.mobile.database.adcontainer.AdDescriptor.java
com.in.mobile.database.adcontainer.DatabaseCommons.java
com.in.mobile.database.adcontainer.DatabaseHandler.java
com.in.mobile.database.adcontainer.DatabaseHelper.java
com.in.mobile.database.adcontainer.DatabaseManager.java
com.in.mobile.gesture.ad.AdContentLoader.java
com.in.mobile.gesture.ad.AdMechanism.java
com.in.mobile.gesture.ad.DynamicAdView.java
com.in.mobile.gesture.ad.GCMIntentService.java
com.in.mobile.gesture.ad.WrapMotionEvent.java
com.in.mobile.gesture.ad.contentprovider.AdContentProvider.java
com.in.mobile.manager.adfile.FileDownloader.java
com.in.mobile.notification.handler.ServerUtilities.java
com.in.mobile.pushnotification.gcm.ApiKeyInitializer.java
com.in.mobile.pushnotification.gcm.BaseServlet.java
com.in.mobile.pushnotification.gcm.Datastore.java
com.in.mobile.pushnotification.gcm.HomeServlet.java
com.in.mobile.pushnotification.gcm.RegisterServlet.java
com.in.mobile.pushnotification.gcm.SendAllMessagesServlet.java
com.in.mobile.pushnotification.gcm.UnregisterServlet.java