<?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>Android on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/android/</link>
    <description>Recent content in Android on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo -- 0.147.8</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #213243b1d6e8932079e09227d3f3ed0c806cd0c9</copyright>
    <lastBuildDate>Sun, 13 Jun 2021 00:00:00 +0200</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/android/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Factory Reset for Google Pixel-C Android Tablet</title>
      <link>https://www.hascode.com/factory-reset-for-google-pixel-c-android-tablet/</link>
      <pubDate>Sun, 13 Jun 2021 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/factory-reset-for-google-pixel-c-android-tablet/</guid>
      <description>&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_steps&#34;&gt;Steps&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;olist arabic&#34;&gt;
&lt;ol class=&#34;arabic&#34;&gt;
&lt;li&gt;
&lt;p&gt;Reboot the system by pressing &amp;#34;Power&amp;#34; and &amp;#34;Volume down&amp;#34; simultaneously&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Boot menu should appear, use &amp;#34;Volume up/down&amp;#34; to select the menu item &amp;#34;Android Recovery&amp;#34;, &amp;#34;Power&amp;#34; to confirm&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;System reboots, a screen appears with a message &amp;#34;No command&amp;#34; - this is no error though it looks like one&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Press &amp;#34;Power&amp;#34; and &amp;#34;Volume up&amp;#34; together and a menu &amp;#34;Android Recovery&amp;#34; appears&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use &amp;#34;Volume up/down&amp;#34; to select the menu item &amp;#34;Wipe data/factory reset&amp;#34;, &amp;#34;Power&amp;#34; to confirm&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;User data on the device is deleted and the original meu is shown&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select the menu item &amp;#34;Reboot system now&amp;#34; and confirm by pressing the &amp;#34;Power&amp;#34; Button&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The device reboots and you may configure the Android system …​&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Quick Mobile Application Prototyping with Ionic Creator</title>
      <link>https://www.hascode.com/quick-mobile-application-prototyping-with-ionic-creator/</link>
      <pubDate>Tue, 17 Nov 2015 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/quick-mobile-application-prototyping-with-ionic-creator/</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;When it comes to the field of hybrid mobile application development, Ionic and its tool-stack is often an attractive choice.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Now there is Ionic Creator to speed up the development process offering an in-browser editor to create user interfaces via drag and drop and supporting basic templates for mobile applications like tabbed layouts etc.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In addition, a project created with this tool may be downloaded and started with easy and that’s what I’d like to show in the following short example.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Creating a hybrid mobile Application with Ionic, Cordova and AngularJS</title>
      <link>https://www.hascode.com/creating-a-hybrid-mobile-application-with-ionic-cordova-and-angularjs/</link>
      <pubDate>Sun, 03 May 2015 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/creating-a-hybrid-mobile-application-with-ionic-cordova-and-angularjs/</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;Nowadays in the realm of hybrid mobile application development there is a variety of available frameworks worth having a look at.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following tutorial I’d like to demonstrate the development life-cycle for a complete mobile application using Ionic, Cordova and AngularJS (and others) covering every step from the initial project setup, creating Angular Controllers, Directives, adding Cordova Plug-Ins, running and testing the application in the browser and emulator up to finally running the application on an Android device and assembling files for a release.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Using the Android Daydream API</title>
      <link>https://www.hascode.com/using-the-android-daydream-api/</link>
      <pubDate>Tue, 22 Jan 2013 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/using-the-android-daydream-api/</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;Daydream is the new interactive screensaver mode that was added in the Android 4.2 / Jelly Beans release. Such “dreams” may be activated when the device is in idle mode or inserted into a dock.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following tutorial we’re going to create a simple daydream that starts a simple animation and in addition we’ll be adding a configuration screen to alter the behaviour of this daydream.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_create_a_new_android_application&#34;&gt;Create a new Android Application&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First of all we need a new android project. I am using Eclipse and the ADT plugin here but any other solution like using a specific Maven archetype and the Jayway Maven plugin or using SBT should work, too.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Using the Android Fragment API in a Tablet App</title>
      <link>https://www.hascode.com/using-the-android-fragment-api-in-a-tablet-app/</link>
      <pubDate>Sun, 18 Mar 2012 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/using-the-android-fragment-api-in-a-tablet-app/</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;Since I got a new tablet running Android 4.0 aka ice cream sandwich I wanted to play around a bit with the fragments API and creating an application for a tablet.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following tutorial, we’re going to build an application that renders several articles from a popular tech blog (just kidding) in a web view.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_what_to_build&#34;&gt;What to build&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We’re going to build an application that is able to display web links in the left section of the screen and when clicked, displaying the corresponding website content in the right section of the application screen.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Writing Styles and Themes on Android</title>
      <link>https://www.hascode.com/writing-styles-and-themes-on-android/</link>
      <pubDate>Sat, 03 Dec 2011 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/writing-styles-and-themes-on-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;Using reusable styles and themes to modify an Android application’s look is really easy and helps to not violate thy DRY (don’t repeat yourself) principle by typing styles in every single UI element again and again.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following tutorial we’re going to write and apply some simple styles and a finally theme to a simple Android application.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The following environment is needed to follow this tutorial …&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://www.oracle.com/technetwork/java/javase/downloads/index.html&#34;&gt;Java Development Kit 6&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://developer.android.com/sdk/installing.html&#34;&gt;Android SDK&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://developer.android.com/sdk/installing.html#AddingComponents&#34;&gt;An AVM with at least Android 2.2 / API Version 8&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I recommend using &lt;a href=&#34;http://eclipse.org/&#34;&gt;Eclipse&lt;/a&gt; with the &lt;a href=&#34;http://developer.android.com/sdk/eclipse-adt.html&#34;&gt;ADT Plugin&lt;/a&gt; installed&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Managing Background Tasks on Android using the Alarm Manager</title>
      <link>https://www.hascode.com/managing-background-tasks-on-android-using-the-alarm-manager/</link>
      <pubDate>Sun, 27 Nov 2011 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/managing-background-tasks-on-android-using-the-alarm-manager/</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;In today’s tutorial we’re going to take a look on how to handle periodically scheduled tasks on our Android device by using BroadcastReceivers, Services and the AlarmManager.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The following environment is needed to follow this tutorial …&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://www.oracle.com/technetwork/java/javase/downloads/index.html&#34;&gt;Java Development Kit 6&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://developer.android.com/sdk/installing.html&#34;&gt;Android SDK&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://developer.android.com/sdk/installing.html#AddingComponents&#34;&gt;An AVM with at least Android 2.2 / API Version 8&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I recommend using &lt;a href=&#34;http://eclipse.org/&#34;&gt;Eclipse&lt;/a&gt; with the &lt;a href=&#34;http://developer.android.com/sdk/eclipse-adt.html&#34;&gt;ADT Plugin&lt;/a&gt; installed&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_the_concept&#34;&gt;The Concept&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We’re going to create a first broadcast receiver that gets initiated at boot time. This component then should make use of Android’s AlarmManager API and schedule a cyclic task using an explicit intent.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Android Widget Tutorial: Creating a screen-lock Widget in a few steps</title>
      <link>https://www.hascode.com/android-widget-tutorial-creating-a-screen-lock-widget-in-a-few-steps/</link>
      <pubDate>Thu, 06 Oct 2011 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/android-widget-tutorial-creating-a-screen-lock-widget-in-a-few-steps/</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;In today’s Android tutorial we’re going to take a look at Android’s Widget API and how to make a widget interact with a service using intents.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;widget-tutorial-logo2.png&#34; alt=&#34;widget tutorial logo2&#34;/&gt;
