<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=Android_-_Location_API</id>
	<title>Android - Location API - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=Android_-_Location_API"/>
	<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Android_-_Location_API&amp;action=history"/>
	<updated>2026-05-06T20:38:05Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Wikizone</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=Android_-_Location_API&amp;diff=20064&amp;oldid=prev</id>
		<title>79.240.46.5: /* Einleitung */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Android_-_Location_API&amp;diff=20064&amp;oldid=prev"/>
		<updated>2013-10-15T09:48:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Einleitung&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 15. Oktober 2013, 09:48 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Zeile 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Location Services is part of the Google Play services APK. you should always check that the APK is installed before you attempt to connect to Location Services&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Location Services is part of the Google Play services APK. you should always check that the APK is installed before you attempt to connect to Location Services&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   GooglePlayServicesUtil.isGooglePlayServicesAvailable()&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   GooglePlayServicesUtil.isGooglePlayServicesAvailable()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Schnellstart ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== Position abfragen ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Create LocationClient (lc)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Verbinde lc mit LocationServices&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Rufe die getLastLocation() Methode des lc auf&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== GooglePlayService Test ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== GooglePlayService Test ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>79.240.46.5</name></author>
	</entry>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=Android_-_Location_API&amp;diff=20062&amp;oldid=prev</id>
		<title>79.240.46.5: Die Seite wurde neu angelegt: „http://developer.android.com/training/location/index.html   == Einleitung == === Location Client === Die Location Services senden die User Position durch einen lo…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Android_-_Location_API&amp;diff=20062&amp;oldid=prev"/>
		<updated>2013-10-15T08:18:56Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „http://developer.android.com/training/location/index.html   == Einleitung == === Location Client === Die Location Services senden die User Position durch einen lo…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;http://developer.android.com/training/location/index.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Einleitung ==&lt;br /&gt;
=== Location Client ===&lt;br /&gt;
Die Location Services senden die User Position durch einen location client. Dieser ist eine Instanz der Location Services Klasse &amp;#039;&amp;#039;&amp;#039;LocationClient&amp;#039;&amp;#039;&amp;#039;. Alle Location Infos gehen durch diesen Client&lt;br /&gt;
=== Google Play services APK ===&lt;br /&gt;
Location Services is part of the Google Play services APK. you should always check that the APK is installed before you attempt to connect to Location Services&lt;br /&gt;
  GooglePlayServicesUtil.isGooglePlayServicesAvailable()&lt;br /&gt;
&lt;br /&gt;
== GooglePlayService Test ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
public class MainActivity extends FragmentActivity {&lt;br /&gt;
    ...&lt;br /&gt;
    // Global constants&lt;br /&gt;
    /*&lt;br /&gt;
     * Define a request code to send to Google Play services&lt;br /&gt;
     * This code is returned in Activity.onActivityResult&lt;br /&gt;
     */&lt;br /&gt;
    private final static int&lt;br /&gt;
            CONNECTION_FAILURE_RESOLUTION_REQUEST = 9000;&lt;br /&gt;
    ...&lt;br /&gt;
    // Define a DialogFragment that displays the error dialog&lt;br /&gt;
    public static class ErrorDialogFragment extends DialogFragment {&lt;br /&gt;
        // Global field to contain the error dialog&lt;br /&gt;
        private Dialog mDialog;&lt;br /&gt;
        // Default constructor. Sets the dialog field to null&lt;br /&gt;
        public ErrorDialogFragment() {&lt;br /&gt;
            super();&lt;br /&gt;
            mDialog = null;&lt;br /&gt;
        }&lt;br /&gt;
        // Set the dialog to display&lt;br /&gt;
        public void setDialog(Dialog dialog) {&lt;br /&gt;
            mDialog = dialog;&lt;br /&gt;
        }&lt;br /&gt;
        // Return a Dialog to the DialogFragment.&lt;br /&gt;
        @Override&lt;br /&gt;
        public Dialog onCreateDialog(Bundle savedInstanceState) {&lt;br /&gt;
            return mDialog;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    ...&lt;br /&gt;
    /*&lt;br /&gt;
     * Handle results returned to the FragmentActivity&lt;br /&gt;
     * by Google Play services&lt;br /&gt;
     */&lt;br /&gt;
    @Override&lt;br /&gt;
    protected void onActivityResult(&lt;br /&gt;
            int requestCode, int resultCode, Intent data) {&lt;br /&gt;
        // Decide what to do based on the original request code&lt;br /&gt;
        switch (requestCode) {&lt;br /&gt;
            ...&lt;br /&gt;
            case CONNECTION_FAILURE_RESOLUTION_REQUEST :&lt;br /&gt;
            /*&lt;br /&gt;
             * If the result code is Activity.RESULT_OK, try&lt;br /&gt;
             * to connect again&lt;br /&gt;
             */&lt;br /&gt;
                switch (resultCode) {&lt;br /&gt;
                    case Activity.RESULT_OK :&lt;br /&gt;
                    /*&lt;br /&gt;
                     * Try the request again&lt;br /&gt;
                     */&lt;br /&gt;
                    ...&lt;br /&gt;
                    break;&lt;br /&gt;
                }&lt;br /&gt;
            ...&lt;br /&gt;
        }&lt;br /&gt;
     }&lt;br /&gt;
    ...&lt;br /&gt;
    private boolean servicesConnected() {&lt;br /&gt;
        // Check that Google Play services is available&lt;br /&gt;
        int resultCode =&lt;br /&gt;
                GooglePlayServicesUtil.&lt;br /&gt;
                        isGooglePlayServicesAvailable(this);&lt;br /&gt;
        // If Google Play services is available&lt;br /&gt;
        if (ConnectionResult.SUCCESS == resultCode) {&lt;br /&gt;
            // In debug mode, log the status&lt;br /&gt;
            Log.d(&amp;quot;Location Updates&amp;quot;,&lt;br /&gt;
                    &amp;quot;Google Play services is available.&amp;quot;);&lt;br /&gt;
            // Continue&lt;br /&gt;
            return true;&lt;br /&gt;
        // Google Play services was not available for some reason&lt;br /&gt;
        } else {&lt;br /&gt;
            // Get the error code&lt;br /&gt;
            int errorCode = connectionResult.getErrorCode();&lt;br /&gt;
            // Get the error dialog from Google Play services&lt;br /&gt;
            Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(&lt;br /&gt;
                    errorCode,&lt;br /&gt;
                    this,&lt;br /&gt;
                    CONNECTION_FAILURE_RESOLUTION_REQUEST);&lt;br /&gt;
&lt;br /&gt;
            // If Google Play services can provide an error dialog&lt;br /&gt;
            if (errorDialog != null) {&lt;br /&gt;
                // Create a new DialogFragment for the error dialog&lt;br /&gt;
                ErrorDialogFragment errorFragment =&lt;br /&gt;
                        new ErrorDialogFragment();&lt;br /&gt;
                // Set the dialog in the DialogFragment&lt;br /&gt;
                errorFragment.setDialog(errorDialog);&lt;br /&gt;
                // Show the error dialog in the DialogFragment&lt;br /&gt;
                errorFragment.show(getSupportFragmentManager(),&lt;br /&gt;
                        &amp;quot;Location Updates&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    ...&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>79.240.46.5</name></author>
	</entry>
</feed>