AutoInput checking default storage location

Discussion in 'AutoApps' started by solquest, Jun 19, 2016.

  1. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Hello.
    I want to have a notification when my default storage location is not the sd card (I don't know how but sometimes I find it changed). And maybe also to change it.
    Is there a way I can do it with Autoinput?
    Thanks.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    Where is this default location stored exactly? thanks
     
  3. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Hello.
    You mean where I can change it? Is in Settings -> Storage
    I want the default storage location to be the external sd card, but sometimes I find it changed (to the internal storage).
    Thanks.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    What ROM are you using? Unfortunately I don't have that on my Nexus devices...
     
  5. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    I have alcatel idol 3 stock rom.
    I send you the screenshot of what I mean.
    Thanks
     

    Attached Files:

  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    Ok, you should use the AutoNotification UI Query action when that is open. It will probably have a variable related to what option is selected.
     
  7. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Thanks.
    I'll look in AutoNotification tutorial how to do that.
     
  8. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Back to this question cause finally I've time for doing it.
    I'm trying to work with Autonotifications Query, but I must admit I haven't understood how to detect that variable.
    Can you please give me a step to step guide for finding it?
    Thanks!
     
  9. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Here's what I've tried:
    Autonotification Query Action, Persistency Type: Both
    Flash %antitle ()
    Flash %antext ()
    Then I've gone in Settings, Storage and clicked to Default storage Location for opening the popup.
    Back to Tasker, run that task but nothing interesting came out...
    How can I find that variable?
    Thanks.
     
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    I'm really sorry to have mislead you, I meant the AutoInput UI Query action. Sorry, my mistake!
     
  11. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Oh thanks.
    I've tried with Autoinput UI Query, going in Variable Setup, opening Setting, Storage, that screen for choosing default storage location and accepted it in Autoinput notification.
    I've been asked for a variable name and I've indicated defaultstorage.
    In Autoinput UI Query Action configuration I now have Variables android:id/alertTitle=:=defaultstorage
    App package = com.android.settings
    But if I flash %defaultstorage I just get %defaultstorage.
    How do I check its value?
    Thanks!
     
  12. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    When you flash %defaultstorage is the same page with the dialog showing at that point in time?
     
  13. solquest

    solquest Member

    Joined:
    Feb 15, 2016
    Messages:
    96
    Likes Received:
    0
    Hello.
    Here's what I've done:
    in Tasked added a Task choosing plugin, Autoinput and UI Query, Configuration, Variable Setup.
    I've gone to Settings, tapped Storage and arrived to the popup I attached with
    Default storage location:
    Phone storage
    SD card
    without touching any of them, I've opened notification and accepted in the Autoinput Screen Capture one.
    Then (without closing that popup) I've got back to Tasker where I had
    Select fields that should create variables
    -Default storage location
    -Array: Phone Storage
    -Array:SD card
    -Cancel
    I've choosen Default storage location and then I've set the variable name = defaultstorage.
    Saved Action Edit, added Flash Action with text = %defaultstorage.
    Back to the task I've tested but nothing's happened until I got back to settings where I've seen the message flashed %defaultstorage
    Just seen now that if I don't move away from Tasker and wait I get the error:
    13.45.13/ActionArgBundle key: UIUpdateText: replace <null> String value with null
    13.45.13/ActionArgBundle AutoInput UI Query: extra key not found in bundle:ActionTimeout
    13.45.13/ActionArgBundle AutoInput UI Query: UIUpdateText: ignored replacement specified for null value
    13.45.13/ActionArgBundle AutoInput UI Query: extra key not found in bundle:FieldsToGet
    13.45.13/E FIRE PLUGIN: AutoInput UI Query / com.twofortyfouram.locale.intent.action.FIRE_SETTING: 11 bundle keys
    13.45.13/E AutoInput UI Query: plugin comp: com.joaomgcd.autoinput/com.joaomgcd.autoinput.broadcastreceiver.BroadcastReceiverFire
    13.45.13/E add wait type Plugin1 time 20
    13.45.13/E add wait type Plugin1 done
    Thanks as usual!
     
: autoinput

Share This Page