Mock locations just in the emulator.
authorgumartinm <gustavo@gumartinm.name>
Wed, 18 Apr 2012 07:14:22 +0000 (09:14 +0200)
committergumartinm <gustavo@gumartinm.name>
Wed, 18 Apr 2012 07:14:22 +0000 (09:14 +0200)
Do not know how to do it in the phiscal device.

Android/MobiAds/AndroidManifest.xml
Android/MobiAds/res/values/strings.xml

index 9646322..af81fea 100644 (file)
@@ -4,10 +4,11 @@
     android:versionCode="1"
     android:versionName="1.0" android:installLocation="internalOnly">
 
-    <uses-sdk android:minSdkVersion="15" />
+    <uses-sdk android:minSdkVersion="14" />
     <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+    <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
 
     <application
         android:icon="@drawable/ic_launcher" android:label="@string/app_name" 
index eb386ef..a81ec01 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <resources>
 
-    <string name="hello">Hello World, MobiAdsActivity!</string>
+    <string name="hello">MobiAdsActivity!</string>
     <string name="app_name">MobiAds</string>
     <string name="app_description">Receive notifications about offers and discounts.</string>
     <string name="alert_dialog_cancel">Do you really want to close the application?</string>