Related
If possible, I'd like to find or code a widget that toggled the speakerphone setting for the car dock, since the stupid thing always forgets it should be checked.
Most of the widgets I've seen are pretty good at firing whatever intent is necessary to get to the appropriate settings (or better yet, toggling it directly).
Does anyone know how to easily discover what intent is fired so I can code a widget and not have to do the following steps during a phone call?
Arrow right to second dock page
Tap Settings
Tap Systems Settings
Scroll down to Dock
Tap Audio
Tap Speakerphone option to check.
Why do ppl keep on doing this plz post this in the right area. the devs are going to move this to Q&A.
Hold up.
So you're saying that "Nexus One Android Development" is NOT the place to ask an API/Development question?
When I ask for an Intent I'm asking for information about something I am perfectly willing to CODE.
Or is "Nexus One Android Development" only for ROM development related questions? Cause if so, they should just rename it: "Nexus One Custom ROM Development" so as not to confuse developers asking hacking/developer questions for app dev.
Randy
I use locale app. and a plugin called locale power source. I have definied what to happen when i plug on power i do that in my car. It's also starts when plug power in at home, but i can live whit that.
Sent from my Nexus One
well, you might not need to code but if you do, i'm sure some ppl would appreciate it. the reason i say you might not need to code is that I know the issue you are talking about and i have experienced it off and on (no pun intended) but since frf83 i haven't experienced the problem and I use the CCH (custom car home) app which is free in the market. it has a settings page that allows you to lock it on speakerphone when docked as well as bluetooth. Another option is using quickdesk. just put dock setting son your quick desk page and although it might take you 3 key strokes to turn on speakerphone it might not be as bad as writing code for a widget that will take up memory and still make you do at least one key stroke. but if you write the code, i'm sure it'll be appreciated.
Did you try decompiling with apktool and looking at the manifest?
No but I definitely will try that. I did find an app that is open source and looked at the code. It uses the AudioManager class and sets the speakerphone option on when it receives the dock intent. However, it is not at all clear from that or the Android documentation that this reroutes audio to the dock speakerphone instead of the one in the phone. I do not believe that it does so I need to determine how the dock app apk sends an intent to bring up those settings. I was hoping someone with experience coding toggle widgets such as gps, lock etc discovered how to bypass the ui and pragmatically change the settings in an arbitrary app.
Randy
Sent from my Nexus One using Tapatalk
eViL D: said:
Did you try decompiling with apktool and looking at the manifest?
Click to expand...
Click to collapse
Did that to GoogleCarHome.apk. Found the manifests file, and I see that it looks for the CAR_DOCK events, but there's no source
So I either need the Java source to it that shows which setting it's getting to determine the off/on state, or the Java source to the Android settings app which sets this independently of the Car App.
I'll continue ripping stuff apart until I find it. If it's in the Settings I wonder if that means it's part of AOSP. If so that might be the way to go. However, I'm not on a Linux box and am not equipped to do native Android development, just APK development using Eclipse + SDK.
Randy
Prod1702 said:
Why do ppl keep on doing this plz post this in the right area. the devs are going to move this to Q&A.
Click to expand...
Click to collapse
I disagree with what you are saying enough to post a reply to it.
The OP is asking a legitimate development related question.
Darn, so nobody knows?
So far I'm liking the way Beats Audio enhances the sound coming out of the speakers and headphones. But when I stream it through my car, it sounds really bad. Ideally, there would be options to specify when Beats Audio should kick in based on where the sound is being produced (speakers, headphones, bluetooth). But the next best thing would be to have a way to turn it on or off from a profile manager like Llama or Tasker.
Does anyone know of a way to do this? Or at least a widget that can turn it on or off?
Thanks
kzibart said:
So far I'm liking the way Beats Audio enhances the sound coming out of the speakers and headphones. But when I stream it through my car, it sounds really bad. Ideally, there would be options to specify when Beats Audio should kick in based on where the sound is being produced (speakers, headphones, bluetooth). But the next best thing would be to have a way to turn it on or off from a profile manager like Llama or Tasker.
Does anyone know of a way to do this? Or at least a widget that can turn it on or off?
Thanks
Click to expand...
Click to collapse
It has been over a month, and I still haven't found a way to do this. Has anyone figured it out yet? From what I can tell, by looking at alogcat output after turning the option on and off in settings, it's just a broadcast intent to AudioService or something. But I couldn't figure out what to put into Llama's custom intent to make it work. Here's what I see in the log:
D/AudioService( 644): [HtcBeatsEffect]setSystemSoundEffect id=800
D/AudioService( 644): [HtcBeatsEffect]setSystemSoundEffect id=900
800 turns it off and 900 turns it on. If anyone can help me figure out how to do this from Llama or Tasker, I'd very much appreciate it.
Most I Could Find
Fairly new to Android after spending a long time with the Dark Side...
I cannot paste a link because I am a n00b, but on the HTC Dev site under the "Sound Enhancer" section is the following:
com.htc.HtcSoundEnhancerSetting.ShowSettingPage Opens the HTC Sound Enhancer settings page allowing the user to choose an audio effect
I don't know much about intents, but since there seems to be a want for this, can anyone do anything with this?
Anybody figure out how to do this with Tasker or the like? I can't get the intents to triggger. I have a Beats notify toggle too in Viper DNA, I thought maybe that could be used instead? I see multiple threads about this..
kzibart said:
It has been over a month, and I still haven't found a way to do this. Has anyone figured it out yet? From what I can tell, by looking at alogcat output after turning the option on and off in settings, it's just a broadcast intent to AudioService or something. But I couldn't figure out what to put into Llama's custom intent to make it work. Here's what I see in the log:
D/AudioService( 644): [HtcBeatsEffect]setSystemSoundEffect id=800
D/AudioService( 644): [HtcBeatsEffect]setSystemSoundEffect id=900
800 turns it off and 900 turns it on. If anyone can help me figure out how to do this from Llama or Tasker, I'd very much appreciate it.
Click to expand...
Click to collapse
Still no solution for this I think
But it is possible to set 800 or 900 with Tasker and Secure Settings:
In Tasker: Plugin -> Secure Settings -> Configuration
Then in Secure Settings: Actions -> Device Setting
Setting Table: system
Setting Name: audio.soundenhancer.effect
Setting Value: 800 or 900 (to disable or enable Beats Audio)
Then save and execute the Task.
The changes should now be set (I think in data/data/com.android.providers.settings/databases/settings.db)
But now I have to soft reboot the phone for the changes to take effect. The Beats Audio switch is now toggled.
Does anybody know what I can do for the new settings to take effect immediately? Like killing an app or reloading settings.db or something?
I like the Motorola Assist feature that reads back texts to you. My problem is, I don't want it enabled every time I'm in a car. For example, I do not want it to read back texts to me when I'm a passenger in someone else's car. I also don't want it to read back texts when I have passengers in my car.
Is there a way I can create a Tasker task that would enable the Motorola Assist Driving function via an NFC tag with NFC Task Launcher? I'm pretty familiar with NFC Task Launcher but I'm pretty much a total noob with Tasker.
Sorry...I meant to post this in the Q&A forum. Moderators, feel free to move it if necessary.
bump
clankfu said:
I like the Motorola Assist feature that reads back texts to you. My problem is, I don't want it enabled every time I'm in a car. For example, I do not want it to read back texts to me when I'm a passenger in someone else's car. I also don't want it to read back texts when I have passengers in my car.
Is there a way I can create a Tasker task that would enable the Motorola Assist Driving function via an NFC tag with NFC Task Launcher? I'm pretty familiar with NFC Task Launcher but I'm pretty much a total noob with Tasker.
Click to expand...
Click to collapse
I just received my Moto X and had this exact thought. I'd like to be able to automatically trigger Driving mode, but only conditionally when an NFC tag is triggered, and then have it determine when I'm not driving anymore on its own.
Unfortunately, this would almost certainly require an API to be open by the Motorola Assist app that would allow another program to talk to it and issue it commands. I don't think that's the case, which is a bit of a bummer, since it's so useful.
I was taking a short drive back to my office, so I didn't bother to pull my phone out of my pocket. Sure enough, about 2 minutes into the ride, my Pandora station started back up automatically, and since it's paired to Bluetooth, it just started playing through my car speakers, which was awesome. Would be more awesome if it was triggered automatically by BT, and/or NFC though...
unless you can get the intent info for assist the best option may be to use tasker and input taps to open assist and toggle it on/off.
I haven't tested this at all because I just decided to make my own version of this in tasker that I can enable/disable any time I want with other profiles or via voice commands.
ntalbert000 said:
unless you can get the intent info for assist the best option may be to use tasker and input taps to open assist and toggle it on/off.
I haven't tested this at all because I just decided to make my own version of this in tasker that I can enable/disable any time I want with other profiles or via voice commands.
Click to expand...
Click to collapse
Sorry if I sound dumb, but I am new to Tasker. Is your solution possible without root? Is it possible for you to post the steps you used to create this toggle?
THANKS!
jmgordon613 said:
Sorry if I sound dumb, but I am new to Tasker. Is your solution possible without root? Is it possible for you to post the steps you used to create this toggle?
THANKS!
Click to expand...
Click to collapse
pretty sure you need root for input taps
This is my first venture into an Android head unit. I went this route because I believe I can make this work in place of many different devices.
My car is an 84 FB RX7.
The main points are; I can keep the majority of my music here, along with some other media. I am also working on building the ls engine to take the place of the rotary. I am using megasquirt which will use Tunerstudio. I am hoping to be able to run tunerstudio from the headunit. I also, for now, am not going to be tethered to my phone for data, nor will I have a 3/4g dongle. Money is going other places right now. I'm not what you'd call an audiophile, but I do want the best I can get from my budget setup.
I need some advice and some help. I am still working on the install and a lot of other stuff on the car right now, however, I did power the head unit up to do some testing. I am completely unsatisfied with the layout of the home screen, and it doesn't appear to be able to be changed in typical android fashion. It seems as though the clock, radio/music display, and the shortcut buttons are fixed and I can't see how to remove or add to them. How would I go about changing the layout and/or using a different skin? How would I change the apps the shortcut defaults to?
Another issue I'm having is that everytime I open google maps, the app crashes. FWIW I do not have a map card in place. How would I go about loading a map card? I do have a spare 8gb card. Nav isn't a huge deal, but I would like to have it work if I need it. I do go out of town occasionally for events in this car. I just cannot tolerate having a shortcut on my homescreen that doesn't work and that I cannot change.
Apps:
The preloaded music player isn't terrible actually. I don't think. What are other good options that either have their own EQ or will utilize the default EG without having to go back to home, and going to the eq independently?
What other apps should I be looking at?
Do you still have GA2154 and your thoughts and opinions? Can it be rooted?
I still use mine time to time. I ordered a new head unit and I should have it on Monday. Is there any firmware update for this unit?
Hello,
I'm going crazy here.... I've installed Tasker on my new Lenovo Tab M7 TB-7305F (7 Inch with Android 9.0 GO - NOT rooted). Tasker works fine. Since I want to kill apps I installed the plugin "SecureTask". And: I succeeded to get it working. Everyting is working fine. Until I reboot. After a reboot: When I try Tasker to execute the plugin-command SecureTask - Tasker waits long and can't execute the plugin. It seems Tasker can't call the plugin SecureTask / can't connect to it. When I manually load SecureTask (Icon on the desktop - only a config-screen comes up - I leave the config-screen with the back-button): After that everything works again. It seems: After SecureTask was loaded once everything is OK. But Tasker can't start the plugin.
Humpf? After a lot of hours of investigating..... I'm out of ideas. Any help?
That sounds like there's a problem getting a background process running after boot for SecureTask. Assuming that all of the permissions for SecureTask have been granted through ADB, I would contact the developer and see what he says.
A work around might be to use Tasker to launch SecureTask after boot. You could then use it to close itself
Thanks... exactly the opinion I have at the moment. In the meantime I found a contact address in SecureTask itself - so I will contact the developer.
Enabling SecureTask after boot by Tasker.... good idea That will be a screen-flickering... but that's at 5 am - so nobody will care about that. I will test this... :good:
Just to report my efforts.... I contacted the support of SecureTask - and got an email-chat within minutes. Incredible support - thank's a lot, John Doe (support of SecureTask)!!!
He told me how to get a logcat. Reason, why it's not working:
BroadcastQueue: TabletMaster Service: not allowed to launch app com.balda.securetask/10110 for broadcast Intent { act=com.twofortyfouram.locale.intent.action.FIRE_SETTING flg=0x14 cmp=com.balda.securetask/.receivers.FireReceiver (has extras) }
=> The OS is blocking the broadcast. No clue why. So it seems my Lenovo Tab M7 TB-7305F has a strange behaviour... no chance to get it working.
Btw: Killing SecureTask with it's own didn't work. So I had to choose now a complete different approach without SecureTask.
airplane mode
Hi, bit off topic maybe, but I saw that this is a quite recent threat and it is involved with SecureTask plugin, so I decided to hook up instead of creating new one
This week I bought Samsung Galaxy Tab S5e. It's operating on Android Pie and UI One interface. I'm reluctant to root it yet (all the more the procedure is not obvious), but I want to recreate as much functionality as possible from my old rooted Samsung tablet So SecureTask plugin is the obvious choice.
I'm trying to find a way to automate turning the airplane mode on/off. On my old tablet I created a profile that triggered airplane mode according the time schedule as soon as Tasker detects that the device is plugged in to a power source. I've tried to recreate this profile with the help of SecureTask. Of course in advance I granted to the plugin all possible permissions using adb and even successfully set it as the device owner. Then I found a secure setting responsible for turning the airplane mode on/off and set appropriate values. And when I test the created tasks, the green circle appears and the quick toggle in the notification drawer turns on, but it seems that the system doesn't listen to the call - the airplane mode actually doesn't turn on. The system seems to listen only when I turn the quick toggle on manually. So I wonder if there is something I'm missing or maybe it is not achievable at all without root on this firmware?
Would be grateful for any insight, maybe from you @ktmom, boss Thanks in advance.
@Lord Sithek, AFAIK, the only way you can toggle mobile data or WiFi radios is after a reboot and that may not work on all devices. Google "long ago" removed the ability to directly control those radios, even with root. Bluetooth does tend to toggle though.
So if it's going to work at all, you would have to toggle off and then reboot.
My opinion is its best to use touch emulations to activate the quick setting tile.
ktmom said:
@Lord Sithek, AFAIK, the only way you can toggle mobile data or WiFi radios is after a reboot and that may not work on all devices. Google "long ago" removed the ability to directly control those radios, even with root. Bluetooth does tend to toggle though.
So if it's going to work at all, you would have to toggle off and then reboot.
My opinion is its best to use touch emulations to activate the quick setting tile.
Click to expand...
Click to collapse
Ok, thanks for the response. I have Auto Input plug installed as well, so I'll give it a shot
ktmom said:
My opinion is its best to use touch emulations to activate the quick setting tile.
Click to expand...
Click to collapse
The problem is that it needs to turn the screen on. I keep my device in book cover so... pain in the arse :cyclops: I think I'll probably switch to "do not disturb" mode, at least it works right away
Sent from my mido using XDA Labs
Marienkaefer said:
Hello,
I'm going crazy here.... I've installed Tasker on my new Lenovo Tab M7 TB-7305F (7 Inch with Android 9.0 GO - NOT rooted).
Click to expand...
Click to collapse
I too just purchased a lenovo Tab M7 TB-7305F (7 Inch with Android 9.0 GO - also NOT rooted).
Sorry for intruding.
Have you found a forum for this tablet?
One specific question I have is with screen rotation. In android pie you get rotation control by turning off auto-rotation in settings. That way when you rotate the tablet a small icon appears briefly in a corner. When that icon is tapped the display rotates. If not tapped on the display does not rotate.
That is what happens in my other android pie devices. But for some reason this icon does not appear on this tab. So I'm looking for a forum for help. Have you found one?
Lord Sithek said:
Hi, bit off topic maybe, but I saw that this is a quite recent threat and it is involved with SecureTask plugin, so I decided to hook up instead of creating new one
This week I bought Samsung Galaxy Tab S5e. It's operating on Android Pie and UI One interface. I'm reluctant to root it yet (all the more the procedure is not obvious), but I want to recreate as much functionality as possible from my old rooted Samsung tablet So SecureTask plugin is the obvious choice.
I'm trying to find a way to automate turning the airplane mode on/off. On my old tablet I created a profile that triggered airplane mode according the time schedule as soon as Tasker detects that the device is plugged in to a power source. I've tried to recreate this profile with the help of SecureTask. Of course in advance I granted to the plugin all possible permissions using adb and even successfully set it as the device owner. Then I found a secure setting responsible for turning the airplane mode on/off and set appropriate values. And when I test the created tasks, the green circle appears and the quick toggle in the notification drawer turns on, but it seems that the system doesn't listen to the call - the airplane mode actually doesn't turn on. The system seems to listen only when I turn the quick toggle on manually. So I wonder if there is something I'm missing or maybe it is not achievable at all without root on this firmware?
Would be grateful for any insight, maybe from you @ktmom, boss Thanks in advance.
Click to expand...
Click to collapse
I don't know if it needs root (I am always rooted), but there is an Airplane Mode On and Off in Tasker, under Net category.
I have a task that checks if %AIR is on or off, and turn on and off accordingly.
---------- Post added at 04:33 PM ---------- Previous post was at 04:29 PM ----------
ktmom said:
@Lord Sithek, AFAIK, the only way you can toggle mobile data or WiFi radios is after a reboot and that may not work on all devices. Google "long ago" removed the ability to directly control those radios, even with root. Bluetooth does tend to toggle though.
So if it's going to work at all, you would have to toggle off and then reboot.
My opinion is its best to use touch emulations to activate the quick setting tile.
Click to expand...
Click to collapse
It still is fine to toggle mobile data on and off (in my case, either Mobile Data 1 or 2 due to having dual sims), as well as wifi, without rebooting. Even works in Macrodroid (the mini Tasker-like app)
Android app Tasker