blob: a7f373b069d88c5ac6ddb99ee1aad0e145878c70 [file] [log] [blame]
quddusc563daee2013-12-03 19:31:14 -08001<!DOCTYPE html>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Quddus Chong26ca3fa2014-05-06 17:02:49 -070078
79
80
81
82
83
84
Quddus Chong559c0062014-06-12 13:59:34 -070085
86
Quddus Chong2b4b3d22014-10-26 18:10:42 -070087
88
89
90
91
92
93
94
95
96
97
Quddus Chongfd19ada2014-11-18 16:41:07 -080098
Joe Fernandez77869172015-03-19 16:36:02 +000099
100
quddusc563daee2013-12-03 19:31:14 -0800101<html>
102<head>
103
104
105<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
106<meta name="viewport" content="width=device-width" />
107
108<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
Joe Fernandez77869172015-03-19 16:36:02 +0000109<title>AutocompletePrediction.Substring | Android Developers</title>
quddusc563daee2013-12-03 19:31:14 -0800110
111<!-- STYLESHEETS -->
112<link rel="stylesheet"
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700113href="//fonts.googleapis.com/css?family=Roboto+Condensed">
114<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold"
115 title="roboto">
Joe Fernandez77869172015-03-19 16:36:02 +0000116<link href="/assets/css/default.css?v=5" rel="stylesheet" type="text/css">
quddusc563daee2013-12-03 19:31:14 -0800117
118
119
120<!-- JAVASCRIPT -->
121<script src="//www.google.com/jsapi" type="text/javascript"></script>
122<script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script>
123<script type="text/javascript">
124 var toRoot = "/";
125 var metaTags = [];
126 var devsite = false;
127</script>
Quddus Chongfd19ada2014-11-18 16:41:07 -0800128<script src="/assets/js/docs.js?v=3" type="text/javascript"></script>
quddusc563daee2013-12-03 19:31:14 -0800129
Quddus Chong2b4b3d22014-10-26 18:10:42 -0700130
131
Quddus Chong559c0062014-06-12 13:59:34 -0700132<script>
133 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
134 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
135 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
136 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
quddusc563daee2013-12-03 19:31:14 -0800137
Quddus Chong559c0062014-06-12 13:59:34 -0700138 ga('create', 'UA-5831155-1', 'android.com');
139 ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker);
140 ga('send', 'pageview');
141 ga('universal.send', 'pageview'); // Send page view for new tracker.
quddusc563daee2013-12-03 19:31:14 -0800142</script>
Quddus Chong559c0062014-06-12 13:59:34 -0700143
quddusc563daee2013-12-03 19:31:14 -0800144</head>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700145
quddusc563daee2013-12-03 19:31:14 -0800146<body class="gc-documentation google
Quddus Chong2b4b3d22014-10-26 18:10:42 -0700147 develop reference" itemscope itemtype="http://schema.org/Article">
quddusc563daee2013-12-03 19:31:14 -0800148 <div id="doc-api-level" class="" style="display:none"></div>
149 <a name="top"></a>
150
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700151
quddusc563daee2013-12-03 19:31:14 -0800152<a name="top"></a>
153
Joe Fernandez77869172015-03-19 16:36:02 +0000154<!-- dialog to prompt lang pref change when loaded from hardcoded URL
Quddus Chongfd19ada2014-11-18 16:41:07 -0800155<div id="langMessage" style="display:none">
156 <div>
157 <div class="lang en">
158 <p>You requested a page in English, would you like to proceed with this language setting?</p>
159 </div>
160 <div class="lang es">
161 <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p>
162 </div>
163 <div class="lang ja">
164 <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p>
165 </div>
166 <div class="lang ko">
167 <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
168 </div>
169 <div class="lang ru">
170 <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p>
171 </div>
172 <div class="lang zh-cn">
173 <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p>
174 </div>
175 <div class="lang zh-tw">
176 <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p>
177 </div>
178 <a href="#" class="button yes" onclick="return false;">
179 <span class="lang en">Yes</span>
180 <span class="lang es">Sí</span>
181 <span class="lang ja">Yes</span>
182 <span class="lang ko">Yes</span>
183 <span class="lang ru">Yes</span>
184 <span class="lang zh-cn">是的</span>
185 <span class="lang zh-tw">没有</span>
186 </a>
187 <a href="#" class="button" onclick="$('#langMessage').hide();return false;">
188 <span class="lang en">No</span>
189 <span class="lang es">No</span>
190 <span class="lang ja">No</span>
191 <span class="lang ko">No</span>
192 <span class="lang ru">No</span>
193 <span class="lang zh-cn">没有</span>
194 <span class="lang zh-tw">没有</span>
195 </a>
196 </div>
197</div> -->
198
199
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700200 <!-- Header -->
201 <div id="header-wrapper">
quddusc563daee2013-12-03 19:31:14 -0800202 <div id="header">
Quddus Chong2b4b3d22014-10-26 18:10:42 -0700203
Joe Fernandez77869172015-03-19 16:36:02 +0000204
Quddus Chong2b4b3d22014-10-26 18:10:42 -0700205
206
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700207 <div class="wrap" id="header-wrap">
208 <div class="col-3 logo">
quddusc563daee2013-12-03 19:31:14 -0800209 <a href="/index.html">
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700210 <img src="/assets/images/dac_logo.png"
211 srcset="/assets/images/dac_logo@2x.png 2x"
212 width="123" height="25" alt="Android Developers" />
quddusc563daee2013-12-03 19:31:14 -0800213 </a>
214 <div class="btn-quicknav" id="btn-quicknav">
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700215 <a href="#" class="arrow-inactive">Quicknav</a>
216 <a href="#" class="arrow-active">Quicknav</a>
quddusc563daee2013-12-03 19:31:14 -0800217 </div>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700218 </div>
219 <ul class="nav-x col-9">
220 <li class="design">
221 <a href="/design/index.html"
222 zh-tw-lang="設計"
223 zh-cn-lang="设计"
224 ru-lang="Проектирование"
225 ko-lang="디자인"
226 ja-lang="設計"
227 es-lang="Diseñar"
228 >Design</a></li>
229 <li class="develop"><a href="/develop/index.html"
230 zh-tw-lang="開發"
231 zh-cn-lang="开发"
232 ru-lang="Разработка"
233 ko-lang="개발"
234 ja-lang="開発"
235 es-lang="Desarrollar"
236 >Develop</a></li>
237 <li class="distribute last"><a href="/distribute/index.html"
238 zh-tw-lang="發佈"
239 zh-cn-lang="分发"
240 ru-lang="Распространение"
241 ko-lang="배포"
242 ja-lang="配布"
243 es-lang="Distribuir"
244 >Distribute</a></li>
245 </ul>
246
247
Joe Fernandez77869172015-03-19 16:36:02 +0000248
249
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700250<div class="menu-container">
251 <div class="moremenu">
quddusc563daee2013-12-03 19:31:14 -0800252 <div id="more-btn"></div>
253 </div>
254 <div class="morehover" id="moremenu">
255 <div class="top"></div>
256 <div class="mid">
257 <div class="header">Links</div>
258 <ul>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700259 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li>
quddusc563daee2013-12-03 19:31:14 -0800260 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
261 <li><a href="/about/index.html">About Android</a></li>
262 </ul>
263 <div class="header">Android Sites</div>
264 <ul>
265 <li><a href="http://www.android.com">Android.com</a></li>
266 <li class="active"><a>Android Developers</a></li>
267 <li><a href="http://source.android.com">Android Open Source Project</a></li>
268 </ul>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700269
Joe Fernandez77869172015-03-19 16:36:02 +0000270
271
quddusc563daee2013-12-03 19:31:14 -0800272 <div class="header">Language</div>
273 <div id="language" class="locales">
274 <select name="language" onChange="changeLangPref(this.value, true)">
275 <option value="en">English</option>
276 <option value="es">Español</option>
277 <option value="ja">日本語</option>
278 <option value="ko">한국어</option>
279 <option value="ru">Русский</option>
Quddus Chongfd19ada2014-11-18 16:41:07 -0800280 <option value="zh-cn">中文(简体)</option>
281 <option value="zh-tw">中文(繁體)</option>
quddusc563daee2013-12-03 19:31:14 -0800282 </select>
283 </div>
284 <script type="text/javascript">
285 <!--
286 loadLangPref();
287 //-->
288 </script>
Joe Fernandez77869172015-03-19 16:36:02 +0000289
290
quddusc563daee2013-12-03 19:31:14 -0800291 <br class="clearfix" />
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700292 </div><!-- end 'mid' -->
quddusc563daee2013-12-03 19:31:14 -0800293 <div class="bottom"></div>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700294 </div><!-- end 'moremenu' -->
295
quddusc563daee2013-12-03 19:31:14 -0800296 <div class="search" id="search-container">
297 <div class="search-inner">
298 <div id="search-btn"></div>
299 <div class="left"></div>
300 <form onsubmit="return submit_search()">
301 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700302 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
303 onkeydown="return search_changed(event, true, '/')"
304 onkeyup="return search_changed(event, false, '/')" />
quddusc563daee2013-12-03 19:31:14 -0800305 </form>
306 <div class="right"></div>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700307 <a class="close hide">close</a>
308 <div class="left"></div>
309 <div class="right"></div>
310 </div><!-- end search-inner -->
311 </div><!-- end search-container -->
quddusc563daee2013-12-03 19:31:14 -0800312
313 <div class="search_filtered_wrapper reference">
314 <div class="suggest-card reference no-display">
315 <ul class="search_filtered">
316 </ul>
317 </div>
318 </div>
319
320 <div class="search_filtered_wrapper docs">
321 <div class="suggest-card dummy no-display">&nbsp;</div>
322 <div class="suggest-card develop no-display">
323 <ul class="search_filtered">
324 </ul>
325 <div class="child-card guides no-display">
326 </div>
327 <div class="child-card training no-display">
328 </div>
329 <div class="child-card samples no-display">
330 </div>
331 </div>
332 <div class="suggest-card design no-display">
333 <ul class="search_filtered">
334 </ul>
335 </div>
336 <div class="suggest-card distribute no-display">
337 <ul class="search_filtered">
338 </ul>
339 </div>
340 </div>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700341</div><!-- end menu-container (search and menu widget) -->
quddusc563daee2013-12-03 19:31:14 -0800342
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700343
344
345 <!-- Expanded quicknav -->
Quddus Chong559c0062014-06-12 13:59:34 -0700346 <div id="quicknav" class="col-13">
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700347 <ul>
Quddus Chong559c0062014-06-12 13:59:34 -0700348 <li class="about">
349 <ul>
350 <li><a href="/about/index.html">About</a></li>
351 <li><a href="/wear/index.html">Wear</a></li>
352 <li><a href="/tv/index.html">TV</a></li>
353 <li><a href="/auto/index.html">Auto</a></li>
354 </ul>
355 </li>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700356 <li class="design">
357 <ul>
358 <li><a href="/design/index.html">Get Started</a></li>
Quddus Chong559c0062014-06-12 13:59:34 -0700359 <li><a href="/design/devices.html">Devices</a></li>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700360 <li><a href="/design/style/index.html">Style</a></li>
361 <li><a href="/design/patterns/index.html">Patterns</a></li>
362 <li><a href="/design/building-blocks/index.html">Building Blocks</a></li>
363 <li><a href="/design/downloads/index.html">Downloads</a></li>
364 <li><a href="/design/videos/index.html">Videos</a></li>
365 </ul>
366 </li>
367 <li class="develop">
368 <ul>
369 <li><a href="/training/index.html"
370 zh-tw-lang="訓練課程"
371 zh-cn-lang="培训"
372 ru-lang="Курсы"
373 ko-lang="교육"
374 ja-lang="トレーニング"
375 es-lang="Capacitación"
376 >Training</a></li>
377 <li><a href="/guide/index.html"
378 zh-tw-lang="API 指南"
379 zh-cn-lang="API 指南"
380 ru-lang="Руководства по API"
381 ko-lang="API 가이드"
382 ja-lang="API ガイド"
383 es-lang="Guías de la API"
384 >API Guides</a></li>
385 <li><a href="/reference/packages.html"
386 zh-tw-lang="參考資源"
387 zh-cn-lang="参考"
388 ru-lang="Справочник"
389 ko-lang="참조문서"
390 ja-lang="リファレンス"
391 es-lang="Referencia"
392 >Reference</a></li>
Quddus Chong559c0062014-06-12 13:59:34 -0700393 <li><a href="/sdk/index.html"
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700394 zh-tw-lang="相關工具"
395 zh-cn-lang="工具"
396 ru-lang="Инструменты"
397 ko-lang="도구"
398 ja-lang="ツール"
399 es-lang="Herramientas"
400 >Tools</a>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700401 </li>
402 <li><a href="/google/index.html">Google Services</a>
403 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000404
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700405 <li><a href="/samples/index.html">Samples</a>
406 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000407
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700408 </ul>
409 </li>
410 <li class="distribute last">
411 <ul>
412 <li><a href="/distribute/googleplay/index.html">Google Play</a></li>
413 <li><a href="/distribute/essentials/index.html">Essentials</a></li>
414 <li><a href="/distribute/users/index.html">Get Users</a></li>
415 <li><a href="/distribute/engage/index.html">Engage &amp; Retain</a></li>
416 <li><a href="/distribute/monetize/index.html">Monetize</a></li>
Joe Fernandez77869172015-03-19 16:36:02 +0000417 <li><a href="/distribute/analyze/index.html">Analyze</a></li>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700418 <li><a href="/distribute/tools/index.html">Tools &amp; Reference</a></li>
419 <li><a href="/distribute/stories/index.html">Developer Stories</a></li>
420 </ul>
421 </li>
422 </ul>
423 </div><!-- /Expanded quicknav -->
424 </div><!-- end header-wrap.wrap -->
425 </div><!-- end header -->
426
Joe Fernandez77869172015-03-19 16:36:02 +0000427
quddusc563daee2013-12-03 19:31:14 -0800428 <!-- Secondary x-nav -->
429 <div id="nav-x">
Quddus Chong2b4b3d22014-10-26 18:10:42 -0700430 <div class="wrap" style="position:relative;z-index:1">
431
Joe Fernandez77869172015-03-19 16:36:02 +0000432
433
434
Quddus Chong2b4b3d22014-10-26 18:10:42 -0700435
quddusc563daee2013-12-03 19:31:14 -0800436 <ul class="nav-x col-9 develop" style="width:100%">
437 <li class="training"><a href="/training/index.html"
438 zh-tw-lang="訓練課程"
439 zh-cn-lang="培训"
440 ru-lang="Курсы"
441 ko-lang="교육"
442 ja-lang="トレーニング"
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700443 es-lang="Capacitación"
quddusc563daee2013-12-03 19:31:14 -0800444 >Training</a></li>
445 <li class="guide"><a href="/guide/index.html"
446 zh-tw-lang="API 指南"
447 zh-cn-lang="API 指南"
448 ru-lang="Руководства по API"
449 ko-lang="API 가이드"
450 ja-lang="API ガイド"
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700451 es-lang="Guías de la API"
quddusc563daee2013-12-03 19:31:14 -0800452 >API Guides</a></li>
453 <li class="reference"><a href="/reference/packages.html"
454 zh-tw-lang="參考資源"
455 zh-cn-lang="参考"
456 ru-lang="Справочник"
457 ko-lang="참조문서"
458 ja-lang="リファレンス"
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700459 es-lang="Referencia"
quddusc563daee2013-12-03 19:31:14 -0800460 >Reference</a></li>
Quddus Chong559c0062014-06-12 13:59:34 -0700461 <li class="tools"><a href="/sdk/index.html"
quddusc563daee2013-12-03 19:31:14 -0800462 zh-tw-lang="相關工具"
463 zh-cn-lang="工具"
464 ru-lang="Инструменты"
465 ko-lang="도구"
466 ja-lang="ツール"
467 es-lang="Herramientas"
468 >Tools</a></li>
469 <li class="google"><a href="/google/index.html"
470 >Google Services</a>
471 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000472
quddusc563daee2013-12-03 19:31:14 -0800473 <li class="samples"><a href="/samples/index.html"
474 >Samples</a>
475 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000476
quddusc563daee2013-12-03 19:31:14 -0800477 </ul>
478 </div>
quddusc563daee2013-12-03 19:31:14 -0800479 </div>
Quddus Chong559c0062014-06-12 13:59:34 -0700480 <!-- /Sendondary x-nav DEVELOP -->
quddusc563daee2013-12-03 19:31:14 -0800481
Joe Fernandez77869172015-03-19 16:36:02 +0000482
quddusc563daee2013-12-03 19:31:14 -0800483
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700484 <div id="searchResults" class="wrap" style="display:none;">
485 <h2 id="searchTitle">Results</h2>
486 <div id="leftSearchControl" class="search-control">Loading...</div>
487 </div>
488 </div> <!--end header-wrapper -->
489
490 <div id="sticky-header">
491 <div>
492 <a class="logo" href="#top"></a>
493 <a class="top" href="#top"></a>
494 <ul class="breadcrumb">
Joe Fernandez77869172015-03-19 16:36:02 +0000495
496 <li class="current">AutocompletePrediction.Substring</li>
Quddus Chong26ca3fa2014-05-06 17:02:49 -0700497 </ul>
498 </div>
499 </div>
500
501
502
503
quddusc563daee2013-12-03 19:31:14 -0800504
Joe Fernandez77869172015-03-19 16:36:02 +0000505
quddusc563daee2013-12-03 19:31:14 -0800506 <div class="wrap clearfix" id="body-content">
507 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
508 <div id="devdoc-nav" class="scroll-pane">
quddusc563daee2013-12-03 19:31:14 -0800509
510
511
512<ul id="nav">
513
514 <li class="nav-section">
515 <div class="nav-section-header empty"><a href="/google/index.html">
516 <span class="en">Overview</span>
517 </a></div>
518 </li>
519
520 <li class="nav-section">
521 <div class="nav-section-header empty"><a href="/google/play-services/games.html">
522 <span class="en">Games</span>
523 </a></div>
524 </li>
525 <li class="nav-section">
526 <div class="nav-section-header empty"><a href="/google/play-services/location.html">
527 <span class="en">Location</span>
528 </a></div>
529 </li>
530 <li class="nav-section">
531 <div class="nav-section-header empty"><a href="/google/play-services/plus.html">
532 <span class="en">Google+</span>
533 </a></div>
534 </li>
535 <li class="nav-section">
536 <div class="nav-section-header empty"><a href="/google/play-services/maps.html">
537 <span class="en">Maps</span>
538 </a></div>
539 </li>
540 <li class="nav-section">
Dirk Dougherty16542642014-02-07 19:58:28 -0800541 <div class="nav-section-header empty"><a href="/google/play-services/drive.html">
542 <span class="en">Drive</span>
543 </a></div>
544 </li>
545 <li class="nav-section">
546 <div class="nav-section-header empty"><a href="/google/play-services/cast.html">
547 <span class="en">Cast</span>
548 </a></div>
549 </li>
550 <li class="nav-section">
quddusc563daee2013-12-03 19:31:14 -0800551 <div class="nav-section-header"><a href="/google/play-services/ads.html">
552 <span class="en">Ads</span></a>
553 </div>
554 <ul>
555 <li><a href="/google/play-services/id.html">
556 <span class="en">Advertising ID</span></a>
557 </li>
558 </ul>
559 </li>
560 <li class="nav-section">
561 <div class="nav-section-header empty"><a href="/google/play-services/wallet.html">
562 <span class="en">Wallet</span>
563 </a></div>
564 </li>
quddusc563daee2013-12-03 19:31:14 -0800565
566
567 <li class="nav-section">
568 <div class="nav-section-header"><a href="/google/play-services/index.html">
569 <span class="en">Google Play Services</span></a>
570 </div>
571 <ul>
572 <li><a href="/google/play-services/setup.html">
Quddus Chonge457fb62014-09-11 18:55:43 -0700573 <span class="en">Setting Up Google Play Services</span></a>
quddusc563daee2013-12-03 19:31:14 -0800574 </li>
quddusc682d8e92014-03-13 11:55:32 -0700575 <li class="nav-section">
576 <div class="nav-section-header"><a href="/google/auth/api-client.html">
Quddus Chonge457fb62014-09-11 18:55:43 -0700577 <span class="en">Accessing Google APIs</span></a>
quddusc682d8e92014-03-13 11:55:32 -0700578 </div>
579 <ul>
580 <li>
581 <a href="/google/auth/http-auth.html">
582 <span class="en">Authorizing with Google for REST APIs</span>
583 </a>
584 </li>
585 </ul>
586 </li>
quddusc563daee2013-12-03 19:31:14 -0800587 <li id="gms-tree-list" class="nav-section">
588 <div class="nav-section-header">
589 <a href="/reference/gms-packages.html">
590 <span class="en">Reference</span>
591 </a>
592 <div>
593 </li>
594 </ul>
595 </li>
596
597
598 <li class="nav-section">
Joe Fernandez77869172015-03-19 16:36:02 +0000599 <div class="nav-section-header"><a href="/google/play/billing/index.html" zh-cn-lang="应用内结算">
quddusc563daee2013-12-03 19:31:14 -0800600 <span class="en">Google Play In-app Billing</span></a>
601 </div>
602 <ul>
Joe Fernandez77869172015-03-19 16:36:02 +0000603 <li><a href="/google/play/billing/billing_overview.html" zh-cn-lang="应用内结算概述">
quddusc563daee2013-12-03 19:31:14 -0800604 <span class="en">Overview</span></a>
605 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000606 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html" zh-cn-lang="应用内结算 API">
quddusc563daee2013-12-03 19:31:14 -0800607 <span class="en">Version 3 API</span></a></div>
608 <ul>
609 <li><a href="/google/play/billing/billing_integrate.html">
610 <span class="en">Implementing the API</span></a></li>
611 <li><a href="/google/play/billing/billing_reference.html">
612 <span class="en">Reference</span></a></li>
613 </ul>
614 </li>
615 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html">
616 <span class="en">Version 2 API</span></a></div>
617 <ul>
618 <li><a href="/google/play/billing/v2/billing_integrate.html">
619 <span class="en">Implementing the API</span></a></li>
620 <li><a href="/google/play/billing/v2/billing_subscriptions.html">
621 <span class="en">Subscriptions</span></a></li>
622 <li><a href="/google/play/billing/v2/billing_reference.html">
623 <span class="en">Reference</span></a></li>
624 </ul>
625 </li>
626 <li><a href="/google/play/billing/billing_subscriptions.html">
627 <span class="en">Subscriptions</span></a>
628 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000629 <li><a href="/google/play/billing/billing_best_practices.html" zh-cn-lang="安全性和设计">
quddusc563daee2013-12-03 19:31:14 -0800630 <span class="en">Security and Design</span></a>
631 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000632 <li><a href="/google/play/billing/billing_testing.html" zh-cn-lang="测试应用内结算">
quddusc563daee2013-12-03 19:31:14 -0800633 <span class="en">Testing In-app Billing</span></a>
634 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000635 <li><a href="/google/play/billing/billing_admin.html" zh-cn-lang="管理应用内结算">
quddusc563daee2013-12-03 19:31:14 -0800636 <span class="en">Administering In-app Billing</span></a>
637 </li>
quddusc563daee2013-12-03 19:31:14 -0800638 <li><a href="/google/play/billing/versions.html">
639 <span class="en">Version Notes</span></a>
640 </li>
641 </ul>
642 </li>
643
644
645
646 <li class="nav-section">
647 <div class="nav-section-header"><a href="/google/gcm/index.html">
648 <span class="en">Google Cloud Messaging</span></a>
649 </div>
650 <ul>
651 <li><a href="/google/gcm/gcm.html">
652 <span class="en">Overview</span></a>
653 </li>
654 <li><a href="/google/gcm/gs.html">
655 <span class="en">Getting Started</span></a>
656 </li>
657 <li><a href="/google/gcm/client.html">
658 <span class="en">Implementing GCM Client</span></a>
659 </li>
660 <li class="nav-section"><div class="nav-section-header"><a href="/google/gcm/server.html">
661 <span class="en">Implementing GCM Server</span></a></div>
662 <ul>
663 <li><a href="/google/gcm/ccs.html">
664 <span class="en">CCS (XMPP)</span></a></li>
665 <li><a href="/google/gcm/http.html">
666 <span class="en">HTTP</span></a></li>
667 </ul>
668 </li>
Joe Fernandez77869172015-03-19 16:36:02 +0000669 <li><a href="/google/gcm/server-ref.html">
670 <span class="en">Server Reference</span></a>
671 </li>
quddusc563daee2013-12-03 19:31:14 -0800672 <li><a href="/google/gcm/notifications.html">
673 <span class="en">User Notifications</span></a>
674 </li>
quddusc563daee2013-12-03 19:31:14 -0800675 <li><a href="/google/gcm/c2dm.html">
676 <span class="en">Migration</span></a>
677 </li>
quddusc563daee2013-12-03 19:31:14 -0800678 </ul>
679 </li>
680
681 <li class="nav-section">
Quddus Chonge457fb62014-09-11 18:55:43 -0700682 <div class="nav-section-header empty"><a href="/google/gcs/index.html">
683 <span class="en">Google Cloud Save</span></a>
684 </div>
685 </li>
686
687 <li class="nav-section">
quddusc563daee2013-12-03 19:31:14 -0800688 <div class="nav-section-header"><a href="/google/play/dist.html">
689 <span class="en">Google Play Distribution</span></a>
690 </div>
691 <ul>
692 <li><a href="/google/play/filters.html">
693 <span class="en">Filters on Google Play</span></a>
694 </li>
Quddus Chonge457fb62014-09-11 18:55:43 -0700695 <li><a href="/google/play/billing/gp-purchase-status-api.html">
696 <span class="en">Google Play Developer API</span></a>
697 </li>
quddusc563daee2013-12-03 19:31:14 -0800698 <li><a href="/google/play/publishing/multiple-apks.html">
699 <span class="en">Multiple APK Support</span></a>
700 </li>
701 <li><a href="/google/play/expansion-files.html">
702 <span class="en">APK Expansion Files</span></a>
703 </li>
704 <li class="nav-section">
705 <div class="nav-section-header"><a href="/google/play/licensing/index.html">
706 <span class="en">Application Licensing</span></a>
707 </div>
708 <ul>
709 <li><a href="/google/play/licensing/overview.html">
710 <span class="en">Licensing Overview</span></a>
711 </li>
712 <li><a href="/google/play/licensing/setting-up.html">
713 <span class="en">Setting Up for Licensing</span></a>
714 </li>
715 <li><a href="/google/play/licensing/adding-licensing.html">
716 <span class="en">Adding Licensing to Your App</span></a>
717 </li>
718 <li><a href="/google/play/licensing/licensing-reference.html">
719 <span class="en">Licensing Reference</span></a>
720 </li>
721 </ul>
722 </li>
723
724 <li class="nav-section">
725 <div class="nav-section-header"><a href="/google/backup/index.html">
726 Android Backup Service</a>
727 </div>
728 <ul>
729 <li><a href="/google/backup/signup.html">
730 Register</a>
731 </li>
732 </ul>
733 </li>
734
735 </ul>
736
737</li>
738
739
740
741</ul>
742
743<script type="text/javascript">
744<!--
745 buildToggleLists();
746 changeNavLang(getLangPref());
747//-->
748</script>
749
750
Joe Fernandez77869172015-03-19 16:36:02 +0000751
quddusc563daee2013-12-03 19:31:14 -0800752
753 </div>
754 <script type="text/javascript">
755 showGoogleRefTree();
Joe Fernandez77869172015-03-19 16:36:02 +0000756
quddusc563daee2013-12-03 19:31:14 -0800757 </script>
758 </div> <!-- end side-nav -->
759 <script>
760 $(document).ready(function() {
761 scrollIntoView("devdoc-nav");
762 });
763 </script>
764
765
Joe Fernandez77869172015-03-19 16:36:02 +0000766
quddusc563daee2013-12-03 19:31:14 -0800767
768
769
770<div class="col-12" id="doc-col">
771
772<div id="api-info-block">
773
774
775
quddusc563daee2013-12-03 19:31:14 -0800776
777<div class="sum-details-links">
778
quddusc563daee2013-12-03 19:31:14 -0800779</div><!-- end sum-details-links -->
780<div class="api-level">
Joe Fernandez77869172015-03-19 16:36:02 +0000781
782
783
quddusc563daee2013-12-03 19:31:14 -0800784
785</div>
786</div><!-- end api-info-block -->
787
788
789<!-- ======== START OF CLASS DATA ======== -->
790
791<div id="jd-header">
792 public
Joe Fernandez77869172015-03-19 16:36:02 +0000793 static
794
795
quddusc563daee2013-12-03 19:31:14 -0800796 interface
Joe Fernandez77869172015-03-19 16:36:02 +0000797<h1 itemprop="name">AutocompletePrediction.Substring</h1>
quddusc563daee2013-12-03 19:31:14 -0800798
799
800
quddusc563daee2013-12-03 19:31:14 -0800801
802
Joe Fernandez77869172015-03-19 16:36:02 +0000803
804
805
806
Quddus Chong2b4b3d22014-10-26 18:10:42 -0700807
808
quddusc563daee2013-12-03 19:31:14 -0800809</div><!-- end header -->
810
811<div id="naMessage"></div>
812
813<div id="jd-content" class="api apilevel-">
814<table class="jd-inheritance-table">
815
816
817 <tr>
Joe Fernandez77869172015-03-19 16:36:02 +0000818
819 <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gms.location.places.AutocompletePrediction.Substring</td>
quddusc563daee2013-12-03 19:31:14 -0800820 </tr>
Joe Fernandez77869172015-03-19 16:36:02 +0000821
quddusc563daee2013-12-03 19:31:14 -0800822
823</table>
824
825
826
827
828
829
830
831<div class="jd-descr">
832
833
834<h2>Class Overview</h2>
Joe Fernandez77869172015-03-19 16:36:02 +0000835<p itemprop="articleBody">Represents a matched substring in a query suggestion's description.
836 <p>
837 Each <code><a href="/reference/com/google/android/gms/location/places/AutocompletePrediction.Substring.html">AutocompletePrediction.Substring</a></code> contains an offset value and a length. These describe the location of
838 the entered term in the prediction result text, so that the term can be highlighted if
839 desired.
Quddus Chongfd19ada2014-11-18 16:41:07 -0800840</p>
quddusc563daee2013-12-03 19:31:14 -0800841
842
843
844
845
846</div><!-- jd-descr -->
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863<div class="jd-descr">
864
865
866<h2>Summary</h2>
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894<!-- ========== METHOD SUMMARY =========== -->
895<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
896
897
898
Joe Fernandez77869172015-03-19 16:36:02 +0000899
quddusc563daee2013-12-03 19:31:14 -0800900 <tr class="alt-color api apilevel-" >
901 <td class="jd-typecol"><nobr>
902 abstract
Joe Fernandez77869172015-03-19 16:36:02 +0000903
904
905
906
907 int</nobr>
quddusc563daee2013-12-03 19:31:14 -0800908 </td>
909 <td class="jd-linkcol" width="100%"><nobr>
Joe Fernandez77869172015-03-19 16:36:02 +0000910 <span class="sympad"><a href="/reference/com/google/android/gms/location/places/AutocompletePrediction.Substring.html#getLength()">getLength</a></span>()</nobr>
Quddus Chongfd19ada2014-11-18 16:41:07 -0800911
quddusc563daee2013-12-03 19:31:14 -0800912 </td></tr>
913
914
Joe Fernandez77869172015-03-19 16:36:02 +0000915
Quddus Chongfd19ada2014-11-18 16:41:07 -0800916 <tr class=" api apilevel-" >
quddusc563daee2013-12-03 19:31:14 -0800917 <td class="jd-typecol"><nobr>
918 abstract
Joe Fernandez77869172015-03-19 16:36:02 +0000919
920
921
922
923 int</nobr>
quddusc563daee2013-12-03 19:31:14 -0800924 </td>
925 <td class="jd-linkcol" width="100%"><nobr>
Joe Fernandez77869172015-03-19 16:36:02 +0000926 <span class="sympad"><a href="/reference/com/google/android/gms/location/places/AutocompletePrediction.Substring.html#getOffset()">getOffset</a></span>()</nobr>
Quddus Chongfd19ada2014-11-18 16:41:07 -0800927
quddusc563daee2013-12-03 19:31:14 -0800928 </td></tr>
929
930
quddusc563daee2013-12-03 19:31:14 -0800931
932</table>
933
934
Quddus Chongfd19ada2014-11-18 16:41:07 -0800935
936
937
938
939
quddusc563daee2013-12-03 19:31:14 -0800940</div><!-- jd-descr (summary) -->
941
942<!-- Details -->
943
944
945
946
947
948
949
950
951<!-- XML Attributes -->
952
953
954<!-- Enum Values -->
955
956
957<!-- Constants -->
958
959
960<!-- Fields -->
961
962
963<!-- Public ctors -->
964
965
966
967<!-- ========= CONSTRUCTOR DETAIL ======== -->
968<!-- Protected ctors -->
969
970
971
972<!-- ========= METHOD DETAIL ======== -->
973<!-- Public methdos -->
974
975<h2>Public Methods</h2>
976
977
978
Joe Fernandez77869172015-03-19 16:36:02 +0000979<A NAME="getLength()"></A>
quddusc563daee2013-12-03 19:31:14 -0800980
Joe Fernandez77869172015-03-19 16:36:02 +0000981<div class="jd-details api apilevel-">
quddusc563daee2013-12-03 19:31:14 -0800982 <h4 class="jd-details-title">
983 <span class="normal">
Joe Fernandez77869172015-03-19 16:36:02 +0000984 public
985
986
987 abstract
988
989 int
quddusc563daee2013-12-03 19:31:14 -0800990 </span>
Joe Fernandez77869172015-03-19 16:36:02 +0000991 <span class="sympad">getLength</span>
quddusc563daee2013-12-03 19:31:14 -0800992 <span class="normal">()</span>
993 </h4>
994 <div class="api-level">
995 <div></div>
Joe Fernandez77869172015-03-19 16:36:02 +0000996
997
quddusc563daee2013-12-03 19:31:14 -0800998
999 </div>
1000 <div class="jd-details-descr">
Quddus Chong2b4b3d22014-10-26 18:10:42 -07001001
Joe Fernandez77869172015-03-19 16:36:02 +00001002
1003
1004
1005 <div class="jd-tagdata jd-tagdescr"><p></p></div>
Quddus Chongfd19ada2014-11-18 16:41:07 -08001006
1007 </div>
1008</div>
1009
1010
Joe Fernandez77869172015-03-19 16:36:02 +00001011<A NAME="getOffset()"></A>
Quddus Chongfd19ada2014-11-18 16:41:07 -08001012
Joe Fernandez77869172015-03-19 16:36:02 +00001013<div class="jd-details api apilevel-">
Quddus Chongfd19ada2014-11-18 16:41:07 -08001014 <h4 class="jd-details-title">
1015 <span class="normal">
Joe Fernandez77869172015-03-19 16:36:02 +00001016 public
1017
1018
1019 abstract
1020
1021 int
Quddus Chongfd19ada2014-11-18 16:41:07 -08001022 </span>
Joe Fernandez77869172015-03-19 16:36:02 +00001023 <span class="sympad">getOffset</span>
Quddus Chongfd19ada2014-11-18 16:41:07 -08001024 <span class="normal">()</span>
1025 </h4>
1026 <div class="api-level">
1027 <div></div>
Joe Fernandez77869172015-03-19 16:36:02 +00001028
1029
Quddus Chongfd19ada2014-11-18 16:41:07 -08001030
1031 </div>
1032 <div class="jd-details-descr">
Quddus Chongfd19ada2014-11-18 16:41:07 -08001033
Joe Fernandez77869172015-03-19 16:36:02 +00001034
1035
1036
1037 <div class="jd-tagdata jd-tagdescr"><p></p></div>
quddusc563daee2013-12-03 19:31:14 -08001038
1039 </div>
1040</div>
1041
1042
1043
1044
1045
1046<!-- ========= METHOD DETAIL ======== -->
1047
1048
1049
1050<!-- ========= END OF CLASS DATA ========= -->
1051<A NAME="navbar_top"></A>
1052
1053<div id="footer" class="wrap" >
Joe Fernandez77869172015-03-19 16:36:02 +00001054
quddusc563daee2013-12-03 19:31:14 -08001055
1056 <div id="copyright">
Joe Fernandez77869172015-03-19 16:36:02 +00001057
quddusc563daee2013-12-03 19:31:14 -08001058 Except as noted, this content is licensed under <a
Joe Fernandez77869172015-03-19 16:36:02 +00001059 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
quddusc563daee2013-12-03 19:31:14 -08001060 For details and restrictions, see the <a href="/license.html">
1061 Content License</a>.
1062 </div>
1063 <div id="build_info">
Joe Fernandez77869172015-03-19 16:36:02 +00001064
quddusc563daee2013-12-03 19:31:14 -08001065<script src="/timestamp.js" type="text/javascript"></script>
1066<script>document.write(BUILD_TIMESTAMP)</script>
1067
1068 </div>
1069
1070
1071 <div id="footerlinks">
Joe Fernandez77869172015-03-19 16:36:02 +00001072
quddusc563daee2013-12-03 19:31:14 -08001073 <p>
1074 <a href="/about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
1075 <a href="/legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
1076 <a href="/support.html">Support</a>
1077 </p>
1078 </div>
1079
1080</div> <!-- end footer -->
1081</div> <!-- jd-content -->
1082
1083</div><!-- end doc-content -->
1084
Joe Fernandez77869172015-03-19 16:36:02 +00001085</div> <!-- end body-content -->
quddusc563daee2013-12-03 19:31:14 -08001086
1087
1088
1089
1090
1091
1092</body>
1093</html>