Sie sind auf Seite 1von 285

<!

DOCTYPE html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scal
e=1.0,maximum-scale=1.0,user-scalable=no" />
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>InputMethodService - Android SDK | Android Developers</title>
<!-- STYLESHEETS -->
<link rel="stylesheet"
href="http://fonts.googleapis.com/css?family=Roboto+Condensed">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light
,regular,medium,thin,italic,mediumitalic,bold"
title="roboto">

<link href="../../../assets/css/default.css?v=7" rel="stylesheet" type="text/css


">
<!-- FULLSCREEN STYLESHEET -->
<link href="../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscre
en"
type="text/css">
<!-- JAVASCRIPT -->
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script src="../../../assets/js/android_3p-bundle.js" type="text/javascript"></s
cript>
<script type="text/javascript">
var toRoot = "../../../";
var metaTags = [];
var devsite = false;
</script>
<script src="../../../assets/js/docs.js?v=6" type="text/javascript"></script>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m
)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-5831155-1', 'android.com');
ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New t
racker);
ga('send', 'pageview');
ga('universal.send', 'pageview'); // Send page view for new tracker.
</script>
</head>
<body class="gc-documentation
develop reference" itemscope itemtype="http://schema.org/Article">
<div id="doc-api-level" class="3" style="display:none"></div>
<a name="top"></a>
<a name="top"></a>
<!-- dialog to prompt lang pref change when loaded from hardcoded URL
<div id="langMessage" style="display:none">
<div>
<div class="lang en">
<p>You requested a page in English, would you like to proceed with this la
nguage setting?</p>
</div>
<div class="lang es">
<p>You requested a page in Spanish (Espaol), would you like to proceed with
this language setting?</p>
</div>
<div class="lang ja">
<p>You requested a page in Japanese (), would you like to proceed with this l

anguage setting?</p>
</div>
<div class="lang ko">
<p>You requested a page in Korean (
), would you like to proceed with this lan
guage setting?</p>
</div>
<div class="lang ru">
<p>You requested a page in Russian (), would you like to proceed with this langu
ge setting?</p>
</div>
<div class="lang zh-cn">
<p>You requested a page in Simplified Chinese (), would you like to proceed wi
th this language setting?</p>
</div>
<div class="lang zh-tw">
<p>You requested a page in Traditional Chinese (), would you like to proceed w
ith this language setting?</p>
</div>
<a href="#" class="button yes" onclick="return false;">
<span class="lang en">Yes</span>
<span class="lang es">S</span>
<span class="lang ja">Yes</span>
<span class="lang ko">Yes</span>
<span class="lang ru">Yes</span>
<span class="lang zh-cn"></span>
<span class="lang zh-tw"></span>
</a>
<a href="#" class="button" onclick="$('#langMessage').hide();return false;">
<span class="lang en">No</span>
<span class="lang es">No</span>
<span class="lang ja">No</span>
<span class="lang ko">No</span>
<span class="lang ru">No</span>
<span class="lang zh-cn"></span>
<span class="lang zh-tw"></span>
</a>
</div>
</div> -->
<!-- Header -->
<div id="header-wrapper">
<div class="dac-header" id="header">

<div class="dac-header-inner">
<a class="dac-nav-toggle" data-dac-toggle-nav href="javascript:;" title=
"Open navigation">
<span class="dac-nav-hamburger">
<span class="dac-nav-hamburger-top"></span>
<span class="dac-nav-hamburger-mid"></span>
<span class="dac-nav-hamburger-bot"></span>
</span>
</a>
<a class="dac-header-logo" href="../../../index.html">
<img class="dac-header-logo-image" src="../../../assets/images/android
_logo.png"
srcset="../../../assets/images/android_logo@2x.png 2x"

width="32" height="36" alt="Android" /> Developers


</a>
<ul class="dac-header-crumbs">
<li class="dac-header-crumbs-item"><span class="dac-header-crumbs-link
current ">InputMethodService - Android SDK</a></li>
</ul>

<div class="dac-header-search" id="search-container">


<div class="dac-header-search-inner">
<div class="dac-sprite dac-search dac-header-search-btn" id="search-btn"><
/div>
<form class="dac-header-search-form" onsubmit="return submit_search()">
<input id="search_autocomplete" type="text" value="" autocomplete="off"
name="q"
onfocus="search_focus_changed(this, true)" onblur="search_focus_change
d(this, false)"
onkeydown="return search_changed(event, true, '../../../')"
onkeyup="return search_changed(event, false, '../../../')"
class="dac-header-search-input" placeholder="Search" />
<a class="dac-header-search-close hide" id="search-close">close</a>
</form>
</div><!-- end dac-header-search-inner -->
</div><!-- end dac-header-search -->
<div class="search_filtered_wrapper">
<div class="suggest-card reference no-display">
<ul class="search_filtered">
</ul>
</div>
<div class="suggest-card develop no-display">
<ul class="search_filtered">
</ul>
<div class="child-card guides no-display">
</div>
<div class="child-card training no-display">
</div>
<div class="child-card samples no-display">
</div>
</div>
<div class="suggest-card design no-display">
<ul class="search_filtered">
</ul>
</div>
<div class="suggest-card distribute no-display">
<ul class="search_filtered">
</ul>
</div>
</div>

<a class="dac-header-console-btn" href="https://play.google.com/apps/pub


lish/">
<span class="dac-sprite dac-google-play"></span>
<span class="dac-visible-desktop-inline">Developer</span>

Console
</a>
</div><!-- end header-wrap.wrap -->
</div><!-- end header -->
<div id="searchResults" class="wrap" style="display:none;">
<h2 id="searchTitle">Results</h2>
<div id="leftSearchControl" class="search-control">Loading...</div>
</div>
</div> <!--end header-wrapper -->
<!-- Navigation-->
<nav class="dac-nav">
<div class="dac-nav-dimmer" data-dac-toggle-nav></div>
<ul class="dac-nav-list" data-dac-nav>
<li class="dac-nav-item dac-nav-head">
<a class="dac-nav-link dac-nav-logo" data-dac-toggle-nav href="javascrip
t:;" title="Close navigation">
<img class="dac-logo-image" src="../../../assets/images/android_logo.p
ng"
srcset="../../../assets/images/android_logo@2x.png 2x"
width="32" height="36" alt="Android" /> Developers
</a>
</li>
<li class="dac-nav-item home">
<a class="dac-nav-link dac-visible-mobile-block" href="../../../index.ht
ml">Home</a>
<ul class="dac-nav-secondary about">
<li class="dac-nav-item about">
<a class="dac-nav-link" href="../../../about/index.html">Android</a>
</li>
<li class="dac-nav-item wear">
<a class="dac-nav-link" href="../../../wear/index.html">Wear</a>
</li>
<li class="dac-nav-item tv">
<a class="dac-nav-link" href="../../../tv/index.html">TV</a>
</li>
<li class="dac-nav-item auto">
<a class="dac-nav-link" href="../../../auto/index.html">Auto</a>
</li>
</ul>
</li>
<li class="dac-nav-item design">
<a class="dac-nav-link" href="../../../design/index.html"
zh-tw-lang=""
zh-cn-lang=""
ru-lang=""
ko-lang=" "
ja-lang=""
es-lang="Disear">Design</a>
</li>
<li class="dac-nav-item develop">
<a class="dac-nav-link" href="../../../develop/index.html"
zh-tw-lang=""
zh-cn-lang=""
ru-lang=""
ko-lang=" "

ja-lang=""
es-lang="Desarrollar">Develop</a>
<ul class="dac-nav-secondary develop">
<li class="dac-nav-item training">
<a class="dac-nav-link" href="../../../training/index.html"
zh-tw-lang=""
zh-cn-lang=""
ru-lang=""
ko-lang=" "
ja-lang=""
es-lang="Capacitacin">Training</a>
</li>
<li class="dac-nav-item guide">
<a class="dac-nav-link" href="../../../guide/index.html"
zh-tw-lang="API "
zh-cn-lang="API "
ru-lang=" API"
ko-lang="API
"
ja-lang="API "
es-lang="Guas de la API">API Guides</a>
</li>
<li class="dac-nav-item reference">
<a class="dac-nav-link" href="../../../reference/packages.html"
zh-tw-lang=""
zh-cn-lang=""
ru-lang=""
ko-lang="
"
ja-lang=""
es-lang="Referencia">Reference</a>
</li>
<li class="dac-nav-item tools">
<a class="dac-nav-link" href="../../../sdk/index.html"
zh-tw-lang=""
zh-cn-lang=""
ru-lang=""
ko-lang=" "
ja-lang=""
es-lang="Herramientas">Tools</a></li>
<li class="dac-nav-item google">
<a class="dac-nav-link" href="../../../google/index.html">Google Ser
vices</a>
</li>
<li class="dac-nav-item preview">
<a class="dac-nav-link" href="../../../preview/index.html">Preview</
a>
</li>
</ul>
</li>
<li class="dac-nav-item distribute">
<a class="dac-nav-link" href="../../../distribute/googleplay/index.html"
zh-tw-lang=""
zh-cn-lang=""
ru-lang=""
ko-lang=" "
ja-lang=""
es-lang="Distribuir">Distribute</a>
<ul class="dac-nav-secondary distribute">
<li class="dac-nav-item googleplay">
<a class="dac-nav-link" href="../../../distribute/googleplay/index.h

tml">Google Play</a></li>
<li class="dac-nav-item essentials">
<a class="dac-nav-link" href="../../../distribute/essentials/index.h
tml">Essentials</a></li>
<li class="dac-nav-item users">
<a class="dac-nav-link" href="../../../distribute/users/index.html">
Get Users</a></li>
<li class="dac-nav-item engage">
<a class="dac-nav-link" href="../../../distribute/engage/index.html"
>Engage &amp; Retain</a></li>
<li class="dac-nav-item monetize">
<a class="dac-nav-link" href="../../../distribute/monetize/index.htm
l">Earn</a>
</li>
<li class="dac-nav-item analyze">
<a class="dac-nav-link" href="../../../distribute/analyze/index.html
">Analyze</a>
</li>
<li class="dac-nav-item stories">
<a class="dac-nav-link" href="../../../distribute/stories/index.html
">Stories</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- end navigation-->

<div class="wrap clearfix" id="body-content"><div class="cols">


<div class="col-4 dac-hidden-mobile" id="side-nav" itemscope itemtype="http:
//schema.org/SiteNavigationElement">
<div id="devdoc-nav">
<div id="api-nav-header">
<div id="api-level-toggle">
<label for="apiLevelCheckbox" class="disabled"
title="Select your target API level to dim unavailable APIs">API lev
el: </label>
<div class="select-wrapper">
<select id="apiLevelSelector">
<!-- option elements added by buildApiLevelSelector() -->
</select>
</div>
</div><!-- end toggle -->
<div id="api-nav-title">Android APIs</div>
</div><!-- end nav header -->
<script>
var SINCE_DATA = [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '1
1', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23' ];
buildApiLevelSelector();
</script>
<div id="swapper">
<div id="nav-panels">
<div id="resize-packages-nav">
<div id="packages-nav" class="scroll-pane">

<ul>
<li class="api apilevel-1">
<a href="../../../reference/android/package-summary.html">android</a></li>
<li class="api apilevel-4">
<a href="../../../reference/android/accessibilityservice/package-summary.html"
>android.accessibilityservice</a></li>
<li class="api apilevel-5">
<a href="../../../reference/android/accounts/package-summary.html">android.acc
ounts</a></li>
<li class="api apilevel-11">
<a href="../../../reference/android/animation/package-summary.html">android.an
imation</a></li>
<li class="api apilevel-16">
<a href="../../../reference/android/annotation/package-summary.html">android.a
nnotation</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/app/package-summary.html">android.app</a><
/li>
<li class="api apilevel-8">
<a href="../../../reference/android/app/admin/package-summary.html">android.ap
p.admin</a></li>
<li class="api apilevel-23">
<a href="../../../reference/android/app/assist/package-summary.html">android.a
pp.assist</a></li>
<li class="api apilevel-8">
<a href="../../../reference/android/app/backup/package-summary.html">android.a
pp.backup</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/app/job/package-summary.html">android.app.
job</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/app/usage/package-summary.html">android.ap
p.usage</a></li>
<li class="api apilevel-3">
<a href="../../../reference/android/appwidget/package-summary.html">android.ap
pwidget</a></li>
<li class="api apilevel-5">
<a href="../../../reference/android/bluetooth/package-summary.html">android.bl
uetooth</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/bluetooth/le/package-summary.html">android
.bluetooth.le</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/content/package-summary.html">android.cont
ent</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/content/pm/package-summary.html">android.c
ontent.pm</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/content/res/package-summary.html">android.
content.res</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/database/package-summary.html">android.dat
abase</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/database/sqlite/package-summary.html">andr
oid.database.sqlite</a></li>
<li class="api apilevel-">

<a href="../../../reference/android/databinding/package-summary.html">android.
databinding</a></li>
<li class="api apilevel-11">
<a href="../../../reference/android/drm/package-summary.html">android.drm</a><
/li>
<li class="api apilevel-4">
<a href="../../../reference/android/gesture/package-summary.html">android.gest
ure</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/graphics/package-summary.html">android.gra
phics</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/graphics/drawable/package-summary.html">an
droid.graphics.drawable</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/graphics/drawable/shapes/package-summary.h
tml">android.graphics.drawable.shapes</a></li>
<li class="api apilevel-19">
<a href="../../../reference/android/graphics/pdf/package-summary.html">android
.graphics.pdf</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/hardware/package-summary.html">android.har
dware</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/hardware/camera2/package-summary.html">and
roid.hardware.camera2</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/hardware/camera2/params/package-summary.ht
ml">android.hardware.camera2.params</a></li>
<li class="api apilevel-17">
<a href="../../../reference/android/hardware/display/package-summary.html">and
roid.hardware.display</a></li>
<li class="api apilevel-23">
<a href="../../../reference/android/hardware/fingerprint/package-summary.html"
>android.hardware.fingerprint</a></li>
<li class="api apilevel-16">
<a href="../../../reference/android/hardware/input/package-summary.html">andro
id.hardware.input</a></li>
<li class="api apilevel-12">
<a href="../../../reference/android/hardware/usb/package-summary.html">android
.hardware.usb</a></li>
<li class="selected api apilevel-3">
<a href="../../../reference/android/inputmethodservice/package-summary.html">a
ndroid.inputmethodservice</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/location/package-summary.html">android.loc
ation</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/media/package-summary.html">android.media<
/a></li>
<li class="api apilevel-9">
<a href="../../../reference/android/media/audiofx/package-summary.html">androi
d.media.audiofx</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/media/browse/package-summary.html">android
.media.browse</a></li>
<li class="api apilevel-14">
<a href="../../../reference/android/media/effect/package-summary.html">android
.media.effect</a></li>
<li class="api apilevel-23">

<a href="../../../reference/android/media/midi/package-summary.html">android.m
edia.midi</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/media/projection/package-summary.html">and
roid.media.projection</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/media/session/package-summary.html">androi
d.media.session</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/media/tv/package-summary.html">android.med
ia.tv</a></li>
<li class="api apilevel-12">
<a href="../../../reference/android/mtp/package-summary.html">android.mtp</a><
/li>
<li class="api apilevel-1">
<a href="../../../reference/android/net/package-summary.html">android.net</a><
/li>
<li class="api apilevel-1">
<a href="../../../reference/android/net/http/package-summary.html">android.net
.http</a></li>
<li class="api apilevel-16">
<a href="../../../reference/android/net/nsd/package-summary.html">android.net.
nsd</a></li>
<li class="api apilevel-12">
<a href="../../../reference/android/net/rtp/package-summary.html">android.net.
rtp</a></li>
<li class="api apilevel-9">
<a href="../../../reference/android/net/sip/package-summary.html">android.net.
sip</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/net/wifi/package-summary.html">android.net
.wifi</a></li>
<li class="api apilevel-14">
<a href="../../../reference/android/net/wifi/p2p/package-summary.html">android
.net.wifi.p2p</a></li>
<li class="api apilevel-16">
<a href="../../../reference/android/net/wifi/p2p/nsd/package-summary.html">and
roid.net.wifi.p2p.nsd</a></li>
<li class="api apilevel-9">
<a href="../../../reference/android/nfc/package-summary.html">android.nfc</a><
/li>
<li class="api apilevel-19">
<a href="../../../reference/android/nfc/cardemulation/package-summary.html">an
droid.nfc.cardemulation</a></li>
<li class="api apilevel-10">
<a href="../../../reference/android/nfc/tech/package-summary.html">android.nfc
.tech</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/opengl/package-summary.html">android.openg
l</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/os/package-summary.html">android.os</a></l
i>
<li class="api apilevel-9">
<a href="../../../reference/android/os/storage/package-summary.html">android.o
s.storage</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/preference/package-summary.html">android.p
reference</a></li>
<li class="api apilevel-19">

<a href="../../../reference/android/print/package-summary.html">android.print<
/a></li>
<li class="api apilevel-19">
<a href="../../../reference/android/print/pdf/package-summary.html">android.pr
int.pdf</a></li>
<li class="api apilevel-19">
<a href="../../../reference/android/printservice/package-summary.html">android
.printservice</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/provider/package-summary.html">android.pro
vider</a></li>
<li class="api apilevel-11">
<a href="../../../reference/android/renderscript/package-summary.html">android
.renderscript</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/sax/package-summary.html">android.sax</a><
/li>
<li class="api apilevel-14">
<a href="../../../reference/android/security/package-summary.html">android.sec
urity</a></li>
<li class="api apilevel-23">
<a href="../../../reference/android/security/keystore/package-summary.html">an
droid.security.keystore</a></li>
<li class="api apilevel-22">
<a href="../../../reference/android/service/carrier/package-summary.html">andr
oid.service.carrier</a></li>
<li class="api apilevel-23">
<a href="../../../reference/android/service/chooser/package-summary.html">andr
oid.service.chooser</a></li>
<li class="api apilevel-17">
<a href="../../../reference/android/service/dreams/package-summary.html">andro
id.service.dreams</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/service/media/package-summary.html">androi
d.service.media</a></li>
<li class="api apilevel-18">
<a href="../../../reference/android/service/notification/package-summary.html"
>android.service.notification</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/service/restrictions/package-summary.html"
>android.service.restrictions</a></li>
<li class="api apilevel-14">
<a href="../../../reference/android/service/textservice/package-summary.html">
android.service.textservice</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/service/voice/package-summary.html">androi
d.service.voice</a></li>
<li class="api apilevel-7">
<a href="../../../reference/android/service/wallpaper/package-summary.html">an
droid.service.wallpaper</a></li>
<li class="api apilevel-3">
<a href="../../../reference/android/speech/package-summary.html">android.speec
h</a></li>
<li class="api apilevel-4">
<a href="../../../reference/android/speech/tts/package-summary.html">android.s
peech.tts</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/annotation/package-summary.html">a
ndroid.support.annotation</a></li>
<li class="api apilevel-">

<a href="../../../reference/android/support/app/recommendation/package-summary
.html">android.support.app.recommendation</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/customtabs/package-summary.html">a
ndroid.support.customtabs</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/design/package-summary.html">andro
id.support.design</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/design/widget/package-summary.html
">android.support.design.widget</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/multidex/package-summary.html">and
roid.support.multidex</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/percent/package-summary.html">andr
oid.support.percent</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v13/app/package-summary.html">andr
oid.support.v13.app</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v14/preference/package-summary.htm
l">android.support.v14.preference</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v17/leanback/package-summary.html"
>android.support.v17.leanback</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v17/leanback/app/package-summary.h
tml">android.support.v17.leanback.app</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v17/leanback/database/package-summ
ary.html">android.support.v17.leanback.database</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v17/leanback/graphics/package-summ
ary.html">android.support.v17.leanback.graphics</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v17/leanback/system/package-summar
y.html">android.support.v17.leanback.system</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v17/leanback/widget/package-summar
y.html">android.support.v17.leanback.widget</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v17/preference/package-summary.htm
l">android.support.v17.preference</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/accessibilityservice/package-su
mmary.html">android.support.v4.accessibilityservice</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/animation/package-summary.html"
>android.support.v4.animation</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/app/package-summary.html">andro
id.support.v4.app</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/content/package-summary.html">a
ndroid.support.v4.content</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/content/pm/package-summary.html
">android.support.v4.content.pm</a></li>
<li class="api apilevel-">

<a href="../../../reference/android/support/v4/content/res/package-summary.htm
l">android.support.v4.content.res</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/database/package-summary.html">
android.support.v4.database</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/graphics/package-summary.html">
android.support.v4.graphics</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/graphics/drawable/package-summa
ry.html">android.support.v4.graphics.drawable</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/hardware/display/package-summar
y.html">android.support.v4.hardware.display</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/hardware/fingerprint/package-su
mmary.html">android.support.v4.hardware.fingerprint</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/media/package-summary.html">and
roid.support.v4.media</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/media/session/package-summary.h
tml">android.support.v4.media.session</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/net/package-summary.html">andro
id.support.v4.net</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/os/package-summary.html">androi
d.support.v4.os</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/print/package-summary.html">and
roid.support.v4.print</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/provider/package-summary.html">
android.support.v4.provider</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/text/package-summary.html">andr
oid.support.v4.text</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/util/package-summary.html">andr
oid.support.v4.util</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/view/package-summary.html">andr
oid.support.v4.view</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/view/accessibility/package-summ
ary.html">android.support.v4.view.accessibility</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/view/animation/package-summary.
html">android.support.v4.view.animation</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v4/widget/package-summary.html">an
droid.support.v4.widget</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/app/package-summary.html">andro
id.support.v7.app</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/appcompat/package-summary.html"
>android.support.v7.appcompat</a></li>
<li class="api apilevel-">

<a href="../../../reference/android/support/v7/cardview/package-summary.html">
android.support.v7.cardview</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/graphics/package-summary.html">
android.support.v7.graphics</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/graphics/drawable/package-summa
ry.html">android.support.v7.graphics.drawable</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/gridlayout/package-summary.html
">android.support.v7.gridlayout</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/media/package-summary.html">and
roid.support.v7.media</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/mediarouter/package-summary.htm
l">android.support.v7.mediarouter</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/preference/package-summary.html
">android.support.v7.preference</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/recyclerview/package-summary.ht
ml">android.support.v7.recyclerview</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/util/package-summary.html">andr
oid.support.v7.util</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/view/package-summary.html">andr
oid.support.v7.view</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/widget/package-summary.html">an
droid.support.v7.widget</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/widget/helper/package-summary.h
tml">android.support.v7.widget.helper</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v7/widget/util/package-summary.htm
l">android.support.v7.widget.util</a></li>
<li class="api apilevel-">
<a href="../../../reference/android/support/v8/renderscript/package-summary.ht
ml">android.support.v8.renderscript</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/system/package-summary.html">android.syste
m</a></li>
<li class="api apilevel-21">
<a href="../../../reference/android/telecom/package-summary.html">android.tele
com</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/telephony/package-summary.html">android.te
lephony</a></li>
<li class="api apilevel-5">
<a href="../../../reference/android/telephony/cdma/package-summary.html">andro
id.telephony.cdma</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/telephony/gsm/package-summary.html">androi
d.telephony.gsm</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/test/package-summary.html">android.test</a
></li>
<li class="api apilevel-1">

<a href="../../../reference/android/test/mock/package-summary.html">android.te
st.mock</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/test/suitebuilder/package-summary.html">an
droid.test.suitebuilder</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/test/suitebuilder/annotation/package-summa
ry.html">android.test.suitebuilder.annotation</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/text/package-summary.html">android.text</a
></li>
<li class="api apilevel-3">
<a href="../../../reference/android/text/format/package-summary.html">android.
text.format</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/text/method/package-summary.html">android.
text.method</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/text/style/package-summary.html">android.t
ext.style</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/text/util/package-summary.html">android.te
xt.util</a></li>
<li class="api apilevel-19">
<a href="../../../reference/android/transition/package-summary.html">android.t
ransition</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/util/package-summary.html">android.util</a
></li>
<li class="api apilevel-1">
<a href="../../../reference/android/view/package-summary.html">android.view</a
></li>
<li class="api apilevel-4">
<a href="../../../reference/android/view/accessibility/package-summary.html">a
ndroid.view.accessibility</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/view/animation/package-summary.html">andro
id.view.animation</a></li>
<li class="api apilevel-3">
<a href="../../../reference/android/view/inputmethod/package-summary.html">and
roid.view.inputmethod</a></li>
<li class="api apilevel-14">
<a href="../../../reference/android/view/textservice/package-summary.html">and
roid.view.textservice</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/webkit/package-summary.html">android.webki
t</a></li>
<li class="api apilevel-1">
<a href="../../../reference/android/widget/package-summary.html">android.widge
t</a></li>
<li class="api apilevel-">
<a href="../../../reference/com/android/internal/backup/package-summary.html">
com.android.internal.backup</a></li>
<li class="api apilevel-">
<a href="../../../reference/com/android/internal/logging/package-summary.html"
>com.android.internal.logging</a></li>
<li class="api apilevel-">
<a href="../../../reference/com/android/internal/os/package-summary.html">com.
android.internal.os</a></li>
<li class="api apilevel-">

<a href="../../../reference/com/android/internal/statusbar/package-summary.htm
l">com.android.internal.statusbar</a></li>
<li class="api apilevel-">
<a href="../../../reference/com/android/internal/widget/package-summary.html">
com.android.internal.widget</a></li>
<li class="api apilevel-">
<a href="../../../reference/com/android/test/runner/package-summary.html">com.
android.test.runner</a></li>
<li class="api apilevel-1">
<a href="../../../reference/dalvik/annotation/package-summary.html">dalvik.ann
otation</a></li>
<li class="api apilevel-1">
<a href="../../../reference/dalvik/bytecode/package-summary.html">dalvik.bytec
ode</a></li>
<li class="api apilevel-1">
<a href="../../../reference/dalvik/system/package-summary.html">dalvik.system<
/a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/awt/font/package-summary.html">java.awt.font<
/a></li>
<li class="api apilevel-3">
<a href="../../../reference/java/beans/package-summary.html">java.beans</a></l
i>
<li class="api apilevel-1">
<a href="../../../reference/java/io/package-summary.html">java.io</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/lang/package-summary.html">java.lang</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/lang/annotation/package-summary.html">java.la
ng.annotation</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/lang/ref/package-summary.html">java.lang.ref<
/a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/lang/reflect/package-summary.html">java.lang.
reflect</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/math/package-summary.html">java.math</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/net/package-summary.html">java.net</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/nio/package-summary.html">java.nio</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/nio/channels/package-summary.html">java.nio.c
hannels</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/nio/channels/spi/package-summary.html">java.n
io.channels.spi</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/nio/charset/package-summary.html">java.nio.ch
arset</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/nio/charset/spi/package-summary.html">java.ni
o.charset.spi</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/security/package-summary.html">java.security<
/a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/security/acl/package-summary.html">java.secur
ity.acl</a></li>

<li class="api apilevel-1">


<a href="../../../reference/java/security/cert/package-summary.html">java.secu
rity.cert</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/security/interfaces/package-summary.html">jav
a.security.interfaces</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/security/spec/package-summary.html">java.secu
rity.spec</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/sql/package-summary.html">java.sql</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/text/package-summary.html">java.text</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/package-summary.html">java.util</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/concurrent/package-summary.html">java.ut
il.concurrent</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/concurrent/atomic/package-summary.html">
java.util.concurrent.atomic</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/concurrent/locks/package-summary.html">j
ava.util.concurrent.locks</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/jar/package-summary.html">java.util.jar<
/a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/logging/package-summary.html">java.util.
logging</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/prefs/package-summary.html">java.util.pr
efs</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/regex/package-summary.html">java.util.re
gex</a></li>
<li class="api apilevel-1">
<a href="../../../reference/java/util/zip/package-summary.html">java.util.zip<
/a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/crypto/package-summary.html">javax.crypto</a
></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/crypto/interfaces/package-summary.html">java
x.crypto.interfaces</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/crypto/spec/package-summary.html">javax.cryp
to.spec</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/microedition/khronos/egl/package-summary.htm
l">javax.microedition.khronos.egl</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/microedition/khronos/opengles/package-summar
y.html">javax.microedition.khronos.opengles</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/net/package-summary.html">javax.net</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/net/ssl/package-summary.html">javax.net.ssl<
/a></li>
<li class="api apilevel-1">

<a href="../../../reference/javax/security/auth/package-summary.html">javax.se
curity.auth</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/security/auth/callback/package-summary.html"
>javax.security.auth.callback</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/security/auth/login/package-summary.html">ja
vax.security.auth.login</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/security/auth/x500/package-summary.html">jav
ax.security.auth.x500</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/security/cert/package-summary.html">javax.se
curity.cert</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/sql/package-summary.html">javax.sql</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/xml/package-summary.html">javax.xml</a></li>
<li class="api apilevel-8">
<a href="../../../reference/javax/xml/datatype/package-summary.html">javax.xml
.datatype</a></li>
<li class="api apilevel-8">
<a href="../../../reference/javax/xml/namespace/package-summary.html">javax.xm
l.namespace</a></li>
<li class="api apilevel-1">
<a href="../../../reference/javax/xml/parsers/package-summary.html">javax.xml.
parsers</a></li>
<li class="api apilevel-8">
<a href="../../../reference/javax/xml/transform/package-summary.html">javax.xm
l.transform</a></li>
<li class="api apilevel-8">
<a href="../../../reference/javax/xml/transform/dom/package-summary.html">java
x.xml.transform.dom</a></li>
<li class="api apilevel-8">
<a href="../../../reference/javax/xml/transform/sax/package-summary.html">java
x.xml.transform.sax</a></li>
<li class="api apilevel-8">
<a href="../../../reference/javax/xml/transform/stream/package-summary.html">j
avax.xml.transform.stream</a></li>
<li class="api apilevel-8">
<a href="../../../reference/javax/xml/validation/package-summary.html">javax.x
ml.validation</a></li>
<li class="api apilevel-8">
<a href="../../../reference/javax/xml/xpath/package-summary.html">javax.xml.xp
ath</a></li>
<li class="api apilevel-1">
<a href="../../../reference/junit/framework/package-summary.html">junit.framew
ork</a></li>
<li class="api apilevel-1">
<a href="../../../reference/junit/runner/package-summary.html">junit.runner</a
></li>
<li class="api apilevel-1">
<a href="../../../reference/org/apache/http/conn/package-summary.html">org.apa
che.http.conn</a></li>
<li class="api apilevel-1">
<a href="../../../reference/org/apache/http/conn/scheme/package-summary.html">
org.apache.http.conn.scheme</a></li>
<li class="api apilevel-1">
<a href="../../../reference/org/apache/http/conn/ssl/package-summary.html">org
.apache.http.conn.ssl</a></li>

