Go Back   xda-developers > Windows Mobile Development and Hacking > Windows Mobile Apps and Games


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th June 2009, 03:45 AM
xiaojin1985's Avatar
xiaojin1985 xiaojin1985 is online now
Senior Member
 
Join Date: Mar 2009
Location: Nanning
Posts: 640
Smile [2009.07.01 Updated] - AutoA2DP - The smallest A2DP Toggle application

Hi all.
I found that when we connect a paired Bluetooth Headset with WM it will set as Handsfree by default,but not A2DP Wireless Stereo,we have to set it manually,that is a little annoying work,so I write this small application to do this.

-WM5/WM6 Supported.
-No TSR(terminate-and-stay-resident),no Background running process
-Developed in C,fast execute speed and small file size(5KB with signature)

Learn About "AutoA2DP.ini"
AutoA2DP.ini is a text file which used to point out an application that AutoA2DP will launch after A2DP Mode toggled.

This file must local in \Windows folder,it is an one-line text,for example:

wmplayer.exe

Means that AutoA2DP will launch wmplayer.exe after BTH Headset paired.

You can edit this line with other application,for example,to launch TCPMP,you can replace words with this line:
\Storage Card\TCPMP\PLAYER.EXE

If you want launch nothing,you can delete AutoA2DP.ini


Update log:
The "Semi-Auto" version released.
Download AutoA2DP_with_Confirm.zip if you want to confirm manual(After 30 seconds it will quit as "Cancel" in silent).
The another version will set to A2DP mode automaticlly.


Installation:
1.Copy AutoA2DP.exe to \Windows folder
2.If you want it launch application automaticlly,edit text file "AutoA2DP.ini" to write your application file name(e.g,wmplayer.exe) and copy it to \Windows folder.
3.Run it,or run install.lnk instead,it will install in silent,NO MSG SHOW,after that you will find [HKEY_LOCAL_MACHINE\System\Notifications\AutoA2DP_b y_xiaojin1985] entry in Registry.



Usage:
Open a paired Bluetooth Headset in range,it will toggle to A2DP mode automaticlly,you can see that musical icon appear in Titlebar.


Uninstallation:
Run AutoA2DP.exe with parameter "-u"(AutoA2DP.exe -u),or run uninstall.lnk instead.


Enjoy!

Donation:
Click my signature for buying me a beer,thank you for your good intentions.
Attached Images
File Type: jpg a2dp.jpg (37.2 KB, 4995 views)
File Type: jpg inst.jpg (35.6 KB, 4942 views)
File Type: jpg uninst.jpg (34.1 KB, 4895 views)
File Type: jpg AutoA2DP_conf.jpg (69.3 KB, 4233 views)
Attached Files
File Type: zip AutoA2DP.zip (3.9 KB, 1200 views)
File Type: zip AutoA2DP_with_confirm.zip (4.0 KB, 508 views)
__________________
所谓幸福就是,醒来身边望着诗诗的清晨



Thank you for Buying Me A Beer

Last edited by xiaojin1985; 1st July 2009 at 07:16 AM..
Reply With Quote
Sponsored Links

  #2  
Old 28th June 2009, 04:14 AM
Zoltair Wright's Avatar
Zoltair Wright Zoltair Wright is offline
Senior Member
 
Join Date: Feb 2006
Location: Boston, USA
Posts: 225
Default

Awesome! I've been looking for something like this forever.
__________________
Now:
Rogers HTC Dream (Dream 210) - on AT&T
SPL: Haykuro's 1.33.2005
Recovery: Amon_RA's 1.5.2
Radio: 2.22.19.26I

Previously:
AT&T Fuze (RAPH 101)
HP iPAQ 614c (Check under the "Sable" forum.)
i-Mate Jamin G3
Reply With Quote

  #3  
Old 28th June 2009, 05:09 AM
kwill's Avatar
kwill kwill is offline
Senior Member
 
Join Date: Jun 2006
Location: In the heart of TX
Posts: 3,181
Default

absolutely perfect! thanks much
__________________
Tilt 2
ROM: Arks Latest 23529 Sense 2.5
Radio: 4.49.25.57
Every Att HTC device
Pocket PC device (IPAQ 1945) and Motorola MPX 200 when I fell for WinMo Get some of that

Something to think about......
PM me for Health and Wealth
Reply With Quote

  #4  