&lt;/div&gt;
&lt;div class=&#34;title&#34;&gt;Figure 1. hasCode Android Widget Tutorial Logo&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;We’re going to create a fully functional application that allows us to enable or disable our smartphone’s screen lock settings using a widget that can be placed on our home screen.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Finally, I am going to show how to use a smartphone to test and debug our application and connect it to the IDE.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Playing around with the Android Animation Framework</title>
      <link>https://www.hascode.com/playing-around-with-the-android-animation-framework/</link>
      <pubDate>Mon, 27 Sep 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/playing-around-with-the-android-animation-framework/</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;Animations add some spice to our Android applications and the offered animation framework makes it easy to create custom animations and tweens.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;So lets dance around and create some animations ;) ..&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_about&#34;&gt;About&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;There are two ways to create animations – via XML declaration or in a Java class. We’re going to focus on XML declaration – if you’re interested in java based declaration – take a look at the Android &lt;a href=&#34;http://developer.android.com/reference/android/view/animation/Animation.html&#34;&gt;JavaDocs&lt;/a&gt; and the subclasses of &lt;em&gt;android.view.animation.Animation&lt;/em&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to create an Android App using Google’s App Inventor</title>
      <link>https://www.hascode.com/how-to-create-an-android-app-using-googles-app-inventor/</link>
      <pubDate>Wed, 04 Aug 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/how-to-create-an-android-app-using-googles-app-inventor/</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;Today we’re going to take a look at Google’s App Inventor feature that offers programming-novices a nice possibility to enter the fabulous world of Android App programming without deeper knowledge of the API or complex SDK installations.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;So lets build some stuff ..&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_prerequisites&#34;&gt;Prerequisites&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;&lt;a href=&#34;http://java.oracle.com&#34;&gt;Java 6 JDK&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://appinventor.googlelabs.com/learn/setup/index.html&#34;&gt;App Inventors Extras Software&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A Google App Inventor Beta Account – request one &lt;a href=&#34;https://services.google.com/fb/forms/appinventorinterest/&#34;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_what_we_are_going_to_build&#34;&gt;What we are going to build&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;We are building a simple GUI with a Textbox and a button&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A click on the button starts an event that queries the acceleration sensor for coordinates&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the sensor is active and enabled then the coordinates are displayed in the text box&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
    <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>
    <item>
      <title>Android Gestures</title>
      <link>https://www.hascode.com/android-gestures/</link>
      <pubDate>Fri, 21 May 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/android-gestures/</guid>
      <description>&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Since version 1.6 Android offers a library for recognition and handling of new gestures using a touch display. With the gesture builder it is possible to capture new gestures in the emulator. Gestures can be integrated into an activity like that.&lt;/p&gt;
