<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to AndroidSample</title><link>https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/</link><description>Recent changes to AndroidSample</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 07 Mar 2015 17:55:46 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/feed" rel="self" type="application/rss+xml"/><item><title>AndroidSample modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -32,7 +32,7 @@
 ##### Install from APK #####

 * please make sure that you have enabled "Allow installation of apps from other sources than Play Store" in "Settings-&amp;gt;Security"
-* install the SensorDemo.apk on the mobile phone, please ignore eventual warnings that it is not installed officially from the Google Play Store
+* install samples/android/SensorDemo/SensorDemo.apk on the mobile phone, please ignore eventual warnings that it is not installed officially from the Google Play Store

 #### Configure the SensorDemo App ####

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 07 Mar 2015 17:55:46 -0000</pubDate><guid>https://sourceforge.net005ca836b93f5263086c6b3404d90579dccf56d6</guid></item><item><title>AndroidSample modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,6 +1,11 @@
 # Android Sample #

-This is a sample project that runs on an Android 4.x smartphone. It reads the brightness sensor and the GPS sensor on the Android phone and sends it to the m2mlabs server.
+This is a sample project that runs on an Android 4.x smartphone. It reads the brightness sensor and the GPS sensor of the Android phone and sends it to the m2mlabs server.
+
+##### Please Note #####
+The server url of the m2mlabs server for this sample must be available as a public static IP adress so that the mobile phone can connect to it. If you are running your m2mlabs server behind a firewall you will have to apply port forwarding to the firewall. 
+
+To just make a test drive please send an email to [support@m2mlabs.com](mailto:support@m2mlabs.com) and we send you an apikey for our public demo machine.

 #### Create Device on M2MLabs Server ####

@@ -31,7 +36,7 @@

 #### Configure the SensorDemo App ####