<li class="api apilevel-1">


<a href="../../../reference/org/apache/http/params/package-summary.html">org.a
pache.http.params</a></li>
<li class="api apilevel-1">
<a href="../../../reference/org/json/package-summary.html">org.json</a></li>
<li class="api apilevel-1">
<a href="../../../reference/org/w3c/dom/package-summary.html">org.w3c.dom</a><
/li>
<li class="api apilevel-8">
<a href="../../../reference/org/w3c/dom/ls/package-summary.html">org.w3c.dom.l
s</a></li>
<li class="api apilevel-1">
<a href="../../../reference/org/xml/sax/package-summary.html">org.xml.sax</a><
/li>
<li class="api apilevel-1">
<a href="../../../reference/org/xml/sax/ext/package-summary.html">org.xml.sax.
ext</a></li>
<li class="api apilevel-1">
<a href="../../../reference/org/xml/sax/helpers/package-summary.html">org.xml.
sax.helpers</a></li>
<li class="api apilevel-1">
<a href="../../../reference/org/xmlpull/v1/package-summary.html">org.xmlpull.v
1</a></li>
<li class="api apilevel-1">
<a href="../../../reference/org/xmlpull/v1/sax2/package-summary.html">org.xmlp
ull.v1.sax2</a></li>
</ul><br/>
</div> <!-- end packages-nav -->
</div> <!-- end resize-packages -->
<div id="classes-nav" class="scroll-pane">

<ul>
<li><h2>Interfaces</h2>
<ul>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/KeyboardView.OnKeyboardActionListener.html">KeyboardView.OnKeyboardA
ctionListener</a></li>
</ul>
</li>
<li><h2>Classes</h2>
<ul>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/AbstractInputMethodService.html">AbstractInputMethodService</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/AbstractInputMethodService.AbstractInputMethodImpl.html">AbstractInp
utMethodService.AbstractInputMethodImpl</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/AbstractInputMethodService.AbstractInputMethodSessionImpl.html">Abst
ractInputMethodService.AbstractInputMethodSessionImpl</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/ExtractEditText.html">ExtractEditText</a></li>
<li class="selected api apilevel-3"><a href="../../../reference/androi
d/inputmethodservice/InputMethodService.html">InputMethodService</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme

thodservice/InputMethodService.InputMethodImpl.html">InputMethodService.InputMet
hodImpl</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/InputMethodService.InputMethodSessionImpl.html">InputMethodService.I
nputMethodSessionImpl</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/InputMethodService.Insets.html">InputMethodService.Insets</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/Keyboard.html">Keyboard</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/Keyboard.Key.html">Keyboard.Key</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/Keyboard.Row.html">Keyboard.Row</a></li>
<li class="api apilevel-3"><a href="../../../reference/android/inputme
thodservice/KeyboardView.html">KeyboardView</a></li>
</ul>
</li>

</ul><br/>
</div><!-- end classes -->
</div><!-- end nav-panels -->
<div id="nav-tree" style="display:none" class="scroll-pane">
<div id="tree-list"></div>
</div><!-- end nav-tree -->
</div><!-- end swapper -->
<div id="nav-swap">
<a class="fullscreen">fullscreen</a>
<a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tre
e Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigati
on</span></a>
</div>
</div> <!-- end devdoc-nav -->
</div> <!-- end side-nav -->
<script type="text/javascript">
// init fullscreen based on user pref
var fullscreen = readCookie("fullscreen");
if (fullscreen != 0) {
if (fullscreen == "false") {
toggleFullscreen(false);
} else {
toggleFullscreen(true);
}
}
// init nav version for mobile
if (isMobile) {
swapNav(); // tree view should be used on mobile
$('#nav-swap').hide();
} else {
chooseDefaultNav();
if ($("#nav-tree").is(':visible')) {
init_default_navtree("../../../");
}
}
// scroll the selected page into view
$(document).ready(function() {
scrollIntoView("packages-nav");

scrollIntoView("classes-nav");
});
</script>

<div class="col-12" id="doc-col">


<div id="api-info-block">

<div class="sum-details-links">
Summary:
<a href="#nestedclasses">Nested Classes</a>

&#124; <a href="#lattrs">XML Attrs</a>

&#124; <a href="#constants">Constants</a>

&#124; <a href="#inhconstants">Inherited Constants</a>

&#124; <a href="#pubctors">Ctors</a>

&#124; <a href="#pubmethods">Methods</a>

&#124; <a href="#promethods">Protected Methods</a>

&#124; <a href="#inhmethods">Inherited Methods</a>


&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClass
Inherited">[Expand All]</a>
</div><!-- end sum-details-links -->

<div class="api-level">
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a>

</div>
</div><!-- end api-info-block -->
<!-- ======== START OF CLASS DATA ======== -->
<div id="jd-header">
public

class
<h1 itemprop="name">InputMethodService</h1>

extends <a href="../../../reference/android/inputmethodservice/AbstractInput


MethodService.html">AbstractInputMethodService</a><br/>

</div><!-- end header -->


<div id="naMessage"></div>
<div id="jd-content" class="api apilevel-3">
<table class="jd-inheritance-table">

<tr>
<td colspan="6" class="jd-inheritance-class-cell"><a href="../../../refe
rence/java/lang/Object.html">java.lang.Object</a></td>
</tr>
<tr>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
<td colspan="5" class="jd-inheritance-class-cell"><a href="../../../refe
rence/android/content/Context.html">android.content.Context</a></td>
</tr>
<tr>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
<td colspan="4" class="jd-inheritance-class-cell"><a href="../../../refe
rence/android/content/ContextWrapper.html">android.content.ContextWrapper</a></t
d>
</tr>
<tr>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
<td colspan="3" class="jd-inheritance-class-cell"><a href="../../../refe
rence/android/app/Service.html">android.app.Service</a></td>
</tr>
<tr>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
<td colspan="2" class="jd-inheritance-class-cell"><a href="../../../refe
rence/android/inputmethodservice/AbstractInputMethodService.html">android.inputm
ethodservice.AbstractInputMethodService</a></td>
</tr>
<tr>

<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
<td colspan="1" class="jd-inheritance-class-cell">android.inputmethodser
vice.InputMethodService</td>
</tr>
</table>

<div class="jd-descr">
<h2>Class Overview</h2>
<p itemprop="articleBody">InputMethodService provides a standard implementation
of an InputMethod,
which final implementations can derive from and customize. See the
base class <code><a href="../../../reference/android/inputmethodservice/Abstrac
tInputMethodService.html">AbstractInputMethodService</a></code> and the <code><a
href="../../../reference/android/view/inputmethod/InputMethod.html">InputMethod
</a></code>
interface for more information on the basics of writing input methods.
<p>In addition to the normal Service lifecycle methods, this class
introduces some new specific callbacks that most subclasses will want
to make use of:</p>
<ul>
<li> <code><a href="../../../reference/android/inputmethodservice/InputMethodSe
rvice.html#onInitializeInterface()">onInitializeInterface()</a></code> for userinterface initialization,
in particular to deal with configuration changes while the service is
running.
<li> <code><a href="../../../reference/android/inputmethodservice/InputMethodSe
rvice.html#onBindInput()">onBindInput()</a></code> to find out about switching t
o a new client.
<li> <code><a href="../../../reference/android/inputmethodservice/InputMethodSe
rvice.html#onStartInput(android.view.inputmethod.EditorInfo, boolean)">onStartIn
put(EditorInfo, boolean)</a></code> to deal with an input session starting with
the client.
<li> <code><a href="../../../reference/android/inputmethodservice/InputMethodSe
rvice.html#onCreateInputView()">onCreateInputView()</a></code>, <code><a href=".
./../../reference/android/inputmethodservice/InputMethodService.html#onCreateCan
didatesView()">onCreateCandidatesView()</a></code>,
and <code><a href="../../../reference/android/inputmethodservice/InputMethodSer
vice.html#onCreateExtractTextView()">onCreateExtractTextView()</a></code> for no
n-demand generation of the UI.

<li> <code><a href="../../../reference/android/inputmethodservice/InputMethodSe


rvice.html#onStartInputView(android.view.inputmethod.EditorInfo, boolean)">onSta
rtInputView(EditorInfo, boolean)</a></code> to deal with input
starting within the input area of the IME.
</ul>
<p>An input method has significant discretion in how it goes about its
work: the <code><a href="../../../reference/android/inputmethodservice/InputMet
hodService.html">InputMethodService</a></code> provides
a basic framework for standard UI elements (input view, candidates view,
and running in fullscreen mode), but it is up to a particular implementor
to decide how to use them. For example, one input method could implement
an input area with a keyboard, another could allow the user to draw text,
while a third could have no input area (and thus not be visible to the
user) but instead listen to audio and perform text to speech conversion.</p>
<p>In the implementation provided here, all of these elements are placed
together in a single window managed by the InputMethodService. It will
execute callbacks as it needs information about them, and provides APIs for
programmatic control over them. They layout of these elements is explicitly
defined:</p>
<ul>
<li>The soft input view, if available, is placed at the bottom of the
screen.
<li>The candidates view, if currently shown, is placed above the soft
input view.
<li>If not running fullscreen, the application is moved or resized to be
above these views; if running fullscreen, the window will completely cover
the application and its top part will contain the extract text of what is
currently being edited by the application.
</ul>
<a name="SoftInputView"></a>
<h3>Soft Input View</h3>
<p>Central to most input methods is the soft input view. This is where most
user interaction occurs: pressing on soft keys, drawing characters, or
however else your input method wants to generate text. Most implementations
will simply have their own view doing all of this work, and return a new
instance of it when <code><a href="../../../reference/android/inputmethodservic
e/InputMethodService.html#onCreateInputView()">onCreateInputView()</a></code> is
called. At that point,
as long as the input view is visible, you will see user interaction in
that view and can call back on the InputMethodService to interact with the
application as appropriate.</p>
<p>There are some situations where you want to decide whether or not your
soft input view should be shown to the user. This is done by implementing
the <code><a href="../../../reference/android/inputmethodservice/InputMethodSer
vice.html#onEvaluateInputViewShown()">onEvaluateInputViewShown()</a></code> to r
eturn true or false based on
whether it should be shown in the current environment. If any of your
state has changed that may impact this, call
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#updateInputViewShown()">updateInputViewShown()</a></code> to have it re-ev
aluated. The default
implementation always shows the input view unless there is a hard
keyboard available, which is the appropriate behavior for most input

methods.</p>
<a name="CandidatesView"></a>
<h3>Candidates View</h3>
<p>Often while the user is generating raw text, an input method wants to
provide them with a list of possible interpretations of that text that can
be selected for use. This is accomplished with the candidates view, and
like the soft input view you implement <code><a href="../../../reference/androi
d/inputmethodservice/InputMethodService.html#onCreateCandidatesView()">onCreateC
andidatesView()</a></code>
to instantiate your own view implementing your candidates UI.</p>
<p>Management of the candidates view is a little different than the input
view, because the candidates view tends to be more transient, being shown
only when there are possible candidates for the current text being entered
by the user. To control whether the candidates view is shown, you use
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#setCandidatesViewShown(boolean)">setCandidatesViewShown(boolean)</a></code
>. Note that because the candidate
view tends to be shown and hidden a lot, it does not impact the application
UI in the same way as the soft input view: it will never cause application
windows to resize, only cause them to be panned if needed for the user to
see the current focus.</p>
<a name="FullscreenMode"></a>
<h3>Fullscreen Mode</h3>
<p>Sometimes your input method UI is too large to integrate with the
application UI, so you just want to take over the screen. This is
accomplished by switching to full-screen mode, causing the input method
window to fill the entire screen and add its own "extracted text" editor
showing the user the text that is being typed. Unlike the other UI elements,
there is a standard implementation for the extract editor that you should
not need to change. The editor is placed at the top of the IME, above the
input and candidates views.</p>
<p>Similar to the input view, you control whether the IME is running in
fullscreen mode by implementing <code><a href="../../../reference/android/input
methodservice/InputMethodService.html#onEvaluateFullscreenMode()">onEvaluateFull
screenMode()</a></code>
to return true or false based on
whether it should be fullscreen in the current environment. If any of your
state has changed that may impact this, call
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#updateFullscreenMode()">updateFullscreenMode()</a></code> to have it re-ev
aluated. The default
implementation selects fullscreen mode when the screen is in a landscape
orientation, which is appropriate behavior for most input methods that have
a significant input area.</p>
<p>When in fullscreen mode, you have some special requirements because the
user can not see the application UI. In particular, you should implement
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onDisplayCompletions(android.view.inputmethod.CompletionInfo[])">onDisplay
Completions(CompletionInfo[])</a></code> to show completions
generated by your application, typically in your candidates view like you
would normally show candidates.

<a name="GeneratingText"></a>
<h3>Generating Text</h3>
<p>The key part of an IME is of course generating text for the application.
This is done through calls to the
<code><a href="../../../reference/android/view/inputmethod/InputConnection.html
">InputConnection</a></code> interface to the
application, which can be retrieved from <code><a href="../../../reference/andr
oid/inputmethodservice/InputMethodService.html#getCurrentInputConnection()">getC
urrentInputConnection()</a></code>.
This interface allows you to generate raw key events or, if the target
supports it, directly edit in strings of candidates and committed text.</p>
<p>Information about what the target is expected and supports can be found
through the <code><a href="../../../reference/android/view/inputmethod/EditorIn
fo.html">EditorInfo</a></code> class, which is
retrieved with <code><a href="../../../reference/android/inputmethodservice/Inp
utMethodService.html#getCurrentInputEditorInfo()">getCurrentInputEditorInfo()</a
></code> method. The most
important part of this is <code><a href="../../../reference/android/view/inputm
ethod/EditorInfo.html#inputType">EditorInfo.inputType</a></code>; in particular,
if this is
<code><a href="../../../reference/android/text/InputType.html#TYPE_NULL">Editor
Info.TYPE_NULL</a></code>,
then the target does not support complex edits and you need to only deliver
raw key events to it. An input method will also want to look at other
values here, to for example detect password mode, auto complete text views,
phone number entry, etc.</p>
<p>When the user switches between input targets, you will receive calls to
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onFinishInput()">onFinishInput()</a></code> and <code><a href="../../../re
ference/android/inputmethodservice/InputMethodService.html#onStartInput(android.
view.inputmethod.EditorInfo, boolean)">onStartInput(EditorInfo, boolean)</a></co
de>.
You can use these to reset and initialize your input state for the current
target. For example, you will often want to clear any input state, and
update a soft keyboard to be appropriate for the new inputType.</p></p>

</div><!-- jd-descr -->

<div class="jd-descr">
<h2>Summary</h2>

<!-- ======== NESTED CLASS SUMMARY ======== -->


<table id="nestedclasses" class="jd-sumtable"><tr><th colspan="12">Nested Classe
s</th></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

class</nobr></td>
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.InputMethodImpl.html">InputMethodService.InputMethodImpl<
/a></td>
<td class="jd-descrcol" width="100%">
Concrete implementation of
<code><a href="../../../reference/android/inputmethodservice/AbstractInputMetho
dService.AbstractInputMethodImpl.html">AbstractInputMethodService.AbstractInputM
ethodImpl</a></code> that provides
all of the standard behavior for an input method.&nbsp;

</td>
</tr>
<tr class=" api apilevel-3" >
<td class="jd-typecol"><nobr>

class</nobr></td>
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.InputMethodSessionImpl.html">InputMethodService.InputMeth
odSessionImpl</a></td>
<td class="jd-descrcol" width="100%">
Concrete implementation of
<code><a href="../../../reference/android/inputmethodservice/AbstractInputMetho
dService.AbstractInputMethodSessionImpl.html">AbstractInputMethodService.Abstrac
tInputMethodSessionImpl</a></code> that provides
all of the standard behavior for an input method session.&nbsp;

</td>
</tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

class</nobr></td>
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.Insets.html">InputMethodService.Insets</a></td>
<td class="jd-descrcol" width="100%">
Information about where interesting parts of the input method UI appear.
&nbsp;

</td>
</tr>

<!-- =========== FIELD SUMMARY =========== -->


<table id="lattrs" class="jd-sumtable"><tr><th colspan="12">XML Attributes</th><
/tr>
<tr>
<td><nobr><em>Attribute Name</em></nobr></td>
<td><nobr><em>Related Method</em></nobr></td>
<td><nobr><em>Description</em></nobr></td>
</tr>
<tr class="alt-color api apilevel-" >
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodse
rvice/InputMethodService.html#attr_android:imeExtractEnterAnimation">android:ime
ExtractEnterAnimation</a></td>
<td class="jd-linkcol">
</td>
<td class="jd-descrcol" width="100%">
Animation to use when showing the fullscreen extract UI after
it had previously been hidden.&nbsp;

</td>
</tr>
<tr class=" api apilevel-" >
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodse
rvice/InputMethodService.html#attr_android:imeExtractExitAnimation">android:imeE
xtractExitAnimation</a></td>
<td class="jd-linkcol">
</td>
<td class="jd-descrcol" width="100%">
Animation to use when hiding the fullscreen extract UI after

it had previously been shown.&nbsp;

</td>
</tr>
<tr class="alt-color api apilevel-" >
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodse
rvice/InputMethodService.html#attr_android:imeFullscreenBackground">android:imeF
ullscreenBackground</a></td>
<td class="jd-linkcol">
</td>
<td class="jd-descrcol" width="100%">
Background to use for entire input method when it is being
shown in fullscreen mode with the extract view, to ensure
that it completely covers the application.&nbsp;

</td>
</tr>

<!-- =========== ENUM CONSTANT SUMMARY =========== -->


<table id="constants" class="jd-sumtable"><tr><th colspan="12">Constants</th></t
r>

<tr class="alt-color api apilevel-11" >


<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodse
rvice/InputMethodService.html#BACK_DISPOSITION_DEFAULT">BACK_DISPOSITION_DEFAULT
</a></td>
<td class="jd-descrcol" width="100%">
The back button will close the input window.

</td>
</tr>
<tr class=" api apilevel-11" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodse
rvice/InputMethodService.html#BACK_DISPOSITION_WILL_DISMISS">BACK_DISPOSITION_WI
LL_DISMISS</a></td>

<td class="jd-descrcol" width="100%">


This input method will consume the back key.

</td>
</tr>
<tr class="alt-color api apilevel-11" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/inputmethodse
rvice/InputMethodService.html#BACK_DISPOSITION_WILL_NOT_DISMISS">BACK_DISPOSITIO
N_WILL_NOT_DISMISS</a></td>
<td class="jd-descrcol" width="100%">
This input method will not consume the back key.

</td>
</tr>

</table>

<!-- =========== ENUM CONSTANT SUMMARY =========== -->


<table id="inhconstants" class="jd-sumtable"><tr><th>
<a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)"
>[Expand]</a>
<div style="clear:left;">Inherited Constants</div></th></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-constan
ts-android.app.Service" class="jd-expando-trigger closed"
><img id="inherited-constants-android.app.Service-trigger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>From class
<a href="../../../reference/android/app/Service.html">android.app.Service</a>
<div id="inherited-constants-android.app.Service">
<div id="inherited-constants-android.app.Service-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-constants-android.app.Service-summary" style="display: none
;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-5" >


<td class="jd-typecol">int</td>

<td class="jd-linkcol"><a href="../../../reference/android/app/Service.h


tml#START_CONTINUATION_MASK">START_CONTINUATION_MASK</a></td>
<td class="jd-descrcol" width="100%">
Bits returned by <code><a href="../../../reference/android/app/Service
.html#onStartCommand(android.content.Intent, int, int)">onStartCommand(Intent, i
nt, int)</a></code> describing how to continue
the service if it is killed.

</td>
</tr>
<tr class=" api apilevel-5" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/app/Service.h
tml#START_FLAG_REDELIVERY">START_FLAG_REDELIVERY</a></td>
<td class="jd-descrcol" width="100%">
This flag is set in <code><a href="../../../reference/android/app/Serv
ice.html#onStartCommand(android.content.Intent, int, int)">onStartCommand(Intent
, int, int)</a></code> if the Intent is a
re-delivery of a previously delivered intent, because the service
had previously returned <code><a href="../../../reference/android/app/Service.h
tml#START_REDELIVER_INTENT">START_REDELIVER_INTENT</a></code> but had been
killed before calling <code><a href="../../../reference/android/app/Service.htm
l#stopSelf(int)">stopSelf(int)</a></code> for that Intent.

</td>
</tr>
<tr class="alt-color api apilevel-5" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/app/Service.h
tml#START_FLAG_RETRY">START_FLAG_RETRY</a></td>
<td class="jd-descrcol" width="100%">
This flag is set in <code><a href="../../../reference/android/app/Serv
ice.html#onStartCommand(android.content.Intent, int, int)">onStartCommand(Intent
, int, int)</a></code> if the Intent is a
retry because the original attempt never got to or returned from
<code><a href="../../../reference/android/app/Service.html#onStartCommand(andro
id.content.Intent, int, int)">onStartCommand(Intent, int, int)</a></code>.

</td>
</tr>
<tr class=" api apilevel-5" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/app/Service.h
tml#START_NOT_STICKY">START_NOT_STICKY</a></td>
<td class="jd-descrcol" width="100%">
Constant to return from <code><a href="../../../reference/android/app/
Service.html#onStartCommand(android.content.Intent, int, int)">onStartCommand(In
tent, int, int)</a></code>: if this service's

process is killed while it is started (after returning from


<code><a href="../../../reference/android/app/Service.html#onStartCommand(andro
id.content.Intent, int, int)">onStartCommand(Intent, int, int)</a></code>), and
there are no new start intents to
deliver to it, then take the service out of the started state and
don't recreate until a future explicit call to
<code><a href="../../../reference/android/content/Context.html#startService(and
roid.content.Intent)">Context.startService(Intent)</a></code>.

</td>
</tr>
<tr class="alt-color api apilevel-5" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/app/Service.h
tml#START_REDELIVER_INTENT">START_REDELIVER_INTENT</a></td>
<td class="jd-descrcol" width="100%">
Constant to return from <code><a href="../../../reference/android/app/
Service.html#onStartCommand(android.content.Intent, int, int)">onStartCommand(In
tent, int, int)</a></code>: if this service's
process is killed while it is started (after returning from
<code><a href="../../../reference/android/app/Service.html#onStartCommand(andro
id.content.Intent, int, int)">onStartCommand(Intent, int, int)</a></code>), then
it will be scheduled for a restart
and the last delivered Intent re-delivered to it again via
<code><a href="../../../reference/android/app/Service.html#onStartCommand(andro
id.content.Intent, int, int)">onStartCommand(Intent, int, int)</a></code>.

</td>
</tr>
<tr class=" api apilevel-5" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/app/Service.h
tml#START_STICKY">START_STICKY</a></td>
<td class="jd-descrcol" width="100%">
Constant to return from <code><a href="../../../reference/android/app/
Service.html#onStartCommand(android.content.Intent, int, int)">onStartCommand(In
tent, int, int)</a></code>: if this service's
process is killed while it is started (after returning from
<code><a href="../../../reference/android/app/Service.html#onStartCommand(andro
id.content.Intent, int, int)">onStartCommand(Intent, int, int)</a></code>), then
leave it in the started state but
don't retain this delivered intent.

</td>
</tr>
<tr class="alt-color api apilevel-5" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/app/Service.h

tml#START_STICKY_COMPATIBILITY">START_STICKY_COMPATIBILITY</a></td>
<td class="jd-descrcol" width="100%">
Constant to return from <code><a href="../../../reference/android/app/
Service.html#onStartCommand(android.content.Intent, int, int)">onStartCommand(In
tent, int, int)</a></code>: compatibility
version of <code><a href="../../../reference/android/app/Service.html#START_STI
CKY">START_STICKY</a></code> that does not guarantee that
<code><a href="../../../reference/android/app/Service.html#onStartCommand(andro
id.content.Intent, int, int)">onStartCommand(Intent, int, int)</a></code> will b
e called again after being killed.

</td>
</tr>
</table>
</div>
</div>
</td></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-constan
ts-android.content.Context" class="jd-expando-trigger closed"
><img id="inherited-constants-android.content.Context-trigger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>From class
<a href="../../../reference/android/content/Context.html">android.content.Contex
t</a>
<div id="inherited-constants-android.content.Context">
<div id="inherited-constants-android.content.Context-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-constants-android.content.Context-summary" style="display:
none;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-4" >


<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#ACCESSIBILITY_SERVICE">ACCESSIBILITY_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/view/accessibility/AccessibilityManag
er.html">AccessibilityManager</a></code> for giving the user
feedback for UI events through the registered event listeners.

</td>
</tr>
<tr class=" api apilevel-5" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#ACCOUNT_SERVICE">ACCOUNT_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/accounts/AccountManager.html">Account
Manager</a></code> for receiving intents at a
time of your choosing.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#ACTIVITY_SERVICE">ACTIVITY_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/app/ActivityManager.html">ActivityMan
ager</a></code> for interacting with the global
system state.

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#ALARM_SERVICE">ALARM_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/app/AlarmManager.html">AlarmManager</
a></code> for receiving intents at a
time of your choosing.

</td>
</tr>

<tr class="alt-color api apilevel-21" >


<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#APPWIDGET_SERVICE">APPWIDGET_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/appwidget/AppWidgetManager.html">AppW
idgetManager</a></code> for accessing AppWidgets.

</td>
</tr>
<tr class=" api apilevel-19" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#APP_OPS_SERVICE">APP_OPS_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/app/AppOpsManager.html">AppOpsManager
</a></code> for tracking application operations
on the device.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#AUDIO_SERVICE">AUDIO_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/media/AudioManager.html">AudioManager
</a></code> for handling management of volume,
ringer modes and audio routing.

</td>
</tr>
<tr class=" api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html

">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BATTERY_SERVICE">BATTERY_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/os/BatteryManager.html">BatteryManage
r</a></code> for managing battery state.

</td>
</tr>
<tr class="alt-color api apilevel-14" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BIND_ABOVE_CLIENT">BIND_ABOVE_CLIENT</a></td>
<td class="jd-descrcol" width="100%">
Flag for <code><a href="../../../reference/android/content/Context.htm
l#bindService(android.content.Intent, android.content.ServiceConnection, int)">b
indService(Intent, ServiceConnection, int)</a></code>: indicates that the client
application
binding to this service considers the service to be more important than
the app itself.

</td>
</tr>
<tr class=" api apilevel-14" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BIND_ADJUST_WITH_ACTIVITY">BIND_ADJUST_WITH_ACTIVITY</a></td>
<td class="jd-descrcol" width="100%">
Flag for <code><a href="../../../reference/android/content/Context.htm
l#bindService(android.content.Intent, android.content.ServiceConnection, int)">b
indService(Intent, ServiceConnection, int)</a></code>: If binding from an activi
ty, allow the
target service's process importance to be raised based on whether the
activity is visible to the user, regardless whether another flag is
used to reduce the amount that the client process's overall importance
is used to impact it.

</td>
</tr>
<tr class="alt-color api apilevel-14" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BIND_ALLOW_OOM_MANAGEMENT">BIND_ALLOW_OOM_MANAGEMENT</a></td>
<td class="jd-descrcol" width="100%">
Flag for <code><a href="../../../reference/android/content/Context.htm

l#bindService(android.content.Intent, android.content.ServiceConnection, int)">b


indService(Intent, ServiceConnection, int)</a></code>: allow the process hosting
the bound
service to go through its normal memory management.

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BIND_AUTO_CREATE">BIND_AUTO_CREATE</a></td>
<td class="jd-descrcol" width="100%">
Flag for <code><a href="../../../reference/android/content/Context.htm
l#bindService(android.content.Intent, android.content.ServiceConnection, int)">b
indService(Intent, ServiceConnection, int)</a></code>: automatically create the
service as long
as the binding exists.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BIND_DEBUG_UNBIND">BIND_DEBUG_UNBIND</a></td>
<td class="jd-descrcol" width="100%">
Flag for <code><a href="../../../reference/android/content/Context.htm
l#bindService(android.content.Intent, android.content.ServiceConnection, int)">b
indService(Intent, ServiceConnection, int)</a></code>: include debugging help fo
r mismatched
calls to unbind.

</td>
</tr>
<tr class=" api apilevel-14" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BIND_IMPORTANT">BIND_IMPORTANT</a></td>
<td class="jd-descrcol" width="100%">
Flag for <code><a href="../../../reference/android/content/Context.htm
l#bindService(android.content.Intent, android.content.ServiceConnection, int)">b
indService(Intent, ServiceConnection, int)</a></code>: this service is very impo
rtant to
the client, so should be brought to the foreground process level
when the client is.

</td>

</tr>
<tr class="alt-color api apilevel-8" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BIND_NOT_FOREGROUND">BIND_NOT_FOREGROUND</a></td>
<td class="jd-descrcol" width="100%">
Flag for <code><a href="../../../reference/android/content/Context.htm
l#bindService(android.content.Intent, android.content.ServiceConnection, int)">b
indService(Intent, ServiceConnection, int)</a></code>: don't allow this binding
to raise
the target service's process to the foreground scheduling priority.

</td>
</tr>
<tr class=" api apilevel-14" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BIND_WAIVE_PRIORITY">BIND_WAIVE_PRIORITY</a></td>
<td class="jd-descrcol" width="100%">
Flag for <code><a href="../../../reference/android/content/Context.htm
l#bindService(android.content.Intent, android.content.ServiceConnection, int)">b
indService(Intent, ServiceConnection, int)</a></code>: don't impact the scheduli
ng or
memory management priority of the target service's hosting process.

</td>
</tr>
<tr class="alt-color api apilevel-18" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#BLUETOOTH_SERVICE">BLUETOOTH_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/bluetooth/BluetoothManager.html">Blue
toothManager</a></code> for using Bluetooth.