Old 28th June 2009, 05:36 AM
Oweida Oweida is offline
Senior Member
 
Join Date: Apr 2007
Location: Abha
Posts: 205
Default :( it does'nt work

I copied the file to the windows directory and clicked on it ,, the registery showed up but it didn't work when I paired my BT headset with my PPC.

I use WM6.5 rom and regarding the music icon I do have another on in the same place for BT when I turn it on !!

plz help
Reply With Quote

  #5  
Old 28th June 2009, 06:20 AM
xiaojin1985's Avatar
xiaojin1985 xiaojin1985 is online now
Senior Member
 
Join Date: Mar 2009
Location: Nanning
Posts: 640
Default

Quote:
Originally Posted by Oweida View Post
I copied the file to the windows directory and clicked on it ,, the registery showed up but it didn't work when I paired my BT headset with my PPC.

I use WM6.5 rom and regarding the music icon I do have another on in the same place for BT when I turn it on !!

plz help
oops...I tested it with WM6.1,Cotulla's ROM,Magician.

Here are 2 debug app for you.

First pair your BTH headset and run CheckConnected.exe,a Message Box will show out to tell you current status,what it say?"Nothing"/"Handsfree Connected"/"A2DP Connected"?

Second,set your BTH headset as Wireless Stereo,run CheckConnected.exe again,what it say now?

Third,run ToggleA2DP.exe,can it switch your BTH headset between Wireless Stereo and Handsfree?

I don't have WM6.5 environment so I don't know whether the bth_sign is changed or not...
Attached Files
File Type: zip Debug.zip (4.7 KB, 84 views)
__________________
所谓幸福就是,醒来身边望着诗诗的清晨



Thank you for Buying Me A Beer
Reply With Quote

  #6  
Old 28th June 2009, 07:01 AM
Oweida Oweida is offline
Senior Member
 
Join Date: Apr 2007
Location: Abha
Posts: 205
Default thanx for the reply

it says handsfree connected !

how can I pair it to be wirless connected

Anyhow ,, I'm using BTaudio , it's a manual app to get stereo work !
But I need you to help me in making the sound voume loader i,e, how can I raise the sound volume for my BT headset ?!


thanx bro

Last edited by Oweida; 28th June 2009 at 07:34 AM.. Reason: +
Reply With Quote

  #7  
Old 28th June 2009, 08:20 AM
bakuryu883 bakuryu883 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 11
Default

Awesome!!!!!!!thank u so much!im so frust of the connect manual everytime use my BH-503.thanKs!!!!!!!u make HTC use life easier!
Reply With Quote

  #8  
Old 28th June 2009, 09:31 AM
addicus's Avatar
addicus addicus is offline
Senior Member
 
Join Date: Mar 2006
Location: Inland Empire, California
Posts: 632
Default

First off thank you. This was a serious issue for me when using all WM's up to 6.1. Since I've used 6.5 my AD2P has connected automatically.
__________________
Live long and prosper. If that doesn't work blow this mutha up!

Cingular 8525 (new to me baby!)
T-Mobile USA
Rom: Various WinMo Roms
Radio: 1.47.00.10
Reply With Quote

  #9  
Old 28th June 2009, 11:55 AM
ecoli ecoli is offline
Junior Member
 
Join Date: Sep 2007
Posts: 20
Default

Quote:
Originally Posted by xiaojin1985 View Post
oops...I tested it with WM6.1,Cotulla's ROM,Magician.

Here are 2 debug app for you.

First pair your BTH headset and run CheckConnected.exe,a Message Box will show out to tell you current status,what it say?"Nothing"/"Handsfree Connected"/"A2DP Connected"?

Second,set your BTH headset as Wireless Stereo,run CheckConnected.exe again,what it say now?

Third,run ToggleA2DP.exe,can it switch your BTH headset between Wireless Stereo and Handsfree?

I don't have WM6.5 environment so I don't know whether the bth_sign is changed or not...
It doesn't work with HTC Touch 3G
Reply With Quote

  #10  
Old 28th June 2009, 12:03 PM
cmlow0 cmlow0 is offline
Member
 
Join Date: Dec 2007
Location: Kuala Lumpur
Posts: 46
Default

thanks for the awesome work at last found a A2DP toggle s/w..
__________________
Phone: HTC Touch Diamond

ROM :
Gen.Y D2 R2
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.