Auto connect ActiveSync via BT (when in range), auto A2DP & more - Windows Mobile Apps and Games

AutoActiveSync via BT
I’m using Windows Mobile devices for years. And I like this OS and devices, but I found one big mistake (comparing to Nokia for example). There is no way to auto-connect ActiveSync via BT. For example Nokia e50 connect to synchronization software when is in range! I now, that this could be because of architecture of WM devices (for example deep suspend and problem with waking device up and checking… blah blah).
Ok, I decided to create small software to auto-connect via BT when in range of Bluetooth cradle (your device could be on or suspended).
There is two settings:
• first: select device from list (device must be paired – this device is computer with ActiveSync profile)
• second: select interval of searching (in suspend and in powered on mode) – this settings are in milliseconds. Please don’t set less then 15000 (15 sec)! Remember that less value cause your device to more often wake up from suspend to unattended mode and check for device if is in range (this could drain battery). My setting is 120 sec (120000 ms) - now I’m testing this value.
How does it work? It is looking for some system states before looking for specified by user BT cradle and allowing to connect:
• device can’t be connected to cradle (any other connection by USB or manual via BT will be detected)
• device can’t be connected to BT A2DP or BT Hands Free (this is to prevent of audio interruptions)
• device must be charged over “VeryLow” state (I think this is around 20%) or being connected to charger
How to use it? After first run (if You use cab please run it again to show settings window) You must select your ActiveSync BT destination device and set interval. Then click “Save” and “Hide Window”. If you like to exit application – just click “Exit”. The device will look for cradle every _your_interval_ of time (in sleep also). The application window must run in background for now (for people who use for example HTC Task Manager – you can add this window to special applications). And when device detected in suspend mode possibilities to connect the program will wake up device, connect and in maximum 10 second put device back to sleep (unattended mode).
Warning! Remember, that not only searching for device via BT could drain your battery. When ActiveSync is connected via BT and device is in suspend mode in real it is unattended mode. It mean, that for example CPU is working normally (not in deep suspend) and draining battery.
Registry. This software store settings in registry, right here: HKCU\Software\AutoActiveSync
Questions & Sugestions Write here, but please remember, that I have limited free time – I will try to answer, but sometimes this could be difficult (to find this free time). And sorry for my bad english
What you need? You need only .NET framework 3.5 & Windows Mobile 6+ (because I use 6 SDK).
Update 19.07.2009:
Ok, version 2.0 published.
What's new? Application has been rewirted. Now it is working as managed service (in background - no more running window!). I tested cpu usage and minimized ram usage - now it's getting less ten 0.5% of CPU and only 450KB of ram (can't get lowwer - .NET . There is also two new features:
• disable wifi (after connecting by bluetooth to cradle - personaly I don't need two connections...)
• autoconnect to a2dp profile (if bluetooth headset is present - I used for many days AutoA2DP from this froum (thanks for author), but I decided to create for me "all in one")
Usage. After installing please run AutoActiveSync from start menu (this is only configurator - you must configure it before first usage). Then just run the service (on first tab). After restarting device service will autostart (via startup folder in Windows directory). Please note, that application can crash before accepting usage of unsigned dll's! For me the best solution is to disable checking it.
If you have problem... let me know
Update 03.10.2009:
Version 2.5 is out
What's new? There is a lot of small improvements, some code has been optimized and rewritten. I added scheduling (for now for daily cycle, but I am thinking about week cycle), some tweeks to ActiveSync module, some to A2DP module (please run and check, what is new – for this version in my opinion there is no need to write manual).
What you need? Still .NET framework 3.5 & Windows Mobile 6+ (because I use 6 SDK). There will be no support for 5.0/2003SE because I have no time
to rewrite part of this software without SDK for WM6.
In next release could be… I’m thinking about adding AutoWifi – auto connect to open wifi networks, and test if there is internet access (but integrating with windows mobile WiFi manager!). I used for 15 minutes WeFI but for me this Was bad written program (slow & ugly & crashing..). Maybe someday I will add possibility to create some “scripts” for automating some tasks based on conditions, but this is long term plan… (not for next release).
Please try and let me know is this working
2.5.1 released!
There is bug fix for scheduling and new feature - auto disable GPRS/EDGE/HSDPA connections in roaming.
2.5.2 released!
Please install 2.5 and then unzip 2.5.2 and copy to program files folder (before that stop service and exit configurator!).
There is bug fix for scheduling (now tested) and new feature - allow enable wifi using Comm Manager when autodisabled after connecting to A2DP or ActiveSync.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Hello this is a great job, do you have an idea how can make it start as a service, I mean I know how to make it start with WM6 but how can I give AutoSync the good arguments to make it start with in backgroup with the right device and time interval ?
Best regards.

htc-alb-1 said:
Hello this is a great job, do you have an idea how can make it start as a service, I mean I know how to make it start with WM6 but how can I give AutoSync the good arguments to make it start with in backgroup with the right device and time interval ?
Best regards.
Click to expand...
Click to collapse
Settings are saved in registry, so there is no need to run it with arguments. For now I am testing rewritten version as service with many improvments, and features added (like AutoA2DP connect or "disconnect wifi" when in range of AS). I will publish new version this week (there is no more problem with running application in background etc. - now this is service + configuration app + helper for running in suspend mode).

good to heard ! waiting for this new release so ;-)

But not for long
dmkpoznan said:
Settings are saved in registry, so there is no need to run it with arguments.
Click to expand...
Click to collapse
This app shows great promise and works OK except the registry entries do not stay set. Each time I exit and restart AutoActiveSync the registry entries go to default. They are OK after exit, but are defaulted when I start AutoActiveSync. Is there any way to make the registry entries stay?
[Touch HD - WM6]

Ok, this weekend I will post service (tested - I believe, that everything is working and writed in good way). Sorry for late, but last week my disk in notebook decided to die (aghr... 6 mounths old Hitachi with ThinkPad active protection system... grrr).
Best regards!

First post updated. Service published.

Service works well. Have used for days now and it connects and disconnects as it should. Restarts on power up too. Well done!

Working great for me too, i added the service.exe to the startup on the WM to get sure it is always runing after a reboot.
Nice job !

doesn't work...
Is it because of toshiba stack?

Thanks the very beneficial prog.
Is it possible to limit the running period? I mean allow to start the prog. 8h00 AM and not allowd after 22h00 (10h00 PM). During the sleeping time there is not need to sync (My laptop is switched off in the night).
Thanks

Qukace said:
Thanks the very beneficial prog.
Is it possible to limit the running period?
Thanks
Click to expand...
Click to collapse
Something like time schedule will be excellent . This will allow to setup connection for example on Monday at 12am

Ok, I will think about time scheduling soon! This could be good idea, but personally my notebook is always on ;-) (I know, I know... I am crazy).
The problem with Toshiba stack - could be. What version of WM do you have? I tested it only on WM 6.1 and higher version.