</td>
</tr>
<tr class=" api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CAMERA_SERVICE">CAMERA_SERVICE</a></td>

<td class="jd-descrcol" width="100%">


Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/hardware/camera2/CameraManager.html">
CameraManager</a></code> for interacting with
camera devices.

</td>
</tr>
<tr class="alt-color api apilevel-19" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CAPTIONING_SERVICE">CAPTIONING_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/view/accessibility/CaptioningManager.
html">CaptioningManager</a></code> for obtaining
captioning properties and listening for changes in captioning
preferences.

</td>
</tr>
<tr class=" api apilevel-23" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CARRIER_CONFIG_SERVICE">CARRIER_CONFIG_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/telephony/CarrierConfigManager.html">
CarrierConfigManager</a></code> for reading carrier configuration values.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CLIPBOARD_SERVICE">CLIPBOARD_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to

retrieve a
<code><a href="../../../reference/android/text/ClipboardManager.html">Clipboard
Manager</a></code> for accessing and modifying
<code><a href="../../../reference/android/content/ClipboardManager.html">Clipbo
ardManager</a></code> for accessing and modifying
the contents of the global clipboard.

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CONNECTIVITY_SERVICE">CONNECTIVITY_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/net/ConnectivityManager.ht
ml">ConnectivityManager</a></code> for handling management of
network connections.

</td>
</tr>
<tr class="alt-color api apilevel-19" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CONSUMER_IR_SERVICE">CONSUMER_IR_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/hardware/ConsumerIrManager.html">Cons
umerIrManager</a></code> for transmitting infrared
signals from the device.

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CONTEXT_IGNORE_SECURITY">CONTEXT_IGNORE_SECURITY</a></td>
<td class="jd-descrcol" width="100%">
Flag for use with <code><a href="../../../reference/android/content/Co
ntext.html#createPackageContext(java.lang.String, int)">createPackageContext(Str
ing, int)</a></code>: ignore any security
restrictions on the Context being requested, allowing it to always
be loaded.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CONTEXT_INCLUDE_CODE">CONTEXT_INCLUDE_CODE</a></td>
<td class="jd-descrcol" width="100%">
Flag for use with <code><a href="../../../reference/android/content/Co
ntext.html#createPackageContext(java.lang.String, int)">createPackageContext(Str
ing, int)</a></code>: include the application
code with the context.

</td>
</tr>
<tr class=" api apilevel-4" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#CONTEXT_RESTRICTED">CONTEXT_RESTRICTED</a></td>
<td class="jd-descrcol" width="100%">
Flag for use with <code><a href="../../../reference/android/content/Co
ntext.html#createPackageContext(java.lang.String, int)">createPackageContext(Str
ing, int)</a></code>: a restricted context may
disable specific features.

</td>
</tr>
<tr class="alt-color api apilevel-8" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#DEVICE_POLICY_SERVICE">DEVICE_POLICY_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/app/admin/DevicePolicyManager.html">D
evicePolicyManager</a></code> for working with global
device policy management.

</td>
</tr>
<tr class=" api apilevel-17" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html

">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#DISPLAY_SERVICE">DISPLAY_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/hardware/display/DisplayManager.html"
>DisplayManager</a></code> for interacting with display devices.

</td>
</tr>
<tr class="alt-color api apilevel-9" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#DOWNLOAD_SERVICE">DOWNLOAD_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/app/DownloadManager.html">DownloadMan
ager</a></code> for requesting HTTP downloads.

</td>
</tr>
<tr class=" api apilevel-8" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#DROPBOX_SERVICE">DROPBOX_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/os/DropBoxManager.html">DropBoxManage
r</a></code> instance for recording
diagnostic logs.

</td>
</tr>
<tr class="alt-color api apilevel-23" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#FINGERPRINT_SERVICE">FINGERPRINT_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm

l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/hardware/fingerprint/FingerprintManag
er.html">FingerprintManager</a></code> for handling management
of fingerprints.

</td>
</tr>
<tr class=" api apilevel-3" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#INPUT_METHOD_SERVICE">INPUT_METHOD_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/view/inputmethod/InputMethodManager.h
tml">InputMethodManager</a></code> for accessing input
methods.

</td>
</tr>
<tr class="alt-color api apilevel-16" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#INPUT_SERVICE">INPUT_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/hardware/input/InputManager.html">Inp
utManager</a></code> for interacting with input devices.

</td>
</tr>
<tr class=" api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#JOB_SCHEDULER_SERVICE">JOB_SCHEDULER_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/app/job/JobScheduler.html"
>JobScheduler</a></code> instance for managing occasional
background tasks.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#KEYGUARD_SERVICE">KEYGUARD_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/app/NotificationManager.html">Notific
ationManager</a></code> for controlling keyguard.

</td>
</tr>
<tr class=" api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#LAUNCHER_APPS_SERVICE">LAUNCHER_APPS_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/content/pm/LauncherApps.html">Launche
rApps</a></code> for querying and monitoring launchable apps across
profiles of a user.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#LAYOUT_INFLATER_SERVICE">LAYOUT_INFLATER_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/view/LayoutInflater.html">LayoutInfla
ter</a></code> for inflating layout resources in this
context.

</td>

</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#LOCATION_SERVICE">LOCATION_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/location/LocationManager.h
tml">LocationManager</a></code> for controlling location
updates.

</td>
</tr>
<tr class="alt-color api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MEDIA_PROJECTION_SERVICE">MEDIA_PROJECTION_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/media/projection/MediaProj
ectionManager.html">MediaProjectionManager</a></code> instance for managing
media projection sessions.

</td>
</tr>
<tr class=" api apilevel-16" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MEDIA_ROUTER_SERVICE">MEDIA_ROUTER_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/media/MediaRouter.html">MediaRouter</
a></code> for controlling and managing
routing of media.

</td>
</tr>
<tr class="alt-color api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html

">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MEDIA_SESSION_SERVICE">MEDIA_SESSION_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/media/session/MediaSessionManager.htm
l">MediaSessionManager</a></code> for managing media Sessions.

</td>
</tr>
<tr class=" api apilevel-23" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MIDI_SERVICE">MIDI_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/media/midi/MidiManager.html">MidiMana
ger</a></code> for accessing the MIDI service.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MODE_APPEND">MODE_APPEND</a></td>
<td class="jd-descrcol" width="100%">
File creation mode: for use with <code><a href="../../../reference/and
roid/content/Context.html#openFileOutput(java.lang.String, int)">openFileOutput(
String, int)</a></code>, if the file
already exists then write data to the end of the existing file
instead of erasing it.

</td>
</tr>
<tr class=" api apilevel-16" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MODE_ENABLE_WRITE_AHEAD_LOGGING">MODE_ENABLE_WRITE_AHEAD_LOGGING</a></td
>
<td class="jd-descrcol" width="100%">
Database open flag: when set, the database is opened with write-ahead
logging enabled by default.

</td>
</tr>
<tr class="alt-color api apilevel-11" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MODE_MULTI_PROCESS">MODE_MULTI_PROCESS</a></td>
<td class="jd-descrcol" width="100%">
<em>
This constant was deprecated
in API level 23.
MODE_MULTI_PROCESS does not work reliably in
some versions of Android, and furthermore does not provide any
mechanism for reconciling concurrent modifications across
processes. Applications should not attempt to use it. Instead,
they should use an explicit cross-process data management
approach such as <code><a href="../../../reference/android/content/ContentProvi
der.html">ContentProvider</a></code>.
</em>

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MODE_PRIVATE">MODE_PRIVATE</a></td>
<td class="jd-descrcol" width="100%">
File creation mode: the default mode, where the created file can only
be accessed by the calling application (or all applications sharing the
same user ID).

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MODE_WORLD_READABLE">MODE_WORLD_READABLE</a></td>
<td class="jd-descrcol" width="100%">
<em>
This constant was deprecated
in API level 17.
Creating world-readable files is very dangerous, and likely
to cause security holes in applications. It is strongly discouraged;
instead, applications should use more formal mechanism for interactions
such as <code><a href="../../../reference/android/content/ContentProvider.html"
>ContentProvider</a></code>, <code><a href="../../../reference/android/content/B
roadcastReceiver.html">BroadcastReceiver</a></code>, and
<code><a href="../../../reference/android/app/Service.html">Service</a></code>.
There are no guarantees that this

access mode will remain on a file, such as when it goes through a


backup and restore.
File creation mode: allow all other applications to have read access
to the created file.</em>

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#MODE_WORLD_WRITEABLE">MODE_WORLD_WRITEABLE</a></td>
<td class="jd-descrcol" width="100%">
<em>
This constant was deprecated
in API level 17.
Creating world-writable files is very dangerous, and likely
to cause security holes in applications. It is strongly discouraged;
instead, applications should use more formal mechanism for interactions
such as <code><a href="../../../reference/android/content/ContentProvider.html"
>ContentProvider</a></code>, <code><a href="../../../reference/android/content/B
roadcastReceiver.html">BroadcastReceiver</a></code>, and
<code><a href="../../../reference/android/app/Service.html">Service</a></code>.
There are no guarantees that this
access mode will remain on a file, such as when it goes through a
backup and restore.
File creation mode: allow all other applications to have write access
to the created file.</em>

</td>
</tr>
<tr class="alt-color api apilevel-23" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#NETWORK_STATS_SERVICE">NETWORK_STATS_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/app/usage/NetworkStatsMana
ger.html">NetworkStatsManager</a></code> for querying network usage stats.

</td>
</tr>
<tr class=" api apilevel-10" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#NFC_SERVICE">NFC_SERVICE</a></td>

<td class="jd-descrcol" width="100%">


Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/nfc/NfcManager.html">NfcManager</a></
code> for using NFC.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#NOTIFICATION_SERVICE">NOTIFICATION_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/app/NotificationManager.html">Notific
ationManager</a></code> for informing the user of
background events.

</td>
</tr>
<tr class=" api apilevel-16" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#NSD_SERVICE">NSD_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/net/nsd/NsdManager.html">N
sdManager</a></code> for handling management of network service
discovery

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#POWER_SERVICE">POWER_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/os/PowerManager.html">PowerManager</a

></code> for controlling power management,


including "wake locks," which let you keep the device on while
you're running long tasks.

</td>
</tr>
<tr class=" api apilevel-19" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#PRINT_SERVICE">PRINT_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
<code><a href="../../../reference/android/print/PrintManager.html">Pri
ntManager</a></code> for printing and managing
printers and print tasks.

</td>
</tr>
<tr class="alt-color api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#RESTRICTIONS_SERVICE">RESTRICTIONS_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/content/RestrictionsManager.html">Res
trictionsManager</a></code> for retrieving application restrictions
and requesting permissions for restricted operations.

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#SEARCH_SERVICE">SEARCH_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/app/SearchManager.html">Se
archManager</a></code> for handling searches.

</td>
</tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#SENSOR_SERVICE">SENSOR_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/hardware/SensorManager.htm
l">SensorManager</a></code> for accessing sensors.

</td>
</tr>
<tr class=" api apilevel-9" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#STORAGE_SERVICE">STORAGE_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/os/storage/StorageManager.
html">StorageManager</a></code> for accessing system storage
functions.

</td>
</tr>
<tr class="alt-color api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#TELECOM_SERVICE">TELECOM_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/telecom/TelecomManager.html">TelecomM
anager</a></code> to manage telecom-related features
of the device.

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte

xt.html#TELEPHONY_SERVICE">TELEPHONY_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/telephony/TelephonyManager.html">Tele
phonyManager</a></code> for handling management the
telephony features of the device.

</td>
</tr>
<tr class="alt-color api apilevel-22" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#TELEPHONY_SUBSCRIPTION_SERVICE">TELEPHONY_SUBSCRIPTION_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/telephony/SubscriptionManager.html">S
ubscriptionManager</a></code> for handling management the
telephony subscriptions of the device.

</td>
</tr>
<tr class=" api apilevel-14" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#TEXT_SERVICES_MANAGER_SERVICE">TEXT_SERVICES_MANAGER_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/view/textservice/TextServicesManager.
html">TextServicesManager</a></code> for accessing
text services.

</td>
</tr>
<tr class="alt-color api apilevel-21" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#TV_INPUT_SERVICE">TV_INPUT_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm

l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/media/tv/TvInputManager.html">TvInput
Manager</a></code> for interacting with TV inputs
on the device.

</td>
</tr>
<tr class=" api apilevel-8" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#UI_MODE_SERVICE">UI_MODE_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/app/UiModeManager.html">UiModeManager
</a></code> for controlling UI modes.

</td>
</tr>
<tr class="alt-color api apilevel-22" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#USAGE_STATS_SERVICE">USAGE_STATS_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/app/usage/UsageStatsManage
r.html">UsageStatsManager</a></code> for querying device usage stats.

</td>
</tr>
<tr class=" api apilevel-12" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#USB_SERVICE">USB_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/hardware/usb/UsbManager.ht
ml">UsbManager</a></code> for access to USB devices (as a USB host)
and for controlling this device's behavior as a USB device.

</td>
</tr>
<tr class="alt-color api apilevel-17" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#USER_SERVICE">USER_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/os/UserManager.html">UserManager</a><
/code> for managing users on devices that support multiple users.

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#VIBRATOR_SERVICE">VIBRATOR_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/os/Vibrator.html">Vibrator
</a></code> for interacting with the vibration hardware.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#WALLPAPER_SERVICE">WALLPAPER_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
com.android.server.WallpaperService for accessing wallpapers.

</td>
</tr>
<tr class=" api apilevel-14" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>

<td class="jd-linkcol"><a href="../../../reference/android/content/Conte


xt.html#WIFI_P2P_SERVICE">WIFI_P2P_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/net/wifi/p2p/WifiP2pManage
r.html">WifiP2pManager</a></code> for handling management of
Wi-Fi peer-to-peer connections.

</td>
</tr>
<tr class="alt-color api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#WIFI_SERVICE">WIFI_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a <code><a href="../../../reference/android/net/wifi/WifiManager.html"
>WifiManager</a></code> for handling management of
Wi-Fi access.

</td>
</tr>
<tr class=" api apilevel-1" >
<td class="jd-typecol"><a href="../../../reference/java/lang/String.html
">String</a></td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Conte
xt.html#WINDOW_SERVICE">WINDOW_SERVICE</a></td>
<td class="jd-descrcol" width="100%">
Use with <code><a href="../../../reference/android/content/Context.htm
l#getSystemService(java.lang.Class<T>)">getSystemService(Class<T>)</a></code> to
retrieve a
<code><a href="../../../reference/android/view/WindowManager.html">WindowManage
r</a></code> for accessing the system's window
manager.

</td>
</tr>
</table>
</div>
</div>
</td></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-constan
ts-android.content.ComponentCallbacks2" class="jd-expando-trigger closed"
><img id="inherited-constants-android.content.ComponentCallbacks2-trig
ger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>From interface
<a href="../../../reference/android/content/ComponentCallbacks2.html">android.co
ntent.ComponentCallbacks2</a>
<div id="inherited-constants-android.content.ComponentCallbacks2">
<div id="inherited-constants-android.content.ComponentCallbacks2-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-constants-android.content.ComponentCallbacks2-summary" styl
e="display: none;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-14" >


<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Compo
nentCallbacks2.html#TRIM_MEMORY_BACKGROUND">TRIM_MEMORY_BACKGROUND</a></td>
<td class="jd-descrcol" width="100%">
Level for <code><a href="../../../reference/android/content/ComponentC
allbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process has
gone on to the
LRU list.

</td>
</tr>
<tr class=" api apilevel-14" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Compo
nentCallbacks2.html#TRIM_MEMORY_COMPLETE">TRIM_MEMORY_COMPLETE</a></td>
<td class="jd-descrcol" width="100%">
Level for <code><a href="../../../reference/android/content/ComponentC
allbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is n
earing the end
of the background LRU list, and if more memory isn't found soon it will
be killed.

</td>
</tr>
<tr class="alt-color api apilevel-14" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Compo

nentCallbacks2.html#TRIM_MEMORY_MODERATE">TRIM_MEMORY_MODERATE</a></td>
<td class="jd-descrcol" width="100%">
Level for <code><a href="../../../reference/android/content/ComponentC
allbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is a
round the middle
of the background LRU list; freeing memory can help the system keep
other processes running later in the list for better overall performance.

</td>
</tr>
<tr class=" api apilevel-16" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Compo
nentCallbacks2.html#TRIM_MEMORY_RUNNING_CRITICAL">TRIM_MEMORY_RUNNING_CRITICAL</
a></td>
<td class="jd-descrcol" width="100%">
Level for <code><a href="../../../reference/android/content/ComponentC
allbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is n
ot an expendable
background process, but the device is running extremely low on memory
and is about to not be able to keep any background processes running.

</td>
</tr>
<tr class="alt-color api apilevel-16" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Compo
nentCallbacks2.html#TRIM_MEMORY_RUNNING_LOW">TRIM_MEMORY_RUNNING_LOW</a></td>
<td class="jd-descrcol" width="100%">
Level for <code><a href="../../../reference/android/content/ComponentC
allbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is n
ot an expendable
background process, but the device is running low on memory.

</td>
</tr>
<tr class=" api apilevel-16" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Compo
nentCallbacks2.html#TRIM_MEMORY_RUNNING_MODERATE">TRIM_MEMORY_RUNNING_MODERATE</
a></td>
<td class="jd-descrcol" width="100%">
Level for <code><a href="../../../reference/android/content/ComponentC
allbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is n
ot an expendable
background process, but the device is running moderately low on memory.

</td>
</tr>
<tr class="alt-color api apilevel-14" >
<td class="jd-typecol">int</td>
<td class="jd-linkcol"><a href="../../../reference/android/content/Compo
nentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN">TRIM_MEMORY_UI_HIDDEN</a></td>
<td class="jd-descrcol" width="100%">
Level for <code><a href="../../../reference/android/content/ComponentC
allbacks2.html#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process had
been showing
a user interface, and is no longer doing so.

</td>
</tr>
</table>
</div>
</div>
</td></tr>

</table>

<!-- ======== CONSTRUCTOR SUMMARY ======== -->


<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructor
s</th></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#InputMethodService()">InputMethodService</a></span>(
)</nobr>

</td></tr>

</table>

<!-- ========== METHOD SUMMARY =========== -->


<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</
th></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#enableHardwareAcceleration()">enableHardwareAccelera
tion</a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 21.
Starting in API 21, hardware acceleration is always enabled
on capable devices.
</em>

</div>
</td></tr>

<tr class=" api apilevel-11" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getBackDisposition()">getBackDisposition</a></span>(

)</nobr>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getCandidatesHiddenVisibility()">getCandidatesHidden
Visibility</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the visibility mode (either <code><a href="../../../reference/
android/view/View.html#INVISIBLE">View.INVISIBLE</a></code>
or <code><a href="../../../reference/android/view/View.html#GONE">View.GONE</a>
</code>) of the candidates view when it is not
shown.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/view/inputmethod/InputBinding.ht
ml">InputBinding</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getCurrentInputBinding()">getCurrentInputBinding</a>
</span>()</nobr>
<div class="jd-descrdiv">
Return the currently active InputBinding for the input method, or
null if there is none.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/view/inputmethod/InputConnection
.html">InputConnection</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getCurrentInputConnection()">getCurrentInputConnecti
on</a></span>()</nobr>
<div class="jd-descrdiv">
Retrieve the currently active InputConnection that is bound to
the input method, or null if there is none.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/view/inputmethod/EditorInfo.html
">EditorInfo</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getCurrentInputEditorInfo()">getCurrentInputEditorIn
fo</a></span>()</nobr>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getCurrentInputStarted()">getCurrentInputStarted</a>

</span>()</nobr>
</td></tr>

<tr class=" api apilevel-21" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getInputMethodWindowRecommendedHeight()">getInputMet
hodWindowRecommendedHeight</a></span>()</nobr>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/view/LayoutInflater.html">Layout
Inflater</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getLayoutInflater()">getLayoutInflater</a></span>()<
/nobr>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getMaxWidth()">getMaxWidth</a></span>()</nobr>
<div class="jd-descrdiv">
Return the maximum width, in pixels, available the input method.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/CharSequence.html">CharSequenc
e</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getTextForImeAction(int)">getTextForImeAction</a></s
pan>(int imeOptions)</nobr>
<div class="jd-descrdiv">
Return text that can be used as a button label for the given
<code><a href="../../../reference/android/view/inputmethod/EditorInfo.html#imeO
ptions">EditorInfo.imeOptions</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/app/Dialog.html">Dialog</a></nob
r>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#getWindow()">getWindow</a></span>()</nobr>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#hideStatusIcon()">hideStatusIcon</a></span>()</nobr>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#hideWindow()">hideWindow</a></span>()</nobr>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#isExtractViewShown()">isExtractViewShown</a></span>(
)</nobr>
<div class="jd-descrdiv">
Return whether the fullscreen extract view is shown.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#isFullscreenMode()">isFullscreenMode</a></span>()</n
obr>
<div class="jd-descrdiv">
Return whether the input method is <em>currently</em> running in
fullscreen mode.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#isInputViewShown()">isInputViewShown</a></span>()</n
obr>
<div class="jd-descrdiv">
Return whether the soft input view is <em>currently</em> shown to the
user.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#isShowInputRequested()">isShowInputRequested</a></sp
an>()</nobr>
<div class="jd-descrdiv">
Returns true if we have been asked to show our input view.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onAppPrivateCommand(java.lang.String, android.os.Bun
dle)">onAppPrivateCommand</a></span>(<a href="../../../reference/java/lang/Strin
g.html">String</a> action, <a href="../../../reference/android/os/Bundle.html">B
undle</a> data)</nobr>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onBindInput()">onBindInput</a></span>()</nobr>
<div class="jd-descrdiv">
Called when a new client has bound to the input method.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onComputeInsets(android.inputmethodservice.InputMeth
odService.Insets)">onComputeInsets</a></span>(<a href="../../../reference/androi
d/inputmethodservice/InputMethodService.Insets.html">InputMethodService.Insets</
a> outInsets)</nobr>
<div class="jd-descrdiv">
Compute the interesting insets into your UI.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onConfigurationChanged(android.content.res.Configura
tion)">onConfigurationChanged</a></span>(<a href="../../../reference/android/con
tent/res/Configuration.html">Configuration</a> newConfig)</nobr>
<div class="jd-descrdiv">
Take care of handling configuration changes.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onConfigureWindow(android.view.Window, boolean, bool
ean)">onConfigureWindow</a></span>(<a href="../../../reference/android/view/Wind
ow.html">Window</a> win, boolean isFullscreen, boolean isCandidatesOnly)</nobr>

<div class="jd-descrdiv">
Update the given window's parameters for the given mode.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onCreate()">onCreate</a></span>()</nobr>
<div class="jd-descrdiv">
Called by the system when the service is first created.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/view/View.html">View</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onCreateCandidatesView()">onCreateCandidatesView</a>
</span>()</nobr>
<div class="jd-descrdiv">
Create and return the view hierarchy used to show candidates.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/view/View.html">View</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onCreateExtractTextView()">onCreateExtractTextView</
a></span>()</nobr>
<div class="jd-descrdiv">
Called by the framework to create the layout for showing extacted text
.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/inputmethodservice/AbstractInput
MethodService.AbstractInputMethodImpl.html">AbstractInputMethodService.AbstractI
nputMethodImpl</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onCreateInputMethodInterface()">onCreateInputMethodI
nterface</a></span>()</nobr>
<div class="jd-descrdiv">
Implement to return our standard <code><a href="../../../reference/and
roid/inputmethodservice/InputMethodService.InputMethodImpl.html">InputMethodServ
ice.InputMethodImpl</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/inputmethodservice/AbstractInput
MethodService.AbstractInputMethodSessionImpl.html">AbstractInputMethodService.Ab
stractInputMethodSessionImpl</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onCreateInputMethodSessionInterface()">onCreateInput
MethodSessionInterface</a></span>()</nobr>
<div class="jd-descrdiv">
Implement to return our standard <code><a href="../../../reference/and
roid/inputmethodservice/InputMethodService.InputMethodSessionImpl.html">InputMet
hodService.InputMethodSessionImpl</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/view/View.html">View</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onCreateInputView()">onCreateInputView</a></span>()<
/nobr>
<div class="jd-descrdiv">
Create and return the view hierarchy used for the input area (such as
a soft keyboard).

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>

<td class="jd-linkcol" width="100%"><nobr>


<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onDestroy()">onDestroy</a></span>()</nobr>
<div class="jd-descrdiv">
Called by the system to notify a Service that it is no longer used and
is being removed.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onDisplayCompletions(android.view.inputmethod.Comple
tionInfo[])">onDisplayCompletions</a></span>(<a href="../../../reference/android
/view/inputmethod/CompletionInfo.html">CompletionInfo[]</a> completions)</nobr>
<div class="jd-descrdiv">
Called when the application has reported auto-completion candidates th
at
it would like to have the input method displayed.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onEvaluateFullscreenMode()">onEvaluateFullscreenMode
</a></span>()</nobr>
<div class="jd-descrdiv">
Override this to control when the input method should run in

fullscreen mode.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onEvaluateInputViewShown()">onEvaluateInputViewShown
</a></span>()</nobr>
<div class="jd-descrdiv">
Override this to control when the soft input area should be shown to
the user.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onExtractTextContextMenuItem(int)">onExtractTextCont
extMenuItem</a></span>(int id)</nobr>
<div class="jd-descrdiv">
This is called when the user has selected a context menu item from the
extracted text view, when running in fullscreen mode.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onExtractedCursorMovement(int, int)">onExtractedCurs
orMovement</a></span>(int dx, int dy)</nobr>
<div class="jd-descrdiv">
This is called when the user has performed a cursor movement in the
extracted text view, when it is running in fullscreen mode.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onExtractedSelectionChanged(int, int)">onExtractedSe
lectionChanged</a></span>(int start, int end)</nobr>
<div class="jd-descrdiv">
This is called when the user has moved the cursor in the extracted
text view, when running in fullsreen mode.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onExtractedTextClicked()">onExtractedTextClicked</a>
</span>()</nobr>
<div class="jd-descrdiv">
This is called when the user has clicked on the extracted text view,
when running in fullscreen mode.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onExtractingInputChanged(android.view.inputmethod.Ed
itorInfo)">onExtractingInputChanged</a></span>(<a href="../../../reference/andro
id/view/inputmethod/EditorInfo.html">EditorInfo</a> ei)</nobr>
<div class="jd-descrdiv">
This is called when, while currently displayed in extract mode, the
current input target changes.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onFinishCandidatesView(boolean)">onFinishCandidatesV
iew</a></span>(boolean finishingInput)</nobr>

<div class="jd-descrdiv">
Called when the candidates view is being hidden from the user.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onFinishInput()">onFinishInput</a></span>()</nobr>
<div class="jd-descrdiv">
Called to inform the input method that text input has finished in
the last editor.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onFinishInputView(boolean)">onFinishInputView</a></s
pan>(boolean finishingInput)</nobr>
<div class="jd-descrdiv">
Called when the input view is being hidden from the user.

</div>
</td></tr>

