1 page.title= 2 @jd:body 3 4 <div id="qv-wrapper"> 5 <div id="qv"> 6 7 <h2> </h2> 8 <ol> 9 <li><a href="#Components"> </a> 10 <ol> 11 <li><a href="#ActivatingComponents"> </a></li> 12 </ol> 13 </li> 14 <li><a href="#Manifest"> </a> 15 <ol> 16 <li><a href="#DeclaringComponents"> </a></li> 17 <li><a href="#DeclaringRequirements"> </a></li> 18 </ol> 19 </li> 20 <li><a href="#Resources"> </a></li> 21 </ol> 22 </div> 23 </div> 24 25 <p> Android Java. Android SDK (Software Development Kit ) 26 — — APK <i> Android</i>, 27 {@code .apk}. APK , 28 Android-, Android.</p> 29 30 <p> Android, , "" ( ): </p> 31 32 <ul> 33 <li> Android Linux, 34 ;</li> 35 36 <li> Linux ( 37 ); 38 , , ; </li> 39 40 <li> (), 41 ;</li> 42 43 <li> Linux. Android , 44 - , , 45 .</li> 46 </ul> 47 48 <p> Android <em> </em>. 49 , , 50 . , 51 .</p> 52 53 <p> 54 :</p> 55 56 <ul> 57 <li> Linux. 58 . 59 , Linux ( 60 );</li> 61 <li> , 62 , SMS-, (SD-), , Bluetooth . 63 .</li> 64 </ul> 65 66 <p> , Android . 67 :</p> 68 <ul> 69 <li> , ;</li> 70 <li> , , 71 ;</li> 72 <li>, 73 .</li> 74 </ul> 75 76 77 78 <h2 id="Components"> </h2> 79 80 <p> , Android. 81 , . 82 , . 83 — , 84 .</p> 85 86 <p> . , 87 , .</p> 88 89 <p> :</p> 90 91 <dl> 92 93 <dt><b></b></dt> 94 95 <dd> (Activity) <i></i> . , 96 97 , . 98 , 99 . 100 ( ). , 101 , , . 102 103 <p> {@link android.app.Activity}. 104 <a href="{@docRoot}guide/components/activities.html"></a> 105 .</p> 106 </dd> 107 108 109 <dt><b></b></dt> 110 111 <dd> (Service) <i></i> , 112 , . 113 . , , 114 , , 115 . , , 116 . 117 118 <p> {@link android.app.Service}. 119 <a href="{@docRoot}guide/components/services.html"></a> 120 .</p> 121 </dd> 122 123 124 <dt><b> </b></dt> 125 126 <dd> <i> (Content provider)</i> . 127 , SQLite, , 128 . 129 ( ). , Android 130 , . , 131 , ( {@link 132 android.provider.ContactsContract.Data}), . 133 134 <p> , 135 . , <a href="{@docRoot}resources/samples/NotePad/index.html">Note Pad</a> 136 .</p> 137 138 <p> {@link android.content.ContentProvider}. 139 API-, 140 . <a href="{@docRoot}guide/topics/providers/content-providers.html"> </a> 141 .</p> 142 </dd> 143 144 145 <dt><b> </b></dt> 146 147 <dd> (Broadcast receiver) <i></i> , 148 . — , 149 , . 150 , — , , 151 - . 152 , <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html"> ,</a> 153 " ". 154 "" . 155 , . 156 157 <p> {@link android.content.BroadcastReceiver} 158 , {@link android.content.Intent}. 159 , {@link android.content.BroadcastReceiver}.</p> 160 </dd> 161 162 </dl> 163 164 165 166 <p> Android , 167 . , , 168 , , , , , 169 . 170 . 171 172 . , . 173 .</p> 174 175 <p> , ( 176 ) , . , 177 , 178 , , . 179 , , Android 180 (, {@code main()}).</p> 181 182 <p> , 183 , 184 . Android. , 185 , (<em>Intent</em>) 186 . .</p> 187 188 189 <h3 id="ActivatingComponents"> </h3> 190 191 <p> — , 192 — , <em>Intent</em> (). 193 Intent , 194 ( Intent 195 , ).</p> 196 197 <p> Intent {@link android.content.Intent}, 198 , <em></em> — , Intent 199 .</p> 200 201 <p> Intent , (, (view) 202 (send) -), URI (Uniform Resource Identifier ) , ( , 203 ). , Intent 204 " " " -". 205 , . 206 {@link android.content.Intent} (, Intent, 207 — Intent 208 URI, ).</p> 209 210 <p> Intent 211 (, 212 " ").</p> 213 214 <p> Intent . 215 {@link android.content.ContentResolver}. 216 (content resolver) , , 217 . {@link 218 android.content.ContentResolver}. , ( ) 219 , .</p> 220 221 <p> :</p> 222 <ul> 223 <li> ( - ), 224 {@link android.content.Intent} {@link android.content.Context#startActivity 225 startActivity()} {@link android.app.Activity#startActivityForResult startActivityForResult()} 226 ( , ).</li> 227 <li> ( ), 228 {@link android.content.Intent} {@link android.content.Context#startService 229 startService()}. , {@link android.content.Intent} 230 {@link android.content.Context#bindService bindService()}.</li> 231 <li> , {@link android.content.Intent} , 232 {@link android.content.Context#sendBroadcast(Intent) sendBroadcast()}, {@link 233 android.content.Context#sendOrderedBroadcast(Intent, String) sendOrderedBroadcast()} {@link 234 android.content.Context#sendStickyBroadcast sendStickyBroadcast()}.</li> 235 <li> , {@link 236 android.content.ContentProvider#query query()} {@link android.content.ContentResolver}.</li> 237 </ul> 238 239 <p> Intent <a href="{@docRoot}guide/components/intents-filters.html"> Intent 240 Intent</a>. 241 : <a href="{@docRoot}guide/components/activities.html"></a>, <a href="{@docRoot}guide/components/services.html"></a>, {@link 242 android.content.BroadcastReceiver} <a href="{@docRoot}guide/topics/providers/content-providers.html"> </a>.</p> 243 244 245 <h2 id="Manifest"> </h2> 246 247 <p> Android , 248 . {@code AndroidManifest.xml} ( 249 ). , 250 , .</p> 251 252 <p> , , 253 :</p> 254 <ul> 255 <li> , , 256 ;</li> 257 <li> <a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#ApiLevels"> API</a>, 258 , , API- ;</li> 259 <li> , , , 260 Bluetooth ;</li> 261 <li> API, ( API- 262 Android), <a href="http://code.google.com/android/add-ons/google-apis/maps-overview.html">Google Maps 263 </a>;</li> 264 <li> .</li> 265 </ul> 266 267 268 <h3 id="DeclaringComponents"> </h3> 269 270 <p> . , 271 : </p> 272 273 <pre> 274 <?xml version="1.0" encoding="utf-8"?> 275 <manifest ... > 276 <application android:icon="@drawable/app_icon.png" ... > 277 <activity android:name="com.example.project.ExampleActivity" 278 android:label="@string/example_label" ... > 279 </activity> 280 ... 281 </application> 282 </manifest></pre> 283 284 <p> {@code android:icon} <code><a 285 href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> 286 , 287 .</p> 288 289 <p> {@code android:name} <code><a 290 href="{@docRoot}guide/topics/manifest/activity-element.html"><activity></a></code> 291 {@link 292 android.app.Activity}, {@code android:label} , 293 , .</p> 294 295 <p> :</p> 296 <ul> 297 <li> <code><a 298 href="{@docRoot}guide/topics/manifest/activity-element.html"><activity></a></code> 299 ;</li> 300 <li> <code><a 301 href="{@docRoot}guide/topics/manifest/service-element.html"><service></a></code> 302 ;</li> 303 <li> <code><a 304 href="{@docRoot}guide/topics/manifest/receiver-element.html"><receiver></a></code> 305 ;</li> 306 <li> <code><a 307 href="{@docRoot}guide/topics/manifest/provider-element.html"><provider></a></code> 308 </li> 309 </ul> 310 311 <p> , , , 312 , . 313 314 , ( 315 {@link android.content.BroadcastReceiver}) 316 {@link android.content.Context#registerReceiver registerReceiver()}.</p> 317 318 <p> . <a href="{@docRoot}guide/topics/manifest/manifest-intro.html"> AndroidManifest.xml</a> 319 . </p> 320 321 322 323 <h3 id="DeclaringComponentCapabilities"> </h3> 324 325 <p> <a href="#ActivatingComponents"> </a>, 326 {@link android.content.Intent} , . Intent 327 ( ). 328 Intent <em> Intent</em>. Intent 329 , ( , , , 330 ). , 331 , . , , 332 Intent, , .</p> 333 334 <p> , Intent, 335 Intent <i> Intent,</i> , 336 .</p> 337 338 <p> 339 Intent, , Intent 340 . Intent , 341 <a href="{@docRoot}guide/topics/manifest/intent-filter-element.html">{@code 342 <intent-filter>}</a> .</p> 343 344 <p>, , 345 Intent "send" ( ) :</p> 346 <pre> 347 <manifest ... > 348 ... 349 <application ... > 350 <activity android:name="com.example.project.ComposeEmailActivity"> 351 <intent-filter> 352 <action android:name="android.intent.action.SEND" /> 353 <data android:type="*/*" /> 354 <category android:name="android.intent.category.DEFAULT" /> 355 </intent-filter> 356 </activity> 357 </application> 358 </manifest> 359 </pre> 360 361 <p>, Intent {@link 362 android.content.Intent#ACTION_SEND} {@link android.app.Activity#startActivity 363 startActivity()}, , 364 .</p> 365 366 <p> Intent <a href="{@docRoot}guide/components/intents-filters.html"> Intent Intent</a>. 367 </p> 368 369 370 371 <h3 id="DeclaringRequirements"> </h3> 372 373 <p> , Android, 374 . , 375 , , 376 , , 377 . , 378 . , Google Play, 379 , .</p> 380 381 <p>, API- Android 2.1 (<a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#ApiLevels"> API</a> 7), 382 :</p> 383 384 <pre> 385 <manifest ... > 386 <uses-feature android:name="android.hardware.camera.any" 387 android:required="true" /> 388 <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="19" /> 389 ... 390 </manifest> 391 </pre> 392 393 <p> Google Play , <em></em> , , 394 Android <em></em> 2.1.</p> 395 396 <p> , , 397 <em> </em>. <a href="{@docRoot}guide/topics/manifest/uses-feature-element.html#required">{@code required}</a> 398 {@code "false"}, , 399 , , .</p> 400 401 <p> 402 <a href="{@docRoot}guide/practices/compatibility.html"> </a> 403 .</p> 404 405 406 407 <h2 id="Resources"> </h2> 408 409 <p> Android — 410 , , , 411 . , , , , 412 XML. , 413 , , , , — 414 — 415 (, ).</p> 416 417 <p> , Android, SDK 418 , , 419 , XML. , {@code 420 logo.png} ( {@code res/drawable/}), SDK 421 {@code R.drawable.logo}, 422 .</p> 423 424 <p> 425 426 . , XML, 427 . <em></em> 428 , ( {@code res/values-fr/} 429 ), Android 430 .</p> 431 432 <p>Android <em></em> . 433 , 434 , . 435 , , 436 . , 437 ( ), , 438 ( ), . , 439 440 . 441 .</p> 442 443 <p> , , , 444 , . <a href="{@docRoot}guide/topics/resources/providing-resources.html"> </a>.</p> 445 446 447 448 <div class="next-docs"> 449 <div class="col-6"> 450 <h2 class="norule"> :</h2> 451 <dl> 452 <dt><a href="{@docRoot}guide/components/intents-filters.html"> Intent Intent</a> 453 </dt> 454 <dd> API- {@link android.content.Intent} 455 , , 456 .</dd> 457 <dt><a href="{@docRoot}guide/components/activities.html"></a></dt> 458 <dd> {@link android.app.Activity}, 459 .</dd> 460 <dt><a href="{@docRoot}guide/topics/resources/providing-resources.html"> </a></dt> 461 <dd> Android, 462 , , 463 . 464 </dd> 465 </dl> 466 </div> 467 <div class="col-6"> 468 <h2 class="norule">, :</h2> 469 <dl> 470 <dt><a href="{@docRoot}guide/practices/compatibility.html"> </a></dt> 471 <dd> , Android , , 472 , 473 .</dd> 474 <dt><a href="{@docRoot}guide/topics/security/permissions.html"> </a></dt> 475 <dd> , Android API- 476 , API- .</dd> 477 </dl> 478 </div> 479 </div> 480 481