com.google.zxing.client.android
Class Contents.Type

java.lang.Object
  extended by com.google.zxing.client.android.Contents.Type
Enclosing class:
Contents

public static final class Contents.Type
extends java.lang.Object


Field Summary
static java.lang.String CONTACT
          A contact.
static java.lang.String EMAIL
          An email type.
static java.lang.String LOCATION
          A geographic location.
static java.lang.String PHONE
          Use Intent.putExtra(DATA, string) where string is the phone number to call.
static java.lang.String SMS
          An SMS type.
static java.lang.String TEXT
          Plain text.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT

public static final java.lang.String TEXT
Plain text. Use Intent.putExtra(DATA, string). This can be used for URLs too, but string must include "http://" or "https://".

See Also:
Constant Field Values

EMAIL

public static final java.lang.String EMAIL
An email type. Use Intent.putExtra(DATA, string) where string is the email address.

See Also:
Constant Field Values

PHONE

public static final java.lang.String PHONE
Use Intent.putExtra(DATA, string) where string is the phone number to call.

See Also:
Constant Field Values

SMS

public static final java.lang.String SMS
An SMS type. Use Intent.putExtra(DATA, string) where string is the number to SMS.

See Also:
Constant Field Values

CONTACT

public static final java.lang.String CONTACT
A contact. Send a request to encode it as follows:

import android.provider.Contacts;

Intent intent = new Intent(Intents.Encode.ACTION); intent.putExtra(Intents.Encode.TYPE, CONTACT); Bundle bundle = new Bundle(); bundle.putString(Contacts.Intents.Insert.NAME, "Jenny"); bundle.putString(Contacts.Intents.Insert.PHONE, "8675309"); bundle.putString(Contacts.Intents.Insert.EMAIL, "jenny@the80s.com"); bundle.putString(Contacts.Intents.Insert.POSTAL, "123 Fake St. San Francisco, CA 94102"); intent.putExtra(Intents.Encode.DATA, bundle);

See Also:
Constant Field Values

LOCATION

public static final java.lang.String LOCATION
A geographic location. Use as follows: Bundle bundle = new Bundle(); bundle.putFloat("LAT", latitude); bundle.putFloat("LONG", longitude); intent.putExtra(Intents.Encode.DATA, bundle);

See Also:
Constant Field Values