<tr class=" api apilevel-17" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onGenericMotionEvent(android.view.MotionEvent)">onGe
nericMotionEvent</a></span>(<a href="../../../reference/android/view/MotionEvent
.html">MotionEvent</a> event)</nobr>
<div class="jd-descrdiv">
Override this to intercept generic motion events before they are
processed by the application.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onInitializeInterface()">onInitializeInterface</a></
span>()</nobr>
<div class="jd-descrdiv">
This is a hook that subclasses can use to perform initialization of
their interface.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onKeyDown(int, android.view.KeyEvent)">onKeyDown</a>
</span>(int keyCode, <a href="../../../reference/android/view/KeyEvent.html">Key
Event</a> event)</nobr>
<div class="jd-descrdiv">
Override this to intercept key down events before they are processed b
y the
application.

</div>
</td></tr>

<tr class="alt-color api apilevel-5" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onKeyLongPress(int, android.view.KeyEvent)">onKeyLon
gPress</a></span>(int keyCode, <a href="../../../reference/android/view/KeyEvent
.html">KeyEvent</a> event)</nobr>
<div class="jd-descrdiv">
Default implementation of <code><a href="../../../reference/android/vi
ew/KeyEvent.Callback.html#onKeyLongPress(int, android.view.KeyEvent)">KeyEvent.C
allback.onKeyLongPress()</a></code>: always returns false (doesn't handle
the event).

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onKeyMultiple(int, int, android.view.KeyEvent)">onKe
yMultiple</a></span>(int keyCode, int count, <a href="../../../reference/android
/view/KeyEvent.html">KeyEvent</a> event)</nobr>
<div class="jd-descrdiv">
Override this to intercept special key multiple events before they are
processed by the
application.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onKeyUp(int, android.view.KeyEvent)">onKeyUp</a></sp
an>(int keyCode, <a href="../../../reference/android/view/KeyEvent.html">KeyEven
t</a> event)</nobr>
<div class="jd-descrdiv">
Override this to intercept key up events before they are processed by
the
application.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onShowInputRequested(int, boolean)">onShowInputReque

sted</a></span>(int flags, boolean configChange)</nobr>


<div class="jd-descrdiv">
The system has decided that it may be time to show your input method.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onStartCandidatesView(android.view.inputmethod.Edito
rInfo, boolean)">onStartCandidatesView</a></span>(<a href="../../../reference/an
droid/view/inputmethod/EditorInfo.html">EditorInfo</a> info, boolean restarting)
</nobr>
<div class="jd-descrdiv">
Called when only the candidates view has been shown for showing
processing as the user enters text through a hard keyboard.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onStartInput(android.view.inputmethod.EditorInfo, bo
olean)">onStartInput</a></span>(<a href="../../../reference/android/view/inputme
thod/EditorInfo.html">EditorInfo</a> attribute, boolean restarting)</nobr>
<div class="jd-descrdiv">
Called to inform the input method that text input has started in an
editor.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onStartInputView(android.view.inputmethod.EditorInfo
, boolean)">onStartInputView</a></span>(<a href="../../../reference/android/view
/inputmethod/EditorInfo.html">EditorInfo</a> info, boolean restarting)</nobr>
<div class="jd-descrdiv">
Called when the input view is being shown and input has started on
a new editor.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onTrackballEvent(android.view.MotionEvent)">onTrackb
allEvent</a></span>(<a href="../../../reference/android/view/MotionEvent.html">M
otionEvent</a> event)</nobr>
<div class="jd-descrdiv">
Override this to intercept trackball motion events before they are
processed by the application.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onUnbindInput()">onUnbindInput</a></span>()</nobr>
<div class="jd-descrdiv">
Called when the previous bound client is no longer associated
with the input method.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onUpdateCursor(android.graphics.Rect)">onUpdateCurso
r</a></span>(<a href="../../../reference/android/graphics/Rect.html">Rect</a> ne
wCursor)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 21.
Use {#link onUpdateCursorAnchorInfo(CursorAnchorInfo)} instead.
</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-21" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onUpdateCursorAnchorInfo(android.view.inputmethod.Cu
rsorAnchorInfo)">onUpdateCursorAnchorInfo</a></span>(<a href="../../../reference
/android/view/inputmethod/CursorAnchorInfo.html">CursorAnchorInfo</a> cursorAnch
orInfo)</nobr>
<div class="jd-descrdiv">
Called when the application has reported a new location of its text in
sertion point and
characters in the composition string.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onUpdateExtractedText(int, android.view.inputmethod.
ExtractedText)">onUpdateExtractedText</a></span>(int token, <a href="../../../re
ference/android/view/inputmethod/ExtractedText.html">ExtractedText</a> text)</no
br>
<div class="jd-descrdiv">
Called when the application has reported new extracted text to be show
n
due to changes in its current text state.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onUpdateExtractingViews(android.view.inputmethod.Edi
torInfo)">onUpdateExtractingViews</a></span>(<a href="../../../reference/android
/view/inputmethod/EditorInfo.html">EditorInfo</a> ei)</nobr>
<div class="jd-descrdiv">
Called when the fullscreen-mode extracting editor info has changed,
to update the state of its UI such as the action buttons shown.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onUpdateExtractingVisibility(android.view.inputmetho
d.EditorInfo)">onUpdateExtractingVisibility</a></span>(<a href="../../../referen
ce/android/view/inputmethod/EditorInfo.html">EditorInfo</a> ei)</nobr>
<div class="jd-descrdiv">
Called when the fullscreen-mode extracting editor info has changed,
to determine whether the extracting (extract text and candidates) portion
of the UI should be shown.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>

<span class="sympad"><a href="../../../reference/android/inputmethodserv


ice/InputMethodService.html#onUpdateSelection(int, int, int, int, int, int)">onU
pdateSelection</a></span>(int oldSelStart, int oldSelEnd, int newSelStart, int n
ewSelEnd, int candidatesStart, int candidatesEnd)</nobr>
<div class="jd-descrdiv">
Called when the application has reported a new selection region of
the text.

</div>
</td></tr>

<tr class=" api apilevel-14" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onViewClicked(boolean)">onViewClicked</a></span>(boo
lean focusChanged)</nobr>
<div class="jd-descrdiv">
Called when the user tapped or clicked a text view.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onWindowHidden()">onWindowHidden</a></span>()</nobr>
<div class="jd-descrdiv">
Called when the input method window has been hidden from the user,
after previously being visible.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onWindowShown()">onWindowShown</a></span>()</nobr>
<div class="jd-descrdiv">
Called when the input method window has been shown to the user, after
previously not being visible.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#requestHideSelf(int)">requestHideSelf</a></span>(int
flags)</nobr>
<div class="jd-descrdiv">
Close this input method's soft input area, removing it from the displa
y.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#sendDefaultEditorAction(boolean)">sendDefaultEditorA
ction</a></span>(boolean fromEnterKey)</nobr>
<div class="jd-descrdiv">
Ask the input target to execute its default action via
<code><a href="../../../reference/android/view/inputmethod/InputConnection.html
#performEditorAction(int)">InputConnection.performEditorAction()</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#sendDownUpKeyEvents(int)">sendDownUpKeyEvents</a></s
pan>(int keyEventCode)</nobr>
<div class="jd-descrdiv">
Send the given key event code (as defined by <code><a href="../../../r
eference/android/view/KeyEvent.html">KeyEvent</a></code>) to the
current input connection is a key down + key up event pair.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#sendKeyChar(char)">sendKeyChar</a></span>(char charC
ode)</nobr>
<div class="jd-descrdiv">
Send the given UTF-16 character to the current input connection.

</div>
</td></tr>

<tr class="alt-color api apilevel-11" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#setBackDisposition(int)">setBackDisposition</a></spa
n>(int disposition)</nobr>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#setCandidatesView(android.view.View)">setCandidatesV
iew</a></span>(<a href="../../../reference/android/view/View.html">View</a> view
)</nobr>
<div class="jd-descrdiv">
Replaces the current candidates view with a new one.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#setCandidatesViewShown(boolean)">setCandidatesViewSh
own</a></span>(boolean shown)</nobr>
<div class="jd-descrdiv">
Controls the visibility of the candidates display area.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#setExtractView(android.view.View)">setExtractView</a
></span>(<a href="../../../reference/android/view/View.html">View</a> view)</nob
r>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#setExtractViewShown(boolean)">setExtractViewShown</a
></span>(boolean shown)</nobr>
<div class="jd-descrdiv">

Controls the visibility of the extracted text area.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#setInputView(android.view.View)">setInputView</a></s
pan>(<a href="../../../reference/android/view/View.html">View</a> view)</nobr>
<div class="jd-descrdiv">
Replaces the current input view with a new one.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#setTheme(int)">setTheme</a></span>(int theme)</nobr>
<div class="jd-descrdiv">
You can call this to customize the theme used by your IME's window.

</div>
</td></tr>

<tr class=" api apilevel-3" >

<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#showStatusIcon(int)">showStatusIcon</a></span>(int i
conResId)</nobr>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#showWindow(boolean)">showWindow</a></span>(boolean s
howInput)</nobr>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#switchInputMethod(java.lang.String)">switchInputMeth
od</a></span>(<a href="../../../reference/java/lang/String.html">String</a> id)<
/nobr>
<div class="jd-descrdiv">
Force switch to a new input method, as identified by <var>id</var>.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#updateFullscreenMode()">updateFullscreenMode</a></sp
an>()</nobr>
<div class="jd-descrdiv">
Re-evaluate whether the input method should be running in fullscreen
mode, and update its UI if this has changed since the last time it
was evaluated.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#updateInputViewShown()">updateInputViewShown</a></sp
an>()</nobr>
<div class="jd-descrdiv">
Re-evaluate whether the soft input area should currently be shown, and
update its UI if this has changed since the last time it
was evaluated.

</div>
</td></tr>

</table>

<!-- ========== METHOD SUMMARY =========== -->


<table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Method
s</th></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#dump(java.io.FileDescriptor, java.io.PrintWriter, ja
va.lang.String[])">dump</a></span>(<a href="../../../reference/java/io/FileDescr
iptor.html">FileDescriptor</a> fd, <a href="../../../reference/java/io/PrintWrit
er.html">PrintWriter</a> fout, <a href="../../../reference/java/lang/String.html
">String[]</a> args)</nobr>
<div class="jd-descrdiv">
Performs a dump of the InputMethodService's internal state.

</div>
</td></tr>

<tr class=" api apilevel-11" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onCurrentInputMethodSubtypeChanged(android.view.inpu
tmethod.InputMethodSubtype)">onCurrentInputMethodSubtypeChanged</a></span>(<a hr
ef="../../../reference/android/view/inputmethod/InputMethodSubtype.html">InputMe
thodSubtype</a> newSubtype)</nobr>
<div class="jd-descrdiv">
Called when the subtype was changed.

</div>
</td></tr>

</table>

<!-- ========== METHOD SUMMARY =========== -->


<table id="inhmethods" class="jd-sumtable"><tr><th>
<a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)"
>[Expand]</a>
<div style="clear:left;">Inherited Methods</div></th></tr>
<tr class="api apilevel-" >
<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods
-android.inputmethodservice.AbstractInputMethodService" class="jd-expando-trigge
r closed"
><img id="inherited-methods-android.inputmethodservice.AbstractInputMe
thodService-trigger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>
From class
<a href="../../../reference/android/inputmethodservice/AbstractInputMethodServ
ice.html">android.inputmethodservice.AbstractInputMethodService</a>
<div id="inherited-methods-android.inputmethodservice.AbstractInputMethodService
">
<div id="inherited-methods-android.inputmethodservice.AbstractInputMethodServi
ce-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-methods-android.inputmethodservice.AbstractInputMethodServi
ce-summary" style="display: none;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/AbstractInputMethodService.html#dump(java.io.FileDescriptor, java.io.PrintWr
iter, java.lang.String[])">dump</a></span>(<a href="../../../reference/java/io/F
ileDescriptor.html">FileDescriptor</a> fd, <a href="../../../reference/java/io/P
rintWriter.html">PrintWriter</a> fout, <a href="../../../reference/java/lang/Str
ing.html">String[]</a> args)</nobr>
<div class="jd-descrdiv">

Implement this to handle <code><a href="../../../reference/android/os/


Binder.html#dump(java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[]
)">Binder.dump()</a></code>
calls on your input method.

</div>
</td></tr>

<tr class=" api apilevel-5" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/view/KeyEvent.DispatcherState.ht
ml">KeyEvent.DispatcherState</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/AbstractInputMethodService.html#getKeyDispatcherState()">getKeyDispatcherSta
te</a></span>()</nobr>
<div class="jd-descrdiv">
Return the global <code><a href="../../../reference/android/view/KeyEv
ent.DispatcherState.html">KeyEvent.DispatcherState</a></code>
for used for processing events from the target application.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/android/os/IBinder.html">IBinder</a></no
br>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/AbstractInputMethodService.html#onBind(android.content.Intent)">onBind</a></
span>(<a href="../../../reference/android/content/Intent.html">Intent</a> intent
)</nobr>
<div class="jd-descrdiv">
Return the communication channel to the service.

</div>
</td></tr>

<tr class=" api apilevel-3" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/inputmethodservice/AbstractInput
MethodService.AbstractInputMethodImpl.html">AbstractInputMethodService.AbstractI
nputMethodImpl</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/AbstractInputMethodService.html#onCreateInputMethodInterface()">onCreateInpu
tMethodInterface</a></span>()</nobr>
<div class="jd-descrdiv">
Called by the framework during initialization, when the InputMethod
interface for this service needs to be created.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/inputmethodservice/AbstractInput
MethodService.AbstractInputMethodSessionImpl.html">AbstractInputMethodService.Ab
stractInputMethodSessionImpl</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/AbstractInputMethodService.html#onCreateInputMethodSessionInterface()">onCre
ateInputMethodSessionInterface</a></span>()</nobr>
<div class="jd-descrdiv">
Called by the framework when a new InputMethodSession interface is
needed for a new client of the input method.

</div>

</td></tr>

<tr class=" api apilevel-17" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/AbstractInputMethodService.html#onGenericMotionEvent(android.view.MotionEven
t)">onGenericMotionEvent</a></span>(<a href="../../../reference/android/view/Mot
ionEvent.html">MotionEvent</a> event)</nobr>
<div class="jd-descrdiv">
Implement this to handle generic motion events on your input method.

</div>
</td></tr>

<tr class="alt-color api apilevel-3" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/inputmethodserv
ice/AbstractInputMethodService.html#onTrackballEvent(android.view.MotionEvent)">
onTrackballEvent</a></span>(<a href="../../../reference/android/view/MotionEvent
.html">MotionEvent</a> event)</nobr>
<div class="jd-descrdiv">
Implement this to handle trackball events on your input method.

</div>
</td></tr>
</table>
</div>
</div>
</td></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods
-android.app.Service" class="jd-expando-trigger closed"
><img id="inherited-methods-android.app.Service-trigger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>
From class
<a href="../../../reference/android/app/Service.html">android.app.Service</a>
<div id="inherited-methods-android.app.Service">
<div id="inherited-methods-android.app.Service-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-methods-android.app.Service-summary" style="display: none;"
>
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#dump(java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[])">dump</a
></span>(<a href="../../../reference/java/io/FileDescriptor.html">FileDescriptor
</a> fd, <a href="../../../reference/java/io/PrintWriter.html">PrintWriter</a> w
riter, <a href="../../../reference/java/lang/String.html">String[]</a> args)</no
br>
<div class="jd-descrdiv">
Print the Service's state into the given stream.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/android/app/Application.html">Applicatio

n</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#getApplication()">getApplication</a></span>()</nobr>
<div class="jd-descrdiv">
Return the application that owns this service.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/os/IBinder.html">IBinder</a></no
br>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onBind(android.content.Intent)">onBind</a></span>(<a href="../../../reference/
android/content/Intent.html">Intent</a> intent)</nobr>
<div class="jd-descrdiv">
Return the communication channel to the service.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChan
ged</a></span>(<a href="../../../reference/android/content/res/Configuration.htm
l">Configuration</a> newConfig)</nobr>
<div class="jd-descrdiv">
Called by the system when the device configuration changes while your

component is running.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onCreate()">onCreate</a></span>()</nobr>
<div class="jd-descrdiv">
Called by the system when the service is first created.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onDestroy()">onDestroy</a></span>()</nobr>
<div class="jd-descrdiv">
Called by the system to notify a Service that it is no longer used and
is being removed.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >

<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onLowMemory()">onLowMemory</a></span>()</nobr>
<div class="jd-descrdiv">
This is called when the overall system is running low on memory, and
actively running processes should trim their memory usage.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onRebind(android.content.Intent)">onRebind</a></span>(<a href="../../../refere
nce/android/content/Intent.html">Intent</a> intent)</nobr>
<div class="jd-descrdiv">
Called when new clients have connected to the service, after it had
previously been notified that all had disconnected in its
<code><a href="../../../reference/android/app/Service.html#onUnbind(android.con
tent.Intent)">onUnbind(Intent)</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onStart(android.content.Intent, int)">onStart</a></span>(<a href="../../../ref
erence/android/content/Intent.html">Intent</a> intent, int startId)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 5.
Implement <code><a href="../../../reference/android/app/Service.html#onStart
Command(android.content.Intent, int, int)">onStartCommand(Intent, int, int)</a><
/code> instead.
</em>

</div>
</td></tr>

<tr class=" api apilevel-5" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onStartCommand(android.content.Intent, int, int)">onStartCommand</a></span>(<a
href="../../../reference/android/content/Intent.html">Intent</a> intent, int fl
ags, int startId)</nobr>
<div class="jd-descrdiv">
Called by the system every time a client explicitly starts the service
by calling
<code><a href="../../../reference/android/content/Context.html#startService(and
roid.content.Intent)">startService(Intent)</a></code>, providing the arguments i
t supplied and a
unique integer token representing the start request.

</div>
</td></tr>

<tr class="alt-color api apilevel-14" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onTaskRemoved(android.content.Intent)">onTaskRemoved</a></span>(<a href="../..
/../reference/android/content/Intent.html">Intent</a> rootIntent)</nobr>
<div class="jd-descrdiv">
This is called if the service is currently running and the user has
removed a task that comes from the service's application.

</div>
</td></tr>

<tr class=" api apilevel-14" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onTrimMemory(int)">onTrimMemory</a></span>(int level)</nobr>
<div class="jd-descrdiv">
Called when the operating system has determined that it is a good
time for a process to trim unneeded memory from its process.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#onUnbind(android.content.Intent)">onUnbind</a></span>(<a href="../../../refere
nce/android/content/Intent.html">Intent</a> intent)</nobr>
<div class="jd-descrdiv">

Called when all clients have disconnected from a particular interface


published by the service.

</div>
</td></tr>

<tr class=" api apilevel-5" >


<td class="jd-typecol"><nobr>
final
void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#startForeground(int, android.app.Notification)">startForeground</a></span>(int
id, <a href="../../../reference/android/app/Notification.html">Notification</a>
notification)</nobr>
<div class="jd-descrdiv">
Make this service run in the foreground, supplying the ongoing
notification to be shown to the user while in this state.

</div>
</td></tr>

<tr class="alt-color api apilevel-5" >


<td class="jd-typecol"><nobr>
final
void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#stopForeground(boolean)">stopForeground</a></span>(boolean removeNotification)
</nobr>
<div class="jd-descrdiv">
Remove this service from foreground state, allowing it to be killed if
more memory is needed.

</div>

</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final
void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#stopSelf()">stopSelf</a></span>()</nobr>
<div class="jd-descrdiv">
Stop the service, if it was previously started.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
final
void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#stopSelf(int)">stopSelf</a></span>(int startId)</nobr>
<div class="jd-descrdiv">
Old version of <code><a href="../../../reference/android/app/Service.h
tml#stopSelfResult(int)">stopSelfResult(int)</a></code> that doesn't return a re
sult.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/app/Service.htm
l#stopSelfResult(int)">stopSelfResult</a></span>(int startId)</nobr>
<div class="jd-descrdiv">
Stop the service if the most recent time it was started was
<var>startId</var>.

</div>
</td></tr>
</table>
</div>
</div>
</td></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods
-android.content.ContextWrapper" class="jd-expando-trigger closed"
><img id="inherited-methods-android.content.ContextWrapper-trigger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>
From class
<a href="../../../reference/android/content/ContextWrapper.html">android.conte
nt.ContextWrapper</a>
<div id="inherited-methods-android.content.ContextWrapper">
<div id="inherited-methods-android.content.ContextWrapper-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-methods-android.content.ContextWrapper-summary" style="disp
lay: none;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#attachBaseContext(android.content.Context)">attachBaseContext</a></

span>(<a href="../../../reference/android/content/Context.html">Context</a> base


)</nobr>
<div class="jd-descrdiv">
Set the base context for this ContextWrapper.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#bindService(android.content.Intent, android.content.ServiceConnecti
on, int)">bindService</a></span>(<a href="../../../reference/android/content/Int
ent.html">Intent</a> service, <a href="../../../reference/android/content/Servic
eConnection.html">ServiceConnection</a> conn, int flags)</nobr>
<div class="jd-descrdiv">
Connect to an application service, creating it if needed.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#checkCallingOrSelfPermission(java.lang.String)">checkCallingOrSelfP
ermission</a></span>(<a href="../../../reference/java/lang/String.html">String</
a> permission)</nobr>
<div class="jd-descrdiv">
Determine whether the calling process of an IPC <em>or you</em> have b
een
granted a particular permission.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#checkCallingOrSelfUriPermission(android.net.Uri, int)">checkCalling
OrSelfUriPermission</a></span>(<a href="../../../reference/android/net/Uri.html"
>Uri</a> uri, int modeFlags)</nobr>
<div class="jd-descrdiv">
Determine whether the calling process of an IPC <em>or you</em> has be
en granted
permission to access a specific URI.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#checkCallingPermission(java.lang.String)">checkCallingPermission</a
></span>(<a href="../../../reference/java/lang/String.html">String</a> permissio
n)</nobr>
<div class="jd-descrdiv">
Determine whether the calling process of an IPC you are handling has b
een
granted a particular permission.

</div>

</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#checkCallingUriPermission(android.net.Uri, int)">checkCallingUriPer
mission</a></span>(<a href="../../../reference/android/net/Uri.html">Uri</a> uri
, int modeFlags)</nobr>
<div class="jd-descrdiv">
Determine whether the calling process and user ID has been
granted permission to access a specific URI.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#checkPermission(java.lang.String, int, int)">checkPermission</a></s
pan>(<a href="../../../reference/java/lang/String.html">String</a> permission, i
nt pid, int uid)</nobr>
<div class="jd-descrdiv">
Determine whether the given permission is allowed for a particular
process and user ID running in the system.

</div>
</td></tr>

<tr class=" api apilevel-23" >

<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#checkSelfPermission(java.lang.String)">checkSelfPermission</a></spa
n>(<a href="../../../reference/java/lang/String.html">String</a> permission)</no
br>
<div class="jd-descrdiv">
Determine whether <em>you</em> have been granted a particular permissi
on.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#checkUriPermission(android.net.Uri, int, int, int)">checkUriPermiss
ion</a></span>(<a href="../../../reference/android/net/Uri.html">Uri</a> uri, in
t pid, int uid, int modeFlags)</nobr>
<div class="jd-descrdiv">
Determine whether a particular process and user ID has been granted
permission to access a specific URI.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#checkUriPermission(android.net.Uri, java.lang.String, java.lang.Str
ing, int, int, int)">checkUriPermission</a></span>(<a href="../../../reference/a
ndroid/net/Uri.html">Uri</a> uri, <a href="../../../reference/java/lang/String.h
tml">String</a> readPermission, <a href="../../../reference/java/lang/String.htm
l">String</a> writePermission, int pid, int uid, int modeFlags)</nobr>
<div class="jd-descrdiv">
Check both a Uri and normal permission.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#clearWallpaper()">clearWallpaper</a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#clea
r()">WallpaperManager.clear()</a></code> instead.
<p>This method requires the caller to hold the permission
<code><a href="../../../reference/android/Manifest.permission.html#SET_WALLPAPE
R">SET_WALLPAPER</a></code>.
</em>

</div>
</td></tr>

<tr class=" api apilevel-17" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#createConfigurationContext(android.content.res.Configuration)">crea
teConfigurationContext</a></span>(<a href="../../../reference/android/content/re
s/Configuration.html">Configuration</a> overrideConfiguration)</nobr>
<div class="jd-descrdiv">
Return a new Context object for the current Context but whose resource
s
are adjusted to match the given Configuration.

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#createDisplayContext(android.view.Display)">createDisplayContext</a
></span>(<a href="../../../reference/android/view/Display.html">Display</a> disp
lay)</nobr>
<div class="jd-descrdiv">
Return a new Context object for the current Context but whose resource
s
are adjusted to match the metrics of the given Display.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#createPackageContext(java.lang.String, int)">createPackageContext</
a></span>(<a href="../../../reference/java/lang/String.html">String</a> packageN
ame, int flags)</nobr>
<div class="jd-descrdiv">
Return a new Context object for the given application name.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/String.html">String[]</a></nob
r>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#databaseList()">databaseList</a></span>()</nobr>
<div class="jd-descrdiv">
Returns an array of strings naming the private databases associated wi
th
this Context's application package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#deleteDatabase(java.lang.String)">deleteDatabase</a></span>(<a href
="../../../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">

Delete an existing private SQLiteDatabase associated with this Context


's
application package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#deleteFile(java.lang.String)">deleteFile</a></span>(<a href="../../
../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Delete the given private file associated with this Context's
application package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#enforceCallingOrSelfPermission(java.lang.String, java.lang.String)"
>enforceCallingOrSelfPermission</a></span>(<a href="../../../reference/java/lang
/String.html">String</a> permission, <a href="../../../reference/java/lang/Strin
g.html">String</a> message)</nobr>
<div class="jd-descrdiv">
If neither you nor the calling process of an IPC you are
handling has been granted a particular permission, throw a
<code><a href="../../../reference/java/lang/SecurityException.html">SecurityExc
eption</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#enforceCallingOrSelfUriPermission(android.net.Uri, int, java.lang.S
tring)">enforceCallingOrSelfUriPermission</a></span>(<a href="../../../reference
/android/net/Uri.html">Uri</a> uri, int modeFlags, <a href="../../../reference/j
ava/lang/String.html">String</a> message)</nobr>
<div class="jd-descrdiv">
If the calling process of an IPC <em>or you</em> has not been
granted permission to access a specific URI, throw <code><a href="../../../refe
rence/java/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#enforceCallingPermission(java.lang.String, java.lang.String)">enfor
ceCallingPermission</a></span>(<a href="../../../reference/java/lang/String.html
">String</a> permission, <a href="../../../reference/java/lang/String.html">Stri
ng</a> message)</nobr>
<div class="jd-descrdiv">
If the calling process of an IPC you are handling has not been
granted a particular permission, throw a <code><a href="../../../reference/java
/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#enforceCallingUriPermission(android.net.Uri, int, java.lang.String)
">enforceCallingUriPermission</a></span>(<a href="../../../reference/android/net
/Uri.html">Uri</a> uri, int modeFlags, <a href="../../../reference/java/lang/Str
ing.html">String</a> message)</nobr>
<div class="jd-descrdiv">
If the calling process and user ID has not been granted
permission to access a specific URI, throw <code><a href="../../../reference/ja
va/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#enforcePermission(java.lang.String, int, int, java.lang.String)">en
forcePermission</a></span>(<a href="../../../reference/java/lang/String.html">St
ring</a> permission, int pid, int uid, <a href="../../../reference/java/lang/Str
ing.html">String</a> message)</nobr>
<div class="jd-descrdiv">
If the given permission is not allowed for a particular process
and user ID running in the system, throw a <code><a href="../../../reference/ja
va/lang/SecurityException.html">SecurityException</a></code>.

</div>

</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#enforceUriPermission(android.net.Uri, int, int, int, java.lang.Stri
ng)">enforceUriPermission</a></span>(<a href="../../../reference/android/net/Uri
.html">Uri</a> uri, int pid, int uid, int modeFlags, <a href="../../../reference
/java/lang/String.html">String</a> message)</nobr>
<div class="jd-descrdiv">
If a particular process and user ID has not been granted
permission to access a specific URI, throw <code><a href="../../../reference/ja
va/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#enforceUriPermission(android.net.Uri, java.lang.String, java.lang.S
tring, int, int, int, java.lang.String)">enforceUriPermission</a></span>(<a href
="../../../reference/android/net/Uri.html">Uri</a> uri, <a href="../../../refere
nce/java/lang/String.html">String</a> readPermission, <a href="../../../referenc
e/java/lang/String.html">String</a> writePermission, int pid, int uid, int modeF
lags, <a href="../../../reference/java/lang/String.html">String</a> message)</no
br>
<div class="jd-descrdiv">
Enforce both a Uri and normal permission.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/String.html">String[]</a></nob
r>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#fileList()">fileList</a></span>()</nobr>
<div class="jd-descrdiv">
Returns an array of strings naming the private files associated with
this Context's application package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getApplicationContext()">getApplicationContext</a></span>()</nobr>
<div class="jd-descrdiv">
Return the context of the single, global Application object of the
current process.

</div>
</td></tr>

<tr class="alt-color api apilevel-4" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/pm/ApplicationInfo.html"
>ApplicationInfo</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getApplicationInfo()">getApplicationInfo</a></span>()</nobr>
<div class="jd-descrdiv">
Return the full application info for this context's package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/res/AssetManager.html">A
ssetManager</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getAssets()">getAssets</a></span>()</nobr>
<div class="jd-descrdiv">
Return an AssetManager instance for your application's package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getBaseContext()">getBaseContext</a></span>()</nobr>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getCacheDir()">getCacheDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the application specific cache directory
on the filesystem.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/ClassLoader.html">ClassLoader<
/a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getClassLoader()">getClassLoader</a></span>()</nobr>
<div class="jd-descrdiv">
Return a class loader you can use to retrieve classes in this package.

</div>
</td></tr>

<tr class=" api apilevel-21" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getCodeCacheDir()">getCodeCacheDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the application specific cache directory
on
the filesystem designed for storing cached code.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/ContentResolver.html">Co
ntentResolver</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getContentResolver()">getContentResolver</a></span>()</nobr>
<div class="jd-descrdiv">
Return a ContentResolver instance for your application's package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getDatabasePath(java.lang.String)">getDatabasePath</a></span>(<a hr
ef="../../../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Returns the absolute path on the filesystem where a database created w

ith
<code><a href="../../../reference/android/content/Context.html#openOrCreateData
base(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory
)">openOrCreateDatabase(String, int, SQLiteDatabase.CursorFactory)</a></code> is
stored.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getDir(java.lang.String, int)">getDir</a></span>(<a href="../../../
reference/java/lang/String.html">String</a> name, int mode)</nobr>
<div class="jd-descrdiv">
Retrieve, creating if needed, a new directory in which the application
can place its own custom data files.

</div>
</td></tr>

<tr class=" api apilevel-8" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getExternalCacheDir()">getExternalCacheDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the directory on the primary external fil
esystem
(that is somewhere on <code><a href="../../../reference/android/os/Environment.
html#getExternalStorageDirectory()">Environment.getExternalStorageDirectory()</a
></code> where the application can
place cache files it owns.

</div>
</td></tr>

<tr class="alt-color api apilevel-19" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File[]</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getExternalCacheDirs()">getExternalCacheDirs</a></span>()</nobr>
<div class="jd-descrdiv">
Returns absolute paths to application-specific directories on all
external storage devices where the application can place cache files it
owns.

</div>
</td></tr>

<tr class=" api apilevel-8" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getExternalFilesDir(java.lang.String)">getExternalFilesDir</a></spa
n>(<a href="../../../reference/java/lang/String.html">String</a> type)</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the directory on the primary external fil
esystem
(that is somewhere on <code><a href="../../../reference/android/os/Environment.
html#getExternalStorageDirectory()">Environment.getExternalStorageDirectory()</a
></code>) where the application can
place persistent files it owns.

</div>

</td></tr>

<tr class="alt-color api apilevel-19" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File[]</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getExternalFilesDirs(java.lang.String)">getExternalFilesDirs</a></s
pan>(<a href="../../../reference/java/lang/String.html">String</a> type)</nobr>
<div class="jd-descrdiv">
Returns absolute paths to application-specific directories on all
external storage devices where the application can place persistent files
it owns.

</div>
</td></tr>

<tr class=" api apilevel-21" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File[]</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getExternalMediaDirs()">getExternalMediaDirs</a></span>()</nobr>
<div class="jd-descrdiv">
Returns absolute paths to application-specific directories on all
external storage devices where the application can place media files.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getFileStreamPath(java.lang.String)">getFileStreamPath</a></span>(<
a href="../../../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Returns the absolute path on the filesystem where a file created with
<code><a href="../../../reference/android/content/Context.html#openFileOutput(j
ava.lang.String, int)">openFileOutput(String, int)</a></code> is stored.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getFilesDir()">getFilesDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the directory on the filesystem where
files created with <code><a href="../../../reference/android/content/Context.ht
ml#openFileOutput(java.lang.String, int)">openFileOutput(String, int)</a></code>
are stored.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/os/Looper.html">Looper</a></nobr
>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getMainLooper()">getMainLooper</a></span>()</nobr>
<div class="jd-descrdiv">
Return the Looper for the main thread of the current process.