dmkpoznan said:
Ok, I will think about time scheduling soon! What version of WM do you have? I tested it only on WM 6.1 and higher version.
Click to expand...
Click to collapse
Personally my op: WM 6.1 with L26 Touching HD version 3.55 WWE ROM.
Thanks in advanced.

Works fine on ETEN X800 WM 6.0. Greate work
I only found one small mistake: it's installed on german devices at '\Program Files' instade of '\Programme' (where all other programs are installed by default)

Just tried installing version 2.0 on Diamond (stock sprint rom). It would not install.

2 suggestions if i may:
1. I believe that time scheduling is a must in such an application.
If i'm not mistaken, most people don't spend most of their time around their laptop and there is no need to have it running all the time.
2. It would be wise to have the option to run it only once, at a specific time during the day, so that you don't get disconnected everytime you move away from your comp and then connected when you are close to it.
That is, I know that my laptop is on everyday from about 21:00 to 00:00 (for example) so i'll have it either run once during those hours to sync once.. and then stop trying, or have it try to connect during those 3 hours, but if i managed to connect, have it stop working so that i don't sync 2000 times during those 3 hours.
I've been looking to autoactivesync using bluetooth in a comfortable manner a while back, and this is a perfect solution.
Thank you very much.

Square screen
Hi, I have a 320x320 square screen (Palm Treo Pro). I can not fully see the lower button under the "Start/stop" service button. What is this button, anyone?
Anyway thank you for the application!