-* configure server url, apikey, update rate and the device name
-* select the sensors you want to use
-* switch on sending data
-* check if data was received on the m2mlabs admin GUI at http://localhost/cs-ws:8080 or run the monitor at http://localhost/cs-ws:8080/monitor.html. The usage of the monitor is described in the [Monitor Tutorial](https://sourceforge.net/p/m2mlabs/wiki/Tutorial-Monitor)
+* configure server url, apikey, update rate, device name and sensors to use. The server url is either an IP address or a server name without the "http://" in front of it. Press CONFIGURE on the app main screen and enter your data. Then please close and re-open the app.
+![Android Sample](http://m2mlabs.com/sites/default/files/pictures/SensorDemo1.jpg?format=raw "Android sample")
+* switch on sending data by moving the "Send Data" slider on the app main screen to "on"
+* check if data was received on the m2mlabs admin GUI or run the monitor. The usage of the monitor is described in the [Monitor Tutorial](https://sourceforge.net/p/m2mlabs/wiki/Tutorial-Monitor)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 07 Mar 2015 11:32:31 -0000</pubDate><guid>https://sourceforge.netab61f899eba559894fda09fa85b18b236e6464fe</guid></item><item><title>AndroidSample modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,37 +1,37 @@
 # Android Sample #

-This is a sample project that runs on an Android 4.x smartphone. It reads the light brightness sensor on the Android phone and sends it to the Mainspring server.
+This is a sample project that runs on an Android 4.x smartphone. It reads the brightness sensor and the GPS sensor on the Android phone and sends it to the m2mlabs server.
+
+#### Create Device on M2MLabs Server ####
+
+* go to the m2mLabs admin GUI. How to create device models, sensor models and devices is described in the [Tutorial](https://sourceforge.net/p/m2mlabs/wiki/Tutorial) 
+* create a sensor model with an attribute "brightness" of type number and "gpsdata" of type GpsData
+* create a device model with a sensor "LightSensor" and a sensor "GpsSensor" using the created sensor models
+* create a device
+
+#### Install on Phone ####

 Download the sample code from http://sourceforge.net/projects/m2mlabs/files/samples/samples.zip/download
-
-#### Install on Phone ####

 ##### Install from Source #####

 * download Android Studio from http://developer.android.com/sdk/index.html  and follow the installation instructions
-* using the SDK manager install API V17 for Android 4.2.2 (latest Android 4 SDK) and build tools 17
-* Select "Import project" and then select samples/android/SensorDemo
-* right click the app and execute "Make Module"
-* enable USB debugging on your mobile phone
+* using the SDK manager install API V17 for Android 4.2.2 (latest Android 4 SDK)
+* select "Import project" and then select samples/android/SensorDemo
+* select "Build-&amp;gt;Make Project" on Android Studio main menu
+* enable "USB debugging" on your mobile phone in "Settings-&amp;gt;Developer options"
 * connect your mobile phone with USB cable
-* click run 'app' on Android Studio main menu
+* select "Run-&amp;gt;run 'app'" on Android Studio main menu
+* you can additionally start the Android device monitor with "Tools-&amp;gt;Android-&amp;gt;Android Device Monitor" on Android Studio main menu to view the debug output

 ##### Install from APK #####

-* please make sure that you have enabled "Installlation of apps from other sources than Playstore" in security settings
-* install the SensorDemo.apk on the mobile phone, please ignore warnings that it is not installed officially from the Google PlayStore
-
-#### Create Device on M2MLabs Server ####
-
-* go to the Mainspring admin gui
-* create a sensor model with an attribute "brightness" of type number and "gpsdata" of type GpsData
-* create a device model with a sensor "LightSensor" and a sensor "GpsSensor" using the created sensor models
-* create a device
+* please make sure that you have enabled "Allow installation of apps from other sources than Play Store" in "Settings-&amp;gt;Security"
+* install the SensorDemo.apk on the mobile phone, please ignore eventual warnings that it is not installed officially from the Google Play Store

 #### Configure the SensorDemo App ####

 * configure server url, apikey, update rate and the device name
 * select the sensors you want to use
 * switch on sending data
-* check in the Mainspring admin gui that data is received from the Android device
-* open "http://&amp;lt;server url=""&amp;gt;/cs-ws/monitor.html?apikey=&amp;lt;apikey&amp;gt;&amp;amp;device_name=&amp;lt;device name=""&amp;gt;&amp;amp;attribute_name=brightness&amp;amp;maxvalue=1000" to view the brightness values on a graph
+* check if data was received on the m2mlabs admin GUI at http://localhost/cs-ws:8080 or run the monitor at http://localhost/cs-ws:8080/monitor.html. The usage of the monitor is described in the [Monitor Tutorial](https://sourceforge.net/p/m2mlabs/wiki/Tutorial-Monitor)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 07 Mar 2015 10:38:48 -0000</pubDate><guid>https://sourceforge.net9ace9c1e61e31e8228b2f09392b8f078a34712c2</guid></item><item><title>AndroidSample modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -4,12 +4,33 @@

 Download the sample code from http://sourceforge.net/projects/m2mlabs/files/samples/samples.zip/download

-* install the M2MLabsSensorDemo.apk on the smartphone, please ignore warnings that it is not installed officially from the Google PlayStore
+#### Install on Phone ####
+
+##### Install from Source #####
+
+* download Android Studio from http://developer.android.com/sdk/index.html  and follow the installation instructions
+* using the SDK manager install API V17 for Android 4.2.2 (latest Android 4 SDK) and build tools 17
+* Select "Import project" and then select samples/android/SensorDemo
+* right click the app and execute "Make Module"
+* enable USB debugging on your mobile phone
+* connect your mobile phone with USB cable
+* click run 'app' on Android Studio main menu
+
+##### Install from APK #####
+
+* please make sure that you have enabled "Installlation of apps from other sources than Playstore" in security settings
+* install the SensorDemo.apk on the mobile phone, please ignore warnings that it is not installed officially from the Google PlayStore
+
+#### Create Device on M2MLabs Server ####
+
 * go to the Mainspring admin gui
 * create a sensor model with an attribute "brightness" of type number and "gpsdata" of type GpsData
 * create a device model with a sensor "LightSensor" and a sensor "GpsSensor" using the created sensor models
 * create a device
-* start the SensorDemo app and configure server url, apikey, update rate and the device name
+
+#### Configure the SensorDemo App ####
+
+* configure server url, apikey, update rate and the device name
 * select the sensors you want to use
 * switch on sending data
 * check in the Mainspring admin gui that data is received from the Android device
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Fri, 06 Mar 2015 22:32:04 -0000</pubDate><guid>https://sourceforge.netad5429727e6b13c6ce8f8e380d1ac68d3ccc039c</guid></item><item><title>AndroidSample modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,8 @@
 # Android Sample #

 This is a sample project that runs on an Android 4.x smartphone. It reads the light brightness sensor on the Android phone and sends it to the Mainspring server.
+
+Download the sample code from http://sourceforge.net/projects/m2mlabs/files/samples/samples.zip/download

 * install the M2MLabsSensorDemo.apk on the smartphone, please ignore warnings that it is not installed officially from the Google PlayStore
 * go to the Mainspring admin gui
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Fri, 06 Mar 2015 19:56:27 -0000</pubDate><guid>https://sourceforge.net822581660b821f10cb63bbf4cd43f5f7805770f6</guid></item><item><title>AndroidSample modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/AndroidSample/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="android-sample"&gt;Android Sample&lt;/h1&gt;
&lt;p&gt;This is a sample project that runs on an Android 4.x smartphone. It reads the light brightness sensor on the Android phone and sends it to the Mainspring server.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;install the M2MLabsSensorDemo.apk on the smartphone, please ignore warnings that it is not installed officially from the Google PlayStore&lt;/li&gt;
&lt;li&gt;go to the Mainspring admin gui&lt;/li&gt;
&lt;li&gt;create a sensor model with an attribute "brightness" of type number and "gpsdata" of type GpsData&lt;/li&gt;
&lt;li&gt;create a device model with a sensor "LightSensor" and a sensor "GpsSensor" using the created sensor models&lt;/li&gt;
&lt;li&gt;create a device&lt;/li&gt;
&lt;li&gt;start the SensorDemo app and configure server url, apikey, update rate and the device name&lt;/li&gt;
&lt;li&gt;select the sensors you want to use&lt;/li&gt;
&lt;li&gt;switch on sending data&lt;/li&gt;
&lt;li&gt;check in the Mainspring admin gui that data is received from the Android device&lt;/li&gt;
&lt;li&gt;open "http://&amp;lt;server url=""&amp;gt;/cs-ws/monitor.html?apikey=&amp;lt;apikey&amp;gt;&amp;amp;device_name=&amp;lt;device name=""&amp;gt;&amp;amp;attribute_name=brightness&amp;amp;maxvalue=1000" to view the brightness values on a graph&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Fri, 06 Mar 2015 19:21:36 -0000</pubDate><guid>https://sourceforge.netd32cefa34ff1ab3ebaadd03800a5099a5316c030</guid></item></channel></rss>