</div>
</td></tr>

<tr class=" api apilevel-21" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getNoBackupFilesDir()">getNoBackupFilesDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the directory on the filesystem similar t
o
<code><a href="../../../reference/android/content/Context.html#getFilesDir()">g
etFilesDir()</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-11" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getObbDir()">getObbDir</a></span>()</nobr>
<div class="jd-descrdiv">
Return the primary external storage directory where this application's
OBB
files (if there are any) can be found.

</div>
</td></tr>

<tr class=" api apilevel-19" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/File.html">File[]</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getObbDirs()">getObbDirs</a></span>()</nobr>
<div class="jd-descrdiv">
Returns absolute paths to application-specific directories on all
external storage devices where the application's OBB files (if there are
any) can be found.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getPackageCodePath()">getPackageCodePath</a></span>()</nobr>
<div class="jd-descrdiv">
Return the full path to this context's primary Android package.

</div>
</td></tr>

<tr class=" api apilevel-1" >

<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/pm/PackageManager.html">
PackageManager</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getPackageManager()">getPackageManager</a></span>()</nobr>
<div class="jd-descrdiv">
Return PackageManager instance to find global package information.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getPackageName()">getPackageName</a></span>()</nobr>
<div class="jd-descrdiv">
Return the name of this application's package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getPackageResourcePath()">getPackageResourcePath</a></span>()</nobr

>
<div class="jd-descrdiv">
Return the full path to this context's primary Android package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/res/Resources.html">Reso
urces</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getResources()">getResources</a></span>()</nobr>
<div class="jd-descrdiv">
Return a Resources instance for your application's package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/SharedPreferences.html">
SharedPreferences</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getSharedPreferences(java.lang.String, int)">getSharedPreferences</
a></span>(<a href="../../../reference/java/lang/String.html">String</a> name, in
t mode)</nobr>
<div class="jd-descrdiv">
Retrieve and hold the contents of the preferences file 'name', returni
ng
a SharedPreferences through which you can retrieve and modify its
values.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/Object.html">Object</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getSystemService(java.lang.String)">getSystemService</a></span>(<a
href="../../../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Return the handle to a system-level service by name.

</div>
</td></tr>

<tr class=" api apilevel-23" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getSystemServiceName(java.lang.Class<?>)">getSystemServiceName</a><
/span>(<a href="../../../reference/java/lang/Class.html">Class</a>&lt;?&gt; serv
iceClass)</nobr>
<div class="jd-descrdiv">
Gets the name of the system-level service that is represented by the s
pecified class.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/res/Resources.Theme.html
">Resources.Theme</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getTheme()">getTheme</a></span>()</nobr>
<div class="jd-descrdiv">
Return the Theme object associated with this Context.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/graphics/drawable/Drawable.html"
>Drawable</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getWallpaper()">getWallpaper</a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#getD
rawable()">WallpaperManager.get()</a></code> instead.
</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getWallpaperDesiredMinimumHeight()">getWallpaperDesiredMinimumHeigh
t</a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#getD
esiredMinimumHeight()">WallpaperManager.getDesiredMinimumHeight()</a></code> ins
tead.
</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#getWallpaperDesiredMinimumWidth()">getWallpaperDesiredMinimumWidth<
/a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#getD
esiredMinimumWidth()">WallpaperManager.getDesiredMinimumWidth()</a></code> inste
ad.
</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#grantUriPermission(java.lang.String, android.net.Uri, int)">grantUr
iPermission</a></span>(<a href="../../../reference/java/lang/String.html">String
</a> toPackage, <a href="../../../reference/android/net/Uri.html">Uri</a> uri, i
nt modeFlags)</nobr>
<div class="jd-descrdiv">
Grant permission to access a specific Uri to another package, regardle
ss
of whether that package has general permission to access the Uri's
content provider.

</div>
</td></tr>

<tr class=" api apilevel-4" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#isRestricted()">isRestricted</a></span>()</nobr>
<div class="jd-descrdiv">
Indicates whether this Context is restricted.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/FileInputStream.html">FileInputS
tream</a></nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#openFileInput(java.lang.String)">openFileInput</a></span>(<a href="
../../../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Open a private file associated with this Context's application package
for reading.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/io/FileOutputStream.html">FileOutpu
tStream</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#openFileOutput(java.lang.String, int)">openFileOutput</a></span>(<a
href="../../../reference/java/lang/String.html">String</a> name, int mode)</nob
r>
<div class="jd-descrdiv">
Open a private file associated with this Context's application package
for writing.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/database/sqlite/SQLiteDatabase.h
tml">SQLiteDatabase</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite
.SQLiteDatabase.CursorFactory)">openOrCreateDatabase</a></span>(<a href="../../.

./reference/java/lang/String.html">String</a> name, int mode, <a href="../../../


reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html">SQLiteDatab
ase.CursorFactory</a> factory)</nobr>
<div class="jd-descrdiv">
Open a new private SQLiteDatabase associated with this Context's
application package.

</div>
</td></tr>

<tr class=" api apilevel-11" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/database/sqlite/SQLiteDatabase.h
tml">SQLiteDatabase</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite
.SQLiteDatabase.CursorFactory, android.database.DatabaseErrorHandler)">openOrCre
ateDatabase</a></span>(<a href="../../../reference/java/lang/String.html">String
</a> name, int mode, <a href="../../../reference/android/database/sqlite/SQLiteD
atabase.CursorFactory.html">SQLiteDatabase.CursorFactory</a> factory, <a href=".
./../../reference/android/database/DatabaseErrorHandler.html">DatabaseErrorHandl
er</a> errorHandler)</nobr>
<div class="jd-descrdiv">
Open a new private SQLiteDatabase associated with this Context's
application package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/graphics/drawable/Drawable.html"
>Drawable</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context

Wrapper.html#peekWallpaper()">peekWallpaper</a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#peek
Drawable()">WallpaperManager.peek()</a></code> instead.
</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/Intent.html">Intent</a><
/nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content
.IntentFilter)">registerReceiver</a></span>(<a href="../../../reference/android/
content/BroadcastReceiver.html">BroadcastReceiver</a> receiver, <a href="../../.
./reference/android/content/IntentFilter.html">IntentFilter</a> filter)</nobr>
<div class="jd-descrdiv">
Register a BroadcastReceiver to be run in the main activity thread.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/Intent.html">Intent</a><
/nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content
.IntentFilter, java.lang.String, android.os.Handler)">registerReceiver</a></span

>(<a href="../../../reference/android/content/BroadcastReceiver.html">BroadcastR
eceiver</a> receiver, <a href="../../../reference/android/content/IntentFilter.h
tml">IntentFilter</a> filter, <a href="../../../reference/java/lang/String.html"
>String</a> broadcastPermission, <a href="../../../reference/android/os/Handler.
html">Handler</a> scheduler)</nobr>
<div class="jd-descrdiv">
Register to receive intent broadcasts, to run in the context of
<var>scheduler</var>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#removeStickyBroadcast(android.content.Intent)">removeStickyBroadcas
t</a></span>(<a href="../../../reference/android/content/Intent.html">Intent</a>
intent)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.User
Handle)">removeStickyBroadcastAsUser</a></span>(<a href="../../../reference/andr
oid/content/Intent.html">Intent</a> intent, <a href="../../../reference/android/
os/UserHandle.html">UserHandle</a> user)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#revokeUriPermission(android.net.Uri, int)">revokeUriPermission</a><
/span>(<a href="../../../reference/android/net/Uri.html">Uri</a> uri, int modeFl
ags)</nobr>
<div class="jd-descrdiv">
Remove all permissions to access a particular content provider Uri
that were previously added with <code><a href="../../../reference/android/conte
nt/Context.html#grantUriPermission(java.lang.String, android.net.Uri, int)">gran
tUriPermission(String, Uri, int)</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendBroadcast(android.content.Intent)">sendBroadcast</a></span>(<a
href="../../../reference/android/content/Intent.html">Intent</a> intent)</nobr>
<div class="jd-descrdiv">
Broadcast the given intent to all interested BroadcastReceivers.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendBroadcast(android.content.Intent, java.lang.String)">sendBroadc
ast</a></span>(<a href="../../../reference/android/content/Intent.html">Intent</
a> intent, <a href="../../../reference/java/lang/String.html">String</a> receive
rPermission)</nobr>
<div class="jd-descrdiv">
Broadcast the given intent to all interested BroadcastReceivers, allow
ing
an optional required permission to be enforced.

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle)"
>sendBroadcastAsUser</a></span>(<a href="../../../reference/android/content/Inte
nt.html">Intent</a> intent, <a href="../../../reference/android/os/UserHandle.ht
ml">UserHandle</a> user)</nobr>
<div class="jd-descrdiv">
Version of <code><a href="../../../reference/android/content/Context.h
tml#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that
allows you to specify the
user the broadcast will be sent to.

</div>
</td></tr>

<tr class=" api apilevel-17" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle,
java.lang.String)">sendBroadcastAsUser</a></span>(<a href="../../../reference/an
droid/content/Intent.html">Intent</a> intent, <a href="../../../reference/androi
d/os/UserHandle.html">UserHandle</a> user, <a href="../../../reference/java/lang
/String.html">String</a> receiverPermission)</nobr>
<div class="jd-descrdiv">
Version of <code><a href="../../../reference/android/content/Context.h
tml#sendBroadcast(android.content.Intent, java.lang.String)">sendBroadcast(Inten
t, String)</a></code> that allows you to specify the
user the broadcast will be sent to.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, andr
oid.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, androi
d.os.Bundle)">sendOrderedBroadcast</a></span>(<a href="../../../reference/androi
d/content/Intent.html">Intent</a> intent, <a href="../../../reference/java/lang/
String.html">String</a> receiverPermission, <a href="../../../reference/android/
content/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href=".
./../../reference/android/os/Handler.html">Handler</a> scheduler, int initialCod
e, <a href="../../../reference/java/lang/String.html">String</a> initialData, <a
href="../../../reference/android/os/Bundle.html">Bundle</a> initialExtras)</nob
r>
<div class="jd-descrdiv">
Version of <code><a href="../../../reference/android/content/Context.h
tml#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that
allows you to
receive data back from the broadcast.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String)">sen
dOrderedBroadcast</a></span>(<a href="../../../reference/android/content/Intent.
html">Intent</a> intent, <a href="../../../reference/java/lang/String.html">Stri
ng</a> receiverPermission)</nobr>
<div class="jd-descrdiv">
Broadcast the given intent to all interested BroadcastReceivers, deliv
ering
them one at a time to allow more preferred receivers to consume the
broadcast before it is delivered to less preferred receivers.

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserH
andle, java.lang.String, android.content.BroadcastReceiver, android.os.Handler,
int, java.lang.String, android.os.Bundle)">sendOrderedBroadcastAsUser</a></span>
(<a href="../../../reference/android/content/Intent.html">Intent</a> intent, <a
href="../../../reference/android/os/UserHandle.html">UserHandle</a> user, <a hre
f="../../../reference/java/lang/String.html">String</a> receiverPermission, <a h
ref="../../../reference/android/content/BroadcastReceiver.html">BroadcastReceive
r</a> resultReceiver, <a href="../../../reference/android/os/Handler.html">Handl
er</a> scheduler, int initialCode, <a href="../../../reference/java/lang/String.
html">String</a> initialData, <a href="../../../reference/android/os/Bundle.html
">Bundle</a> initialExtras)</nobr>
<div class="jd-descrdiv">
Version of
<code><a href="../../../reference/android/content/Context.html#sendOrderedBroad
cast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver
, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendOrderedBroa
dcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)</a></code
>
that allows you to specify the
user the broadcast will be sent to.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast</a
></span>(<a href="../../../reference/android/content/Intent.html">Intent</a> int
ent)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated

in API level 23.


Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHa
ndle)">sendStickyBroadcastAsUser</a></span>(<a href="../../../reference/android/
content/Intent.html">Intent</a> intent, <a href="../../../reference/android/os/U
serHandle.html">UserHandle</a> user)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class=" api apilevel-5" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.
BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)
">sendStickyOrderedBroadcast</a></span>(<a href="../../../reference/android/cont
ent/Intent.html">Intent</a> intent, <a href="../../../reference/android/content/
BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="../../../
reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a hr
ef="../../../reference/java/lang/String.html">String</a> initialData, <a href=".
./../../reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os
.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.la
ng.String, android.os.Bundle)">sendStickyOrderedBroadcastAsUser</a></span>(<a hr
ef="../../../reference/android/content/Intent.html">Intent</a> intent, <a href="
../../../reference/android/os/UserHandle.html">UserHandle</a> user, <a href="../
../../reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> re
sultReceiver, <a href="../../../reference/android/os/Handler.html">Handler</a> s
cheduler, int initialCode, <a href="../../../reference/java/lang/String.html">St
ring</a> initialData, <a href="../../../reference/android/os/Bundle.html">Bundle
</a> initialExtras)</nobr>
<div class="jd-descrdiv">
<em>

This method was deprecated


in API level 23.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#setTheme(int)">setTheme</a></span>(int resid)</nobr>
<div class="jd-descrdiv">
Set the base theme for this context.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#setWallpaper(android.graphics.Bitmap)">setWallpaper</a></span>(<a h
ref="../../../reference/android/graphics/Bitmap.html">Bitmap</a> bitmap)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated

in API level 23.


Use <code><a href="../../../reference/android/app/WallpaperManager.html#setB
itmap(android.graphics.Bitmap)">WallpaperManager.set()</a></code> instead.
<p>This method requires the caller to hold the permission
<code><a href="../../../reference/android/Manifest.permission.html#SET_WALLPAPE
R">SET_WALLPAPER</a></code>.
</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#setWallpaper(java.io.InputStream)">setWallpaper</a></span>(<a href=
"../../../reference/java/io/InputStream.html">InputStream</a> data)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 23.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#setS
tream(java.io.InputStream)">WallpaperManager.set()</a></code> instead.
<p>This method requires the caller to hold the permission
<code><a href="../../../reference/android/Manifest.permission.html#SET_WALLPAPE
R">SET_WALLPAPER</a></code>.
</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-11" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context

Wrapper.html#startActivities(android.content.Intent[])">startActivities</a></spa
n>(<a href="../../../reference/android/content/Intent.html">Intent[]</a> intents
)</nobr>
<div class="jd-descrdiv">
Same as <code><a href="../../../reference/android/content/Context.html
#startActivities(android.content.Intent[], android.os.Bundle)">startActivities(I
ntent[], Bundle)</a></code> with no options
specified.

</div>
</td></tr>

<tr class=" api apilevel-16" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#startActivities(android.content.Intent[], android.os.Bundle)">start
Activities</a></span>(<a href="../../../reference/android/content/Intent.html">I
ntent[]</a> intents, <a href="../../../reference/android/os/Bundle.html">Bundle<
/a> options)</nobr>
<div class="jd-descrdiv">
Launch multiple new activities.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#startActivity(android.content.Intent)">startActivity</a></span>(<a
href="../../../reference/android/content/Intent.html">Intent</a> intent)</nobr>
<div class="jd-descrdiv">

Same as <code><a href="../../../reference/android/content/Context.html


#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent,
Bundle)</a></code> with no options
specified.

</div>
</td></tr>

<tr class=" api apilevel-16" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#startActivity(android.content.Intent, android.os.Bundle)">startActi
vity</a></span>(<a href="../../../reference/android/content/Intent.html">Intent<
/a> intent, <a href="../../../reference/android/os/Bundle.html">Bundle</a> optio
ns)</nobr>
<div class="jd-descrdiv">
Launch a new activity.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#startInstrumentation(android.content.ComponentName, java.lang.Strin
g, android.os.Bundle)">startInstrumentation</a></span>(<a href="../../../referen
ce/android/content/ComponentName.html">ComponentName</a> className, <a href="../
../../reference/java/lang/String.html">String</a> profileFile, <a href="../../..
/reference/android/os/Bundle.html">Bundle</a> arguments)</nobr>
<div class="jd-descrdiv">
Start executing an <code><a href="../../../reference/android/app/Instr
umentation.html">Instrumentation</a></code> class.

</div>
</td></tr>

<tr class=" api apilevel-16" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#startIntentSender(android.content.IntentSender, android.content.Int
ent, int, int, int, android.os.Bundle)">startIntentSender</a></span>(<a href="..
/../../reference/android/content/IntentSender.html">IntentSender</a> intent, <a
href="../../../reference/android/content/Intent.html">Intent</a> fillInIntent, i
nt flagsMask, int flagsValues, int extraFlags, <a href="../../../reference/andro
id/os/Bundle.html">Bundle</a> options)</nobr>
<div class="jd-descrdiv">
Like <code><a href="../../../reference/android/content/Context.html#st
artActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bu
ndle)</a></code>, but taking a IntentSender
to start.

</div>
</td></tr>

<tr class="alt-color api apilevel-5" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#startIntentSender(android.content.IntentSender, android.content.Int
ent, int, int, int)">startIntentSender</a></span>(<a href="../../../reference/an
droid/content/IntentSender.html">IntentSender</a> intent, <a href="../../../refe
rence/android/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int f
lagsValues, int extraFlags)</nobr>
<div class="jd-descrdiv">
Same as <code><a href="../../../reference/android/content/Context.html

#startIntentSender(android.content.IntentSender, android.content.Intent, int, in


t, int, android.os.Bundle)">startIntentSender(IntentSender, Intent, int, int, in
t, Bundle)</a></code>
with no options specified.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/android/content/ComponentName.html">Comp
onentName</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#startService(android.content.Intent)">startService</a></span>(<a hr
ef="../../../reference/android/content/Intent.html">Intent</a> service)</nobr>
<div class="jd-descrdiv">
Request that a given application service be started.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#stopService(android.content.Intent)">stopService</a></span>(<a href
="../../../reference/android/content/Intent.html">Intent</a> name)</nobr>
<div class="jd-descrdiv">
Request that a given application service be stopped.

</div>

</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#unbindService(android.content.ServiceConnection)">unbindService</a>
</span>(<a href="../../../reference/android/content/ServiceConnection.html">Serv
iceConnection</a> conn)</nobr>
<div class="jd-descrdiv">
Disconnect from an application service.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
Wrapper.html#unregisterReceiver(android.content.BroadcastReceiver)">unregisterRe
ceiver</a></span>(<a href="../../../reference/android/content/BroadcastReceiver.
html">BroadcastReceiver</a> receiver)</nobr>
<div class="jd-descrdiv">
Unregister a previously registered BroadcastReceiver.

</div>
</td></tr>
</table>
</div>
</div>
</td></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods
-android.content.Context" class="jd-expando-trigger closed"
><img id="inherited-methods-android.content.Context-trigger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>
From class
<a href="../../../reference/android/content/Context.html">android.content.Cont
ext</a>
<div id="inherited-methods-android.content.Context">
<div id="inherited-methods-android.content.Context-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-methods-android.content.Context-summary" style="display: no
ne;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#bindService(android.content.Intent, android.content.ServiceConnection, int
)">bindService</a></span>(<a href="../../../reference/android/content/Intent.htm
l">Intent</a> service, <a href="../../../reference/android/content/ServiceConnec
tion.html">ServiceConnection</a> conn, int flags)</nobr>
<div class="jd-descrdiv">
Connect to an application service, creating it if needed.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#checkCallingOrSelfPermission(java.lang.String)">checkCallingOrSelfPermissi
on</a></span>(<a href="../../../reference/java/lang/String.html">String</a> perm
ission)</nobr>
<div class="jd-descrdiv">
Determine whether the calling process of an IPC <em>or you</em> have b
een
granted a particular permission.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#checkCallingOrSelfUriPermission(android.net.Uri, int)">checkCallingOrSelfU
riPermission</a></span>(<a href="../../../reference/android/net/Uri.html">Uri</a
> uri, int modeFlags)</nobr>
<div class="jd-descrdiv">
Determine whether the calling process of an IPC <em>or you</em> has be
en granted
permission to access a specific URI.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#checkCallingPermission(java.lang.String)">checkCallingPermission</a></span

>(<a href="../../../reference/java/lang/String.html">String</a> permission)</nob


r>
<div class="jd-descrdiv">
Determine whether the calling process of an IPC you are handling has b
een
granted a particular permission.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#checkCallingUriPermission(android.net.Uri, int)">checkCallingUriPermission
</a></span>(<a href="../../../reference/android/net/Uri.html">Uri</a> uri, int m
odeFlags)</nobr>
<div class="jd-descrdiv">
Determine whether the calling process and user ID has been
granted permission to access a specific URI.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#checkPermission(java.lang.String, int, int)">checkPermission</a></span>(<a
href="../../../reference/java/lang/String.html">String</a> permission, int pid,
int uid)</nobr>
<div class="jd-descrdiv">
Determine whether the given permission is allowed for a particular

process and user ID running in the system.

</div>
</td></tr>

<tr class="alt-color api apilevel-23" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#checkSelfPermission(java.lang.String)">checkSelfPermission</a></span>(<a h
ref="../../../reference/java/lang/String.html">String</a> permission)</nobr>
<div class="jd-descrdiv">
Determine whether <em>you</em> have been granted a particular permissi
on.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#checkUriPermission(android.net.Uri, int, int, int)">checkUriPermission</a>
</span>(<a href="../../../reference/android/net/Uri.html">Uri</a> uri, int pid,
int uid, int modeFlags)</nobr>
<div class="jd-descrdiv">
Determine whether a particular process and user ID has been granted
permission to access a specific URI.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#checkUriPermission(android.net.Uri, java.lang.String, java.lang.String, in
t, int, int)">checkUriPermission</a></span>(<a href="../../../reference/android/
net/Uri.html">Uri</a> uri, <a href="../../../reference/java/lang/String.html">St
ring</a> readPermission, <a href="../../../reference/java/lang/String.html">Stri
ng</a> writePermission, int pid, int uid, int modeFlags)</nobr>
<div class="jd-descrdiv">
Check both a Uri and normal permission.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#clearWallpaper()">clearWallpaper</a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 5.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#clea
r()">WallpaperManager.clear()</a></code> instead.
<p>This method requires the caller to hold the permission
<code><a href="../../../reference/android/Manifest.permission.html#SET_WALLPAPE
R">SET_WALLPAPER</a></code>.
</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#createConfigurationContext(android.content.res.Configuration)">createConfi
gurationContext</a></span>(<a href="../../../reference/android/content/res/Confi
guration.html">Configuration</a> overrideConfiguration)</nobr>
<div class="jd-descrdiv">
Return a new Context object for the current Context but whose resource
s
are adjusted to match the given Configuration.

</div>
</td></tr>

<tr class=" api apilevel-17" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#createDisplayContext(android.view.Display)">createDisplayContext</a></span
>(<a href="../../../reference/android/view/Display.html">Display</a> display)</n
obr>
<div class="jd-descrdiv">
Return a new Context object for the current Context but whose resource
s
are adjusted to match the metrics of the given Display.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#createPackageContext(java.lang.String, int)">createPackageContext</a></spa
n>(<a href="../../../reference/java/lang/String.html">String</a> packageName, in
t flags)</nobr>
<div class="jd-descrdiv">
Return a new Context object for the given application name.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/lang/String.html">String[]</a></nob
r>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#databaseList()">databaseList</a></span>()</nobr>
<div class="jd-descrdiv">
Returns an array of strings naming the private databases associated wi
th
this Context's application package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#deleteDatabase(java.lang.String)">deleteDatabase</a></span>(<a href="../..
/../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Delete an existing private SQLiteDatabase associated with this Context
's
application package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#deleteFile(java.lang.String)">deleteFile</a></span>(<a href="../../../refe
rence/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Delete the given private file associated with this Context's
application package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#enforceCallingOrSelfPermission(java.lang.String, java.lang.String)">enforc

eCallingOrSelfPermission</a></span>(<a href="../../../reference/java/lang/String
.html">String</a> permission, <a href="../../../reference/java/lang/String.html"
>String</a> message)</nobr>
<div class="jd-descrdiv">
If neither you nor the calling process of an IPC you are
handling has been granted a particular permission, throw a
<code><a href="../../../reference/java/lang/SecurityException.html">SecurityExc
eption</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#enforceCallingOrSelfUriPermission(android.net.Uri, int, java.lang.String)"
>enforceCallingOrSelfUriPermission</a></span>(<a href="../../../reference/androi
d/net/Uri.html">Uri</a> uri, int modeFlags, <a href="../../../reference/java/lan
g/String.html">String</a> message)</nobr>
<div class="jd-descrdiv">
If the calling process of an IPC <em>or you</em> has not been
granted permission to access a specific URI, throw <code><a href="../../../refe
rence/java/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#enforceCallingPermission(java.lang.String, java.lang.String)">enforceCalli
ngPermission</a></span>(<a href="../../../reference/java/lang/String.html">Strin

g</a> permission, <a href="../../../reference/java/lang/String.html">String</a>


message)</nobr>
<div class="jd-descrdiv">
If the calling process of an IPC you are handling has not been
granted a particular permission, throw a <code><a href="../../../reference/java
/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#enforceCallingUriPermission(android.net.Uri, int, java.lang.String)">enfor
ceCallingUriPermission</a></span>(<a href="../../../reference/android/net/Uri.ht
ml">Uri</a> uri, int modeFlags, <a href="../../../reference/java/lang/String.htm
l">String</a> message)</nobr>
<div class="jd-descrdiv">
If the calling process and user ID has not been granted
permission to access a specific URI, throw <code><a href="../../../reference/ja
va/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#enforcePermission(java.lang.String, int, int, java.lang.String)">enforcePe
rmission</a></span>(<a href="../../../reference/java/lang/String.html">String</a
> permission, int pid, int uid, <a href="../../../reference/java/lang/String.htm
l">String</a> message)</nobr>

<div class="jd-descrdiv">
If the given permission is not allowed for a particular process
and user ID running in the system, throw a <code><a href="../../../reference/ja
va/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#enforceUriPermission(android.net.Uri, int, int, int, java.lang.String)">en
forceUriPermission</a></span>(<a href="../../../reference/android/net/Uri.html">
Uri</a> uri, int pid, int uid, int modeFlags, <a href="../../../reference/java/l
ang/String.html">String</a> message)</nobr>
<div class="jd-descrdiv">
If a particular process and user ID has not been granted
permission to access a specific URI, throw <code><a href="../../../reference/ja
va/lang/SecurityException.html">SecurityException</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#enforceUriPermission(android.net.Uri, java.lang.String, java.lang.String,
int, int, int, java.lang.String)">enforceUriPermission</a></span>(<a href="../..
/../reference/android/net/Uri.html">Uri</a> uri, <a href="../../../reference/jav
a/lang/String.html">String</a> readPermission, <a href="../../../reference/java/
lang/String.html">String</a> writePermission, int pid, int uid, int modeFlags, <
a href="../../../reference/java/lang/String.html">String</a> message)</nobr>

<div class="jd-descrdiv">
Enforce both a Uri and normal permission.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/lang/String.html">String[]</a></nob
r>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#fileList()">fileList</a></span>()</nobr>
<div class="jd-descrdiv">
Returns an array of strings naming the private files associated with
this Context's application package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/Context.html">Context</a
></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getApplicationContext()">getApplicationContext</a></span>()</nobr>
<div class="jd-descrdiv">
Return the context of the single, global Application object of the
current process.

</div>

</td></tr>

<tr class=" api apilevel-4" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/pm/ApplicationInfo.html"
>ApplicationInfo</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getApplicationInfo()">getApplicationInfo</a></span>()</nobr>
<div class="jd-descrdiv">
Return the full application info for this context's package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/res/AssetManager.html">A
ssetManager</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getAssets()">getAssets</a></span>()</nobr>
<div class="jd-descrdiv">
Return an AssetManager instance for your application's package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getCacheDir()">getCacheDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the application specific cache directory
on the filesystem.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/lang/ClassLoader.html">ClassLoader<
/a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getClassLoader()">getClassLoader</a></span>()</nobr>
<div class="jd-descrdiv">
Return a class loader you can use to retrieve classes in this package.

</div>
</td></tr>

<tr class=" api apilevel-21" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getCodeCacheDir()">getCodeCacheDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the application specific cache directory
on

the filesystem designed for storing cached code.

</div>
</td></tr>

<tr class="alt-color api apilevel-23" >


<td class="jd-typecol"><nobr>
final
int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getColor(int)">getColor</a></span>(int id)</nobr>
<div class="jd-descrdiv">
Returns a color associated with a particular resource ID and styled fo
r
the current theme.

</div>
</td></tr>

<tr class=" api apilevel-23" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/android/content/res/ColorStateList.html"
>ColorStateList</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getColorStateList(int)">getColorStateList</a></span>(int id)</nobr>
<div class="jd-descrdiv">
Returns a color state list associated with a particular resource ID an
d
styled for the current theme.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/ContentResolver.html">Co
ntentResolver</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getContentResolver()">getContentResolver</a></span>()</nobr>
<div class="jd-descrdiv">
Return a ContentResolver instance for your application's package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getDatabasePath(java.lang.String)">getDatabasePath</a></span>(<a href="../
../../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Returns the absolute path on the filesystem where a database created w
ith
<code><a href="../../../reference/android/content/Context.html#openOrCreateData
base(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory
)">openOrCreateDatabase(String, int, SQLiteDatabase.CursorFactory)</a></code> is
stored.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getDir(java.lang.String, int)">getDir</a></span>(<a href="../../../referen
ce/java/lang/String.html">String</a> name, int mode)</nobr>
<div class="jd-descrdiv">
Retrieve, creating if needed, a new directory in which the application
can place its own custom data files.

</div>
</td></tr>

<tr class=" api apilevel-21" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/android/graphics/drawable/Drawable.html"
>Drawable</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getDrawable(int)">getDrawable</a></span>(int id)</nobr>
<div class="jd-descrdiv">
Returns a drawable object associated with a particular resource ID and
styled for the current theme.

</div>
</td></tr>

<tr class="alt-color api apilevel-8" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>

<span class="sympad"><a href="../../../reference/android/content/Context


.html#getExternalCacheDir()">getExternalCacheDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the directory on the primary external fil
esystem
(that is somewhere on <code><a href="../../../reference/android/os/Environment.
html#getExternalStorageDirectory()">Environment.getExternalStorageDirectory()</a
></code> where the application can
place cache files it owns.

</div>
</td></tr>

<tr class=" api apilevel-19" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File[]</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getExternalCacheDirs()">getExternalCacheDirs</a></span>()</nobr>
<div class="jd-descrdiv">
Returns absolute paths to application-specific directories on all
external storage devices where the application can place cache files it
owns.

</div>
</td></tr>

<tr class="alt-color api apilevel-8" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getExternalFilesDir(java.lang.String)">getExternalFilesDir</a></span>(<a h
ref="../../../reference/java/lang/String.html">String</a> type)</nobr>
<div class="jd-descrdiv">

Returns the absolute path to the directory on the primary external fil
esystem
(that is somewhere on <code><a href="../../../reference/android/os/Environment.
html#getExternalStorageDirectory()">Environment.getExternalStorageDirectory()</a
></code>) where the application can
place persistent files it owns.

</div>
</td></tr>

<tr class=" api apilevel-19" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File[]</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getExternalFilesDirs(java.lang.String)">getExternalFilesDirs</a></span>(<a
href="../../../reference/java/lang/String.html">String</a> type)</nobr>
<div class="jd-descrdiv">
Returns absolute paths to application-specific directories on all
external storage devices where the application can place persistent files
it owns.

</div>
</td></tr>

<tr class="alt-color api apilevel-21" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File[]</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getExternalMediaDirs()">getExternalMediaDirs</a></span>()</nobr>
<div class="jd-descrdiv">
Returns absolute paths to application-specific directories on all
external storage devices where the application can place media files.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getFileStreamPath(java.lang.String)">getFileStreamPath</a></span>(<a href=
"../../../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Returns the absolute path on the filesystem where a file created with
<code><a href="../../../reference/android/content/Context.html#openFileOutput(j
ava.lang.String, int)">openFileOutput(String, int)</a></code> is stored.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getFilesDir()">getFilesDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the directory on the filesystem where
files created with <code><a href="../../../reference/android/content/Context.ht
ml#openFileOutput(java.lang.String, int)">openFileOutput(String, int)</a></code>
are stored.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/os/Looper.html">Looper</a></nobr
>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getMainLooper()">getMainLooper</a></span>()</nobr>
<div class="jd-descrdiv">
Return the Looper for the main thread of the current process.

</div>
</td></tr>

<tr class="alt-color api apilevel-21" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getNoBackupFilesDir()">getNoBackupFilesDir</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the absolute path to the directory on the filesystem similar t
o
<code><a href="../../../reference/android/content/Context.html#getFilesDir()">g
etFilesDir()</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-11" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getObbDir()">getObbDir</a></span>()</nobr>
<div class="jd-descrdiv">
Return the primary external storage directory where this application's
OBB
files (if there are any) can be found.

</div>
</td></tr>

<tr class="alt-color api apilevel-19" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/File.html">File[]</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getObbDirs()">getObbDirs</a></span>()</nobr>
<div class="jd-descrdiv">
Returns absolute paths to application-specific directories on all
external storage devices where the application's OBB files (if there are
any) can be found.

</div>
</td></tr>

<tr class=" api apilevel-8" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getPackageCodePath()">getPackageCodePath</a></span>()</nobr>
<div class="jd-descrdiv">
Return the full path to this context's primary Android package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/pm/PackageManager.html">
PackageManager</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getPackageManager()">getPackageManager</a></span>()</nobr>
<div class="jd-descrdiv">
Return PackageManager instance to find global package information.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getPackageName()">getPackageName</a></span>()</nobr>
<div class="jd-descrdiv">
Return the name of this application's package.

</div>
</td></tr>

<tr class="alt-color api apilevel-8" >


<td class="jd-typecol"><nobr>

abstract

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getPackageResourcePath()">getPackageResourcePath</a></span>()</nobr>
<div class="jd-descrdiv">
Return the full path to this context's primary Android package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/res/Resources.html">Reso
urces</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getResources()">getResources</a></span>()</nobr>
<div class="jd-descrdiv">
Return a Resources instance for your application's package.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/SharedPreferences.html">
SharedPreferences</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getSharedPreferences(java.lang.String, int)">getSharedPreferences</a></spa

n>(<a href="../../../reference/java/lang/String.html">String</a> name, int mode)


</nobr>
<div class="jd-descrdiv">
Retrieve and hold the contents of the preferences file 'name', returni
ng
a SharedPreferences through which you can retrieve and modify its
values.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getString(int)">getString</a></span>(int resId)</nobr>
<div class="jd-descrdiv">
Returns a localized string from the application's package's
default string table.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getString(int, java.lang.Object...)">getString</a></span>(int resId, <a hr
ef="../../../reference/java/lang/Object.html">Object...</a> formatArgs)</nobr>
<div class="jd-descrdiv">
Returns a localized formatted string from the application's package's
default string table, substituting the format arguments as defined in
<code><a href="../../../reference/java/util/Formatter.html">Formatter</a></code

> and <code><a href="../../../reference/java/lang/String.html#format(java.lang.S


tring, java.lang.Object...)">format(String, Object...)</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-23" >


<td class="jd-typecol"><nobr>
final
&lt;T&gt;
T</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getSystemService(java.lang.Class<T>)">getSystemService</a></span>(<a href=
"../../../reference/java/lang/Class.html">Class</a>&lt;T&gt; serviceClass)</nobr
>
<div class="jd-descrdiv">
Return the handle to a system-level service by class.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/lang/Object.html">Object</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getSystemService(java.lang.String)">getSystemService</a></span>(<a href=".
./../../reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Return the handle to a system-level service by name.

</div>
</td></tr>

<tr class=" api apilevel-23" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getSystemServiceName(java.lang.Class<?>)">getSystemServiceName</a></span>(
<a href="../../../reference/java/lang/Class.html">Class</a>&lt;?&gt; serviceClas
s)</nobr>
<div class="jd-descrdiv">
Gets the name of the system-level service that is represented by the s
pecified class.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/java/lang/CharSequence.html">CharSequenc
e</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getText(int)">getText</a></span>(int resId)</nobr>
<div class="jd-descrdiv">
Return a localized, styled CharSequence from the application's package
's
default string table.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/res/Resources.Theme.html
">Resources.Theme</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getTheme()">getTheme</a></span>()</nobr>
<div class="jd-descrdiv">
Return the Theme object associated with this Context.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/graphics/drawable/Drawable.html"
>Drawable</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getWallpaper()">getWallpaper</a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 5.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#getD
rawable()">WallpaperManager.get()</a></code> instead.
</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>

<td class="jd-linkcol" width="100%"><nobr>


<span class="sympad"><a href="../../../reference/android/content/Context
.html#getWallpaperDesiredMinimumHeight()">getWallpaperDesiredMinimumHeight</a></
span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 5.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#getD
esiredMinimumHeight()">WallpaperManager.getDesiredMinimumHeight()</a></code> ins
tead.
</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#getWallpaperDesiredMinimumWidth()">getWallpaperDesiredMinimumWidth</a></sp
an>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 5.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#getD
esiredMinimumWidth()">WallpaperManager.getDesiredMinimumWidth()</a></code> inste
ad.
</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#grantUriPermission(java.lang.String, android.net.Uri, int)">grantUriPermis
sion</a></span>(<a href="../../../reference/java/lang/String.html">String</a> to
Package, <a href="../../../reference/android/net/Uri.html">Uri</a> uri, int mode
Flags)</nobr>
<div class="jd-descrdiv">
Grant permission to access a specific Uri to another package, regardle
ss
of whether that package has general permission to access the Uri's
content provider.

</div>
</td></tr>

<tr class="alt-color api apilevel-4" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#isRestricted()">isRestricted</a></span>()</nobr>
<div class="jd-descrdiv">
Indicates whether this Context is restricted.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/android/content/res/TypedArray.html">Typ
edArray</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#obtainStyledAttributes(int[])">obtainStyledAttributes</a></span>(int[] att

rs)</nobr>
<div class="jd-descrdiv">
Retrieve styled attribute information in this Context's theme.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/android/content/res/TypedArray.html">Typ
edArray</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#obtainStyledAttributes(android.util.AttributeSet, int[], int, int)">obtain
StyledAttributes</a></span>(<a href="../../../reference/android/util/AttributeSe
t.html">AttributeSet</a> set, int[] attrs, int defStyleAttr, int defStyleRes)</n
obr>
<div class="jd-descrdiv">
Retrieve styled attribute information in this Context's theme.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/android/content/res/TypedArray.html">Typ
edArray</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#obtainStyledAttributes(android.util.AttributeSet, int[])">obtainStyledAttr
ibutes</a></span>(<a href="../../../reference/android/util/AttributeSet.html">At
tributeSet</a> set, int[] attrs)</nobr>
<div class="jd-descrdiv">
Retrieve styled attribute information in this Context's theme.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/android/content/res/TypedArray.html">Typ
edArray</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#obtainStyledAttributes(int, int[])">obtainStyledAttributes</a></span>(int
resid, int[] attrs)</nobr>
<div class="jd-descrdiv">
Retrieve styled attribute information in this Context's theme.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/FileInputStream.html">FileInputS
tream</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#openFileInput(java.lang.String)">openFileInput</a></span>(<a href="../../.
./reference/java/lang/String.html">String</a> name)</nobr>
<div class="jd-descrdiv">
Open a private file associated with this Context's application package
for reading.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/java/io/FileOutputStream.html">FileOutpu
tStream</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#openFileOutput(java.lang.String, int)">openFileOutput</a></span>(<a href="
../../../reference/java/lang/String.html">String</a> name, int mode)</nobr>
<div class="jd-descrdiv">
Open a private file associated with this Context's application package
for writing.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/database/sqlite/SQLiteDatabase.h
tml">SQLiteDatabase</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLite
Database.CursorFactory)">openOrCreateDatabase</a></span>(<a href="../../../refer
ence/java/lang/String.html">String</a> name, int mode, <a href="../../../referen
ce/android/database/sqlite/SQLiteDatabase.CursorFactory.html">SQLiteDatabase.Cur
sorFactory</a> factory)</nobr>
<div class="jd-descrdiv">
Open a new private SQLiteDatabase associated with this Context's
application package.

</div>
</td></tr>

<tr class="alt-color api apilevel-11" >


<td class="jd-typecol"><nobr>

abstract

<a href="../../../reference/android/database/sqlite/SQLiteDatabase.h
tml">SQLiteDatabase</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLite
Database.CursorFactory, android.database.DatabaseErrorHandler)">openOrCreateData
base</a></span>(<a href="../../../reference/java/lang/String.html">String</a> na
me, int mode, <a href="../../../reference/android/database/sqlite/SQLiteDatabase
.CursorFactory.html">SQLiteDatabase.CursorFactory</a> factory, <a href="../../..
/reference/android/database/DatabaseErrorHandler.html">DatabaseErrorHandler</a>
errorHandler)</nobr>
<div class="jd-descrdiv">
Open a new private SQLiteDatabase associated with this Context's
application package.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/graphics/drawable/Drawable.html"
>Drawable</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#peekWallpaper()">peekWallpaper</a></span>()</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 5.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#peek
Drawable()">WallpaperManager.peek()</a></code> instead.
</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-14" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#registerComponentCallbacks(android.content.ComponentCallbacks)">registerCo
mponentCallbacks</a></span>(<a href="../../../reference/android/content/Componen
tCallbacks.html">ComponentCallbacks</a> callback)</nobr>
<div class="jd-descrdiv">
Add a new <code><a href="../../../reference/android/content/ComponentC
allbacks.html">ComponentCallbacks</a></code> to the base application of the
Context, which will be called at the same times as the ComponentCallbacks
methods of activities and other components are called.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/Intent.html">Intent</a><
/nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#registerReceiver(android.content.BroadcastReceiver, android.content.Intent
Filter)">registerReceiver</a></span>(<a href="../../../reference/android/content
/BroadcastReceiver.html">BroadcastReceiver</a> receiver, <a href="../../../refer
ence/android/content/IntentFilter.html">IntentFilter</a> filter)</nobr>
<div class="jd-descrdiv">
Register a BroadcastReceiver to be run in the main activity thread.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/Intent.html">Intent</a><
/nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#registerReceiver(android.content.BroadcastReceiver, android.content.Intent
Filter, java.lang.String, android.os.Handler)">registerReceiver</a></span>(<a hr
ef="../../../reference/android/content/BroadcastReceiver.html">BroadcastReceiver
</a> receiver, <a href="../../../reference/android/content/IntentFilter.html">In
tentFilter</a> filter, <a href="../../../reference/java/lang/String.html">String
</a> broadcastPermission, <a href="../../../reference/android/os/Handler.html">H
andler</a> scheduler)</nobr>
<div class="jd-descrdiv">
Register to receive intent broadcasts, to run in the context of
<var>scheduler</var>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#removeStickyBroadcast(android.content.Intent)">removeStickyBroadcast</a></
span>(<a href="../../../reference/android/content/Intent.html">Intent</a> intent
)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 21.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>

</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)
">removeStickyBroadcastAsUser</a></span>(<a href="../../../reference/android/con
tent/Intent.html">Intent</a> intent, <a href="../../../reference/android/os/User
Handle.html">UserHandle</a> user)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 21.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#revokeUriPermission(android.net.Uri, int)">revokeUriPermission</a></span>(
<a href="../../../reference/android/net/Uri.html">Uri</a> uri, int modeFlags)</n
obr>
<div class="jd-descrdiv">
Remove all permissions to access a particular content provider Uri
that were previously added with <code><a href="../../../reference/android/conte

nt/Context.html#grantUriPermission(java.lang.String, android.net.Uri, int)">gran


tUriPermission(String, Uri, int)</a></code>.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendBroadcast(android.content.Intent, java.lang.String)">sendBroadcast</a>
</span>(<a href="../../../reference/android/content/Intent.html">Intent</a> inte
nt, <a href="../../../reference/java/lang/String.html">String</a> receiverPermis
sion)</nobr>
<div class="jd-descrdiv">
Broadcast the given intent to all interested BroadcastReceivers, allow
ing
an optional required permission to be enforced.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendBroadcast(android.content.Intent)">sendBroadcast</a></span>(<a href=".
./../../reference/android/content/Intent.html">Intent</a> intent)</nobr>
<div class="jd-descrdiv">
Broadcast the given intent to all interested BroadcastReceivers.

</div>

</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle)">sendBr
oadcastAsUser</a></span>(<a href="../../../reference/android/content/Intent.html
">Intent</a> intent, <a href="../../../reference/android/os/UserHandle.html">Use
rHandle</a> user)</nobr>
<div class="jd-descrdiv">
Version of <code><a href="../../../reference/android/content/Context.h
tml#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that
allows you to specify the
user the broadcast will be sent to.

</div>
</td></tr>

<tr class=" api apilevel-17" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.la
ng.String)">sendBroadcastAsUser</a></span>(<a href="../../../reference/android/c
ontent/Intent.html">Intent</a> intent, <a href="../../../reference/android/os/Us
erHandle.html">UserHandle</a> user, <a href="../../../reference/java/lang/String
.html">String</a> receiverPermission)</nobr>
<div class="jd-descrdiv">
Version of <code><a href="../../../reference/android/content/Context.h
tml#sendBroadcast(android.content.Intent, java.lang.String)">sendBroadcast(Inten
t, String)</a></code> that allows you to specify the
user the broadcast will be sent to.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, android.con
tent.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bu
ndle)">sendOrderedBroadcast</a></span>(<a href="../../../reference/android/conte
nt/Intent.html">Intent</a> intent, <a href="../../../reference/java/lang/String.
html">String</a> receiverPermission, <a href="../../../reference/android/content
/BroadcastReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="../../..
/reference/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a h
ref="../../../reference/java/lang/String.html">String</a> initialData, <a href="
../../../reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
<div class="jd-descrdiv">
Version of <code><a href="../../../reference/android/content/Context.h
tml#sendBroadcast(android.content.Intent)">sendBroadcast(Intent)</a></code> that
allows you to
receive data back from the broadcast.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendOrderedBroadcast(android.content.Intent, java.lang.String)">sendOrdere
dBroadcast</a></span>(<a href="../../../reference/android/content/Intent.html">I
ntent</a> intent, <a href="../../../reference/java/lang/String.html">String</a>
receiverPermission)</nobr>
<div class="jd-descrdiv">
Broadcast the given intent to all interested BroadcastReceivers, deliv
ering

them one at a time to allow more preferred receivers to consume the


broadcast before it is delivered to less preferred receivers.

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle,
java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, ja
va.lang.String, android.os.Bundle)">sendOrderedBroadcastAsUser</a></span>(<a hre
f="../../../reference/android/content/Intent.html">Intent</a> intent, <a href=".
./../../reference/android/os/UserHandle.html">UserHandle</a> user, <a href="../.
./../reference/java/lang/String.html">String</a> receiverPermission, <a href="..
/../../reference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> r
esultReceiver, <a href="../../../reference/android/os/Handler.html">Handler</a>
scheduler, int initialCode, <a href="../../../reference/java/lang/String.html">S
tring</a> initialData, <a href="../../../reference/android/os/Bundle.html">Bundl
e</a> initialExtras)</nobr>
<div class="jd-descrdiv">
Version of
<code><a href="../../../reference/android/content/Context.html#sendOrderedBroad
cast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver
, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendOrderedBroa
dcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)</a></code
>
that allows you to specify the
user the broadcast will be sent to.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast</a></span
>(<a href="../../../reference/android/content/Intent.html">Intent</a> intent)</n
obr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 21.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)">
sendStickyBroadcastAsUser</a></span>(<a href="../../../reference/android/content
/Intent.html">Intent</a> intent, <a href="../../../reference/android/os/UserHand
le.html">UserHandle</a> user)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 21.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>

</td></tr>

<tr class=" api apilevel-5" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.Broadca
stReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)">sendS
tickyOrderedBroadcast</a></span>(<a href="../../../reference/android/content/Int
ent.html">Intent</a> intent, <a href="../../../reference/android/content/Broadca
stReceiver.html">BroadcastReceiver</a> resultReceiver, <a href="../../../referen
ce/android/os/Handler.html">Handler</a> scheduler, int initialCode, <a href="../
../../reference/java/lang/String.html">String</a> initialData, <a href="../../..
/reference/android/os/Bundle.html">Bundle</a> initialExtras)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 21.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-17" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHa
ndle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.Stri
ng, android.os.Bundle)">sendStickyOrderedBroadcastAsUser</a></span>(<a href="../

../../reference/android/content/Intent.html">Intent</a> intent, <a href="../../.


./reference/android/os/UserHandle.html">UserHandle</a> user, <a href="../../../r
eference/android/content/BroadcastReceiver.html">BroadcastReceiver</a> resultRec
eiver, <a href="../../../reference/android/os/Handler.html">Handler</a> schedule
r, int initialCode, <a href="../../../reference/java/lang/String.html">String</a
> initialData, <a href="../../../reference/android/os/Bundle.html">Bundle</a> in
itialExtras)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 21.
Sticky broadcasts should not be used. They provide no security (anyone
can access them), no protection (anyone can modify them), and many other proble
ms.
The recommended pattern is to use a non-sticky broadcast to report that <em>som
ething</em>
has changed, with another mechanism for apps to retrieve the current value when
ever
desired.</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#setTheme(int)">setTheme</a></span>(int resid)</nobr>
<div class="jd-descrdiv">
Set the base theme for this context.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#setWallpaper(java.io.InputStream)">setWallpaper</a></span>(<a href="../../
../reference/java/io/InputStream.html">InputStream</a> data)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 5.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#setS
tream(java.io.InputStream)">WallpaperManager.set()</a></code> instead.
<p>This method requires the caller to hold the permission
<code><a href="../../../reference/android/Manifest.permission.html#SET_WALLPAPE
R">SET_WALLPAPER</a></code>.
</em>

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#setWallpaper(android.graphics.Bitmap)">setWallpaper</a></span>(<a href="..
/../../reference/android/graphics/Bitmap.html">Bitmap</a> bitmap)</nobr>
<div class="jd-descrdiv">
<em>
This method was deprecated
in API level 5.
Use <code><a href="../../../reference/android/app/WallpaperManager.html#setB
itmap(android.graphics.Bitmap)">WallpaperManager.set()</a></code> instead.
<p>This method requires the caller to hold the permission
<code><a href="../../../reference/android/Manifest.permission.html#SET_WALLPAPE
R">SET_WALLPAPER</a></code>.
</em>

</div>
</td></tr>

<tr class="alt-color api apilevel-16" >

<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#startActivities(android.content.Intent[], android.os.Bundle)">startActivit
ies</a></span>(<a href="../../../reference/android/content/Intent.html">Intent[]
</a> intents, <a href="../../../reference/android/os/Bundle.html">Bundle</a> opt
ions)</nobr>
<div class="jd-descrdiv">
Launch multiple new activities.

</div>
</td></tr>

<tr class=" api apilevel-11" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#startActivities(android.content.Intent[])">startActivities</a></span>(<a h
ref="../../../reference/android/content/Intent.html">Intent[]</a> intents)</nobr
>
<div class="jd-descrdiv">
Same as <code><a href="../../../reference/android/content/Context.html
#startActivities(android.content.Intent[], android.os.Bundle)">startActivities(I
ntent[], Bundle)</a></code> with no options
specified.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#startActivity(android.content.Intent)">startActivity</a></span>(<a href=".
./../../reference/android/content/Intent.html">Intent</a> intent)</nobr>
<div class="jd-descrdiv">
Same as <code><a href="../../../reference/android/content/Context.html
#startActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent,
Bundle)</a></code> with no options
specified.

</div>
</td></tr>

<tr class=" api apilevel-16" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#startActivity(android.content.Intent, android.os.Bundle)">startActivity</a
></span>(<a href="../../../reference/android/content/Intent.html">Intent</a> int
ent, <a href="../../../reference/android/os/Bundle.html">Bundle</a> options)</no
br>
<div class="jd-descrdiv">
Launch a new activity.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>

<span class="sympad"><a href="../../../reference/android/content/Context


.html#startInstrumentation(android.content.ComponentName, java.lang.String, andr
oid.os.Bundle)">startInstrumentation</a></span>(<a href="../../../reference/andr
oid/content/ComponentName.html">ComponentName</a> className, <a href="../../../r
eference/java/lang/String.html">String</a> profileFile, <a href="../../../refere
nce/android/os/Bundle.html">Bundle</a> arguments)</nobr>
<div class="jd-descrdiv">
Start executing an <code><a href="../../../reference/android/app/Instr
umentation.html">Instrumentation</a></code> class.

</div>
</td></tr>

<tr class=" api apilevel-16" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#startIntentSender(android.content.IntentSender, android.content.Intent, in
t, int, int, android.os.Bundle)">startIntentSender</a></span>(<a href="../../../
reference/android/content/IntentSender.html">IntentSender</a> intent, <a href=".
./../../reference/android/content/Intent.html">Intent</a> fillInIntent, int flag
sMask, int flagsValues, int extraFlags, <a href="../../../reference/android/os/B
undle.html">Bundle</a> options)</nobr>
<div class="jd-descrdiv">
Like <code><a href="../../../reference/android/content/Context.html#st
artActivity(android.content.Intent, android.os.Bundle)">startActivity(Intent, Bu
ndle)</a></code>, but taking a IntentSender
to start.

</div>
</td></tr>

<tr class="alt-color api apilevel-5" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>

<td class="jd-linkcol" width="100%"><nobr>


<span class="sympad"><a href="../../../reference/android/content/Context
.html#startIntentSender(android.content.IntentSender, android.content.Intent, in
t, int, int)">startIntentSender</a></span>(<a href="../../../reference/android/c
ontent/IntentSender.html">IntentSender</a> intent, <a href="../../../reference/a
ndroid/content/Intent.html">Intent</a> fillInIntent, int flagsMask, int flagsVal
ues, int extraFlags)</nobr>
<div class="jd-descrdiv">
Same as <code><a href="../../../reference/android/content/Context.html
#startIntentSender(android.content.IntentSender, android.content.Intent, int, in
t, int, android.os.Bundle)">startIntentSender(IntentSender, Intent, int, int, in
t, Bundle)</a></code>
with no options specified.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

<a href="../../../reference/android/content/ComponentName.html">Comp
onentName</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#startService(android.content.Intent)">startService</a></span>(<a href="../
../../reference/android/content/Intent.html">Intent</a> service)</nobr>
<div class="jd-descrdiv">
Request that a given application service be started.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context

.html#stopService(android.content.Intent)">stopService</a></span>(<a href="../..
/../reference/android/content/Intent.html">Intent</a> service)</nobr>
<div class="jd-descrdiv">
Request that a given application service be stopped.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#unbindService(android.content.ServiceConnection)">unbindService</a></span>
(<a href="../../../reference/android/content/ServiceConnection.html">ServiceConn
ection</a> conn)</nobr>
<div class="jd-descrdiv">
Disconnect from an application service.

</div>
</td></tr>

<tr class="alt-color api apilevel-14" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#unregisterComponentCallbacks(android.content.ComponentCallbacks)">unregist
erComponentCallbacks</a></span>(<a href="../../../reference/android/content/Comp
onentCallbacks.html">ComponentCallbacks</a> callback)</nobr>
<div class="jd-descrdiv">
Remove a <code><a href="../../../reference/android/content/ComponentCa
llbacks.html">ComponentCallbacks</a></code> object that was previously registere
d
with <code><a href="../../../reference/android/content/Context.html#registerCom

ponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks(
ComponentCallbacks)</a></code>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Context
.html#unregisterReceiver(android.content.BroadcastReceiver)">unregisterReceiver<
/a></span>(<a href="../../../reference/android/content/BroadcastReceiver.html">B
roadcastReceiver</a> receiver)</nobr>
<div class="jd-descrdiv">
Unregister a previously registered BroadcastReceiver.

</div>
</td></tr>
</table>
</div>
</div>
</td></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods
-java.lang.Object" class="jd-expando-trigger closed"
><img id="inherited-methods-java.lang.Object-trigger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>
From class
<a href="../../../reference/java/lang/Object.html">java.lang.Object</a>
<div id="inherited-methods-java.lang.Object">
<div id="inherited-methods-java.lang.Object-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-methods-java.lang.Object-summary" style="display: none;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/Object.html">Object</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#c
lone()">clone</a></span>()</nobr>
<div class="jd-descrdiv">
Creates and returns a copy of this <code>Object</code>.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#e
quals(java.lang.Object)">equals</a></span>(<a href="../../../reference/java/lang
/Object.html">Object</a> o)</nobr>
<div class="jd-descrdiv">
Compares this instance with the specified object and indicates if they
are equal.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#f
inalize()">finalize</a></span>()</nobr>
<div class="jd-descrdiv">
Invoked when the garbage collector has detected that this instance is
no longer reachable.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final
<a href="../../../reference/java/lang/Class.html">Class</a>&lt;?&gt;
</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#g
etClass()">getClass</a></span>()</nobr>
<div class="jd-descrdiv">
Returns the unique instance of <code><a href="../../../reference/java/
lang/Class.html">Class</a></code> that represents this
object's class.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>

int</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#h
ashCode()">hashCode</a></span>()</nobr>
<div class="jd-descrdiv">

Returns an integer hash code for this object.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final
void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#n
otify()">notify</a></span>()</nobr>
<div class="jd-descrdiv">
Causes a thread which is waiting on this object's monitor (by means of
calling one of the <code>wait()</code> methods) to be woken up.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
final
void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#n
otifyAll()">notifyAll</a></span>()</nobr>
<div class="jd-descrdiv">
Causes all threads which are waiting on this object's monitor (by mean
s
of calling one of the <code>wait()</code> methods) to be woken up.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>

<a href="../../../reference/java/lang/String.html">String</a></nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#t
oString()">toString</a></span>()</nobr>
<div class="jd-descrdiv">
Returns a string containing a concise, human-readable description of t
his
object.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
final
void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#w
ait()">wait</a></span>()</nobr>
<div class="jd-descrdiv">
Causes the calling thread to wait until another thread calls the <code
>notify()</code> or <code>notifyAll()</code> method of this object.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
final
void</nobr>

</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#w
ait(long, int)">wait</a></span>(long millis, int nanos)</nobr>
<div class="jd-descrdiv">
Causes the calling thread to wait until another thread calls the <code
>notify()</code> or <code>notifyAll()</code> method of this object or until the
specified timeout expires.

</div>
</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
final
void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/java/lang/Object.html#w
ait(long)">wait</a></span>(long millis)</nobr>
<div class="jd-descrdiv">
Causes the calling thread to wait until another thread calls the <code
>notify()</code> or <code>notifyAll()</code> method of this object or until the
specified timeout expires.

</div>
</td></tr>
</table>
</div>
</div>
</td></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods
-android.view.KeyEvent.Callback" class="jd-expando-trigger closed"
><img id="inherited-methods-android.view.KeyEvent.Callback-trigger"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>
From interface
<a href="../../../reference/android/view/KeyEvent.Callback.html">android.view.

KeyEvent.Callback</a>
<div id="inherited-methods-android.view.KeyEvent.Callback">
<div id="inherited-methods-android.view.KeyEvent.Callback-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-methods-android.view.KeyEvent.Callback-summary" style="disp
lay: none;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/view/KeyEvent.C
allback.html#onKeyDown(int, android.view.KeyEvent)">onKeyDown</a></span>(int key
Code, <a href="../../../reference/android/view/KeyEvent.html">KeyEvent</a> event
)</nobr>
<div class="jd-descrdiv">
Called when a key down event has occurred.

</div>
</td></tr>

<tr class=" api apilevel-5" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/view/KeyEvent.C
allback.html#onKeyLongPress(int, android.view.KeyEvent)">onKeyLongPress</a></spa
n>(int keyCode, <a href="../../../reference/android/view/KeyEvent.html">KeyEvent
</a> event)</nobr>
<div class="jd-descrdiv">
Called when a long press has occurred.

</div>