&lt;/div&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-java&#34; data-lang=&#34;java&#34;&gt;GestureLibrary gLib = GestureLibraries.fromRawResource(this, R.raw.spells);
if (!gLib.load()) {
  finish();
}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Furthermore we need a gesture overlay in the UI:&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;android.gesture.GestureOverlayView
    android:id=&amp;#34;@+id/gestures&amp;#34;
    android:layout_width=&amp;#34;fill_parent&amp;#34;
    android:layout_height=&amp;#34;0dip&amp;#34;
    android:layout_weight=&amp;#34;1.0&amp;#34; /&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the next step we implement an event handler for the gesture (Source: &lt;a href=&#34;http://developer.android.com/resources/articles/gestures.html&#34; class=&#34;bare&#34;&gt;http://developer.android.com/resources/articles/gestures.html&lt;/a&gt;):&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-java&#34; data-lang=&#34;java&#34;&gt;GestureOverlayView gestures = (GestureOverlayView) findViewById(R.id.gestures);
gestures.addOnGesturePerformedListener(this);

public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) {
 ArrayList&amp;lt;prediction&amp;gt; predictions = mLibrary.recognize(gesture);

   if (predictions.size() &amp;gt; 0) {
     Prediction prediction = predictions.get(0);
     if (prediction.score &amp;gt; 1.0) {
       Toast.makeText(this, prediction.name, Toast.LENGTH_SHORT).show();
     }
   }
 }&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Creating a simple Gesture App with Android</title>
      <link>https://www.hascode.com/creating-a-simple-gesture-app-with-android/</link>
      <pubDate>Fri, 14 May 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/creating-a-simple-gesture-app-with-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 integration of gestures into your android app adds some nice functionality and is made very easy using Google’s GestureBuilder application and the integrated GestureLibrary and Gesture Overlay API – so let’s build a sample app.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you need some basic information regarding gestures on android first – take a look at &lt;a href=&#34;../android-gestures/&#34;&gt;this article&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_creating_a_gesture_library&#34;&gt;Creating a gesture library&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;First you need to define the gestures that should be captured in the application later. For this reason there’s the &lt;em&gt;GestureBuilder&lt;/em&gt; delivered with the Android SDK. You can find the app in the samples directory of your android sdk – e.g. &lt;em&gt;&amp;lt;installation-directory&amp;gt;/android-sdk-linux_86/platforms/android-2.1/samples/GestureBuilder&lt;/em&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Playing around with QR Codes</title>
      <link>https://www.hascode.com/playing-around-with-qr-codes/</link>
      <pubDate>Tue, 11 May 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/playing-around-with-qr-codes/</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;Sometimes QR codes are a nice way to distribute information like calendar events, contact information, e-mail, geo-locations or internet addresses.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;In the following article we’re going to encode information to QR code images using the ZXing library and afterwards decode information from a given QR code.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Finally we’re taking a look on online QR code generators and how to integrate the ZXing library in a Maven project.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;imageblock&#34;&gt;
