1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_13) on Fri Jun 26 13:12:27 EDT 2009 -->
10 <META NAME="date" CONTENT="2009-06-26">
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
14 <SCRIPT type="text/javascript">
15 function windowTitle()
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="Intents.Scan";
27 <BODY BGCOLOR="white" onload="windowTitle();">
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
50 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../../../com/google/zxing/client/android/Intents.Encode.html" title="class in com.google.zxing.client.android"><B>PREV CLASS</B></A>
58 <A HREF="../../../../../com/google/zxing/client/android/Intents.SearchBookContents.html" title="class in com.google.zxing.client.android"><B>NEXT CLASS</B></A></FONT></TD>
59 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60 <A HREF="../../../../../index.html?com/google/zxing/client/android/Intents.Scan.html" target="_top"><B>FRAMES</B></A>
61 <A HREF="Intents.Scan.html" target="_top"><B>NO FRAMES</B></A>
62 <SCRIPT type="text/javascript">
65 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
70 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#methods_inherited_from_class_java.lang.Object">METHOD</A></FONT></TD>
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80 DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | METHOD</FONT></TD>
83 <A NAME="skip-navbar_top"></A>
84 <!-- ========= END OF TOP NAVBAR ========= -->
87 <!-- ======== START OF CLASS DATA ======== -->
90 com.google.zxing.client.android</FONT>
92 Class Intents.Scan</H2>
95 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.zxing.client.android.Intents.Scan</B>
98 <DT><B>Enclosing class:</B><DD><A HREF="../../../../../com/google/zxing/client/android/Intents.html" title="class in com.google.zxing.client.android">Intents</A></DD>
102 <DT><PRE>public static final class <B>Intents.Scan</B><DT>extends java.lang.Object</DL>
109 <!-- =========== FIELD SUMMARY =========== -->
111 <A NAME="field_summary"><!-- --></A>
112 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
113 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
114 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
115 <B>Field Summary</B></FONT></TH>
117 <TR BGCOLOR="white" CLASS="TableRowColor">
118 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
119 <CODE>static java.lang.String</CODE></FONT></TD>
120 <TD><CODE><B><A HREF="../../../../../com/google/zxing/client/android/Intents.Scan.html#ACTION">ACTION</A></B></CODE>
123 Send this intent to open the Barcodes app in scanning mode, find a barcode, and return
126 <TR BGCOLOR="white" CLASS="TableRowColor">
127 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128 <CODE>static java.lang.String</CODE></FONT></TD>
129 <TD><CODE><B><A HREF="../../../../../com/google/zxing/client/android/Intents.Scan.html#DEPRECATED_ACTION">DEPRECATED_ACTION</A></B></CODE>
132 </TD>
134 <TR BGCOLOR="white" CLASS="TableRowColor">
135 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136 <CODE>static java.lang.String</CODE></FONT></TD>
137 <TD><CODE><B><A HREF="../../../../../com/google/zxing/client/android/Intents.Scan.html#MODE">MODE</A></B></CODE>
140 By default, sending Scan.ACTION will decode all barcodes that we understand.</TD>
142 <TR BGCOLOR="white" CLASS="TableRowColor">
143 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144 <CODE>static java.lang.String</CODE></FONT></TD>
145 <TD><CODE><B><A HREF="../../../../../com/google/zxing/client/android/Intents.Scan.html#ONE_D_MODE">ONE_D_MODE</A></B></CODE>
148 Decode only 1D barcodes (currently UPC, EAN, Code 39, and Code 128).</TD>
150 <TR BGCOLOR="white" CLASS="TableRowColor">
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152 <CODE>static java.lang.String</CODE></FONT></TD>
153 <TD><CODE><B><A HREF="../../../../../com/google/zxing/client/android/Intents.Scan.html#PRODUCT_MODE">PRODUCT_MODE</A></B></CODE>
156 Decode only UPC and EAN barcodes.</TD>
158 <TR BGCOLOR="white" CLASS="TableRowColor">
159 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160 <CODE>static java.lang.String</CODE></FONT></TD>
161 <TD><CODE><B><A HREF="../../../../../com/google/zxing/client/android/Intents.Scan.html#QR_CODE_MODE">QR_CODE_MODE</A></B></CODE>
164 Decode only QR codes.</TD>
166 <TR BGCOLOR="white" CLASS="TableRowColor">
167 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168 <CODE>static java.lang.String</CODE></FONT></TD>
169 <TD><CODE><B><A HREF="../../../../../com/google/zxing/client/android/Intents.Scan.html#RESULT">RESULT</A></B></CODE>
172 If a barcode is found, Barcodes returns RESULT_OK to onActivityResult() of the app which
173 requested the scan via startSubActivity().</TD>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177 <CODE>static java.lang.String</CODE></FONT></TD>
178 <TD><CODE><B><A HREF="../../../../../com/google/zxing/client/android/Intents.Scan.html#RESULT_FORMAT">RESULT_FORMAT</A></B></CODE>
181 Call intent.getStringExtra(RESULT_FORMAT) to determine which barcode format was found.</TD>
185 <!-- ========== METHOD SUMMARY =========== -->
187 <A NAME="method_summary"><!-- --></A>
188 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
189 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
190 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
191 <B>Method Summary</B></FONT></TH>
194 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
195 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
196 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
197 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
199 <TR BGCOLOR="white" CLASS="TableRowColor">
200 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
206 <!-- ============ FIELD DETAIL =========== -->
208 <A NAME="field_detail"><!-- --></A>
209 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
210 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
211 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
212 <B>Field Detail</B></FONT></TH>
216 <A NAME="ACTION"><!-- --></A><H3>
219 public static final java.lang.String <B>ACTION</B></PRE>
221 <DD>Send this intent to open the Barcodes app in scanning mode, find a barcode, and return
225 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.google.zxing.client.android.Intents.Scan.ACTION">Constant Field Values</A></DL>
229 <A NAME="DEPRECATED_ACTION"><!-- --></A><H3>
230 DEPRECATED_ACTION</H3>
232 public static final java.lang.String <B>DEPRECATED_ACTION</B></PRE>
235 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.google.zxing.client.android.Intents.Scan.DEPRECATED_ACTION">Constant Field Values</A></DL>
239 <A NAME="MODE"><!-- --></A><H3>
242 public static final java.lang.String <B>MODE</B></PRE>
244 <DD>By default, sending Scan.ACTION will decode all barcodes that we understand. However it
245 may be useful to limit scanning to certain formats. Use Intent.putExtra(MODE, value) with
246 one of the values below (optional).
249 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.google.zxing.client.android.Intents.Scan.MODE">Constant Field Values</A></DL>
253 <A NAME="PRODUCT_MODE"><!-- --></A><H3>
256 public static final java.lang.String <B>PRODUCT_MODE</B></PRE>
258 <DD>Decode only UPC and EAN barcodes. This is the right choice for shopping apps which get
259 prices, reviews, etc. for products.
262 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.google.zxing.client.android.Intents.Scan.PRODUCT_MODE">Constant Field Values</A></DL>
266 <A NAME="ONE_D_MODE"><!-- --></A><H3>
269 public static final java.lang.String <B>ONE_D_MODE</B></PRE>
271 <DD>Decode only 1D barcodes (currently UPC, EAN, Code 39, and Code 128).
274 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.google.zxing.client.android.Intents.Scan.ONE_D_MODE">Constant Field Values</A></DL>
278 <A NAME="QR_CODE_MODE"><!-- --></A><H3>
281 public static final java.lang.String <B>QR_CODE_MODE</B></PRE>
283 <DD>Decode only QR codes.
286 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.google.zxing.client.android.Intents.Scan.QR_CODE_MODE">Constant Field Values</A></DL>
290 <A NAME="RESULT"><!-- --></A><H3>
293 public static final java.lang.String <B>RESULT</B></PRE>
295 <DD>If a barcode is found, Barcodes returns RESULT_OK to onActivityResult() of the app which
296 requested the scan via startSubActivity(). The barcodes contents can be retrieved with
297 intent.getStringExtra(RESULT). If the user presses Back, the result code will be
301 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.google.zxing.client.android.Intents.Scan.RESULT">Constant Field Values</A></DL>
305 <A NAME="RESULT_FORMAT"><!-- --></A><H3>
308 public static final java.lang.String <B>RESULT_FORMAT</B></PRE>
310 <DD>Call intent.getStringExtra(RESULT_FORMAT) to determine which barcode format was found.
311 See Contents.Format for possible values.
314 <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.google.zxing.client.android.Intents.Scan.RESULT_FORMAT">Constant Field Values</A></DL>
316 <!-- ========= END OF CLASS DATA ========= -->
320 <!-- ======= START OF BOTTOM NAVBAR ====== -->
321 <A NAME="navbar_bottom"><!-- --></A>
322 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
323 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
325 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
326 <A NAME="navbar_bottom_firstrow"><!-- --></A>
327 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
328 <TR ALIGN="center" VALIGN="top">
329 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
330 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
331 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
332 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
333 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
334 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
335 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
339 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
340 <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-788492-5"); pageTracker._initData(); pageTracker._trackPageview(); </script></EM>
345 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
346 <A HREF="../../../../../com/google/zxing/client/android/Intents.Encode.html" title="class in com.google.zxing.client.android"><B>PREV CLASS</B></A>
347 <A HREF="../../../../../com/google/zxing/client/android/Intents.SearchBookContents.html" title="class in com.google.zxing.client.android"><B>NEXT CLASS</B></A></FONT></TD>
348 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
349 <A HREF="../../../../../index.html?com/google/zxing/client/android/Intents.Scan.html" target="_top"><B>FRAMES</B></A>
350 <A HREF="Intents.Scan.html" target="_top"><B>NO FRAMES</B></A>
351 <SCRIPT type="text/javascript">
354 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
359 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
366 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
367 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#methods_inherited_from_class_java.lang.Object">METHOD</A></FONT></TD>
368 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
369 DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | METHOD</FONT></TD>
372 <A NAME="skip-navbar_bottom"></A>
373 <!-- ======== END OF BOTTOM NAVBAR ======= -->