Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


#285695 10-May-2021 17:41
Send private message

I just want to run an app on my phone when the charger is plugged in. So I set a profile of USB connected Any and a task of Launch App with the appropriate app name but it doesnt launch the app. Phone is a Samsung Galaxy A71 running Android 11.

 

What am I doing wrong or not doing?

 

Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic

Stu

Stu
Hammered
8742 posts

Uber Geek
+1 received by user: 2395

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2705698 10-May-2021 17:51
Send private message

Have you given Tasker any and all permissions it requires?

And to confirm, you have State, Power, Power, (Source=) ANY?





People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.




d3Xt3r
697 posts

Ultimate Geek
+1 received by user: 132

Trusted

  #2705699 10-May-2021 17:54
Send private message

The Profile you need to be using is State > Power > Power > Source > Any

 

Then set it to run your task.

 

Just tested this on my Pixel 4a and it works both when I connect my phone to the PC or to the charger.

 

 

 


Stu

Stu
Hammered
8742 posts

Uber Geek
+1 received by user: 2395

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2705702 10-May-2021 17:56
Send private message

It's about as basic as it comes, so shouldn't be an issue if Tasker is set up in the system properly.





People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.




peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2705703 10-May-2021 17:57
Send private message

Thanks, that worked.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2705705 10-May-2021 18:00
Send private message

With that sorted, how would I do the following.....

 

I have Tasker installed on a tablet and I need to run an app on that tablet when I plug my phone into it, can that be done? Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Stu

Stu
Hammered
8742 posts

Uber Geek
+1 received by user: 2395

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2705714 10-May-2021 18:22
Send private message

Curious. Will have to look into it. How are you connecting your phone to the tablet, and what is the purpose?




People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.


 
 
 
 

Shop now for Lenovo laptops and other devices (affiliate link).
peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2705719 10-May-2021 18:37
Send private message

Was hoping to keep this simple but here goes...

 

The "tablet" is actually a car head unit running Android 10 with Android Auto capability but AA doesnt automatically start up when I plug in my phone, an app on the head unit has to be run and then the AA connection is made.

 

I am trying to automate this process so that when I plug my phone into the head unit, Tasker will then start the connection app and the AA connection between phone and head unit is made. That is why I initially was trying to use  USB Connection Any.

 

Any other suggestions on how I could accomplish this would be appreciated.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Stu

Stu
Hammered
8742 posts

Uber Geek
+1 received by user: 2395

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2705722 10-May-2021 18:41
Send private message

How about have the headunit run the app when the phone is connected to the headunit via Bluetooth?




People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.


Stu

Stu
Hammered
8742 posts

Uber Geek
+1 received by user: 2395

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2705724 10-May-2021 18:47
Send private message

Add profile, select: State, Net, BT Connected, Name=phone (hit the magnifying glass and select your phone)




People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.


Dingbatt
6804 posts

Uber Geek
+1 received by user: 3694

Lifetime subscriber

  #2705725 10-May-2021 18:47
Send private message

I have found the functionality of Tasker on unrooted phones has got more and more restricted by limitations Google puts in Android. At the moment I have to do some things such as toggling mobile data using Bixby, which still seems to have root level access on Samsung phones.

 

What would be great is a Tasker plug-in that bridges across to Bixby. Anybody been able to find such a plug-in?





“We’ve arranged a society based on science and technology, in which nobody understands anything about science technology. Carl Sagan 1996


Stu

Stu
Hammered
8742 posts

Uber Geek
+1 received by user: 2395

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2705730 10-May-2021 18:49
Send private message

I think you can bridge to Google Assistant, but I've not seen anything with Bixby.




People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.


 
 
 

Shop now on AliExpress (affiliate link).
peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2705733 10-May-2021 18:51
Send private message

OK, I will try that next, thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2705734 10-May-2021 18:57
Send private message

Hmm, although the head unit and phone are paired, they do not connect automatically so I have to go into bluetooth settings and connect manually.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Stu

Stu
Hammered
8742 posts

Uber Geek
+1 received by user: 2395

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2705738 10-May-2021 19:20
Send private message

Can you use the same method as your original question, and run Android Auto when power is connected? That should run Android Auto when the tablet/headunit is powered up (since the headunit turns on when the car is started, right?).




People often mistake me for an adult because of my age.

 

Keep calm, and carry on posting.

 

Referral Links: Sharesies

 

Are you happy with what you get from Geekzone? If so, please consider supporting us by subscribing.

 

No matter where you go, there you are.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.