&lt;div class=&#34;content&#34;&gt;
&lt;img src=&#34;qr-code-article.png&#34; alt=&#34;qr code article&#34;/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_the_zxing_library&#34;&gt;The ZXing Library&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;Download the ZXing Libraries from &lt;a href=&#34;http://code.google.com/p/zxing/downloads/list&#34; class=&#34;bare&#34;&gt;http://code.google.com/p/zxing/downloads/list&lt;/a&gt; – the file name is &lt;em&gt;ZXing-&amp;lt;version&amp;gt;.zip&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Unpack the downloaded archive somewhere&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change to the extracted directory and run &lt;em&gt;ant&lt;/em&gt;. If you don’t have JavaME installed – and you don’t have to for the samples below – run &lt;em&gt;ant buildwithoutj2me&lt;/em&gt; – that will do the job&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having compiled the libraries you’re now free to include the &lt;em&gt;core.jar&lt;/em&gt; from &lt;em&gt;zxing-&amp;lt;version&amp;gt;/core/&lt;/em&gt; and the &lt;em&gt;javase.jar&lt;/em&gt; from &lt;em&gt;zxing-&amp;lt;version&amp;gt;/javase&lt;/em&gt; as dependency in your project&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Sensor Fun: Creating a simple audio recorder/player</title>
      <link>https://www.hascode.com/sensor-fun-creating-a-simple-audio-recorder/player/</link>
      <pubDate>Sun, 02 May 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/sensor-fun-creating-a-simple-audio-recorder/player/</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;Sound recording and playback is really simple using the MediaRecorder and MediaPlayer classes .. see the example below ..&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_sample_app&#34;&gt;Sample App&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;First some layout .. a button to start/stop recording and a button to play the recorded stuff (&lt;em&gt;main.xml&lt;/em&gt;):&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-java&#34; data-lang=&#34;java&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;gt;
&amp;lt;LinearLayout xmlns:android=&amp;#34;http://schemas.android.com/apk/res/android&amp;#34;
    android:orientation=&amp;#34;vertical&amp;#34;
    android:layout_width=&amp;#34;fill_parent&amp;#34;
    android:layout_height=&amp;#34;fill_parent&amp;#34;
    &amp;gt;
