Loading docs/html/guide/topics/data/data-storage.jd +19 −6 Original line number Diff line number Diff line Loading @@ -16,9 +16,22 @@ page.title=Data Storage <h2>In this document</h2> <ol> <li><a href="#pref">Using Shared Preferences</a></li> <li><a href="#filesInternal">Using the Internal Storage</a></li> <li><a href="#filesExternal">Using the External Storage</a></li> <li><a href="#db">Using Databases</a></li> <li><a href="#filesInternal">Using the Internal Storage</a> <ol> <li><a href="#InternalCache">Saving cache files</a></li> <li><a href="#InternalMethods">Other useful methods</a></li> </ol></li> <li><a href="#filesExternal">Using the External Storage</a> <ol> <li><a href="#MediaAvail">Checking media availability</a></li> <li><a href="#AccessingExtFiles">Accessing files on external storage</a></li> <li><a href="#SavingSharedFiles">Saving files that should be shared</a></li> <li><a href="#ExternalCache">Saving cache files</a></li> </ol></li> <li><a href="#db">Using Databases</a> <ol> <li><a href="#dbDebugging">Database debugging</a></li> </ol></li> <li><a href="#netw">Using a Network Connection</a></li> </ol> Loading Loading @@ -238,7 +251,7 @@ save to the external storage. All applications can read and write files placed o storage and the user can remove them.</p> <h3>Checking media availability</h3> <h3 id="MediaAvail">Checking media availability</h3> <p>Before you do any work with the external storage, you should always call {@link android.os.Environment#getExternalStorageState()} to check whether the media is available. The Loading Loading @@ -271,7 +284,7 @@ entirely, has been removed badly, etc. You can use these to notify the user with when your application needs to access the media.</p> <h3>Accessing files on external storage</h3> <h3 id="AccessingExtFiles">Accessing files on external storage</h3> <p>If you're using API Level 8 or greater, use {@link android.content.Context#getExternalFilesDir(String) getExternalFilesDir()} to open a {@link Loading Loading @@ -310,7 +323,7 @@ files and including them in apps like Gallery or Music.</p> </div> <h3>Saving files that should be shared</h3> <h3 id="SavingSharedFiles">Saving files that should be shared</h3> <p>If you want to save files that are not specific to your application and that should <em>not</em> be deleted when your application is uninstalled, save them to one of the public directories on the Loading docs/html/guide/topics/fundamentals/fragments.jd +1 −1 Original line number Diff line number Diff line Loading @@ -515,7 +515,7 @@ ExampleFragment fragment = (ExampleFragment) getFragmentManager().findFragmentBy </pre> <h4 id="EventCallbacks">Creating event callbacks to the activity</h4> <h3 id="EventCallbacks">Creating event callbacks to the activity</h3> <p>In some cases, you might need a fragment to share events with the activity. A good way to do that is to define a callback interface inside the fragment and require that the host activity implement Loading docs/html/guide/topics/nfc/index.jd +17 −28 Original line number Diff line number Diff line Loading @@ -3,30 +3,19 @@ page.title=Near Field Communication <div id="qv-wrapper"> <div id="qv"> <h2>Near Field Communication quickview</h2> <h2>In this document</h2> <ol> <li><a href="#api">API Overview</a></li> <li><a href="#manifest">Declaring Android Manifest Elements</a></li> <li> <a href="#dispatch">The Tag Dispatch System</a> <li><a href="#manifest">Declaring Android Manifest elements</a></li> <li><a href="#dispatch">The Tag Dispatch System</a> <ol> <li><a href="#intent-dispatch">Using the intent dispatch system</a></li> <li><a href="#foreground-dispatch">Using the foreground dispatch system</a></li> </ol> </li> <li><a href="#ndef">NDEF Messages</a></li> </ol></li> <li><a href="#ndef">Working with Data on NFC Tags</a></li> <li><a href="#read">Reading an NFC Tag</a></li> <li><a href="#write">Writing to an NFC Tag</a></li> <li><a href="#p2p">Peer to Peer Data Exchange</a></li> <li><a href="#p2p">Peer-to-Peer Data Exchange</a></li> </ol> </div> </div> Loading docs/html/guide/topics/wireless/bluetooth.jd +3 −8 Original line number Diff line number Diff line Loading @@ -18,18 +18,13 @@ other devices</li> <li><a href="#FindingDevices">Finding Devices</a> <ol> <li><a href="#QueryingPairedDevices">Querying paired devices</a></li> <li><a href="#DiscoveringDevices">Discovering devices</a> <ol><li><a href="#EnablingDiscoverability">Enabling discoverability</a></li></ol> </li> </ol> </li> <li><a href="#DiscoveringDevices">Discovering devices</a></li> </ol></li> <li><a href="#ConnectingDevices">Connecting Devices</a> <ol> <li><a href="#ConnectingAsAServer">Connecting as a server</a></li> <li><a href="#ConnectingAsAClient">Connecting as a client</a></li> </ol> </li> </ol></li> <li><a href="#ManagingAConnection">Managing a Connection</a></li> </ol> Loading Loading
docs/html/guide/topics/data/data-storage.jd +19 −6 Original line number Diff line number Diff line Loading @@ -16,9 +16,22 @@ page.title=Data Storage <h2>In this document</h2> <ol> <li><a href="#pref">Using Shared Preferences</a></li> <li><a href="#filesInternal">Using the Internal Storage</a></li> <li><a href="#filesExternal">Using the External Storage</a></li> <li><a href="#db">Using Databases</a></li> <li><a href="#filesInternal">Using the Internal Storage</a> <ol> <li><a href="#InternalCache">Saving cache files</a></li> <li><a href="#InternalMethods">Other useful methods</a></li> </ol></li> <li><a href="#filesExternal">Using the External Storage</a> <ol> <li><a href="#MediaAvail">Checking media availability</a></li> <li><a href="#AccessingExtFiles">Accessing files on external storage</a></li> <li><a href="#SavingSharedFiles">Saving files that should be shared</a></li> <li><a href="#ExternalCache">Saving cache files</a></li> </ol></li> <li><a href="#db">Using Databases</a> <ol> <li><a href="#dbDebugging">Database debugging</a></li> </ol></li> <li><a href="#netw">Using a Network Connection</a></li> </ol> Loading Loading @@ -238,7 +251,7 @@ save to the external storage. All applications can read and write files placed o storage and the user can remove them.</p> <h3>Checking media availability</h3> <h3 id="MediaAvail">Checking media availability</h3> <p>Before you do any work with the external storage, you should always call {@link android.os.Environment#getExternalStorageState()} to check whether the media is available. The Loading Loading @@ -271,7 +284,7 @@ entirely, has been removed badly, etc. You can use these to notify the user with when your application needs to access the media.</p> <h3>Accessing files on external storage</h3> <h3 id="AccessingExtFiles">Accessing files on external storage</h3> <p>If you're using API Level 8 or greater, use {@link android.content.Context#getExternalFilesDir(String) getExternalFilesDir()} to open a {@link Loading Loading @@ -310,7 +323,7 @@ files and including them in apps like Gallery or Music.</p> </div> <h3>Saving files that should be shared</h3> <h3 id="SavingSharedFiles">Saving files that should be shared</h3> <p>If you want to save files that are not specific to your application and that should <em>not</em> be deleted when your application is uninstalled, save them to one of the public directories on the Loading
docs/html/guide/topics/fundamentals/fragments.jd +1 −1 Original line number Diff line number Diff line Loading @@ -515,7 +515,7 @@ ExampleFragment fragment = (ExampleFragment) getFragmentManager().findFragmentBy </pre> <h4 id="EventCallbacks">Creating event callbacks to the activity</h4> <h3 id="EventCallbacks">Creating event callbacks to the activity</h3> <p>In some cases, you might need a fragment to share events with the activity. A good way to do that is to define a callback interface inside the fragment and require that the host activity implement Loading
docs/html/guide/topics/nfc/index.jd +17 −28 Original line number Diff line number Diff line Loading @@ -3,30 +3,19 @@ page.title=Near Field Communication <div id="qv-wrapper"> <div id="qv"> <h2>Near Field Communication quickview</h2> <h2>In this document</h2> <ol> <li><a href="#api">API Overview</a></li> <li><a href="#manifest">Declaring Android Manifest Elements</a></li> <li> <a href="#dispatch">The Tag Dispatch System</a> <li><a href="#manifest">Declaring Android Manifest elements</a></li> <li><a href="#dispatch">The Tag Dispatch System</a> <ol> <li><a href="#intent-dispatch">Using the intent dispatch system</a></li> <li><a href="#foreground-dispatch">Using the foreground dispatch system</a></li> </ol> </li> <li><a href="#ndef">NDEF Messages</a></li> </ol></li> <li><a href="#ndef">Working with Data on NFC Tags</a></li> <li><a href="#read">Reading an NFC Tag</a></li> <li><a href="#write">Writing to an NFC Tag</a></li> <li><a href="#p2p">Peer to Peer Data Exchange</a></li> <li><a href="#p2p">Peer-to-Peer Data Exchange</a></li> </ol> </div> </div> Loading
docs/html/guide/topics/wireless/bluetooth.jd +3 −8 Original line number Diff line number Diff line Loading @@ -18,18 +18,13 @@ other devices</li> <li><a href="#FindingDevices">Finding Devices</a> <ol> <li><a href="#QueryingPairedDevices">Querying paired devices</a></li> <li><a href="#DiscoveringDevices">Discovering devices</a> <ol><li><a href="#EnablingDiscoverability">Enabling discoverability</a></li></ol> </li> </ol> </li> <li><a href="#DiscoveringDevices">Discovering devices</a></li> </ol></li> <li><a href="#ConnectingDevices">Connecting Devices</a> <ol> <li><a href="#ConnectingAsAServer">Connecting as a server</a></li> <li><a href="#ConnectingAsAClient">Connecting as a client</a></li> </ol> </li> </ol></li> <li><a href="#ManagingAConnection">Managing a Connection</a></li> </ol> Loading