[APP] NEW! CM7 LS HDMI Sound App V1.2 (Long Press Search FAST ACCESS!)

morrislee

Senior Member
Aug 24, 2010
974
1,071
0
Edmonton
Took me a few hours to first know how to write an app, and I got this working! (Root required!)

Donation is appreciated!

You may use this on the new CM7 based ROMs to toggle your sound easily, devs, feel free to add it to your ROMs

Version 1.2 add support for better status tracking and keeps screen on when enabled

Version 1.1 adds the ability to launch from Long Press Search button!!! Much more convenient!

forumdoandroid - Private Server

If you are running a ROM with this built in, you need to update it using this zip (Backup Mirror)


 
Last edited:

sublimejosh2000

Senior Member
Dec 14, 2010
925
350
0
Atlanta
You might want to rename your file to. Apk... its a txt right now.. I renamed and installed it. Can't test, but looks like it works!
Took me a few hours to first know how to write an app, and I got this working! (Root required!)

Donation is appreciated!

You may use this on the new CM based ROMs to toggle your sound easily, devs, feel free to add it to your ROMs

mediafire



Sent from my MB860 using XDA App
 
  • Like
Reactions: CREAPFACE

morrislee

Senior Member
Aug 24, 2010
974
1,071
0
Edmonton
You might want to rename your file to. Apk... its a txt right now.. I renamed and installed it. Can't test, but looks like it works!



Sent from my MB860 using XDA App
If you downloaded directly from your device, yeah, the extension sometimes gets trimmed, I am not sure why, but it downloads as apk on my laptop in windows

:)
 

sublimejosh2000

Senior Member
Dec 14, 2010
925
350
0
Atlanta
Just realized I had a grammar error in my UI MUAHAHAH, updated!
I want to try to help you, but am just learning .. we need to try and make this a widget. i'll be reading today about it, but here is some info in case you want to try it. http://developer.android.com/guide/topics/appwidgets/index.html
this is the end game i think for this app... I will do my best, first timer here with app creation.

Other resource
http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
 
Last edited:

Blizzard22

Senior Member
Jun 7, 2010
446
72
0
Hello!
I use Neutrino 2.2 GT with Faux Kernel ad installed your App.
But somehow I can't hear a noice if I turn your App on.
I tried everything like restarting the phone but nothing solved my problem.
 

razorseal

Senior Member
Oct 6, 2006
963
55
0
South FL
Hello!
I use Neutrino 2.2 GT with Faux Kernel ad installed your App.
But somehow I can't hear a noice if I turn your App on.
I tried everything like restarting the phone but nothing solved my problem.
Check and make sure you allowed it for root. Sometimes i press no by mistale when it asks...

I haven't tried this yet either.

Sent from my Xoom using Tapatalk
 

morrislee

Senior Member
Aug 24, 2010
974
1,071
0
Edmonton
I want to try to help you, but am just learning .. we need to try and make this a widget. i'll be reading today about it, but here is some info in case you want to try it. http://developer.android.com/guide/topics/appwidgets/index.html
this is the end game i think for this app... I will do my best, first timer here with app creation.

Other resource
http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
I actually wanted it to be in the CM7 notification toggle widgets, but i do not know how to add it there, must have to build from the original source or something. Doesnt look that easy.

CM7 team, maybe you can help???
 

morrislee

Senior Member
Aug 24, 2010
974
1,071
0
Edmonton
Wonder if you could add a new feature in your app that allows to hide the soft keyboard toggle. That thing pops up all the time while I am using my lapdock.. annoying..
I think I found the necessary parameters to do that. PM me where to send the test version. I probably wont be able to send it over right away, i am still out of my house

Edit: NVM, I can't seem to do that under SDK, probably requires the framework handling or overriding with NDK. I can disable keyboard pop up within the apps I create, but once the app is not in focus, keyboard respond the same as if nothing happened.

Even if I make it a service, there is no available features for me to disable keyboard globally.

I can, however, use a Broadcast event onreceive to see if the phone is "charging"(or docked, whichever is handled by Atrix on CM7) and prompt the user if they want to switch keyboard to something like this. So, this is one way if the dock is detected, ask if the user want to switch keyboard? But I can't get the permissions to pass the onReceive properly... I am too noob

Another possibility, but this is going to be hard unless CM7 team jumps in, add the docking listener to the default keyboard itself, therefore, if the keyboard itself sees the phone is "docked", dont bother showing up for text edit text fields
 
Last edited:

edgeball

Senior Member
Aug 2, 2010
311
48
0
I wonder if the Sound Switch can't be handled by the event of pluggin in the cable insted of an app or a widget.

plug in the cable -> start script *sound over hdmi*
plug out the cable -> start scrout *sound over speaker*
 

morrislee

Senior Member
Aug 24, 2010
974
1,071
0
Edmonton
I wonder if the Sound Switch can't be handled by the event of pluggin in the cable insted of an app or a widget.

plug in the cable -> start script *sound over hdmi*
plug out the cable -> start scrout *sound over speaker*
CM 7 has HDMI enabled as soon as the screen is on. More of a software limitation right now.

No hardware call is passed from what I can understand