1. Are you ready for the Galaxy S20? Here is everything we know so far!

Scene Question

Discussion in 'Android Apps & Games' started by dwh2o13, Feb 4, 2013.

  1. dwh2o13

    dwh2o13 Newbie
    Thread Starter

    So here is what I'm trying to accomplish:

    I've been trying to create a scene that when accessed will display traffic and then also allow for a quick kill scene option. Can I set up the top 2/3 of the scene so that it launches and displays google maps(traffic) and in the bottom a kill screen rectangle.. I'm very new to tasker and really new to creating scenes. If someone could could help, I would greatly appreciate it..thanks
     



    1. Download the Forums for Android™ app!


      Download

       
  2. userloser

    userloser Newbie

    create scene, give it a name, then, in the editor:
    -> long tap (add element) map, choose options (show traffic, initial location), resize as you wish
    -> long tap (add element) button, image or doodle, any will do
    - if button, label it "close" or something
    - if image, pick one (from tasker built ins, icon pack or whatever)
    - draw your own if doodle
    save the scene (so that it shows in selection dialogs), open it again
    press the close button (or image, or doodle) to get to the options dialog, on tap create anonymous task Scene -> Destroy, set the scene name.

    in Tasks, create named task to show scene, as activity

    create shortcut on home screen
     
  3. dwh2o13

    dwh2o13 Newbie
    Thread Starter

     
  4. dwh2o13

    dwh2o13 Newbie
    Thread Starter

    Here is my problem: When i add the map element and choose traffic, I just get a world map..how do I get the initial location?? I want my local traffic displayed.
     
  5. userloser

    userloser Newbie

    There is a parameter for initial location and zoom level in the map element, which you can control from a task (task-action-scene-element map).

    You can look up your location before that with your favorite location method.

    See the corresponding sections in the tasker guide for details.
     
  6. dwh2o13

    dwh2o13 Newbie
    Thread Starter

    Thanks for helping such a novice.. I am clearly seeing the parameter for zoom, but I do not see the parameter for initial location in the map element.
     
  7. userloser

    userloser Newbie

    The one above zoom, "Lat,Lon". Set it to some coordinates (or to %LOC from your gps/network location task)

    In a task, you have to use element, map, then choose "move to point" in the options.
     
  8. dwh2o13

    dwh2o13 Newbie
    Thread Starter

    Okay, I think I'm getting closer.. I've created the scene, entered the lat/long coordinates, selected show traffic. Also created the destroy scene button.. Then I created a new task with the following: 1. element map control: designated scene name, element is Map1, move to point, coordinates in value option 2. Show Scene: selected scene, display as Activity Full Window, Show exit button and Continue task immediately are both selected.

    I'm getting the scene to display, but the map is not displaying my location. I can manipulate the map after it is displayed and then zoom in, but I was hoping for that to happen immediately.
     
  9. userloser

    userloser Newbie


    You can either set LAT,LON to some initial value with the editor, or, to lookup your current position, in your launch task, create the scene first (don't show it), then do a misc->get location, set the map coordinates with move to point %LOC and then show scene.
     
  10. dwh2o13

    dwh2o13 Newbie
    Thread Starter

    Got It! Thanks so much for your help and patience.
     
  11. d0g

    d0g Newbie

    I'm trying to do basically the same thing but it's not working.

    I create a scene with a map "Map1". Lat,Long is blank, Zoom is 10.

    Then I created a Task:
    1. Create Scene
    1. Get Location, source GPS, timeout 10 secs
    2. Element map control > Move To > %LOC
    3. Show Scene

    When I run the task, GPS comes on, then nothing happens.

    What am I missing?

    Also, is it possible to have the map track my location as I drive and keep it centered on my current position?

    thanks
     
  12. d0g

    d0g Newbie

    I added a "Destroy Scene" before the "Create Scene" ... and now it partially works.

    But it still shows the entire earth, it doesn't zoom in.

    I tried adding a Set Element map zoom, and also changing the map element in the scene itself ... but no difference.
     
  13. userloser

    userloser Newbie

    1. timeout looks way too small. on my nexus4 and 7 cold fix may take as long as a minute, especially in a city. on my sgs before i did a hardware fix for the antenna, i waited for many minutes. most likely 10 seconds isn't long enough. try the default. i leave the timeout at 120 seconds usually.

    2. yes, you have to run the task periodically, either by calling it from a time profile, or by using a label and goto within the task, or by calling it recursively. in the second and he third case you may want to consider a wait period, depending on your usage.

    Incidentally, one of the many navigation apps that use gmaps may be a better choice.
     
  14. dwh2o13

    dwh2o13 Newbie
    Thread Starter


    Yes.. I agree. After trying to set up the traffic scene in tasker I never found it to work quite as well as simply using google maps. With root, I'm able to set GPS to toggle on now as soon as I open the app.
     

Tasker

Tasker Forum

net.dinglisch.android.taskerm

⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

READ MORE
February 15, 2020
Last Updated
4.4
Rating
1M+
Installs
Loading...

Share This Page

Loading...