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 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 ID ( ID 37 ). 38 ID . </li> 39 40 <li> (VM) , 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 ID . 58 . , ID 59 Linux VM ( 60 ).</li> 61 <li> , SMS , (SD ), 62 , 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> <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> <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> </i> . SQLite , 127 128 . , 129 ( ). , Android 130 . , 131 ( {@link 132 android.provider.ContactsContract.Data} ) . 133 134 <p> 135 . <a href="{@docRoot}resources/samples/NotePad/index.html"></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> <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></em> 186 . .</p> 187 188 189 <h3 id="ActivatingComponents"> </h3> 190 191 <p> —, 192 — <em></em> . 193 ( 194 ), 195 .</p> 196 197 <p> {@link android.content.Intent} , 198 <em></em> . 199 .</p> 200 201 <p> , ( '" 202 ""), URI ( 203 ). , 204 . 205 . 206 {@link android.content.Intent} ( , 207 — 208 URI ).</p> 209 210 <p> , 211 ( , 212 " " ).</p> 213 214 <p> , . 215 {@link android.content.ContentResolver} . 216 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 android.content.ContentResolver} {@link 236 android.content.ContentProvider#query query()} .</li> 237 </ul> 238 239 <p> <a href="{@docRoot}guide/components/intents-filters.html"> 240 </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> API <a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#ApiLevels">API </a> 258 </li> 259 <li> (: , 260 )</li> 261 <li> API (Android 262 API )(: <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><a 285 href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> 286 {@code android:icon} 287 .</p> 288 289 <p><code><a 290 href="{@docRoot}guide/topics/manifest/activity-element.html"><activity></a></code> , 291 {@code android:name} {@link 292 android.app.Activity} {@code android:label} 293 .</p> 294 295 <p> .</p> 296 <ul> 297 <li> 298 <code><a 299 href="{@docRoot}guide/topics/manifest/activity-element.html"><activity></a></code> </li> 300 <li> 301 <code><a 302 href="{@docRoot}guide/topics/manifest/service-element.html"><service></a></code> </li> 303 <li> 304 <code><a 305 href="{@docRoot}guide/topics/manifest/receiver-element.html"><receiver></a></code> </li> 306 <li> 307 <code><a 308 href="{@docRoot}guide/topics/manifest/provider-element.html"><provider></a></code> </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} , . 327 ( ). , 328 <em> </em> . 329 (, , 330 ) 331 . , 332 .</p> 333 334 <p> 335 <i> </i> . 336 .</p> 337 338 <p> , 339 340 . 341 <a href="{@docRoot}guide/topics/manifest/intent-filter-element.html">{@code 342 <intent-filter>}</a> .</p> 343 344 <p> , . "" 345 ( ) .</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> , {@link 362 android.content.Intent#ACTION_SEND} {@link android.app.Activity#startActivity 363 startActivity()} 364 .</p> 365 366 <p> <a href="{@docRoot}guide/components/intents-filters.html"> </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> , Android 2.1 API (<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> <em></em> Android 2.1 <em></em> 394 Google Play .</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 , , , XML 412 . 413 414 415 (: ).</p> 416 417 <p>Android SDK 418 ID , XML 419 . {@code 420 logo.png} ({@code res/drawable/} ) SDK 421 {@code R.drawable.logo} ID . 422 .</p> 423 424 <p> 425 426 . UI XML 427 . , <em></em> 428 ( {@code res/values-fr/}) 429 Android UI 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"> </a> 453 </dt> 454 <dd>{@link android.content.Intent} API 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