<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Lbs on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/lbs/</link>
    <description>Recent content in Lbs on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #e9d956c0c0154a221ad83c925346a8fa0e72f866</copyright>
    <lastBuildDate>Sun, 30 May 2010 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/lbs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Sensor Fun: Location Based Services and GPS for Android</title>
      <link>https://www.hascode.com/sensor-fun-location-based-services-and-gps-for-android/</link>
      <pubDate>Sun, 30 May 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/sensor-fun-location-based-services-and-gps-for-android/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The Android SDK offers a nice API to receive information about available providers for location based services and get the current location and coordinates.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In this short tutorial we’re going to build a small activity that displays a list of available location providers and shows the current position using GPS services.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_example_application&#34;&gt;Example Application&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Create a new Android Project using ADT and your IDE with a package named &lt;em&gt;com.hascode.android.location_app&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the permissions needed to the &lt;em&gt;AndroidManifest.xml&lt;/em&gt; – it should look like this&lt;/p&gt;
&lt;div class=&#34;listingblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;pre class=&#34;highlight&#34;&gt;&lt;code class=&#34;language-xml&#34; data-lang=&#34;xml&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;gt;
&amp;lt;manifest xmlns:android=&amp;#34;http://schemas.android.com/apk/res/android&amp;#34;
	package=&amp;#34;com.hascode.android.location_app&amp;#34; android:versionCode=&amp;#34;1&amp;#34;
	android:versionName=&amp;#34;1.0&amp;#34;&amp;gt;
	&amp;lt;application android:icon=&amp;#34;@drawable/icon&amp;#34; android:label=&amp;#34;@string/app_name&amp;#34;&amp;gt;
		&amp;lt;activity android:name=&amp;#34;.LocationActivity&amp;#34; android:label=&amp;#34;@string/app_name&amp;#34;&amp;gt;
			&amp;lt;intent-filter&amp;gt;
				&amp;lt;action android:name=&amp;#34;android.intent.action.MAIN&amp;#34; /&amp;gt;
				&amp;lt;category android:name=&amp;#34;android.intent.category.LAUNCHER&amp;#34; /&amp;gt;
			&amp;lt;/intent-filter&amp;gt;
		&amp;lt;/activity&amp;gt;

	&amp;lt;/application&amp;gt;
	&amp;lt;uses-sdk android:minSdkVersion=&amp;#34;7&amp;#34; /&amp;gt;

	&amp;lt;uses-permission android:name=&amp;#34;android.permission.ACCESS_COARSE_LOCATION&amp;#34;&amp;gt;&amp;lt;/uses-permission&amp;gt;
	&amp;lt;uses-permission android:name=&amp;#34;android.permission.ACCESS_FINE_LOCATION&amp;#34;&amp;gt;&amp;lt;/uses-permission&amp;gt;
	&amp;lt;uses-permission android:name=&amp;#34;android.permission.ACCESS_LOCATION_EXTRA_COMMANDS&amp;#34;&amp;gt;&amp;lt;/uses-permission&amp;gt;
	&amp;lt;uses-permission android:name=&amp;#34;android.permission.ACCESS_MOCK_LOCATION&amp;#34;&amp;gt;&amp;lt;/uses-permission&amp;gt;
&amp;lt;/manifest&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