&amp;lt;TextView
	android:id=&amp;#34;@+id/output&amp;#34;
    android:layout_width=&amp;#34;fill_parent&amp;#34;
    android:layout_height=&amp;#34;wrap_content&amp;#34;
    android:text=&amp;#34;&amp;#34;
    /&amp;gt;
&amp;lt;Button android:text=&amp;#34;@+string/record&amp;#34; android:id=&amp;#34;@+id/btRecord&amp;#34; android:layout_width=&amp;#34;wrap_content&amp;#34; android:layout_height=&amp;#34;wrap_content&amp;#34;&amp;gt;&amp;lt;/Button&amp;gt;
&amp;lt;Button android:text=&amp;#34;@+string/play&amp;#34; android:id=&amp;#34;@+id/btPlay&amp;#34; android:layout_width=&amp;#34;wrap_content&amp;#34; android:layout_height=&amp;#34;wrap_content&amp;#34;&amp;gt;&amp;lt;/Button&amp;gt;
&amp;lt;/LinearLayout&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Adjusting the externalized strings in the &lt;em&gt;strings.xml&lt;/em&gt;&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-java&#34; data-lang=&#34;java&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;utf-8&amp;#34;?&amp;gt;
&amp;lt;resources&amp;gt;
    &amp;lt;string name=&amp;#34;app_name&amp;#34;&amp;gt;Soundrecorder Tutorial&amp;lt;/string&amp;gt;
	&amp;lt;string name=&amp;#34;record&amp;#34;&amp;gt;Record!&amp;lt;/string&amp;gt;
	&amp;lt;string name=&amp;#34;play&amp;#34;&amp;gt;Play&amp;lt;/string&amp;gt;
&amp;lt;/resources&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Sensor Fun: Using the accelerometer on Android</title>
      <link>https://www.hascode.com/sensor-fun-using-the-accelerometer-on-android/</link>
      <pubDate>Tue, 27 Apr 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/sensor-fun-using-the-accelerometer-on-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;Here is an example on how to use the accelerometer in your Android application. If you want to simulate the acceleration on the emulator I highly recommend the &lt;em&gt;Sensor Simulator&lt;/em&gt; on the &lt;a href=&#34;http://code.google.com/p/openintents/wiki/SensorSimulator&#34;&gt;OpenIntents website&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The following example app displays the coordinates received by the sensor.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_the_acceleration_app&#34;&gt;The Acceleration App&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;The activity – &lt;em&gt;AccelerationActivity.java&lt;/em&gt;&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-java&#34; data-lang=&#34;java&#34;&gt;package com.hascode.android;

import android.app.Activity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.widget.TextView;