Wow!!!!
Finally an app to make autoconnect to Activesync via BT!!! Many thkx, it works like a charm on my Touch HD!!!
Is there any command for the Connecting button??
I think I found a possible bug.
If I disconnect on the big Disconnect button and then make save (left softkey) and exit, the program after a few minutes/seconds reconnect again the device to the Activesync... try to fix this please... very annoying

Wow!!!!
Finally an app to make autoconnect to Activesync via BT!!! After so many years in the winmo never found a free or payed app that did this...
Many thkx, it works like a charm on my Touch HD!!!
Is there any command for the Connecting button??
I think I found a possible bug.
If I disconnect on the big Disconnect button and then make save (left softkey) and exit, the program after a few minutes/seconds reconnect again the device to the Activesync... try to fix this please... very annoying

Related

ActiveSync Issue...Server Changed ReSync Required

Hello,
I was unsure of which thread category to post this, so I did a couple, Hacking and this ROM, sorry if this is misplaced. Correction and criticism welcomed.
Here is the issue...
Have a AT&T Fuze with the NRG v2.0 41609 ROM. Running MSO2007, specifically Outlook 2007 through Exchange on my company's network. I do not know what Exchange server version we are running.
On occasion, perhaps 1-2 times per day I must completely resync my Fuze contacts, calendar, etc, etc with Outlook 2007. Why? The "server" changed. Sorry, the error message I recently got and have gotten in the past essentially says the data on the server has changed and I must resync all of the data the Fuze. I do not recall the EXACT message. Bottom line though is nothing "changed" at least by me.
Also, under the Settings > Connections there is a "Edit my Proxy setting choice and it auto checks and completes an entry xxxxxxx.com for the server address. I have unchecked, rechecked, etc hoping this helps aovid this regular resync.
Lastly, the resync takes about 90 minutes given all of the contacts, calendar, email and if it did not take so long I would not fret about it.
So why and why might I change to avoid this.
Thanks in advance,
m0
P.S. I search but frankly was uncertain what to put as search words to increase the applicable hits
Picture has been added.
I had the same problem often with my previious phone Motorola Q6h. However, I don't remember how I have dealt with it. Try to syncronize by bluetooth...
This is an old bug. It is across XP, Vista, Vista 64 bit, WM 5.0, 6.1 & 6.5.
There are a couple of alternatives. Most report that using BlueTooth solves the problem. Another option is to use Emoze, but that is not flawless either. My fix is less friendly, but has worked for me 100% of the time. I do this every time I flash a new ROM.
Do the following:
1) Hard Reset - I know, a pain.
2) Set Owner information
3) delete old partnership on PC
4) reboot PC
5) connect phone to PC and select default sync options. After initial sync, with the phone still connected, on the PC go to ActiveSync or WM Device Center and change your sync options to your own liking; 2 weeks of email, notes etc...
6) let it fully sync
7) after it does the second full sync (still first connection) disconnect the phone
8) On the phone, Start>Settings>Connections>USB to PC> deselect "enable Faster transfer" or "Advanced Networking" depending on 6.5 or 6.1.
9) >OK - Soft reset
10) after phone comes back to life reconnect to PC and syncing should work fine.
I think the problem has to do with timing on the faster USB transfer rate. The PC is expecting a response and when the phone does not give it fast enough, it throws an error and you get to sync from scratch.
The only downside I have found for not having the faster transfer rate is it takes a bit longer to sync. That is why I like to change to my options (step 5) before I disconnect the first time. The big transfer is faster. After that it is just updates, so speed is not as important.
The only other down side is that if you own a RedFly, it requires the Advanced Connection which screws up your activesync. But the RedFly does not work well with the Touch Pro anyway and not at all with WM 6.5.
Hopefully this will work for you.
Doug M.
90 Mins for a sync? Crap... Do you have a large number of contacts (how many), or calandar items, or email? THe most mine has ever taken is about 2 minutes to do its initial sync OTA, not on a PC.
Are you syncing OTA or connecting to on a PC?
Guys, thanks of the help on the ActiveSync issue. I fashed a new NRG ROM and so far all is ok with thew sync. I do have some other OCD items that I am working on, like all blue highlights, blue / black Tachi phone, getting HTC Blue.task to be blue, EzInput 2.0 FULL (vs. compact) with arrows and blue character key press, etc, etc so so far no AS issues.
As far as how much stuff I have?
1600 contacts
2500 calendar items
100 emails (only Ocutlook IN and OUT boxes)
Again thanks.
If you have nay insight on the other items, please PM or post.
Best,
m0
i found a fix that works almost flawlessly. i get this problem maybe once a week and it's a pain in the ass.
go into activesync settings (when not connected) through your phone. uncheck email (hit yes if it promts you for deleting emails, etc). Re-check, connect, re-sync. That usually does it for me. If not, try syncing after deleting emails and then disconnecting, checking emails again then resyncing.
hope it works for you guys too!!

