Open app with parameter with Tasker intent

1,658 views
Skip to first unread message

Frank Röhm

unread,
Oct 16, 2013, 5:46:46 AM10/16/13
to tas...@googlegroups.com
Hello

I found this interesting description for Tasker and intents:

http://tasker.dinglisch.net/userguide/en/intents.html

So I tried to create a task which opens an app (locus) with a parameter (net location) but nothing happens.
This is the description:

LocationNet (39)
A1: [X] Get Location [ Source:Net Timeout (Seconds):30 Continue Task Immediately:Off Keep Tracking:Off ]
A2: [X] Popup [ Title:Location Text:%LOCN Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ]
A3: [X] Load App [ App:Locus Pro Data:%LOCN Exclude From Recent Apps:Off ]
A4: Variable Set [ Name:%Test To:51.31,9.44 Do Maths:Off Append:Off ]
A5: Send Intent [ Action:a

francwalter

unread,
Oct 16, 2013, 5:57:21 PM10/16/13
to tas...@googlegroups.com
Am Mittwoch, 16. Oktober 2013 11:46:46 UTC+2 schrieb francwalter:
Hello

I found this interesting description for Tasker and intents:

http://tasker.dinglisch.net/userguide/en/intents.html

So I tried to create a task which opens an app (locus) with a parameter (net location) but nothing happens.
This is the description:


I don't know what happened here, why my mail (from my phone) was interrupted in the middle of this description, and as well this was the wrong description, so again the whole and basic description with just two actions:

Location (Net) (40)
A1: Variable Set [ Name:%Test To:51.31,9.44 Do Maths:Off Append:Off ]
A2: Send Intent [ Action:a•n•d•r•o•i•d•.•i•n•t•e•n•t•.•a•c•t•i•o•n•.•L•O•C•U•S•_•P•I•C•K•_•L•O•C•A•T•I•O•N Cat:None Mime Type: Data:%Test Extra: Extra: Package: Class: Target:Broadcast Receiver ]

So the main part is the action:

android.intent.action.LOCUS_PICK_LOCATION

I guess (I wonder why there are spaces between each letter) but why is locus not opening with the location I put into Data?
How does this work?

Thank you,

frank

francwalter

unread,
Oct 16, 2013, 6:01:25 PM10/16/13
to tas...@googlegroups.com
Am Mittwoch, 16. Oktober 2013 23:57:21 UTC+2 schrieb francwalter:
... I wonder why there are spaces between each letter...

This was because of exporting the task by mail (not clipboard, because I needed it on my computer). When I export it to the clipboard there are no strange spaces, so it has nothing to do with my problem.
 

francwalter

unread,
Oct 16, 2013, 6:32:44 PM10/16/13
to tas...@googlegroups.com
This is the AndroidManifest.xml of Locus pro, maybe anyone knows about these intent actions and could give me a hint, please:

<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="265" android:versionName="2.16.0" android:installLocation="auto" package="menion.android.locus.pro"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
    <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="com.dsi.ant.permission.ANT" />
    <uses-permission android:name="com.dsi.ant.permission.ANT_ADMIN" />
    <uses-permission android:name="com.android.vending.CHECK_LICENSE" />
    <uses-permission android:name="com.android.vending.BILLING" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="com.google.android.apps.mytracks.READ_TRACK_DATA" />
    <uses-permission android:name="com.google.android.apps.mytracks.WRITE_TRACK_DATA" />
    <uses-permission android:name="android.permission.NFC" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-feature android:name="android.hardware.bluetooth" android:required="false" />
    <uses-feature android:name="android.hardware.location" android:required="false" />
    <uses-feature android:name="android.hardware.location.network" android:required="false" />
    <uses-feature android:name="android.hardware.location.gps" android:required="false" />
    <uses-feature android:name="android.hardware.screen.landscape" android:required="false" />
    <uses-feature android:name="android.hardware.screen.portrait" android:required="false" />
    <uses-feature android:name="android.hardware.telephony" android:required="false" />
    <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
    <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
    <uses-feature android:name="android.hardware.nfc" android:required="false" />
    <uses-feature android:name="android.hardware.wifi" android:required="false" />
    <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" anyDensity="true" />
    <application android:theme="@style/AppTheme" android:label="@string/_app_name" android:icon="@drawable/ic_launcher" android:name="menion.android.locus.core.gui.extension.MainApplication" android:allowBackup="true" android:hardwareAccelerated="true" android:largeHeap="true">
        <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
        <uses-library android:name="com.sec.android.app.multiwindow" android:required="false" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="menion.android.locus.core.StartScreen" android:configChanges="locale|keyboardHidden|orientation">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
            </intent-filter>
            <meta-data android:name="com.sec.minimode.icon.portrait.normal" android:resource="@drawable/ic_launcher" />
            <meta-data android:name="com.sec.minimode.icon.landscape.normal" android:resource="@drawable/ic_launcher" />
        </activity>
        <activity android:theme="@style/AppTheme.NoBackground.Main" android:name="menion.android.locus.core.MainActivity" android:exported="true" android:launchMode="singleTask" android:configChanges="locale">
            <intent-filter>
                <action android:name="android.intent.action.LOCUS_PUBLIC_LIB_DATA" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.LOCUS_PICK_LOCATION" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.LOCUS_ADD_NEW_WMS_MAP" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_DISPLAY_DATA" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_PICK_LOCATION" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_ADD_NEW_WMS_MAP" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_NAVIGATION_START" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_GUIDING_START" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:mimeType="text/xml" />
                <data android:mimeType="text/plain" />
                <data android:mimeType="application/gpx" />
                <data android:mimeType="application/kml" />
                <data android:mimeType="application/kmz" />
                <data android:mimeType="application/octet-stream" />
                <data android:mimeType="application/vnd.google-earth.kml+xml" />
                <data android:mimeType="application/vnd.google-earth.kmz" />
                <data android:mimeType="application/xml" />
                <data android:mimeType="application/x-compressed" />
                <data android:mimeType="application/x-zip-compressed" />
                <data android:mimeType="application/x-zip" />
                <data android:mimeType="application/zip" />
                <data android:pathPattern=".*\\.gpx" />
                <data android:pathPattern=".*\\.kml" />
                <data android:pathPattern=".*\\.kmz" />
                <data android:pathPattern=".*\\.loc" />
                <data android:pathPattern=".*\\.zip" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SHOW_POINTS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="menion.points" />
            </intent-filter>
            <intent-filter>
                <action android:name="com.google.android.radar.SHOW_RADAR" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="geo" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http" />
                <data android:host="maps.google.com" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="locus" android:host="oauth.callback" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="locus-wms" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="locus-actions" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="text/plain" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.nfc.action.NDEF_DISCOVERED" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="vnd.android.nfc" android:host="ext" android:pathPrefix="/ma.locus:ac" />
                <data android:scheme="vnd.android.nfc" android:host="ext" android:pathPrefix="/ma.locus:po" />
            </intent-filter>
        </activity>
        <activity android:name="com.asamm.locus.api.server.ServerTestActivity" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:name="com.dropbox.client2.android.AuthActivity" android:launchMode="singleTask" android:configChanges="keyboard|orientation">
            <intent-filter>
                <data android:scheme="db-3yxpjy4v5lxsdg7" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.features.mapDownload.MapDownloadConfigActivity" android:configChanges="locale" />
        <service android:name="com.asamm.locus.features.mapDownload.MapDownloadService" />
        <activity android:theme="@style/AppThemeDialog" android:name="com.asamm.locus.features.onBoardCalib.ImageLocationPicker" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.features.onBoardCalib.OnBoardMapCalibrator" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.geocaching.gui.GeocachingScreen" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.geocaching.fieldNotes.FieldNotesScreen" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.features.customScreen.CustomUserScreen" android:configChanges="locale" />
        <activity android:theme="@style/Transparent" android:name="com.asamm.locus.features.dashboard.DashboardScreen" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.AltitudeManagerActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.DataExportActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="com.asamm.locus.gui.activities.DataImportActivity" android:configChanges="locale" android:windowSoftInputMode="stateHidden|adjustResize" />
        <activity android:theme="@style/AppThemeDialog" android:name="com.asamm.locus.gui.activities.EditCoordinates" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.EditPathActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.EditPointActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.FileBrowser" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="com.asamm.locus.gui.activities.FolderSettingsActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="com.asamm.locus.gui.activities.GetLocation" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="com.asamm.locus.gui.activities.GeocachingLiveApi" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.GpsCompassActivity" android:launchMode="singleTask" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.LineToolsActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.MyMapsScreen" android:launchMode="singleTask" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.NavigateTo" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.OAuthLoginActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.ParkingActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.PoiAlertActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.PointsFilterActivity" android:configChanges="locale" />
        <activity android:name="com.asamm.locus.gui.activities.data.DataManager" android:launchMode="singleTop" android:configChanges="locale" />
        <activity android:name="com.asamm.locus.gui.activities.dbPoi.DbPoiActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.info.InfoManager" android:configChanges="locale" />
        <activity android:name="com.asamm.locus.gui.activities.liveTracking.LiveTrackingScreen" android:configChanges="locale" />
        <activity android:name="com.asamm.locus.gui.activities.maps.MapManager" android:launchMode="singleTop" android:configChanges="locale" />
        <activity android:name="com.asamm.locus.gui.activities.store.StoreActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.gui.activities.trackInfo.TrackInfoManager" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.hardware.external.AntHandlerScreen" android:configChanges="locale" />
        <activity android:theme="@style/AppTheme.NoBackground" android:name="com.asamm.locus.hardware.external.BluetoothHandlerScreen" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="com.asamm.locus.utils.audio.TtsSettingsActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.FileBrowser" android:configChanges="locale|keyboardHidden|orientation">
            <intent-filter>
                <action android:name="org.openintents.action.PICK_FILE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="org.openintents.action.PICK_DIRECTORY" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.FilePicker" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.GeocachingDrawCircle" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.GeocachingMiddlePoint" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.GetLocationFromMap" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.GetProjectionActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.GruppoActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.SearchScreen" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.settings.PrefGpsChangeNotify" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.settings.PrefGuidingNotify" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.settings.PrefTrackRecProfiles" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:name="menion.android.locus.core.search.address.AddressSearchScreen" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:theme="@style/ThemeSettings" android:name="menion.android.locus.core.settings.SettingScreens" android:configChanges="locale" />
        <activity android:theme="@style/ThemeSettings" android:name="menion.android.locus.core.settings.SettingFragments" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.services.backup.BackupManager" android:configChanges="locale|keyboardHidden|orientation" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.services.ikiMap.IkiMapActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.services.trailpl.TrailPlActivity" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.gui.GetStringDialog" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="menion.android.locus.core.utils.nfc.NfcManagerScreen" android:configChanges="locale|keyboardHidden|orientation" />
        <receiver android:name="menion.android.locus.core.addon.PublicLibHandler">
            <intent-filter>
                <action android:name="android.intent.action.DISPLAY_DATA_SILENTLY" />
            </intent-filter>
        </receiver>
        <receiver android:name="locus.api.core.LocusAPIHandler">
            <intent-filter>
                <action android:name="locus.api.android.ACTION_DISPLAY_DATA_SILENTLY" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_REMOVE_DATA_SILENTLY" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_TRACK_RECORD_START" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_TRACK_RECORD_PAUSE" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_TRACK_RECORD_STOP" />
            </intent-filter>
            <intent-filter>
                <action android:name="locus.api.android.ACTION_TRACK_RECORD_ADD_WPT" />
            </intent-filter>
        </receiver>
        <receiver android:label="@string/_app_name" android:name="com.asamm.locus.utils.DeviceAdminHandler" android:permission="android.permission.BIND_DEVICE_ADMIN">
            <meta-data android:name="android.app.device_admin" android:resource="@xml/device_admin" />
            <intent-filter>
                <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
                <action android:name="android.app.action.DEVICE_ADMIN_DISABLED" />
            </intent-filter>
        </receiver>
        <receiver android:name="menion.android.locus.core.services.backup.AutoBackupAction" android:process=":remote" />
        <receiver android:name="menion.android.locus.core.services.backup.AutoBackupAction">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
        <activity android:name="menion.android.locus.core.billing.LocusShop" android:launchMode="singleTask" android:configChanges="locale" />
        <activity android:theme="@style/AppThemeDialog" android:name="com.android.vending.billing.BillingPurchaseActivity" android:launchMode="singleTask" android:configChanges="locale|keyboardHidden|orientation" />
        <receiver android:name="com.android.vending.billing.BillingReceiver">
            <intent-filter>
                <action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
                <action android:name="com.android.vending.billing.RESPONSE_CODE" />
                <action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
            </intent-filter>
        </receiver>
        <service android:name="com.android.vending.billing.BillingService" />
        <service android:name="com.google.analytics.tracking.android.CampaignTrackingService" />
        <receiver android:name="com.google.analytics.tracking.android.CampaignTrackingReceiver" android:exported="true">
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
        </receiver>
        <service android:name="com.asamm.locus.geocaching.offlinizer.GcOfflinizerService" />
        <service android:name="menion.android.locus.core.services.KeepAliveService" />
        <service android:name="menion.android.locus.core.services.ParkingService" />
        <service android:name="menion.android.locus.core.services.PeriodicUpdatesService" />
        <service android:name="menion.android.locus.core.services.PoiAlertService" />
        <service android:name="menion.android.locus.core.services.ProximityHandlerService" />
        <service android:name="menion.android.locus.core.services.TrackRecordingService" />
        <service android:name="menion.android.locus.core.services.backup.BackupService" />
        <service android:name="menion.android.locus.core.services.download.DownloadService" />
        <service android:name="menion.android.locus.core.services.liveTracking.LiveTrackingService" />
        <provider android:name="locus.api.core.LocusInfoData" android:exported="true" android:authorities="menion.android.locus.pro.LocusInfoData" />
        <provider android:name="locus.api.core.LocusDataProvider" android:exported="true" android:authorities="menion.android.locus.pro.LocusDataProvider" />
        <receiver android:label="Locus - track rec" android:name="menion.android.locus.core.widgets.TrackRecordingWidget">
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
                <action android:name="menion.android.locus.core.widgets.TrackRecordingWidget.ACTION_START" />
                <action android:name="menion.android.locus.core.widgets.TrackRecordingWidget.ACTION_END" />
                <action android:name="menion.android.locus.core.widgets.TrackRecordingWidget.ACTION_PAUSE" />
                <action android:name="menion.android.locus.core.widgets.TrackRecordingWidget.ACTION_ADD_WPT" />
            </intent-filter>
            <meta-data android:name="android.appwidget.provider" android:resource="@xml/track_recording_widget_provider" />
        </receiver>
    </application>
</manifest>



 

francwalter

unread,
Oct 16, 2013, 6:40:07 PM10/16/13
to tas...@googlegroups.com
Am Mittwoch, 16. Oktober 2013 11:46:46 UTC+2 schrieb francwalter:
Hello

I found this interesting description for Tasker and intents:

http://tasker.dinglisch.net/userguide/en/intents.html

So I tried to create a task which opens an app (locus) with a parameter (net location) but nothing happens.


I am trying to open Locus with the actual location from the net.
At the moment I put a static value, e.g.: 50.00,10,00 into a variable and put it into the Data field of the "Send intent" action.
I expect that this would open Locus, listening on this intent filter and open this location, like it does with other apps, handing over some location point to any app accepting it, also locus.

I searched in this group, but there is no example of any "Send intent" action, I found.
There is none in the Wiki projects neither (code: 877).

No answer here neither, the Send intent must be a pure developer thing, not for beginners and no support (as usual).

frank
 

Bob Hansen

unread,
Oct 16, 2013, 7:13:49 PM10/16/13
to tas...@googlegroups.com
There is very little information about locus intents, but I did find this
http://docs.locusmap.eu/doku.php/manual:locus_api:public_intents

You might be able to get some help from the developer.
You can also search the Locus knowledge base. I tried searching using key word "intent" or "tasker".
I didn't see any results that would directly answer your question.

francwalter

unread,
Oct 17, 2013, 2:45:35 AM10/17/13
to tas...@googlegroups.com
Am Donnerstag, 17. Oktober 2013 01:13:49 UTC+2 schrieb Bob Hansen:
There is very little information about locus intents, but I did find this
http://docs.locusmap.eu/doku.php/manual:locus_api:public_intents

You might be able to get some help from the developer.
You can also search the Locus knowledge base. I tried searching using key word "intent" or "tasker".
I didn't see any results that would directly answer your question.

Thank you very much, this already helps me understanding more.

In the meantime I found a bit of a working example, which now does what I expected: to open locus with a location (search for it at least):

Location (Net) (40)
    A1: Get Location [ Source:Net Timeout (Seconds):30 Continue Task Immediately:Off Keep Tracking:Off ]
    A2: Send Intent [ Action:android.intent.action.VIEW Cat:None Mime Type: Data:geo:0,0?q=%LOCN Extra: Extra: Package:menion.android.locus.pro Class: Target:Activity ]

It is very simple, but If I don't know any of the parameter of this intent action, which is needed, which not, it is a lame try and error game :(
So this works. The next thing would be, not to search for the location but directly open it, which I know, locus can do, does it with other applications when the hand over some location data...

Thanks, Bob!

frank
 

bdanders

unread,
Oct 17, 2013, 9:04:28 AM10/17/13
to tas...@googlegroups.com
If you already know of an example of one app triggering the intended behavior in Locus, then use the Intent Intercept app to see what data is transmitted in the intent and mimic that with Tasker.

franc walter

unread,
Oct 17, 2013, 9:10:47 AM10/17/13
to tas...@googlegroups.com
Betreff: Re: Open app with parameter with Tasker intent
Von: bdanders
An: tas...@googlegroups.com
Datum: 17.10.2013 15:04

> Intent Intercept app

Thank you for this genious hint!!!

frank

Frank Röhm

unread,
Oct 18, 2013, 2:32:25 AM10/18/13
to tas...@googlegroups.com


>If you already know of an example of one app triggering the intended
>behavior in Locus, then use the Intent Intercept app to see what data
>is
>transmitted in the intent and mimic that with Tasker.
>

I asked in the locus forum and got quick an answer, it is just " geo:%LOCN"

So the intent action is just:

Action: android.intent.action.VIEW
Data: geo:%LOCN
Package: menion.android.locus.pro
Target: Activity

As simple as that :)


Reply all
Reply to author
Forward
0 new messages