Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Applications

Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.



Reply
 
LinkBack Thread Tools
Old August 5th, 2011, 07:03 AM   #1 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Surprised Generating alert on bluetooth

Hi,
I want to know that is there any way i can generate alert on the event that my bluetooth device is discovered!
For example, i turn my device's bluetooth on, an alert should be generated if my device is discovered by another bluetooth device, only discovered and not connected!...is it even possible?
OS is android of course!
Waiting for reply

Regards,
Umair.

umairthegame is offline  
Reply With Quote
Sponsors
Old August 5th, 2011, 07:08 AM   #2 (permalink)
Senior Member
 
pool_shark's Avatar
 
Join Date: Aug 2010
Location: Ohio
Posts: 1,745
 
Device(s): Galaxy Nexus running Sourcery
Thanks: 52
Thanked 288 Times in 228 Posts
Send a message via Yahoo to pool_shark
Default

I'm not sure if tasker could do that for you or not, but if you have your device set to not be discovered, no problem.
pool_shark is offline  
Reply With Quote
Old August 5th, 2011, 07:12 AM   #3 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually i am android developer (noob one..LOL)...yes device is set to be discovered...only problem is just creating alert IF MY DEVICE IS DISCOVERED! thatz it..so that i can use that alert into my android app
umairthegame is offline  
Reply With Quote
Old August 5th, 2011, 07:30 AM   #4 (permalink)
Senior Member
 
pool_shark's Avatar
 
Join Date: Aug 2010
Location: Ohio
Posts: 1,745
 
Device(s): Galaxy Nexus running Sourcery
Thanks: 52
Thanked 288 Times in 228 Posts
Send a message via Yahoo to pool_shark
Default

I understand what you're asking, I'm just saying if you set your device not to be discovered, it won't be an issue.

Is there a reason you want it to be discoverable?
pool_shark is offline  
Reply With Quote
Old August 5th, 2011, 08:19 AM   #5 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx for your reply. Yes actually the reason for doing so is that i want to detect nearby objects using my android phone. Now to do that, if i use bluetooth on my mobile phone, its battery will drain very quickly(means if i search for nearby bluetooth devices periodically via my mobile phone, my phone can't even last for an hour...i think). SO i thought of doing that task the other way,

1) Turn on my bluetooth on my device and make it discoverable.
2) Nearby Object(lets say a computer) which i want to detect will have a bluetooth device aswell, and it will scan for bluetooth devices periodically. If my device is detected by that bluetooth node, i should get an alert on my app. I don't want to pair these two devices because i want the object(computer) to handle multiple devices at a time. So paring makes no sense. So in this scenario, i can't even use RFID because most android devices don't have RFID receiver!
umairthegame is offline  
Last edited by umairthegame; August 5th, 2011 at 08:23 AM.
Reply With Quote
Old August 5th, 2011, 08:37 AM   #6 (permalink)
Senior Member
 
pool_shark's Avatar
 
Join Date: Aug 2010
Location: Ohio
Posts: 1,745
 
Device(s): Galaxy Nexus running Sourcery
Thanks: 52
Thanked 288 Times in 228 Posts
Send a message via Yahoo to pool_shark
Default

But making your device discoverable and scanning for devices are two different settings.
You can do one without the other.
pool_shark is offline  
Reply With Quote
Old August 5th, 2011, 09:51 AM   #7 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yeah i know, but is it possible to generate such kind of alert on mobile phone.

you get an alert when you are requested to receive a file or pair another device with yours.
But i want to generate alert even when my device is discovered by other bluetooth device? if yes then how
umairthegame is offline  
Reply With Quote
Old August 5th, 2011, 10:03 AM   #8 (permalink)
Senior Member
 
pool_shark's Avatar
 
Join Date: Aug 2010
Location: Ohio
Posts: 1,745
 
Device(s): Galaxy Nexus running Sourcery
Thanks: 52
Thanked 288 Times in 228 Posts
Send a message via Yahoo to pool_shark
Default

The only way I know of would be to use tasker and that's if it has that particular capability.
pool_shark is offline  
Reply With Quote
Reply

Bookmarks

Tags
alert, android, bluetooth, discover, generate, google, ideos


Go Back   Android Forums > Android Discussion > Android Applications User CP
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 01:25 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo