Home | History | Annotate | Download | only in providers
      1 page.title=Trnh cung cp Ni dung
      2 @jd:body
      3 <div id="qv-wrapper">
      4 <div id="qv">
      5 
      6 
      7 <!-- In this document -->
      8 <h2>Ch </h2>
      9 <ol>
     10     <li>
     11         <a href="{@docRoot}guide/topics/providers/content-provider-basics.html">
     12         Ni dung C bn v Trnh cung cp Ni dung</a>
     13     </li>
     14     <li>
     15         <a href="{@docRoot}guide/topics/providers/content-provider-creating.html">
     16         To mt Trnh cung cp Ni dung</a>
     17     </li>
     18     <li>
     19         <a href="{@docRoot}guide/topics/providers/calendar-provider.html">Trnh cung cp Lch</a>
     20     </li>
     21     <li>
     22         <a href="{@docRoot}guide/topics/providers/contacts-provider.html">Trnh cung cp Danh b</a>
     23     </li>
     24 </ol>
     25 
     26     <!-- Related Samples -->
     27 <h2>Cc Mu Lin quan</h2>
     28     <ol>
     29         <li>
     30             <a href="{@docRoot}resources/samples/ContactManager/index.html">
     31             ng dng Trnh qun l Danh b</a>
     32         </li>
     33         <li>
     34         <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List2.html">
     35         "Con chy (Danh b)"
     36         </a>
     37         </li>
     38         <li>
     39         <a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List7.html">
     40         "Con chy (in thoi)"</a>
     41         </li>
     42         <li>
     43             <a href="{@docRoot}resources/samples/SampleSyncAdapter/index.html">
     44             Trnh iu hp ng b Mu</a>
     45         </li>
     46     </ol>
     47 </div>
     48 </div>
     49 <p>
     50     Trnh cung cp ni dung qun l truy cp vo mt tp d liu cu trc. Chng gi gn
     51     d liu v cung cp cc c ch  nh ngha bo mt d liu. Trnh cung cp ni dung l
     52     giao din tiu chun kt ni d liu trong mt tin trnh vi m ang chy trong mt tin trnh khc.
     53 </p>
     54 <p>
     55     Khi bn truy cp d liu trong mt trnh cung cp ni dung, bn s dng i tng
     56     {@link android.content.ContentResolver} trong
     57     {@link android.content.Context} ca ng dng ca bn  giao tip vi trnh cung cp nh mt my khch.
     58     i tng {@link android.content.ContentResolver} giao tip vi i tng trnh cung cp, mt
     59     thc th ca lp trin khai {@link android.content.ContentProvider}. i tng
     60     trnh cung cp nhn cc yu cu d liu t my khch, thc hin hnh ng c yu cu, v
     61     tr v kt qu.
     62 </p>
     63 <p>
     64     Bn khng cn pht trin trnh cung cp ca chnh mnh nu khng c  nh chia s d liu ca bn vi
     65     cc ng dng khc. Tuy nhin, bn cn phi c trnh cung cp ca chnh mnh  cung cp cc gi  tm kim ty chnh
     66     trong ng dng ca chnh bn. Bn cng cn phi c trnh cung cp ca chnh mnh nu mun sao chp v
     67     dn d liu hoc tp phc tp t ng dng ca bn sang cc ng dng khc.
     68 </p>
     69 <p>
     70     Bn thn Android bao gm cc trnh cung cp ni dung chuyn qun l d liu nh m thanh, video, hnh nh v
     71     thng tin lin lc c nhn. Bn c th thy mt s c lit k trong ti liu
     72     tham kho cho gi
     73     <code><a href="{@docRoot}reference/android/provider/package-summary.html">android.provider</a>
     74     </code>. Vi mt s hn ch, nhng trnh cung cp ny c th truy cp vo bt k ng dng
     75     Android no.
     76 </p><p>
     77     Cc ch  sau m t chi tit hn v cc trnh cung cp ni dung:
     78 </p>
     79 <dl>
     80     <dt>
     81         <strong><a href="{@docRoot}guide/topics/providers/content-provider-basics.html">
     82         Ni dung C bn v Trnh cung cp Ni dung</a></strong>
     83     </dt>
     84     <dd>
     85         Cch truy cp d liu trong mt trnh cung cp ni dung khi d liu c t chc di dng bng.
     86     </dd>
     87     <dt>
     88         <strong><a href="{@docRoot}guide/topics/providers/content-provider-creating.html">
     89         To mt Trnh cung cp Ni dung</a></strong>
     90     </dt>
     91     <dd>
     92         Cch to trnh cung cp ni dung ca chnh bn.
     93     </dd>
     94     <dt>
     95         <strong><a href="{@docRoot}guide/topics/providers/calendar-provider.html">
     96         Trnh cung cp Lch</a></strong>
     97     </dt>
     98     <dd>
     99         Cch truy cp Trnh cung cp Lch m l mt b phn ca nn tng Android.
    100     </dd>
    101     <dt>
    102         <strong><a href="{@docRoot}guide/topics/providers/contacts-provider.html">
    103         Trnh cung cp Danh b</a></strong>
    104     </dt>
    105     <dd>
    106         Cch truy cp Trnh cung cp Danh b m l mt b phn ca nn tng Android.
    107     </dd>
    108 </dl>
    109