</td></tr>

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/view/KeyEvent.C
allback.html#onKeyMultiple(int, int, android.view.KeyEvent)">onKeyMultiple</a></
span>(int keyCode, int count, <a href="../../../reference/android/view/KeyEvent.
html">KeyEvent</a> event)</nobr>
<div class="jd-descrdiv">
Called when multiple down/up pairs of the same key have occurred
in a row.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

boolean</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/view/KeyEvent.C
allback.html#onKeyUp(int, android.view.KeyEvent)">onKeyUp</a></span>(int keyCode
, <a href="../../../reference/android/view/KeyEvent.html">KeyEvent</a> event)</n
obr>
<div class="jd-descrdiv">
Called when a key up event has occurred.

</div>
</td></tr>
</table>
</div>
</div>

</td></tr>

<tr class="api apilevel-" >


<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods
-android.content.ComponentCallbacks2" class="jd-expando-trigger closed"
><img id="inherited-methods-android.content.ComponentCallbacks2-trigge
r"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>
From interface
<a href="../../../reference/android/content/ComponentCallbacks2.html">android.
content.ComponentCallbacks2</a>
<div id="inherited-methods-android.content.ComponentCallbacks2">
<div id="inherited-methods-android.content.ComponentCallbacks2-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-methods-android.content.ComponentCallbacks2-summary" style=
"display: none;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-14" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Compone
ntCallbacks2.html#onTrimMemory(int)">onTrimMemory</a></span>(int level)</nobr>
<div class="jd-descrdiv">
Called when the operating system has determined that it is a good
time for a process to trim unneeded memory from its process.

</div>
</td></tr>
</table>
</div>
</div>
</td></tr>

<tr class="api apilevel-" >

<td colspan="12">
<a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods
-android.content.ComponentCallbacks" class="jd-expando-trigger closed"
><img id="inherited-methods-android.content.ComponentCallbacks-trigger
"
src="../../../assets/images/triangle-closed.png"
class="jd-expando-trigger-img" /></a>
From interface
<a href="../../../reference/android/content/ComponentCallbacks.html">android.c
ontent.ComponentCallbacks</a>
<div id="inherited-methods-android.content.ComponentCallbacks">
<div id="inherited-methods-android.content.ComponentCallbacks-list"
class="jd-inheritedlinks">
</div>
<div id="inherited-methods-android.content.ComponentCallbacks-summary" style="
display: none;">
<table class="jd-sumtable-expando">

<tr class="alt-color api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>
<span class="sympad"><a href="../../../reference/android/content/Compone
ntCallbacks.html#onConfigurationChanged(android.content.res.Configuration)">onCo
nfigurationChanged</a></span>(<a href="../../../reference/android/content/res/Co
nfiguration.html">Configuration</a> newConfig)</nobr>
<div class="jd-descrdiv">
Called by the system when the device configuration changes while your
component is running.

</div>
</td></tr>

<tr class=" api apilevel-1" >


<td class="jd-typecol"><nobr>
abstract

void</nobr>
</td>
<td class="jd-linkcol" width="100%"><nobr>

<span class="sympad"><a href="../../../reference/android/content/Compone


ntCallbacks.html#onLowMemory()">onLowMemory</a></span>()</nobr>
<div class="jd-descrdiv">
This is called when the overall system is running low on memory, and
actively running processes should trim their memory usage.

</div>
</td></tr>
</table>
</div>
</div>
</td></tr>
</table>
</div><!-- jd-descr (summary) -->
<!-- Details -->

<!-- XML Attributes -->


<!-- ========= FIELD DETAIL ======== -->
<h2>XML Attributes</h2>

<A NAME="attr_android:imeExtractEnterAnimation"></A>
<div class="jd-details">
<h4 class="jd-details-title">android:imeExtractEnterAnimation
</h4>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Animation to use when showing the fulls


creen extract UI after
it had previously been hidden.
<p>Must be a reference to another resource, in the form "<code>@[+][<i
>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>na
me</i></code>".

<p>This corresponds to the global attribute


resource symbol <code><a href="../../../reference/android/R.attr.html#
imeExtractEnterAnimation">imeExtractEnterAnimation</a></code>.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Related Methods</h5>
<ul class="nolist">
</ul>
</div>
</div>
</div>
<A NAME="attr_android:imeExtractExitAnimation"></A>
<div class="jd-details">
<h4 class="jd-details-title">android:imeExtractExitAnimation
</h4>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Animation to use when hiding the fullsc


reen extract UI after
it had previously been shown.
<p>Must be a reference to another resource, in the form "<code>@[+][<i
>package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>na
me</i></code>".
<p>This corresponds to the global attribute
resource symbol <code><a href="../../../reference/android/R.attr.html#
imeExtractExitAnimation">imeExtractExitAnimation</a></code>.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Related Methods</h5>
<ul class="nolist">
</ul>
</div>
</div>
</div>
<A NAME="attr_android:imeFullscreenBackground"></A>
<div class="jd-details">
<h4 class="jd-details-title">android:imeFullscreenBackground
</h4>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Background to use for entire input meth


od when it is being
shown in fullscreen mode with the extract view, to ensure

that it completely covers the application. This allows,


for example, the candidate view to be hidden
while in fullscreen mode without having the application show throug
h
behind it.
<p>May be a reference to another resource, in the form "<code>@[+][<i>
package</i>:]<i>type</i>:<i>name</i></code>"
or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>na
me</i></code>".
<p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>a
rgb</i></code>",
"<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>".
<p>This corresponds to the global attribute
resource symbol <code><a href="../../../reference/android/R.attr.html#
imeFullscreenBackground">imeFullscreenBackground</a></code>.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Related Methods</h5>
<ul class="nolist">
</ul>
</div>
</div>
</div>

<!-- Enum Values -->


<!-- Constants -->
<!-- ========= ENUM CONSTANTS DETAIL ======== -->
<h2>Constants</h2>

<A NAME="BACK_DISPOSITION_DEFAULT"></A>
<div class="jd-details api apilevel-11">
<h4 class="jd-details-title">
<span class="normal">
public
static
final
int
</span>
BACK_DISPOSITION_DEFAULT
</h4>
<div class="api-level">
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 11</a>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>The back button will close the input wi


ndow.
</p></div>
<div class="jd-tagdata">
<span class="jd-tagtitle">Constant Value: </span>
<span>
0
(0x00000000)
</span>
</div>
</div>
</div>

<A NAME="BACK_DISPOSITION_WILL_DISMISS"></A>
<div class="jd-details api apilevel-11">
<h4 class="jd-details-title">
<span class="normal">
public
static
final
int
</span>
BACK_DISPOSITION_WILL_DISMISS
</h4>
<div class="api-level">
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 11</a>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>This input method will consume the back


key.
</p></div>
<div class="jd-tagdata">
<span class="jd-tagtitle">Constant Value: </span>

<span>
2
(0x00000002)
</span>
</div>
</div>
</div>

<A NAME="BACK_DISPOSITION_WILL_NOT_DISMISS"></A>
<div class="jd-details api apilevel-11">
<h4 class="jd-details-title">
<span class="normal">
public
static
final
int
</span>
BACK_DISPOSITION_WILL_NOT_DISMISS
</h4>
<div class="api-level">
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 11</a>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>This input method will not consume the


back key.
</p></div>
<div class="jd-tagdata">
<span class="jd-tagtitle">Constant Value: </span>
<span>
1
(0x00000001)
</span>
</div>
</div>
</div>

<!-- Fields -->

<!-- Public ctors -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->
<h2>Public Constructors</h2>

<A NAME="InputMethodService()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

</span>
<span class="sympad">InputMethodService</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>

<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- Protected ctors -->

<!-- ========= METHOD DETAIL ======== -->


<!-- Public methdos -->
<h2>Public Methods</h2>

<A NAME="enableHardwareAcceleration()"></A>

<div class="jd-details api apilevel-17">


<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">enableHardwareAcceleration</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 17</a></div>

</div>
<div class="jd-details-descr">

<p>
<p class="caution"><strong>
This method was deprecated
in API level 21.</strong><br/>
Starting in API 21, hardware acceleration is always enabled
on capable devices.
</p>
<div class="jd-tagdata jd-tagdescr"><p>You can call this to try to enable hard
ware accelerated drawing for
your IME. This must be set before <code><a href="../../../reference/android/inp
utmethodservice/InputMethodService.html#onCreate()">onCreate()</a></code>, so yo
u
will typically call it in your constructor. It is not always possible
to use hardware accelerated drawing in an IME (for example on low-end
devices that do not have the resources to support this), so the call
returns true if it succeeds otherwise false if you will need to draw
in software. You must be able to handle either case.</p></div>
</div>
</div>
<A NAME="getBackDisposition()"></A>
<div class="jd-details api apilevel-11">
<h4 class="jd-details-title">
<span class="normal">
public

int

</span>
<span class="sympad">getBackDisposition</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 11</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="getCandidatesHiddenVisibility()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

int
</span>
<span class="sympad">getCandidatesHiddenVisibility</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Returns the visibility mode (either <co


de><a href="../../../reference/android/view/View.html#INVISIBLE">View.INVISIBLE<
/a></code>
or <code><a href="../../../reference/android/view/View.html#GONE">View.GONE</a>
</code>) of the candidates view when it is not
shown. The default implementation returns GONE when
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#isExtractViewShown()">isExtractViewShown()</a></code> returns true,
otherwise VISIBLE. Be careful if you change this to return GONE in

other situations -- if showing or hiding the candidates view causes


your window to resize, this can cause temporary drawing artifacts as
the resize takes place.
</p></div>
</div>
</div>
<A NAME="getCurrentInputBinding()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/view/inputmethod/InputBinding.html">
InputBinding</a>
</span>
<span class="sympad">getCurrentInputBinding</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Return the currently active InputBindin


g for the input method, or
null if there is none.
</p></div>
</div>
</div>
<A NAME="getCurrentInputConnection()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/view/inputmethod/InputConnection.htm
l">InputConnection</a>
</span>

<span class="sympad">getCurrentInputConnection</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Retrieve the currently active InputConn


ection that is bound to
the input method, or null if there is none.
</p></div>
</div>
</div>
<A NAME="getCurrentInputEditorInfo()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/view/inputmethod/EditorInfo.html">Ed
itorInfo</a>
</span>
<span class="sympad">getCurrentInputEditorInfo</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>

<A NAME="getCurrentInputStarted()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">getCurrentInputStarted</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="getInputMethodWindowRecommendedHeight()"></A>
<div class="jd-details api apilevel-21">
<h4 class="jd-details-title">
<span class="normal">
public

int
</span>
<span class="sympad">getInputMethodWindowRecommendedHeight</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 21</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


<div class="jd-tagdata">
<h5 class="jd-tagtitle">Returns</h5>
<ul class="nolist"><li>The recommended height of the input method window.
An IME author can get the last input method's height as the recommended height
by calling this in
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onStartInputView(android.view.inputmethod.EditorInfo, boolean)">onStartInp
utView(EditorInfo, boolean)</a></code>.
If you don't need to use a predefined fixed height, you can avoid the window-re
sizing of IME
switching by using this value as a visible inset height. It's efficient for the
smooth
transition between different IMEs. However, note that this may return 0 (or pos
sibly
unexpectedly low height). You should thus avoid relying on the return value of
this method
all the time. Please make sure to use a reasonable height for the IME.
</li></ul>
</div>
</div>
</div>
<A NAME="getLayoutInflater()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/view/LayoutInflater.html">LayoutInfl
ater</a>
</span>
<span class="sympad">getLayoutInflater</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>

<A NAME="getMaxWidth()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

int
</span>
<span class="sympad">getMaxWidth</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Return the maximum width, in pixels, av


ailable the input method.
Input methods are positioned at the bottom of the screen and, unless
running in fullscreen, will generally want to be as short as possible
so should compute their height based on their contents. However, they
can stretch as much as needed horizontally. The function returns to
you the maximum amount of space available horizontally, which you can
use if needed for UI placement.
<p>In many cases this is not needed, you can just rely on the normal
view layout mechanisms to position your views within the full horizontal
space given to the input method.
<p>Note that this value can change dynamically, in particular when the
screen orientation changes.
</p></div>
</div>
</div>
<A NAME="getTextForImeAction(int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/java/lang/CharSequence.html">CharSequence</a
>
</span>
<span class="sympad">getTextForImeAction</span>
<span class="normal">(int imeOptions)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Return text that can be used as a butto


n label for the given
<code><a href="../../../reference/android/view/inputmethod/EditorInfo.html#imeO
ptions">EditorInfo.imeOptions</a></code>. Returns null
if there is no action requested. Note that there is no guarantee that
the returned text will be relatively short, so you probably do not
want to use it as text on a soft keyboard key label.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>imeOptions</td>
<td>The value from @link EditorInfo#imeOptions EditorInfo.imeOptions}.
</td>
</tr>
</table>
</div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Returns</h5>
<ul class="nolist"><li>Returns a label to use, or null if there is no acti
on.
</li></ul>
</div>
</div>
</div>
<A NAME="getWindow()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/app/Dialog.html">Dialog</a>
</span>

<span class="sympad">getWindow</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="hideStatusIcon()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">hideStatusIcon</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="hideWindow()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">

<span class="normal">
public

void
</span>
<span class="sympad">hideWindow</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="isExtractViewShown()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">isExtractViewShown</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Return whether the fullscreen extract v


iew is shown. This will only

return true if <code><a href="../../../reference/android/inputmethodservice/Inp


utMethodService.html#isFullscreenMode()">isFullscreenMode()</a></code> returns t
rue, and in that
case its value depends on the last call to
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#setExtractViewShown(boolean)">setExtractViewShown(boolean)</a></code>. Th
is effectively lets you
determine if the application window is entirely covered (when this
returns true) or if some part of it may be shown (if this returns
false, though if <code><a href="../../../reference/android/inputmethodservice/I
nputMethodService.html#isFullscreenMode()">isFullscreenMode()</a></code> returns
true in that case
then it is probably only a sliver of the application).
</p></div>
</div>
</div>
<A NAME="isFullscreenMode()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">isFullscreenMode</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Return whether the input method is <em>


currently</em> running in
fullscreen mode. This is the mode that was last determined and
applied by <code><a href="../../../reference/android/inputmethodservice/InputMe
thodService.html#updateFullscreenMode()">updateFullscreenMode()</a></code>.
</p></div>
</div>
</div>
<A NAME="isInputViewShown()"></A>

<div class="jd-details api apilevel-3">


<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">isInputViewShown</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Return whether the soft input view is <


em>currently</em> shown to the
user. This is the state that was last determined and
applied by <code><a href="../../../reference/android/inputmethodservice/InputMe
thodService.html#updateInputViewShown()">updateInputViewShown()</a></code>.
</p></div>
</div>
</div>
<A NAME="isShowInputRequested()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">isShowInputRequested</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>

<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Returns true if we have been asked to s


how our input view.
</p></div>
</div>
</div>
<A NAME="onAppPrivateCommand(java.lang.String, android.os.Bundle)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onAppPrivateCommand</span>
<span class="normal">(<a href="../../../reference/java/lang/String.html">S
tring</a> action, <a href="../../../reference/android/os/Bundle.html">Bundle</a>
data)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="onBindInput()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void

</span>
<span class="sympad">onBindInput</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when a new client has bound to t