public class AccellerationActivity extends Activity {
	private TextView result;
	private SensorManager sensorManager;
	private Sensor sensor;
	private float x, y, z;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
		sensor = sensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER).get(0);

		result = (TextView) findViewById(R.id.result);
		result.setText(&amp;#34;No result yet&amp;#34;);
	}

	private void refreshDisplay() {
		String output = String
				.format(&amp;#34;x is: %f / y is: %f / z is: %f&amp;#34;, x, y, z);
		result.setText(output);
	}

	@Override
	protected void onResume() {
		super.onResume();
		sensorManager.registerListener(accelerationListener, sensor,
				SensorManager.SENSOR_DELAY_GAME);
	}

	@Override
	protected void onStop() {
		sensorManager.unregisterListener(accelerationListener);
		super.onStop();
	}

	private SensorEventListener accelerationListener = new SensorEventListener() {
		@Override
		public void onAccuracyChanged(Sensor sensor, int acc) {
		}

		@Override
		public void onSensorChanged(SensorEvent event) {
			x = event.values[0];
			y = event.values[1];
			z = event.values[2];
			refreshDisplay();
		}

	};
}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>First steps on Android: Creating a simple Todo App</title>
      <link>https://www.hascode.com/first-steps-on-android-creating-a-simple-todo-app/</link>
      <pubDate>Mon, 26 Apr 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/first-steps-on-android-creating-a-simple-todo-app/</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;In this tutorial we are going to build a simple todo app that is able to store simple todos in a database. The user is able to add new todos or delete old ones by clicking on a todo. For this tutorial we won’t use maven to keep it simple – if maven integration is desired – take a look at &lt;a href=&#34;https://www.hascode.com/../how-to-integrate-android-development-tools-and-maven/&#34;&gt;this tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_steps&#34;&gt;Steps&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 the &lt;a href=&#34;http://developer.android.com/sdk/index.html&#34;&gt;Android SDK&lt;/a&gt; and your IDE&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create some packages &lt;em&gt;com.hascode.android.activity&lt;/em&gt; and &lt;em&gt;com.hascode.android.persistence&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create the layout in &lt;em&gt;res/layout/main.xml&lt;/em&gt; – the main elements: a listview for the todos-list, a textbox and a button to enter new data.&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;RelativeLayout
        android:id=&amp;#34;@+id/widget31&amp;#34;
        android:layout_width=&amp;#34;fill_parent&amp;#34;
        android:layout_height=&amp;#34;fill_parent&amp;#34;
        xmlns:android=&amp;#34;http://schemas.android.com/apk/res/android&amp;#34;
    &amp;gt;
        &amp;lt;TableRow
            android:id=&amp;#34;@+id/row&amp;#34;
            android:layout_width=&amp;#34;fill_parent&amp;#34;
            android:layout_height=&amp;#34;wrap_content&amp;#34;
            android:orientation=&amp;#34;horizontal&amp;#34;
            android:layout_below=&amp;#34;@+id/tasklist&amp;#34;
            android:layout_alignParentLeft=&amp;#34;true&amp;#34;
        &amp;gt;
            &amp;lt;EditText
                android:id=&amp;#34;@+id/etNewTask&amp;#34;
                android:layout_width=&amp;#34;200px&amp;#34;
                android:layout_height=&amp;#34;wrap_content&amp;#34;
                android:text=&amp;#34;&amp;#34;
                android:textSize=&amp;#34;18sp&amp;#34;
            &amp;gt;
            &amp;lt;/EditText&amp;gt;
            &amp;lt;Button
                android:id=&amp;#34;@+id/btNewTask&amp;#34;
                android:layout_width=&amp;#34;wrap_content&amp;#34;
                android:layout_height=&amp;#34;wrap_content&amp;#34;
                android:text=&amp;#34;@+string/add_button_name&amp;#34;
            &amp;gt;
            &amp;lt;/Button&amp;gt;
        &amp;lt;/TableRow&amp;gt;
        &amp;lt;ListView
            android:id=&amp;#34;@+id/tasklist&amp;#34;
            android:layout_width=&amp;#34;fill_parent&amp;#34;
            android:layout_height=&amp;#34;wrap_content&amp;#34;
            android:layout_alignParentTop=&amp;#34;true&amp;#34;
            android:layout_alignParentLeft=&amp;#34;true&amp;#34;
        &amp;gt;
        &amp;lt;/ListView&amp;gt;
&amp;lt;/RelativeLayout&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Signing APK with the Maven-Jar-Signer Plugin</title>
      <link>https://www.hascode.com/signing-apk-with-the-maven-jar-signer-plugin/</link>
      <pubDate>Sat, 17 Apr 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/signing-apk-with-the-maven-jar-signer-plugin/</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;There is a nice Maven plugin helping you signing your Android app – the &lt;em&gt;Maven Jar Signer Plugin&lt;/em&gt;. If you want to learn more about Maven integration in an android project take a look at &lt;a href=&#34;https://www.hascode.com/how-to-integrate-android-development-tools-and-maven/&#34;&gt;this article&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_maven_profile_setup&#34;&gt;Maven Profile Setup&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Add the following code to your &lt;em&gt;pom.xml&lt;/em&gt;&lt;/p&gt;
