Android Open Source - android_retrieval_system Activity Contract






From Project

Back to project page android_retrieval_system.

License

The source code is released under:

GNU General Public License

If you think the Android project android_retrieval_system 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 file is part of Android retrieval system project.
 * /*from  w w  w  .ja va  2s .c  o  m*/
 * Android retrieval system is free software: you can redistribute it
 * and/or modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version. 
 * 
 * Android retrieval system 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.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Android retrieval system. If not, see <http://www.gnu.org/licenses/>.
 */

package net.deerhunter.ars.providers;

import android.net.Uri;

/**
 * This class holds convenience definitions for ActivityProvider.
 * 
 * @author DeerHunter (vityokkv73@gmail.com)
 */
public final class ActivityContract {
  public static final String AUTHORITY = "net.deerhunter.ars.provider.activity";

  // This class cannot be instantiated
  private ActivityContract() {}

  /**
   * SMS table
   */
  public static final class SMS {
    // This class cannot be instantiated
    private SMS() {}

    /**
     * The content:// style URL for this table
     */
    public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/sms");

    public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.deerhunter.sms";

    public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.deerhunter.sms";

    public static final String _ID = "_id";

    public static final String SENDER = "sender";

    public static final String RECIPIENT = "recipient";

    public static final String SENDER_PHONE_NUMBER = "sender_phone_number";

    public static final String RECIPIENT_PHONE_NUMBER = "recipient_phone_number";

    public static final String TIME = "time";

    public static final String SMS_BODY = "sms_body";

    public static final int _ID_COLUMN = 0;

    public static final int SENDER_COLUMN = 1;

    public static final int RECIPIENT_COLUMN = 2;

    public static final int SENDER_PHONE_NUMBER_COLUMN = 3;

    public static final int RECIPIENT_PHONE_NUMBER_COLUMN = 4;

    public static final int TIME_COLUMN = 5;

    public static final int SMS_BODY_COLUMN = 6;
  }

  /**
   * Calls table
   */
  public static final class Calls {
    // This class cannot be instantiated
    private Calls() {}

    /**
     * The content:// style URL for this table
     */
    public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/calls");

    public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.deerhunter.call";

    public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.deerhunter.call";

    public static final String _ID = "_id";

    public static final String CALLER = "caller";

    public static final String RECIPIENT = "recipient";

    public static final String CALLER_PHONE_NUMBER = "caller_phone_number";

    public static final String RECIPIENT_PHONE_NUMBER = "recipient_phone_number";

    public static final String TIME = "time";

    public static final int _ID_COLUMN = 0;

    public static final int CALLER_COLUMN = 1;

    public static final int RECIPIENT_COLUMN = 2;

    public static final int CALLER_PHONE_NUMBER_COLUMN = 3;

    public static final int RECIPIENT_PHONE_NUMBER_COLUMN = 4;

    public static final int TIME_COLUMN = 5;
  }

  /**
   * Thumbnails table
   */
  public static final class Thumbnails {
    // This class cannot be instantiated
    private Thumbnails() {}

    /**
     * The content:// style URL for this table
     */
    public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/image_thumbnails");

    public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.deerhunter.image_thumbnail";

    public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.deerhunter.image_thumbnail";

    public static final String _ID = "_id";

    public static final String MEDIASTORE_ID = "mediastore_id";

    public static final String DELETED = "deleted";

    public static final String THUMBNAIL_SENT = "thumbnail_sent";

    public static final String FULL_IMAGE_SENT = "full_image_sent";

    public static final int _ID_COLUMN = 0;

    public static final int MEDIASTORE_ID_COLUMN = 1;

    public static final int DELETED_COLUMN = 2;

    public static final int THUMBNAIL_SENT_COLUMN = 3;

    public static final int FULL_IMAGE_SENT_COLUMN = 4;
  }

  /**
   * Locations table
   */
  public static final class Locations {
    // This class cannot be instantiated
    private Locations() {}

    /**
     * The content:// style URL for this table
     */
    public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/locations");

    public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.deerhunter.location";

    public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.deerhunter.location";

    public static final String _ID = "_id";

    public static final String LATITUDE = "latitude";

    public static final String LONGITUDE = "longitude";

    public static final String ALTITUDE = "altitude";

    public static final String ACCURACY = "accuracy";

    public static final String PROVIDER = "provider";

    public static final String TIME = "time";

    public static final int _ID_COLUMN = 0;

    public static final int LATITUDE_COLUMN = 1;

    public static final int LONGITUDE_COLUMN = 2;

    public static final int ALTITUDE_COLUMN = 3;

    public static final int ACCURACY_COLUMN = 4;

    public static final int PROVIDER_COLUMN = 5;

    public static final int TIME_COLUMN = 6;
  }

  /**
   * Contacts table
   */
  public static final class Contacts {
    // This class cannot be instantiated
    private Contacts() {}

    /**
     * The content:// style URL for this table
     */
    public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/contacts");

    public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.deerhunter.contact";

    public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.deerhunter.contact";

    public static final String _ID = "_id";

    public static final String SENT_CONTACT_ID = "sent_contact_id";

    public static final int _ID_COLUMN = 0;

    public static final int RECEIVED_ID_COLUMN = 1;
  }
}




Java Source Code List

net.deerhunter.ars.application.ArsApplication.java
net.deerhunter.ars.broadcast_receivers.BootReceiver.java
net.deerhunter.ars.broadcast_receivers.CallReceiver.java
net.deerhunter.ars.broadcast_receivers.SMSReceiver.java
net.deerhunter.ars.broadcast_receivers.StartLocationListeningReceiver.java
net.deerhunter.ars.broadcast_receivers.StopLocationListeningReceiver.java
net.deerhunter.ars.broadcast_receivers.WiFiStatusReceiver.java
net.deerhunter.ars.contact_structs.Address.java
net.deerhunter.ars.contact_structs.ContactList.java
net.deerhunter.ars.contact_structs.ContactsManager.java
net.deerhunter.ars.contact_structs.Email.java
net.deerhunter.ars.contact_structs.IM.java
net.deerhunter.ars.contact_structs.Organization.java
net.deerhunter.ars.contact_structs.Phone.java
net.deerhunter.ars.gps.GPSHelper.java
net.deerhunter.ars.inner_structures.ControlConstants.java
net.deerhunter.ars.inner_structures.ImageInfoPiece.java
net.deerhunter.ars.internet_utils.Network3gHelper.java
net.deerhunter.ars.internet_utils.WifiHelper.java
net.deerhunter.ars.location.ARSLocationListener.java
net.deerhunter.ars.location.LocationManager.java
net.deerhunter.ars.protocol.PacketSenderService.java
net.deerhunter.ars.protocol.Uploader.java
net.deerhunter.ars.protocol.packets.BasePacket.java
net.deerhunter.ars.protocol.packets.CallPacket.java
net.deerhunter.ars.protocol.packets.ContactPacket.java
net.deerhunter.ars.protocol.packets.DataType.java
net.deerhunter.ars.protocol.packets.ImagePacket.java
net.deerhunter.ars.protocol.packets.LocationPacket.java
net.deerhunter.ars.protocol.packets.MainPacket.java
net.deerhunter.ars.protocol.packets.SMSPacket.java
net.deerhunter.ars.providers.ActivityContract.java
net.deerhunter.ars.providers.ActivityProvider.java
net.deerhunter.ars.services.ImageStorageController.java
net.deerhunter.ars.services.SentSMSControllerService.java
net.deerhunter.ars.utils.ContactHelper.java
net.deerhunter.ars.utils.MD5Checksum.java