he input method. This
may be followed by a series of <code><a href="../../../reference/android/inputm
ethodservice/InputMethodService.html#onStartInput(android.view.inputmethod.Edito
rInfo, boolean)">onStartInput(EditorInfo, boolean)</a></code>
and <code><a href="../../../reference/android/inputmethodservice/InputMethodSer
vice.html#onFinishInput()">onFinishInput()</a></code> calls as the user navigate
s through its
UI. Upon this call you know that <code><a href="../../../reference/android/inp
utmethodservice/InputMethodService.html#getCurrentInputBinding()">getCurrentInpu
tBinding()</a></code>
and <code><a href="../../../reference/android/inputmethodservice/InputMethodSer
vice.html#getCurrentInputConnection()">getCurrentInputConnection()</a></code> re
turn valid objects.
</p></div>
</div>
</div>
<A NAME="onComputeInsets(android.inputmethodservice.InputMethodService.Insets)">
</A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onComputeInsets</span>
<span class="normal">(<a href="../../../reference/android/inputmethodservi
ce/InputMethodService.Insets.html">InputMethodService.Insets</a> outInsets)</spa
n>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Compute the interesting insets into you


r UI. The default implementation
uses the top of the candidates frame for the visible insets, and the
top of the input frame for the content insets. The default touchable
insets are <code><a href="../../../reference/android/inputmethodservice/InputMe
thodService.Insets.html#TOUCHABLE_INSETS_VISIBLE">TOUCHABLE_INSETS_VISIBLE</a></
code>.
<p>Note that this method is not called when
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#isExtractViewShown()">isExtractViewShown()</a></code> returns true, since
in that case the application is left as-is behind the input method and
not impacted by anything in its UI.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>outInsets</td>
<td>Fill in with the current UI insets.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onConfigurationChanged(android.content.res.Configuration)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onConfigurationChanged</span>
<span class="normal">(<a href="../../../reference/android/content/res/Conf
iguration.html">Configuration</a> newConfig)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>

<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Take care of handling configuration cha


nges. Subclasses of
InputMethodService generally don't need to deal directly with
this on their own; the standard implementation here takes care of
regenerating the input method UI as a result of the configuration
change, so you can rely on your <code><a href="../../../reference/android/input
methodservice/InputMethodService.html#onCreateInputView()">onCreateInputView()</
a></code> and
other methods being called as appropriate due to a configuration change.
<p>When a configuration change does happen,
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onInitializeInterface()">onInitializeInterface()</a></code> is guaranteed
to be called the next
time prior to any of the other input or UI creation callbacks. The
following will be called immediately depending if appropriate for current
state: <code><a href="../../../reference/android/inputmethodservice/InputMethod
Service.html#onStartInput(android.view.inputmethod.EditorInfo, boolean)">onStart
Input(EditorInfo, boolean)</a></code> if input is active, and
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onCreateInputView()">onCreateInputView()</a></code> and <code><a href="../
../../reference/android/inputmethodservice/InputMethodService.html#onStartInputV
iew(android.view.inputmethod.EditorInfo, boolean)">onStartInputView(EditorInfo,
boolean)</a></code> and related
appropriate functions if the UI is displayed.
</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>newConfig</td>
<td>The new device configuration.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onConfigureWindow(android.view.Window, boolean, boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onConfigureWindow</span>
<span class="normal">(<a href="../../../reference/android/view/Window.html

">Window</a> win, boolean isFullscreen, boolean isCandidatesOnly)</span>


</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Update the given window's parameters fo


r the given mode. This is called
when the window is first displayed and each time the fullscreen or
candidates only mode changes.
<p>The default implementation makes the layout for the window
MATCH_PARENT x MATCH_PARENT when in fullscreen mode, and
MATCH_PARENT x WRAP_CONTENT when in non-fullscreen mode.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>win</td>
<td>The input method's window.</td>
</tr>
<tr>
<th>isFullscreen</td>
<td>If true, the window is running in fullscreen mode
and intended to cover the entire application display.</td>
</tr>
<tr>
<th>isCandidatesOnly</td>
<td>If true, the window is only showing the
candidates view and none of the rest of its UI. This is mutually
exclusive with fullscreen mode.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onCreate()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void

</span>
<span class="sympad">onCreate</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called by the system when the service i


s first created. Do not call this method directly.
</p></div>
</div>
</div>
<A NAME="onCreateCandidatesView()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/view/View.html">View</a>
</span>
<span class="sympad">onCreateCandidatesView</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Create and return the view hierarchy us


ed to show candidates. This will
be called once, when the candidates are first displayed. You can return
null to have no candidates view; the default implementation returns null.
<p>To control when the candidates view is displayed, use
<code><a href="../../../reference/android/inputmethodservice/InputMethodService

.html#setCandidatesViewShown(boolean)">setCandidatesViewShown(boolean)</a></code
>.
To change the candidates view after the first one is created by this
function, use <code><a href="../../../reference/android/inputmethodservice/Inpu
tMethodService.html#setCandidatesView(android.view.View)">setCandidatesView(View
)</a></code>.
</p></div>
</div>
</div>
<A NAME="onCreateExtractTextView()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/view/View.html">View</a>
</span>
<span class="sympad">onCreateExtractTextView</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called by the framework to create the l


ayout for showing extacted text.
Only called when in fullscreen mode. The returned view hierarchy must
have an <code><a href="../../../reference/android/inputmethodservice/ExtractEdi
tText.html">ExtractEditText</a></code> whose ID is
<code><a href="../../../reference/android/R.id.html#inputExtractEditText">input
ExtractEditText</a></code>.
</p></div>
</div>
</div>
<A NAME="onCreateInputMethodInterface()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/inputmethodservice/AbstractInputMeth
odService.AbstractInputMethodImpl.html">AbstractInputMethodService.AbstractInput
MethodImpl</a>
</span>
<span class="sympad">onCreateInputMethodInterface</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Implement to return our standard <code>


<a href="../../../reference/android/inputmethodservice/InputMethodService.InputM
ethodImpl.html">InputMethodService.InputMethodImpl</a></code>. Subclasses
can override to provide their own customized version.
</p></div>
</div>
</div>
<A NAME="onCreateInputMethodSessionInterface()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/inputmethodservice/AbstractInputMeth
odService.AbstractInputMethodSessionImpl.html">AbstractInputMethodService.Abstra
ctInputMethodSessionImpl</a>
</span>
<span class="sympad">onCreateInputMethodSessionInterface</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Implement to return our standard <code>


<a href="../../../reference/android/inputmethodservice/InputMethodService.InputM
ethodSessionImpl.html">InputMethodService.InputMethodSessionImpl</a></code>. Su
bclasses
can override to provide their own customized version.
</p></div>
</div>
</div>
<A NAME="onCreateInputView()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

<a href="../../../reference/android/view/View.html">View</a>
</span>
<span class="sympad">onCreateInputView</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Create and return the view hierarchy us


ed for the input area (such as
a soft keyboard). This will be called once, when the input area is
first displayed. You can return null to have no input area; the default
implementation returns null.
<p>To control when the input view is displayed, implement
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onEvaluateInputViewShown()">onEvaluateInputViewShown()</a></code>.
To change the input view after the first one is created by this
function, use <code><a href="../../../reference/android/inputmethodservice/Inpu
tMethodService.html#setInputView(android.view.View)">setInputView(View)</a></cod
e>.
</p></div>
</div>
</div>

<A NAME="onDestroy()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onDestroy</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called by the system to notify a Servic


e that it is no longer used and is being removed. The
service should clean up any resources it holds (threads, registered
receivers, etc) at this point. Upon return, there will be no more calls
in to this Service object and it is effectively dead. Do not call this method
directly.
</p></div>
</div>
</div>
<A NAME="onDisplayCompletions(android.view.inputmethod.CompletionInfo[])"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onDisplayCompletions</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod
/CompletionInfo.html">CompletionInfo[]</a> completions)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve

ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the application has reporte


d auto-completion candidates that
it would like to have the input method displayed. Typically these are
only used when an input method is running in full-screen mode, since
otherwise the user can see and interact with the pop-up window of
completions shown by the application.
<p>The default implementation here does nothing.
</p></div>
</div>
</div>
<A NAME="onEvaluateFullscreenMode()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onEvaluateFullscreenMode</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Override this to control when the input


method should run in
fullscreen mode. The default implementation runs in fullsceen only
when the screen is in landscape mode. If you change what
this returns, you will need to call <code><a href="../../../reference/android/i
nputmethodservice/InputMethodService.html#updateFullscreenMode()">updateFullscre
enMode()</a></code>
yourself whenever the returned value may have changed to have it

re-evaluated and applied.


</p></div>
</div>
</div>
<A NAME="onEvaluateInputViewShown()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onEvaluateInputViewShown</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Override this to control when the soft


input area should be shown to
the user. The default implementation only shows the input view when
there is no hard keyboard or the keyboard is hidden. If you change what
this returns, you will need to call <code><a href="../../../reference/android/i
nputmethodservice/InputMethodService.html#updateInputViewShown()">updateInputVie
wShown()</a></code>
yourself whenever the returned value may have changed to have it
re-evaluated and applied.
</p></div>
</div>
</div>
<A NAME="onExtractTextContextMenuItem(int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onExtractTextContextMenuItem</span>
<span class="normal">(int id)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>This is called when the user has select


ed a context menu item from the
extracted text view, when running in fullscreen mode. The default
implementation sends this action to the current InputConnection's
<code><a href="../../../reference/android/view/inputmethod/InputConnection.html
#performContextMenuAction(int)">performContextMenuAction(int)</a></code>, for it
to be processed in underlying "real" editor. Re-implement this to
provide whatever behavior you want.
</p></div>
</div>
</div>
<A NAME="onExtractedCursorMovement(int, int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onExtractedCursorMovement</span>
<span class="normal">(int dx, int dy)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>This is called when the user has perfor


med a cursor movement in the
extracted text view, when it is running in fullscreen mode. The default
implementation hides the candidates view when a vertical movement
happens, but only if the extracted text editor has a vertical scroll bar
because its text doesn't fit.
Re-implement this to provide whatever behavior you want.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>dx</td>
<td>The amount of cursor movement in the x dimension.</td>
</tr>
<tr>
<th>dy</td>
<td>The amount of cursor movement in the y dimension.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onExtractedSelectionChanged(int, int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onExtractedSelectionChanged</span>
<span class="normal">(int start, int end)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>This is called when the user has moved


the cursor in the extracted
text view, when running in fullsreen mode. The default implementation
performs the corresponding selection change on the underlying text
editor.
</p></div>

</div>
</div>
<A NAME="onExtractedTextClicked()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onExtractedTextClicked</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>This is called when the user has clicke


d on the extracted text view,
when running in fullscreen mode. The default implementation hides
the candidates view when this happens, but only if the extracted text
editor has a vertical scroll bar because its text doesn't fit.
Re-implement this to provide whatever behavior you want.
</p></div>
</div>
</div>
<A NAME="onExtractingInputChanged(android.view.inputmethod.EditorInfo)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onExtractingInputChanged</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod
/EditorInfo.html">EditorInfo</a> ei)</span>

</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>This is called when, while currently di


splayed in extract mode, the
current input target changes. The default implementation will
auto-hide the IME if the new target is not a full editor, since this
can be a confusing experience for the user.
</p></div>
</div>
</div>
<A NAME="onFinishCandidatesView(boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onFinishCandidatesView</span>
<span class="normal">(boolean finishingInput)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the candidates view is bein


g hidden from the user. This will
be called either prior to hiding the window, or prior to switching to
another target for editing.
<p>The default
implementation uses the InputConnection to clear any active composing

text; you can override this (not calling the base class implementation)
to perform whatever behavior you would like.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>finishingInput</td>
<td>If true, <code><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onFinishInput()">onFinishInput()</a></code> will be
called immediately after.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onFinishInput()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onFinishInput</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called to inform the input method that


text input has finished in
the last editor. At this point there may be a call to
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onStartInput(android.view.inputmethod.EditorInfo, boolean)">onStartInput(E
ditorInfo, boolean)</a></code> to perform input in a
new editor, or the input method may be left idle. This method is
<em>not</em> called when input restarts in the same editor.
<p>The default
implementation uses the InputConnection to clear any active composing
text; you can override this (not calling the base class implementation)
to perform whatever behavior you would like.

</p></div>
</div>
</div>
<A NAME="onFinishInputView(boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onFinishInputView</span>
<span class="normal">(boolean finishingInput)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the input view is being hid


den from the user. This will
be called either prior to hiding the window, or prior to switching to
another target for editing.
<p>The default
implementation uses the InputConnection to clear any active composing
text; you can override this (not calling the base class implementation)
to perform whatever behavior you would like.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>finishingInput</td>
<td>If true, <code><a href="../../../reference/android/inputmethodserv
ice/InputMethodService.html#onFinishInput()">onFinishInput()</a></code> will be
called immediately after.
</td>
</tr>
</table>
</div>
</div>
</div>

<A NAME="onGenericMotionEvent(android.view.MotionEvent)"></A>
<div class="jd-details api apilevel-17">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onGenericMotionEvent</span>
<span class="normal">(<a href="../../../reference/android/view/MotionEvent
.html">MotionEvent</a> event)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 17</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Override this to intercept generic moti


on events before they are
processed by the application.
If you return true, the application will not itself process the event.
If you return false, the normal application processing will occur as if
the IME had not seen the event at all.
</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>event</td>
<td>The motion event being received.</td>
</tr>
</table>
</div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Returns</h5>
<ul class="nolist"><li>True if the event was handled in this function, fal
se otherwise.</li></ul>
</div>
</div>
</div>
<A NAME="onInitializeInterface()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">

public

void
</span>
<span class="sympad">onInitializeInterface</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>This is a hook that subclasses can use


to perform initialization of
their interface. It is called for you prior to any of your UI objects
being created, both after the service is first created and after a
configuration change happens.
</p></div>
</div>
</div>
<A NAME="onKeyDown(int, android.view.KeyEvent)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onKeyDown</span>
<span class="normal">(int keyCode, <a href="../../../reference/android/vie
w/KeyEvent.html">KeyEvent</a> event)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Override this to intercept key down eve


nts before they are processed by the
application. If you return true, the application will not
process the event itself. If you return false, the normal application processi
ng
will occur as if the IME had not seen the event at all.
<p>The default implementation intercepts <code><a href="../../../reference/andr
oid/view/KeyEvent.html#KEYCODE_BACK">KeyEvent.KEYCODE_BACK</a></code> if the IME
is currently shown, to
possibly hide it when the key goes up (if not canceled or long pressed). In
addition, in fullscreen mode only, it will consume DPAD movement
events to move the cursor in the extracted text view, not allowing
them to perform navigation in the underlying application.
</p></div>
</div>
</div>
<A NAME="onKeyLongPress(int, android.view.KeyEvent)"></A>
<div class="jd-details api apilevel-5">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onKeyLongPress</span>
<span class="normal">(int keyCode, <a href="../../../reference/android/vie
w/KeyEvent.html">KeyEvent</a> event)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 5</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Default implementation of <code><a href


="../../../reference/android/view/KeyEvent.Callback.html#onKeyLongPress(int, and
roid.view.KeyEvent)">KeyEvent.Callback.onKeyLongPress()</a></code>: always retur
ns false (doesn't handle
the event).
</p></div>
</div>

</div>
<A NAME="onKeyMultiple(int, int, android.view.KeyEvent)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onKeyMultiple</span>
<span class="normal">(int keyCode, int count, <a href="../../../reference/
android/view/KeyEvent.html">KeyEvent</a> event)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Override this to intercept special key


multiple events before they are
processed by the
application. If you return true, the application will not itself
process the event. If you return false, the normal application processing
will occur as if the IME had not seen the event at all.
<p>The default implementation always returns false, except when
in fullscreen mode, where it will consume DPAD movement
events to move the cursor in the extracted text view, not allowing
them to perform navigation in the underlying application.
</p></div>
</div>
</div>
<A NAME="onKeyUp(int, android.view.KeyEvent)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean

</span>
<span class="sympad">onKeyUp</span>
<span class="normal">(int keyCode, <a href="../../../reference/android/vie
w/KeyEvent.html">KeyEvent</a> event)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Override this to intercept key up event


s before they are processed by the
application. If you return true, the application will not itself
process the event. If you return false, the normal application processing
will occur as if the IME had not seen the event at all.
<p>The default implementation intercepts <code><a href="../../../reference/andr
oid/view/KeyEvent.html#KEYCODE_BACK">KeyEvent.KEYCODE_BACK</a></code> to hide th
e current IME UI if it is shown. In
addition, in fullscreen mode only, it will consume DPAD movement
events to move the cursor in the extracted text view, not allowing
them to perform navigation in the underlying application.
</p></div>
</div>
</div>
<A NAME="onShowInputRequested(int, boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onShowInputRequested</span>
<span class="normal">(int flags, boolean configChange)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>The system has decided that it may be t


ime to show your input method.
This is called due to a corresponding call to your
<code><a href="../../../reference/android/view/inputmethod/InputMethod.html#sho
wSoftInput(int, android.os.ResultReceiver)">InputMethod.showSoftInput()</a></cod
e>
method. The default implementation uses
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onEvaluateInputViewShown()">onEvaluateInputViewShown()</a></code>, <code><
a href="../../../reference/android/inputmethodservice/InputMethodService.html#on
EvaluateFullscreenMode()">onEvaluateFullscreenMode()</a></code>,
and the current configuration to decide whether the input view should
be shown at this point.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>flags</td>
<td>Provides additional information about the show request,
as per <code><a href="../../../reference/android/view/inputmethod/InputMethod.h
tml#showSoftInput(int, android.os.ResultReceiver)">InputMethod.showSoftInput()</
a></code>.</td>
</tr>
<tr>
<th>configChange</td>
<td>This is true if we are re-showing due to a
configuration change.</td>
</tr>
</table>
</div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Returns</h5>
<ul class="nolist"><li>Returns true to indicate that the window should be
shown.
</li></ul>
</div>
</div>
</div>
<A NAME="onStartCandidatesView(android.view.inputmethod.EditorInfo, boolean)"></
A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onStartCandidatesView</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod

/EditorInfo.html">EditorInfo</a> info, boolean restarting)</span>


</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when only the candidates view ha


s been shown for showing
processing as the user enters text through a hard keyboard.
This will always be called after <code><a href="../../../reference/android/inpu
tmethodservice/InputMethodService.html#onStartInput(android.view.inputmethod.Edi
torInfo, boolean)">onStartInput(EditorInfo, boolean)</a></code>,
allowing you to do your general setup there and just view-specific
setup here. You are guaranteed that <code><a href="../../../reference/android/
inputmethodservice/InputMethodService.html#onCreateCandidatesView()">onCreateCan
didatesView()</a></code>
will have been called some time before this function is called.
<p>Note that this will <em>not</em> be called when the input method
is running in full editing mode, and thus receiving
<code><a href="../../../reference/android/inputmethodservice/InputMethodService
.html#onStartInputView(android.view.inputmethod.EditorInfo, boolean)">onStartInp
utView(EditorInfo, boolean)</a></code> to initiate that operation. This is only
for the case when candidates are being shown while the input method
editor is hidden but wants to show its candidates UI as text is
entered through some other mechanism.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>info</td>
<td>Description of the type of text being edited.</td>
</tr>
<tr>
<th>restarting</td>
<td>Set to true if we are restarting input on the
same text field as before.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onStartInput(android.view.inputmethod.EditorInfo, boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">

public

void
</span>
<span class="sympad">onStartInput</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod
/EditorInfo.html">EditorInfo</a> attribute, boolean restarting)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called to inform the input method that


text input has started in an
editor. You should use this callback to initialize the state of your
input to match the state of the editor given to it.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>attribute</td>
<td>The attributes of the editor that input is starting
in.</td>
</tr>
<tr>
<th>restarting</td>
<td>Set to true if input is restarting in the same
editor such as because the application has changed the text in
the editor. Otherwise will be false, indicating this is a new
session with the editor.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onStartInputView(android.view.inputmethod.EditorInfo, boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onStartInputView</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod
/EditorInfo.html">EditorInfo</a> info, boolean restarting)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the input view is being sho


wn and input has started on
a new editor. This will always be called after <code><a href="../../../referen
ce/android/inputmethodservice/InputMethodService.html#onStartInput(android.view.
inputmethod.EditorInfo, boolean)">onStartInput(EditorInfo, boolean)</a></code>,
allowing you to do your general setup there and just view-specific
setup here. You are guaranteed that <code><a href="../../../reference/android/
inputmethodservice/InputMethodService.html#onCreateInputView()">onCreateInputVie
w()</a></code> will
have been called some time before this function is called.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>info</td>
<td>Description of the type of text being edited.</td>
</tr>
<tr>
<th>restarting</td>
<td>Set to true if we are restarting input on the
same text field as before.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onTrackballEvent(android.view.MotionEvent)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">onTrackballEvent</span>
<span class="normal">(<a href="../../../reference/android/view/MotionEvent
.html">MotionEvent</a> event)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Override this to intercept trackball mo


tion events before they are
processed by the application.
If you return true, the application will not itself process the event.
If you return false, the normal application processing will occur as if
the IME had not seen the event at all.
</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>event</td>
<td>The motion event being received.</td>
</tr>
</table>
</div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Returns</h5>
<ul class="nolist"><li>True if the event was handled in this function, fal
se otherwise.</li></ul>
</div>
</div>
</div>
<A NAME="onUnbindInput()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onUnbindInput</span>
<span class="normal">()</span>
</h4>

<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the previous bound client i


s no longer associated
with the input method. After returning <code><a href="../../../reference/andro
id/inputmethodservice/InputMethodService.html#getCurrentInputBinding()">getCurre
ntInputBinding()</a></code>
and <code><a href="../../../reference/android/inputmethodservice/InputMethodSer
vice.html#getCurrentInputConnection()">getCurrentInputConnection()</a></code> wi
ll no longer return
valid objects.
</p></div>
</div>
</div>
<A NAME="onUpdateCursor(android.graphics.Rect)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onUpdateCursor</span>
<span class="normal">(<a href="../../../reference/android/graphics/Rect.ht
ml">Rect</a> newCursor)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<p>
<p class="caution"><strong>
This method was deprecated
in API level 21.</strong><br/>

Use {#link onUpdateCursorAnchorInfo(CursorAnchorInfo)} instead.


</p>
<div class="jd-tagdata jd-tagdescr"><p>Called when the application has reporte
d a new location of its text
cursor. This is only called if explicitly requested by the input method.
The default implementation does nothing.</p></div>
</div>
</div>
<A NAME="onUpdateCursorAnchorInfo(android.view.inputmethod.CursorAnchorInfo)"></
A>
<div class="jd-details api apilevel-21">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onUpdateCursorAnchorInfo</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod
/CursorAnchorInfo.html">CursorAnchorInfo</a> cursorAnchorInfo)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 21</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the application has reporte


d a new location of its text insertion point and
characters in the composition string. This is only called if explicitly reques
ted by the
input method. The default implementation does nothing.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>cursorAnchorInfo</td>
<td>The positional information of the text insertion point and the
composition string.
</td>
</tr>
</table>
</div>
</div>

</div>
<A NAME="onUpdateExtractedText(int, android.view.inputmethod.ExtractedText)"></A
>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onUpdateExtractedText</span>
<span class="normal">(int token, <a href="../../../reference/android/view/
inputmethod/ExtractedText.html">ExtractedText</a> text)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the application has reporte


d new extracted text to be shown
due to changes in its current text state. The default implementation
here places the new text in the extract edit text, when the input
method is running in fullscreen mode.
</p></div>
</div>
</div>
<A NAME="onUpdateExtractingViews(android.view.inputmethod.EditorInfo)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onUpdateExtractingViews</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod
/EditorInfo.html">EditorInfo</a> ei)</span>
</h4>

<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the fullscreen-mode extract


ing editor info has changed,
to update the state of its UI such as the action buttons shown.
You do not need to deal with this if you are using the standard
full screen extract UI. If replacing it, you will need to re-implement
this to put the appropriate action button in your own UI and handle it,
and perform any other changes.
<p>The standard implementation turns on or off its accessory area
depending on whether there is an action button, and hides or shows
the entire extract area depending on whether it makes sense for the
current editor. In particular, a <code><a href="../../../reference/android/tex
t/InputType.html#TYPE_NULL">TYPE_NULL</a></code> or
<code><a href="../../../reference/android/text/InputType.html#TYPE_TEXT_VARIATI
ON_FILTER">TYPE_TEXT_VARIATION_FILTER</a></code> input type will turn off the
extract area since there is no text to be shown.
</p></div>
</div>
</div>
<A NAME="onUpdateExtractingVisibility(android.view.inputmethod.EditorInfo)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onUpdateExtractingVisibility</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod
/EditorInfo.html">EditorInfo</a> ei)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the fullscreen-mode extract


ing editor info has changed,
to determine whether the extracting (extract text and candidates) portion
of the UI should be shown. The standard implementation hides or shows
the extract area depending on whether it makes sense for the
current editor. In particular, a <code><a href="../../../reference/android/tex
t/InputType.html#TYPE_NULL">TYPE_NULL</a></code>
input type or <code><a href="../../../reference/android/view/inputmethod/Editor
Info.html#IME_FLAG_NO_EXTRACT_UI">IME_FLAG_NO_EXTRACT_UI</a></code> flag will
turn off the extract area since there is no text to be shown.
</p></div>
</div>
</div>
<A NAME="onUpdateSelection(int, int, int, int, int, int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onUpdateSelection</span>
<span class="normal">(int oldSelStart, int oldSelEnd, int newSelStart, int
newSelEnd, int candidatesStart, int candidatesEnd)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the application has reporte


d a new selection region of
the text. This is called whether or not the input method has requested
extracted text updates, although if so it will not receive this call
if the extracted text has changed as well.
<p>Be careful about changing the text in reaction to this call with
methods such as setComposingText, commitText or
deleteSurroundingText. If the cursor moves as a result, this method
will be called again, which may result in an infinite loop.

<p>The default implementation takes care of updating the cursor in


the extract text, if it is being shown.
</p></div>
</div>
</div>
<A NAME="onViewClicked(boolean)"></A>
<div class="jd-details api apilevel-14">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onViewClicked</span>
<span class="normal">(boolean focusChanged)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 14</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the user tapped or clicked


a text view.
IMEs can't rely on this method being called because this was not part of the or
iginal IME
protocol, so applications with custom text editing written before this method a
ppeared will
not call to inform the IME of this interaction.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>focusChanged</td>
<td>true if the user changed the focused view by this click.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onWindowHidden()"></A>

<div class="jd-details api apilevel-3">


<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onWindowHidden</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the input method window has


been hidden from the user,
after previously being visible.
</p></div>
</div>
</div>
<A NAME="onWindowShown()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">onWindowShown</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the input method window has


been shown to the user, after
previously not being visible. This is done after all of the UI setup
for the window has occurred (creating its views etc).
</p></div>
</div>
</div>
<A NAME="requestHideSelf(int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">requestHideSelf</span>
<span class="normal">(int flags)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Close this input method's soft input ar


ea, removing it from the display.
The input method will continue running, but the user can no longer use
it to generate input by touching the screen.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>flags</td>
<td>Provides additional operating flags. Currently may be
0 or have the <code><a href="../../../reference/android/view/inputmethod/InputM
ethodManager.html#HIDE_IMPLICIT_ONLY">InputMethodManager.HIDE_IMPLICIT_ONLY</a><
/code> bit set.
</td>
</tr>
</table>
</div>
</div>

</div>
<A NAME="sendDefaultEditorAction(boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

boolean
</span>
<span class="sympad">sendDefaultEditorAction</span>
<span class="normal">(boolean fromEnterKey)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Ask the input target to execute its def


ault action via
<code><a href="../../../reference/android/view/inputmethod/InputConnection.html
#performEditorAction(int)">InputConnection.performEditorAction()</a></code>.</p>
</div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>fromEnterKey</td>
<td>If true, this will be executed as if the user had
pressed an enter key on the keyboard, that is it will <em>not</em>
be done if the editor has set <code><a href="../../../reference/android/view/in
putmethod/EditorInfo.html#IME_FLAG_NO_ENTER_ACTION">EditorInfo.IME_FLAG_NO_ENTER
_ACTION</a></code>. If false, the action will be
sent regardless of how the editor has set that flag.</td>
</tr>
</table>
</div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Returns</h5>
<ul class="nolist"><li>Returns a boolean indicating whether an action has
been sent.
If false, either the editor did not specify a default action or it
does not want an action from the enter key. If true, the action was
sent (or there was no input connection at all).
</li></ul>
</div>

</div>
</div>
<A NAME="sendDownUpKeyEvents(int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">sendDownUpKeyEvents</span>
<span class="normal">(int keyEventCode)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Send the given key event code (as defin
ed by <code><a href="../../../reference/android/view/KeyEvent.html">KeyEvent</a>
</code>) to the
current input connection is a key down + key up event pair. The sent
events have <code><a href="../../../reference/android/view/KeyEvent.html#FLAG_S
OFT_KEYBOARD">KeyEvent.FLAG_SOFT_KEYBOARD</a></code>
set, so that the recipient can identify them as coming from a software
input method, and
<code><a href="../../../reference/android/view/KeyEvent.html#FLAG_KEEP_TOUCH_MO
DE">KeyEvent.FLAG_KEEP_TOUCH_MODE</a></code>, so
that they don't impact the current touch mode of the UI.
<p>Note that it's discouraged to send such key events in normal operation;
this is mainly for use with <code><a href="../../../reference/android/text/Inpu
tType.html#TYPE_NULL">TYPE_NULL</a></code> type
text fields, or for non-rich input methods. A reasonably capable software
input method should use the
<code><a href="../../../reference/android/view/inputmethod/InputConnection.html
#commitText(java.lang.CharSequence, int)">commitText(CharSequence, int)</a></cod
e> family of methods
to send text to an application, rather than sending key events.</p></p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>keyEventCode</td>
<td>The raw key code to send, as defined by
<code><a href="../../../reference/android/view/KeyEvent.html">KeyEvent</a></cod

e>.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="sendKeyChar(char)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">sendKeyChar</span>
<span class="normal">(char charCode)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Send the given UTF-16 character to the


current input connection. Most
characters will be delivered simply by calling
<code><a href="../../../reference/android/view/inputmethod/InputConnection.html
#commitText(java.lang.CharSequence, int)">InputConnection.commitText()</a></code
> with
the character; some, however, may be handled different. In particular,
the enter character ('\n') will either be delivered as an action code
or a raw key event, as appropriate. Consider this as a convenience
method for IMEs that do not have a full implementation of actions; a
fully complying IME will decide of the right action for each event and
will likely never call this method except maybe to handle events coming
from an actual hardware keyboard.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>charCode</td>
<td>The UTF-16 character code to send.
</td>
</tr>
</table>

</div>
</div>
</div>
<A NAME="setBackDisposition(int)"></A>
<div class="jd-details api apilevel-11">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">setBackDisposition</span>
<span class="normal">(int disposition)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 11</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="setCandidatesView(android.view.View)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">setCandidatesView</span>
<span class="normal">(<a href="../../../reference/android/view/View.html">
View</a> view)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Replaces the current candidates view wi


th a new one. You only need to
call this when dynamically changing the view; normally, you should
implement <code><a href="../../../reference/android/inputmethodservice/InputMet
hodService.html#onCreateCandidatesView()">onCreateCandidatesView()</a></code> an
d create your view when
first needed by the input method.
</p></div>
</div>
</div>
<A NAME="setCandidatesViewShown(boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">setCandidatesViewShown</span>
<span class="normal">(boolean shown)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Controls the visibility of the candidat


es display area. By default
it is hidden.
</p></div>
</div>
</div>
<A NAME="setExtractView(android.view.View)"></A>

<div class="jd-details api apilevel-3">


<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">setExtractView</span>
<span class="normal">(<a href="../../../reference/android/view/View.html">
View</a> view)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="setExtractViewShown(boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">setExtractViewShown</span>
<span class="normal">(boolean shown)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Controls the visibility of the extracte


d text area. This only applies
when the input method is in fullscreen mode, and thus showing extracted
text. When false, the extracted text will not be shown, allowing some
of the application to be seen behind. This is normally set for you
by <code><a href="../../../reference/android/inputmethodservice/InputMethodServ
ice.html#onUpdateExtractingVisibility(android.view.inputmethod.EditorInfo)">onUp
dateExtractingVisibility(EditorInfo)</a></code>. This controls the visibility
of both the extracted text and candidate view; the latter since it is
not useful if there is no text to see.
</p></div>
</div>
</div>
<A NAME="setInputView(android.view.View)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">setInputView</span>
<span class="normal">(<a href="../../../reference/android/view/View.html">
View</a> view)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Replaces the current input view with a


new one. You only need to
call this when dynamically changing the view; normally, you should
implement <code><a href="../../../reference/android/inputmethodservice/InputMet
hodService.html#onCreateInputView()">onCreateInputView()</a></code> and create y
our view when
first needed by the input method.
</p></div>
</div>
</div>

<A NAME="setTheme(int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">setTheme</span>
<span class="normal">(int theme)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>You can call this to customize the them


e used by your IME's window.
This theme should typically be one that derives from
<code><a href="../../../reference/android/R.style.html#Theme_InputMethod">Theme
_InputMethod</a></code>, which is the default theme
you will get. This must be set before <code><a href="../../../reference/androi
d/inputmethodservice/InputMethodService.html#onCreate()">onCreate()</a></code>,
so you
will typically call it in your constructor with the resource ID
of your custom theme.
</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>theme</td>
<td>The style resource describing the theme.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="showStatusIcon(int)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">showStatusIcon</span>
<span class="normal">(int iconResId)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>
<A NAME="showWindow(boolean)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">showWindow</span>
<span class="normal">(boolean showInput)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p></p></div>


</div>
</div>

<A NAME="switchInputMethod(java.lang.String)"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">switchInputMethod</span>
<span class="normal">(<a href="../../../reference/java/lang/String.html">S
tring</a> id)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Force switch to a new input method, as


identified by <var>id</var>. This
input method will be destroyed, and the requested one started on the
current input field.</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>id</td>
<td>Unique identifier of the new input method ot start.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="updateFullscreenMode()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">updateFullscreenMode</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Re-evaluate whether the input method sh


ould be running in fullscreen
mode, and update its UI if this has changed since the last time it
was evaluated. This will call <code><a href="../../../reference/android/inputm
ethodservice/InputMethodService.html#onEvaluateFullscreenMode()">onEvaluateFulls
creenMode()</a></code> to
determine whether it should currently run in fullscreen mode. You
can use <code><a href="../../../reference/android/inputmethodservice/InputMetho
dService.html#isFullscreenMode()">isFullscreenMode()</a></code> to determine if
the input method
is currently running in fullscreen mode.
</p></div>
</div>
</div>
<A NAME="updateInputViewShown()"></A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
public

void
</span>
<span class="sympad">updateInputViewShown</span>
<span class="normal">()</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Re-evaluate whether the soft input area


should currently be shown, and
update its UI if this has changed since the last time it
was evaluated. This will call <code><a href="../../../reference/android/inputm
ethodservice/InputMethodService.html#onEvaluateInputViewShown()">onEvaluateInput
ViewShown()</a></code> to
determine whether the input view should currently be shown. You
can use <code><a href="../../../reference/android/inputmethodservice/InputMetho
dService.html#isInputViewShown()">isInputViewShown()</a></code> to determine if
the input view
is currently shown.
</p></div>
</div>
</div>

<!-- ========= METHOD DETAIL ======== -->


<h2>Protected Methods</h2>

<A NAME="dump(java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[])">


</A>
<div class="jd-details api apilevel-3">
<h4 class="jd-details-title">
<span class="normal">
protected

void
</span>
<span class="sympad">dump</span>
<span class="normal">(<a href="../../../reference/java/io/FileDescriptor.h
tml">FileDescriptor</a> fd, <a href="../../../reference/java/io/PrintWriter.html
">PrintWriter</a> fout, <a href="../../../reference/java/lang/String.html">Strin
g[]</a> args)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 3</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Performs a dump of the InputMethodServi


ce's internal state. Override
to add your own information to the dump.
</p></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>fd</td>
<td>The raw file descriptor that the dump is being sent to.</td>
</tr>
<tr>
<th>fout</td>
<td>The PrintWriter to which you should dump your state. This will be
closed for you after you return.</td>
</tr>
<tr>
<th>args</td>
<td>additional arguments to the dump request.
</td>
</tr>
</table>
</div>
</div>
</div>
<A NAME="onCurrentInputMethodSubtypeChanged(android.view.inputmethod.InputMethod
Subtype)"></A>
<div class="jd-details api apilevel-11">
<h4 class="jd-details-title">
<span class="normal">
protected

void
</span>
<span class="sympad">onCurrentInputMethodSubtypeChanged</span>
<span class="normal">(<a href="../../../reference/android/view/inputmethod
/InputMethodSubtype.html">InputMethodSubtype</a> newSubtype)</span>
</h4>
<div class="api-level">
<div>
Added in <a href="../../../guide/topics/manifest/uses-sdk-element.html#ApiLeve
ls">API level 11</a></div>

</div>
<div class="jd-details-descr">

<div class="jd-tagdata jd-tagdescr"><p>Called when the subtype was changed.</p

></div>
<div class="jd-tagdata">
<h5 class="jd-tagtitle">Parameters</h5>
<table class="jd-tagtable">
<tr>
<th>newSubtype</td>
<td>the subtype which is being changed to.
</td>
</tr>
</table>
</div>
</div>
</div>

<!-- ========= END OF CLASS DATA ========= -->


<A NAME="navbar_top"></A>
</div> <!-- jd-content -->
<div class="wrap">
<div class="dac-footer">
<div class="cols dac-footer-main">
<div class="col-1of2">
<a class="dac-footer-getnews" data-modal-toggle="newsletter" href="javas
cript:;">Get news &amp; tips <span
class="dac-fab dac-primary"><i class="dac-sprite dac-mail"></i></span>
</a>
</div>
<div class="col-1of2 dac-footer-reachout">
<div class="dac-footer-contact">
<a class="dac-footer-contact-link" href="http://android-developers.blo
gspot.com/">Blog</a>
<a class="dac-footer-contact-link" href="/support.html">Support</a>
</div>
<div class="dac-footer-social">
<a class="dac-fab dac-footer-social-link" href="https://www.youtube.co
m/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a>
<a class="dac-fab dac-footer-social-link" href="https://plus.google.co
m/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a>
<a class="dac-fab dac-footer-social-link" href="https://twitter.com/An
droidDev"><i class="dac-sprite dac-twitter"></i></a>
</div>
</div>
</div>
<hr class="dac-footer-separator"/>
<p class="dac-footer-copyright">
Except as noted, this content is licensed under <a
href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
For details and restrictions, see the <a href="../../../license.html">
Content License</a>.
</p>
<p class="dac-footer-build">

Android 6.0&nbsp;r1 &mdash;


<script src="../../../timestamp.js" type="text/javascript"></script>
<script>document.write(BUILD_TIMESTAMP)</script>
</p>
<p class="dac-footer-links">
<a href="/about/index.html">About Android</a>
<a href="/auto/index.html">Auto</a>
<a href="/tv/index.html">TV</a>
<a href="/wear/index.html">Wear</a>
<a href="/legal.html">Legal</a>
<span id="language" class="locales">
<select name="language" onchange="changeLangPref(this.value, true)">
<option value="en" selected="selected">English</option>
<option value="es">Espaol</option>
<option value="ja"></option>
<option value="ko"> </option>
<option value="pt-br">Portugus Brasileiro</option>
<option value="ru"></option>
<option value="zh-cn">)</option>
<option value="zh-tw">)</option>
</select>
</span>
</p>
</div>
</div> <!-- end footer -->
<div data-modal="newsletter" data-newsletter data-swap class="dac-modal newslett
er">
<div class="dac-modal-container">
<div class="dac-modal-window">
<header class="dac-modal-header">
<button class="dac-modal-header-close" data-modal-toggle><i class="dac-s
prite dac-close"></i></button>
<div class="dac-swap" data-swap-container>
<section class="dac-swap-section dac-active dac-down">
<h2 class="norule dac-modal-header-title">Get the latest Android dev
eloper news and tips that will help you find success on Google Play.</h2>
<p class="dac-modal-header-subtitle">&#42; Required Fields</p>
</section>
<section class="dac-swap-section dac-up">
<h2 class="norule dac-modal-header-title">Hooray!</h2>
</section>
</div>
</header>
<div class="dac-swap" data-swap-container>
<section class="dac-swap-section dac-active dac-left">
<form action="https://docs.google.com/forms/d/1QgnkzbEJIDu9lMEea0mxqWr
XUJu0oBCLD7ar23V0Yys/formResponse" class="dac-form" method="post" target="dac-ne
wsletter-iframe">
<section class="dac-modal-content">
<fieldset class="dac-form-fieldset">
<div class="cols">
<div class="col-1of2 newsletter-leftCol">
<div class="dac-form-input-group">
<label for="newsletter-full-name" class="dac-form-floatlab

el">Full name</label>
<input type="text" class="dac-form-input" name="entry.1357
890476" id="newsletter-full-name" required>
<span class="dac-form-required">*</span>
</div>
<div class="dac-form-input-group">
<label for="newsletter-email" class="dac-form-floatlabel">
Email address</label>
<input type="email" class="dac-form-input" name="entry.472
100832" id="newsletter-email" required>
<span class="dac-form-required">*</span>
</div>
</div>
<div class="col-1of2 newsletter-rightCol">
<div class="dac-form-input-group">
<label for="newsletter-company" class="dac-form-floatlabel
">Company / developer name</label>
<input type="text" class="dac-form-input" name="entry.1664
780309" id="newsletter-company">
</div>
<div class="dac-form-input-group">
<label for="newsletter-play-store" class="dac-form-floatla
bel">One of your Play Store app URLs</label>
<input type="url" class="dac-form-input" name="entry.47013
838" id="newsletter-play-store" required>
<span class="dac-form-required">*</span>
</div>
</div>
</div>
</fieldset>
<fieldset class="dac-form-fieldset">
<div class="cols">
<div class="col-1of2 newsletter-leftCol">
<legend class="dac-form-legend">Which best describes your bu
siness:<span class="dac-form-required">*</span>
</legend>
<div class="dac-form-radio-group">
<input type="radio" value="Apps" class="dac-form-radio" na
me="entry.1796324055" id="newsletter-business-type-app" required>
<label for="newsletter-business-type-app" class="dac-formradio-button"></label>
<label for="newsletter-business-type-app" class="dac-formlabel">Apps</label>
</div>
<div class="dac-form-radio-group">
<input type="radio" value="Games" class="dac-form-radio" n
ame="entry.1796324055" id="newsletter-business-type-games" required>
<label for="newsletter-business-type-games" class="dac-for
m-radio-button"></label>
<label for="newsletter-business-type-games" class="dac-for
m-label">Games</label>
</div>
<div class="dac-form-radio-group">
<input type="radio" value="Apps and Games" class="dac-form
-radio" name="entry.1796324055" id="newsletter-business-type-appsgames" required
>
<label for="newsletter-business-type-appsgames" class="dac
-form-radio-button"></label>
<label for="newsletter-business-type-appsgames" class="dac
-form-label">Apps &amp; Games</label>

</div>
</div>
<div class="col-1of2 newsletter-rightCol newsletter-checkboxes
">
<div class="dac-form-radio-group">
<div class="dac-media">
<div class="dac-media-figure">
<input type="checkbox" class="dac-form-checkbox" name=
"entry.732309842" id="newsletter-add" required value="Add me to the mailing list
for the monthly newsletter and occasional emails about development and Google P
lay opportunities.">
<label for="newsletter-add" class="dac-form-checkbox-b
utton"></label>
</div>
<div class="dac-media-body">
<label for="newsletter-add" class="dac-form-label dacform-aside">Add me to the mailing list for the monthly newsletter and occasional
emails about development and Google Play opportunities.<span class="dac-form-re
quired">*</span></label>
</div>
</div>
</div>
<div class="dac-form-radio-group">
<div class="dac-media">
<div class="dac-media-figure">
<input type="checkbox" class="dac-form-checkbox" name=
"entry.2045036090" id="newsletter-terms" required value="I acknowledge that the
information provided in this form will be subject to Google's privacy policy (ht
tps://www.google.com/policies/privacy/).">
<label for="newsletter-terms" class="dac-form-checkbox
-button"></label>
</div>
<div class="dac-media-body">
<label for="newsletter-terms" class="dac-form-label da
c-form-aside">I acknowledge that the information provided in this form will be s
ubject to <a href="https://www.google.com/policies/privacy/">Google's privacy po
licy</a>.<span class="dac-form-required">*</span></label>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</section>
<footer class="dac-modal-footer">
<div class="cols">
<div class="col-2of5">
</div>
</div>
<button type="submit" value="Submit" class="dac-fab dac-primary da
c-large dac-modal-action"><i class="dac-sprite dac-arrow-right"></i></button>
</footer>
</form>
</section>
<section class="dac-swap-section dac-right">
<div class="dac-modal-content">
<p class="newsletter-success-message">
You have successfully signed up for the latest Android developer n
ews and tips.
</p>

</div>
</section>
</div>
</div>
</div>
</div> <!-- end footer -->
</div><!-- end doc-content -->
</div> <!-- end .cols -->
</div> <!-- end body-content -->

</body>
</html>

Das könnte Ihnen auch gefallen