&lt;/div&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;?&amp;gt;
&amp;lt;profiles&amp;gt;
    &amp;lt;profile&amp;gt;
        &amp;lt;id&amp;gt;sign&amp;lt;/id&amp;gt;
        &amp;lt;build&amp;gt;
            &amp;lt;plugins&amp;gt;
                &amp;lt;plugin&amp;gt;
                    &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;maven-jarsigner-plugin&amp;lt;/artifactId&amp;gt;
                    &amp;lt;version&amp;gt;1.2&amp;lt;/version&amp;gt;
                    &amp;lt;executions&amp;gt;
                        &amp;lt;execution&amp;gt;
                            &amp;lt;id&amp;gt;signing&amp;lt;/id&amp;gt;
                            &amp;lt;goals&amp;gt;
                                &amp;lt;goal&amp;gt;sign&amp;lt;/goal&amp;gt;
                            &amp;lt;/goals&amp;gt;
                            &amp;lt;phase&amp;gt;package&amp;lt;/phase&amp;gt;
                            &amp;lt;inherited&amp;gt;true&amp;lt;/inherited&amp;gt;
                            &amp;lt;configuration&amp;gt;
                                &amp;lt;archiveDirectory/&amp;gt;
                                &amp;lt;includes&amp;gt;
                                    &amp;lt;include&amp;gt;target/*.apk&amp;lt;/include&amp;gt;
                                &amp;lt;/includes&amp;gt;
                                &amp;lt;keystore&amp;gt;path/to/keystore&amp;lt;/keystore&amp;gt;
                                &amp;lt;storepass&amp;gt;storepasword&amp;lt;/storepass&amp;gt;
                                &amp;lt;keypass&amp;gt;keypassword&amp;lt;/keypass&amp;gt;
                                &amp;lt;alias&amp;gt;key-alias&amp;lt;/alias&amp;gt;
                            &amp;lt;/configuration&amp;gt;
                        &amp;lt;/execution&amp;gt;
                    &amp;lt;/executions&amp;gt;
                &amp;lt;/plugin&amp;gt;
                &amp;lt;plugin&amp;gt;
                    &amp;lt;groupId&amp;gt;com.jayway.maven.plugins.android.generation2&amp;lt;/groupId&amp;gt;
                    &amp;lt;artifactId&amp;gt;maven-android-plugin&amp;lt;/artifactId&amp;gt;
                    &amp;lt;inherited&amp;gt;true&amp;lt;/inherited&amp;gt;
                    &amp;lt;configuration&amp;gt;
                        &amp;lt;sign&amp;gt;
                            &amp;lt;debug&amp;gt;false&amp;lt;/debug&amp;gt;
                        &amp;lt;/sign&amp;gt;
                    &amp;lt;/configuration&amp;gt;
                &amp;lt;/plugin&amp;gt;
            &amp;lt;/plugins&amp;gt;
        &amp;lt;/build&amp;gt;
    &amp;lt;/profile&amp;gt;
&amp;lt;/profiles&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to integrate Android Development Tools and Maven</title>
      <link>https://www.hascode.com/how-to-integrate-android-development-tools-and-maven/</link>
      <pubDate>Fri, 02 Apr 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/how-to-integrate-android-development-tools-and-maven/</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;With the Maven Android Plugin it is possible to build and deploy/undeploy your android app and start/stop the emulator – if you’re used to maven you won’t be going without it ;)&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;If you’re interested in signing your apk using maven – take a look at &lt;a href=&#34;signing-apk-with-the-maven-jar-signer-plugin/&#34;&gt;this article&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_project_setup&#34;&gt;Project Setup&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 an android project using the &lt;a href=&#34;http://developer.android.com/guide/developing/other-ide.html#CreatingAProject&#34;&gt;android tool&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;We need some dependencies – so create a &lt;em&gt;pom.xml&lt;/em&gt; in the project’s root directory – I took this from the &lt;a href=&#34;http://code.google.com/p/maven-android-plugin/wiki/Samples&#34;&gt;plugin samples&lt;/a&gt; and modified it:&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;!--
 Copyright (C) 2009 Jayway AB

 Licensed under the Apache License, Version 2.0 (the &amp;#34;License&amp;#34;);
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an &amp;#34;AS IS&amp;#34; BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--&amp;gt;
&amp;lt;project xmlns=&amp;#34;http://maven.apache.org/POM/4.0.0&amp;#34; xmlns:xsi=&amp;#34;http://www.w3.org/2001/XMLSchema-instance&amp;#34; xsi:schemaLocation=&amp;#34;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&amp;#34;&amp;gt;
     &amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;
     &amp;lt;groupId&amp;gt;com.hascode.android.app&amp;lt;/groupId&amp;gt;
     &amp;lt;artifactId&amp;gt;demo&amp;lt;/artifactId&amp;gt;
     &amp;lt;packaging&amp;gt;apk&amp;lt;/packaging&amp;gt;
     &amp;lt;name&amp;gt;hasCode.com - Sample Android App using the Maven Android Plugin&amp;lt;/name&amp;gt;
     &amp;lt;version&amp;gt;0.1&amp;lt;/version&amp;gt;
     &amp;lt;dependencies&amp;gt;
         &amp;lt;dependency&amp;gt;
             &amp;lt;groupId&amp;gt;android&amp;lt;/groupId&amp;gt;
             &amp;lt;artifactId&amp;gt;android&amp;lt;/artifactId&amp;gt;
             &amp;lt;version&amp;gt;2.1&amp;lt;/version&amp;gt;
             &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
         &amp;lt;/dependency&amp;gt;

         &amp;lt;dependency&amp;gt;
             &amp;lt;groupId&amp;gt;junit&amp;lt;/groupId&amp;gt;
             &amp;lt;artifactId&amp;gt;junit&amp;lt;/artifactId&amp;gt;
             &amp;lt;version&amp;gt;4.8.1&amp;lt;/version&amp;gt;
             &amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;
         &amp;lt;/dependency&amp;gt;
     &amp;lt;/dependencies&amp;gt;

     &amp;lt;build&amp;gt;
         &amp;lt;!--&amp;lt;finalName&amp;gt;${artifactId}&amp;lt;/finalName&amp;gt;--&amp;gt;
         &amp;lt;plugins&amp;gt;
             &amp;lt;plugin&amp;gt;
                 &amp;lt;groupId&amp;gt;com.jayway.maven.plugins.android.generation2&amp;lt;/groupId&amp;gt;
                 &amp;lt;artifactId&amp;gt;maven-android-plugin&amp;lt;/artifactId&amp;gt;
                 &amp;lt;configuration&amp;gt;
                     &amp;lt;sdk&amp;gt;
                         &amp;lt;path&amp;gt;${env.ANDROID_HOME}&amp;lt;/path&amp;gt;
                         &amp;lt;platform&amp;gt;3&amp;lt;/platform&amp;gt;
                     &amp;lt;/sdk&amp;gt;
                     &amp;lt;deleteConflictingFiles&amp;gt;true&amp;lt;/deleteConflictingFiles&amp;gt;
                 &amp;lt;/configuration&amp;gt;
                 &amp;lt;extensions&amp;gt;true&amp;lt;/extensions&amp;gt;
             &amp;lt;/plugin&amp;gt;

             &amp;lt;plugin&amp;gt;
                 &amp;lt;artifactId&amp;gt;maven-compiler-plugin&amp;lt;/artifactId&amp;gt;
                 &amp;lt;configuration&amp;gt;
                 &amp;lt;source&amp;gt;1.5&amp;lt;/source&amp;gt;
                 &amp;lt;target&amp;gt;1.5&amp;lt;/target&amp;gt;
                 &amp;lt;/configuration&amp;gt;
             &amp;lt;/plugin&amp;gt;

         &amp;lt;/plugins&amp;gt;
     &amp;lt;/build&amp;gt;

&amp;lt;/project&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
