Started working on the "Where is my device?" feature
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / ui / activity / LandingActivity.java
index 7e2a8c0..668f134 100644 (file)
@@ -58,6 +58,11 @@ public class LandingActivity extends SherlockFragmentActivity implements OnClick
                // Check, if there are ownCloud accounts\r
                if(!accountsAreSetup()){\r
                        showDialog(DIALOG_SETUP_ACCOUNT);\r
+               } else {\r
+                       // Start device tracking service \r
+                       Intent locationServiceIntent = new Intent();\r
+                       locationServiceIntent.setAction("eu.alefzero.owncloud.location.LocationLauncher");\r
+                       sendBroadcast(locationServiceIntent);\r
                }\r
 \r
        }\r