[APP] Connection State Checker

HISTORY
V1.1 [2009-10-05]
1) Options dialog to change timeout to run the program automatically (10 by default) and web server to reach (www.google.com by default)
2) Option to reset statistics.
3) When the gui is opened its auto-refreshed automatically each 2 seconds
3) Minor fixes
V1.0[2009-10-04]
1) Initial release.
History
Hi
I ve developed a little program to solve a problem I ve many years ago. I use direct push so I need a permanent connection. This is achieved using activesync (direct push) or setting a connection as always on.
PROBLEM TO SOLVE:
Many times a connecion is stablished minutes or hours ago. But it doesnt work correctly. I dont know if the problem is in phone operator system, or in the device or some roms. Simply the connection is corrupted. If you try to suf a web it doesnt work. Clicking "sync" in activesync keeps rolling for ever. So I ve to close the connection manually (hang button long press) and stablishing a connection again. And then all works again
WHAT I SEARCHED AND DIDNT FIND:
1)A program that tries to reach a server (www.google.es) each x minutes. If there is an active connection but cant reach it then kill the connection and stablish it again. The program doesnt download the page content. Simply reach the server so very little data usage (a few bytes each time)
2) very little, no cpu consuming and no resident. Windows should run it each x minutes. Do its job in a few milliseconds and exit.
3) perform its job even if the device is suspended..
4) So I wrote my little program. It works correctly.
5) If the phone is in fly mode then it skip its job
USAGE:
Just install. No need to run it manually. It installs too a little GUI program (ConnectionStateCheckerGUI) to see some statistics (stored in the registry) like number of checks, corrupt connections, last check, etc. You can set the timeout (10 minutes) and server (http://www.google.com) in the registry.
My job needs a 100% safe real time mailing working. This little program guarantees it and maybe there are other people in my situation.
Greetings
Dani
pd: The black background is because of omnia2 skin. In other devices is a tipical white dialog.
OK. gracias nene.
all right!
Nice work buddy, a common problem that bugs a lot of people including you but you decided to do something about it and now we can all be happy.
May I redistribute this on my website?
thanks for that...
Thanks
Sure, you can use, upload, distribute or what you want with it
...and if someone has any suggestion....
First I was going to do icmp ping instead of http get but my phone company (and probably other) has blocked pings....
Greetings
Dani
Hi¡
New version on first post
greetings
Dani
Any chance of a Today screen icon? That would be more helpful than having to call the program in order to see connection status.
UncleBeer said:
Any chance of a Today screen icon? That would be more helpful than having to call the program in order to see connection status.
Click to expand...
Click to collapse
Good idea but MS says not to use Today plugins because arent used in WM6.5.....
The GUI only reads the statistics stored in the registry and refresh them each 2 seconds...
Dani
Thank you for this nice piece of software.
However I have few questions, right after installing and soft-resetting, then changed web reference to www.google.com and interval to 1 minute, it keeps saying that the Last Result is KO, and only Connection Fixed has the increment.
What makes it odd, is that the connection is actually OK, I can connect to www.google.com via UCWeb and Slick is running too.
This is quite bugging me, however since I only installed it for less than an hour, I'll report again whether my connection would be kept alive permanently or not by this program.
(Dopod 818Pro aka HTC Prophet/WM6.1/My Buble Blue ROM by varanusvincent)
Andi
cumisquid said:
Thank you for this nice piece of software.
However I have few questions, right after installing and soft-resetting, then changed web reference to www.google.com and interval to 1 minute, it keeps saying that the Last Result is KO, and only Connection Fixed has the increment.
What makes it odd, is that the connection is actually OK, I can connect to www.google.com via UCWeb and Slick is running too.
This is quite bugging me, however since I only installed it for less than an hour, I'll report again whether my connection would be kept alive permanently or not by this program.
Andi
Click to expand...
Click to collapse
Hi
Please dont remove "http://" because this is used by WinInet to choose the correct destination. Leave http://www.google.com (or any other site but using http://) and it will work again....
Dani
I did, it's http://www.google.com, with the http://
The connection is still KO (though Slick is up and running smoothly)
Does it matter if the GPRS connection has the proxy setup?
And when I tried disconnecting the GPRS, and then use the Check Now, it won't reconnect.
Oh, btw, the Last Check field is always empty.
Andi
cumisquid said:
I did, it's http://www.google.com, with the http://
The connection is still KO (though Slick is up and running smoothly)
Does it matter if the GPRS connection has the proxy setup?
And when I tried disconnecting the GPRS, and then use the Check Now, it won't reconnect.
Andi
Click to expand...
Click to collapse
Yes, for sure is related with GPRS Proxy. Let me take a look at this.....
Andi,
Could you test this version? I ve added support for GPRS proxy. It works in my network but I dont use proxy. Could you try it?
Thanks
Dani,
Sorry for the late reply. I have just finished installing and voila! The Last Check is not empty anymore. I have changed the web reference to http://www.google.com, and interval still to 1 minute, and guess what, now the Last Result is OK!! and Connections OK is now the one who gets the increment. So yes! It works! When WM finished loading up, and when I use the Check Now function, it is now connecting the GPRS automatically.
So I supposed it would close and then reconnect GPRS if ever the connection gets corrupted, right?
Once again, Bravo!
Andi
Just wondering really, if I can get it scheduled for certain time only? Or I can get it stop, perhaps? It would be better than filling in the interval time of 360 minutes every night?
Hi
It seems to work correctly. Tomorrow I will comvert the beta im release amd probably will add period of checking as I did in bandswitch
Dani
Dani,
Just find another thing here.
I did say it does make an automatic connection, it *is* connecting, however, i have just found out, it does *not* end up connected at all.
What I meant by connecting, the antenna icon is having two arrows and the small box with G in it, but it won't be connected at the end of the animation.
The Connection Fix number is added, but since there is no connection in real.
In the end, I still have to use UCWeb or Slick to get connected.
-------edited
Okay, strange enough, I changed the interval to 5 minutes, and after awaited for 2 times trial, it did finally made the connection. Hm.
-------edited again
I did try certain things again. I changed back the interval to 1 minute. Then I tried the following:
* Changed the web reference to http://wap.telkomsel.com (the provider's default wap page), 3 times trial, all failed.
* Changed the web reference to http://www.google.co.id, 2 times trial, finally connected.
* Changed the web reference to http://www.google.com, 3 times trial, all failed.
* Changed the web reference to http://208.67.219.230/ (www.google.com ip address), 3 times trial, very short timed trial, all failed. I supposed it does not accept IP address as a reference?
I'm not an expert in this area, however, it does seem to me that it's related to session time-out thing.
Once the time-out reached, it drops the on-going connection trial. I concluded this because I checked my Data plan's balance, and nothing's to be deducted during the failed session.
So the work around I finally do is to change the registry at HKLM/Comm/ConnMgr/Providers/{myGPRSconn-hash-number}/title_of_conn/AlwaysOn value to decimal 1.
After that, it would get the connection established, even if it seems it doesn't receive any reply from the referred web, get passed all the session time-out variable, until the complete handshake (if this is the correct term).
Andi
wow, that was a deep test. Thanks.
Tomorrow I will try to find a gprs server with proxy to do try/error system
danielherrero said:
Many times a connecion is stablished minutes or hours ago. But it doesnt work correctly. I dont know if the problem is in phone operator system, or in the device or some roms. Simply the connection is corrupted. If you try to suf a web it doesnt work. Clicking "sync" in activesync keeps rolling for ever. So I ve to close the connection manually (hang button long press) and stablishing a connection again. And then all works again
Click to expand...
Click to collapse
Hello Dani,
It has been some time since you posted here. Are you still supporting or working on this app? If you are I would like to ask a question or two having tried the app on a TMOUS HD2 recently.
A lot of the time the app works exactly as you intended - perhaps 50% or better improvement. But sometimes it is not able to disconnect and re-establish the connection for some reason. I find that it will end up in a near permanent KO result loop.
At these times the data connection is established (H or 3G) but no app can successfully connect (no email, no browser). Your app will continue trying but is not successful.
At such a time if I manually drop the data connection (via Touch X action screen, for example) the connection can be re-established within 15-30 seconds of an app trying for data. It is not immediate - some app will have to ask for a data connection and it takes some 15+ seconds before it can successfully continue.
What I am wondering is how your app is trying to do this and how is the data disconnect of Touch X different. I hope I explain it clearly.
.
ny_limited said:
Hello Dani,
It has been some time since you posted here. Are you still supporting or working on this app? If you are I would like to ask a question or two having tried the app on a TMOUS HD2 recently.
A lot of the time the app works exactly as you intended - perhaps 50% or better improvement. But sometimes it is not able to disconnect and re-establish the connection for some reason. I find that it will end up in a near permanent KO result loop.
At these times the data connection is established (H or 3G) but no app can successfully connect (no email, no browser). Your app will continue trying but is not successful.
At such a time if I manually drop the data connection (via Touch X action screen, for example) the connection can be re-established within 15-30 seconds of an app trying for data. It is not immediate - some app will have to ask for a data connection and it takes some 15+ seconds before it can successfully continue.
What I am wondering is how your app is trying to do this and how is the data disconnect of Touch X different. I hope I explain it clearly.
.
Click to expand...
Click to collapse
Hi
Let me took a look at this

Make bluetooth always visible (2.1)

Hi,
Since we alwas have to go into settings to make bluetooth visible for 120(?) seconds i was wondering if it is possible to make bluetooth always visible.
I found this guide: http://blag.tsukasa.net.au/2009/08/25/always-discoverable-on-android/
But it seems like hcid.conf is not present on 2.1 roms.
Can we get this to work on 2.1 roms?
Ty!
are you speaking from the pov of the hero being needing to be discovered by another device?
that isn't the sort of thing one needs to do more than one time per device though. once you've done it, the other device should remember the hero's info. just enable bt next time on both devices and voila, it should connect. right?
and there is the power control widget to enable/disable bt (along with other alternatives on the market and the sense toggle widgets if you're on a sense rom).
If you want your bt to be set to "discoverable" constantly then your battery will disappear really fast and it's a security risk as well (hence this feature doesn't exist in any bt device I've used including android). that's why apps like "bump" enable it only when, well, bumped, and in a way that both devices can talk briefly without user configuration necessary (but still user approval and instructions are needed before any file/secure info transfers can occur).
there's a difference between these three modes:
bt off (saves most power, bt is battery hungry...),
bt on (icon in display; can connect to devices that it has previously been paired with such as your bt handsfree or your computer for file transfers just be enabling the other device's bt - this puts it in sort of a receive mode where it will ack the other device to show itself but doesn't use a TON of battery, however it's still better for battery to turn off bt when not in use)
bt on and discoverable (which is, by bt design, only going to run for a short period such as 2 minutes because it opens up your device to others seeing it and trying to add it and also is transmitting over bt constantly so uses the most signal... 2 minutes seems pretty long to me actually, I've seen shorter in other devices).
I'm sorry, but that is just rubbish.
I've had Nokia's since bluetooth was first released, and they have always been discoverable. Their battery hasn't been worn down by that either.
If bluetooth is on but not discoverable, then your device is constantly looking for those devices that it has been paired with before. If it is discoverable, then other devices can pick up on this and locate your phone - same battery usage, surely.
Take for example now, I'm sat in a public area and I can search for devices. The devices that show up are therefore discoverable, no? In that case, plenty of devices are discoverable.
To be discoverable and hidden behind a password is no issue, and it amazed me that Android missed this out. It was infact one of the things I disliked about Blackberry.
It doesn't kill battery (any more than having undiscoverable bluetooth on), and it is a useful service - if a friend (who hasn't accessed my device before) wishes to send me a file, I don't expect to have to pull out my phone, tell it that it can expect a file, before accepting the password and waiting for said file. It's just an extra, unnecessary step.
What is the point of having bluetooth on, if no other device (other than those with previous access) can see it?
"Someone is trying to send you a file" is all you need. That is what happens in 'discoverable' mode. That is what Android is missing.
yes its a shame on x10 too is smart phone weakness. x10 kick a//
The setting you're searching for is in /system/etc/bluetooth/main.conf
DiscoverableTimeout = 0
The default is 120 (2 minutes). 0 will stay on forever.
Actually I found that in /etc/bluez/main.conf with root explorer but how to edit that value to 0?
VandaL^ said:
Actually I found that in /etc/bluez/main.conf with root explorer but how to edit that value to 0?
Click to expand...
Click to collapse
mount the folder as r/w and if you long press, choose to open in text editor
Tnx dude, I forgot to long press on file, what I did was open the file and than try to edit. But I've edited the value now to 0 or 600, reboot phone and when bt is on discoverable again shows only 120 seconds?
VandaL^ said:
Tnx dude, I forgot to long press on file, what I did was open the file and than try to edit. But I've edited the value now to 0 or 600, reboot phone and when bt is on discoverable again shows only 120 seconds?
Click to expand...
Click to collapse
Could you check if the value in the file also has been reverted?
I check instantly after I saw that he shows 120 seconds and the value was 0.
hi all
will you please show a step by step how to configure the bluetooth discoverable time.
thank you

[Q] Auto Enable Bluetooth when receiving call

Hi all,
I would find a way to enable bluetooth automatically when a call is being received: in that way, when in my car, I can avoid to keep BT enabled "all the time" just waiting for a possible call of few minutes..... thus saving battery ;-)
Is there any application suited for that?
I was thinking to a workaround but it seems pretty tricky and I still miss a thing.
We could use G-Profile and configure a profile, with BT enabled, which starts automatically on these conditions satisfied:
a.. during a call
b.. when a “specific program/process” is running
Item (b) is needed in order to let the profile be enabled only when actually in car and not when I’m at home or so
Of course, I have to start that “specific program/process” when entering car and shutting it down when exiting.
What I miss is a program to be used for that purpose. I would use a “fake” program which simply does nothing (!!), let’s say a simple toggle-program:
- Click on program icon: starts the program
- Click again on program icon: stop the program
Is there such a “useless” program ? Could some of you write it (if interested in that) ? I’m not so able to write it
Thanks in advance for your support.
I also use G-Profile. I have created a profile that kills the incalllock when mycarprofile is running. incalllock locks the virtual keys on my HD so that I can only take the call with the slide to answer. mycarprofile automatically answers the incoming call and turns on the speaker phone. I use G-Profile to kill incalllock whenever I turn on mycarprofile and runs incalllock again when i trun off mycarprofile.
What you have to do with G-Profile is to create a profile that monitors if a program is running and also add the condition "during a call" to switch to that profile and turns on bluetooth
brusko1972, G-Profile is not free.
Any free apps out there for this kind of function?
You can probably try this.
http://forum.xda-developers.com/showthread.php?t=386451
still not working
ai6908 said:
You can probably try this.
http://forum.xda-developers.com/showthread.php?t=386451
Click to expand...
Click to collapse
Dear ai6908, I appreciated your help: it really seems what I need but it's not working....
I have configured the CSDEVCTRL in order to:
- start when ringing or dialing a call
- turn on BT at call start
- turn off BT at call end
I have started the service.
When the call is being received the screen is locked by CSDEVCTRL but BT is not enabled at all.
Maybe I miss someting or it does not support windows mobile 6.5 (I have an HTC HD mini).
Any feedback are welcome !
You can try BTProfiler which I downloaded from xda developers a while back but unable find the thread now.
Not working on HTC hd2 wm 6.5
I downloaded this with high expectations that it would automatically turn my bluetooth off and on. I, too, am frustrated when I forget to turn bt off upon leaving my car. I set the program to run in the background, but the profiler does not work. I've tried all the conditions for turning bluetooth on or off automatically. Too bad, I was really hoping this would work. Any suggestions would be greatly appreciated.
I just have a bluetooth icon placed in the programs on the main page. I tap it and it's on when I am in the car. I tap it again and it's off.
Simple, quick and very efficient to use.
Hi all,
And... fisrt of all, happy new year !
In reply to this thread, I've downloaded BTtoggle (which enables and disables BT just by tapping on the screen) and I was just thinking this morning that someone could have maybe written a program (a mortscript ?) which could be quicker than running this program when needed.
I've tested to put BT off and run the progam (BTtoggle) when the phone is ringing then switch on the BT earphone and... call is missed !
I was thinking in a program that could "see" that a BT "thing" (ear, dongle...) (I don't know how to name it) is running, running BTtoggle (which switches ON BT) and when this "thing" is switched off, running BTtoggle once again (which switches OFF BT).
The problem is like brontolo999, I know which are the questions to ask but unable to write the program that could be able to do that !
Thks in advance.

No network timeout when connection lost on device, but works in emulator + SampleCode

Hallo,
I have a very strange problem. I'm developing an App that sends keep-alive packets to its server to ensure the connection is still alive.
The server is java based and thus easily to run. I run the server on a virtual machine (Windows 7). After my App is connected and the first keep-alive packet is received (it displays a message in its console output) I disable the network interface in Windows. This step is very important because by disabling it, there is no way to send any packet back to the client informing it about network changes.
The clients are configured to send every 25 seconds a keep-alive packet, so you don't need to wait long.
When you use the sample JavaClient on Windows 7 it takes less than a minute after the keep-Alive packet and an exception is thrown which triggers reconnection (which currently can't occur). This is the expected behaviour.
When you use the sample Android App on an emulator (tested Android version 2 and 4) it is the same behaviour. So in less than a minute after the keep-alive packet it recognises that the connection is dead, throws an exception, this triggers reconnection.
Problem is now when this App runs on a real device (tested several, Xpearia Arc S, one Cyanogen Mod 4 on Galaxy S3 and my Galaxy S3). I've waited 5 minutes, but there was no exception. This behaviour is reproducable.
So is there a bug in Android or am I doing something wrong?
Since this is a sample App, it uses no wakelock or service, so to test it is important to have it in foreground all the time (don't switch to other Apps or homescreen) and increase your display timeout to a few minutes to ensure that it doesn't go off. Use Logcat-Output to get informed whats happening, because there is no output in the App itself.
EDIT: Now Sample-Code is in the attachement. Something had gone wrong. The Code consists of 3 Eclipse projects which you can easily import.
Can noone help?
It was quite an effort to build this sample Code. Is there no one that can help?
I hope finally someone can help.

Categories

Resources