NFC double action - NFC Hacking

Hi,
Is it possible to create an task when a NFC card is in range, and another task when out off range?
For example, when I place my phone in my carkit, bluetooth is turned on, and when I leave my car, bluetooth is turned off again?
Regards
Klaas

AW: NFC double action
I created another task which kills Bluetooth every 3min when it's not connected.
Works well for me.
I don't think it's possible what you want.
Sent from my Nexus 4 using xda app-developers app

Not that I know of.
Try using the Toggle function. Every time you tap the card, it will switch to the other task(s).
First Tap: bluetooth on
Second Tap: bluetooth off
Third tap: bluetooth on... etc.

nfc
Toggle Bluetooth works great

are ananuta
Thx all!
I have created an task when bluetooth is disconencted, than the apps will be closed and bluetooth turned off.

klaasvandeelen said:
Hi,
Is it possible to create an task when a NFC card is in range, and another task when out off range?
For example, when I place my phone in my carkit, bluetooth is turned on, and when I leave my car, bluetooth is turned off again?
Regards
Klaas
Click to expand...
Click to collapse
yes, but you have to hack nfc.apk to do that.
See my works:
http://forum.xda-developers.com/showthread.php?t=2122019

Related

May i have a question about bluetooth ?

I used a program named "ozBT" to turn on/off BT from using, this program is really great, but i had a problem: when the BT off, the headset is disabled too, how can i always let the headset enabled with or without the BT signal?

[APP] Auto - Bluetooth on Call

I found this really awesome APP in the market to automatically turn Bluetooth on and off when your on a call. This allow great power savings by having access to your bluetooth speakerphone or headset without having bluetooth enabled all day draining power.
I've tested it out to some great extent over the past few days and I must say that it is pretty awesome and should come as a stock option in the future.
The program is pretty simple with 2 check boxes: Enable while on call and Enabled with Powered.
The first option is the main one and will enable bluetooth once you receive or make a call. This allows you to simple just turn on your headset or auto connect without any user intervention. The program will also automatically turn bluetooth once the call has ended.
The second option could also be a great one if you are a heavy bluetooth headset user that never takes it off. This option turns on bluetooth every time it is on a charge, so at night you can dock the device or plug it in, then continue to wear your headset to take calls when needed. This option can also be replaced by a NFC tag but works well enough without requiring a tag. One example would be in your car. Plug your device up and it can auto connect to your bluetooth device.
Pretty impressed with the app and it will end up making my normal install list. The app is free on the market and well worth a download if you use bluetooth for any headset or speakerphone.
Android Play link:
Bluetooth on Call
Whats the name? or add a link
It's a surprise! J/k.
It was lunch time and I forgot to post the link before rushing out to eat. Updated OP. I didn't make it or endorse it, but it is just a handy little app. When I first installed it, it wasn't shutting down bluetooth properly... so it would turn on and stay on. But after an update it works as it should.
Do you find bluetooth to use a lot of battery power when on idle (not on an active call)? I find it doesn't really impact my battery at all. I do question if an app like this can have a negative effect on the Bluetooth headset you're using, since it's constantly looking to make a connection when there's no connection to be had... Like the battery drain experienced when a phones cell ratio has to poll for new towers when the signal is low or dead.
EP2008 said:
Do you find bluetooth to use a lot of battery power when on idle (not on an active call)? I find it doesn't really impact my battery at all. I do question if an app like this can have a negative effect on the Bluetooth headset you're using, since it's constantly looking to make a connection when there's no connection to be had... Like the battery drain experienced when a phones cell ratio has to poll for new towers when the signal is low or dead.
Click to expand...
Click to collapse
thats a good question....
Not at all. The bluetooth simply turns OFF completely on your phone... it isn't sitting idle or anything. The program simply toggles bluetooth on and off like you would otherwise in settings manually.
For the headset, it shouldn't have any negative affect either. If you have your headset physically turned on, but not connected, it will usually go into a hibernate mode to save power.
But here is my situation and how I use my headset:
I don't wear it all day. I have it in my car door handle. I answer the phone manually like always. I get a lot of calls and most are quick. While I'm driving, if I know the call is going to be long or if I want to be handsfree, I simply turn on my headset and put it on. By that time, my phone's bluetooth is already activated and seeking a connection. The headset doesn't know any difference. Once I'm done, the phone turns off bluetooth and I turn off my headset.
If you were to wear your headset ALL day, and like to answer your calls handsfree... then this might not work because there wouldn't be enough time for your headset to connect before the caller goes to VM.
If your a heavy bluetooth user, then obviously leave BT turned on all day. If you have a headset and like to use it occasionally while on calls, this app is great. With this app, all you have to worry about it turning on your headset and putting it in your ear. Once it connects, the call will be transferred to the headset and you can retire your phone.
I haven't tested how well it works having the ear piece already turned on and ready to go but I would suspect that you would have to manually answer it from the phone. It just depends on how fast your headset and phone connect to each other.

Galaxy Nexus Car Setups

Just created this thread to find out what kind of car setups do you guys have with your Galaxy Nexus?
I just created mine using NFC, BT and Tasker to send all music and calls to car stereo when I enter the car, read out sms while driving, turn up backlight during daytime etc and then go back to previous state when I exit.
Details here: My Android NFC BT Car Audio Setup
What have you done to pimp up your car with your beloved GN?
I have a 3.5mm audio in jack for aux, I purchased a XtremeMac InCharge BT for wireless music. No special "read text aloud" apps or anything, I just try not to text in the car.
shantzg001 said:
Just created this thread to find out what kind of car setups do you guys have with your Galaxy Nexus?
I just created mine using NFC, BT and Tasker to send all music and calls to car stereo when I enter the car, read out sms while driving, turn up backlight during daytime etc and then go back to previous state when I exit.
Details here: My Android NFC BT Car Audio Setup
What have you done to pimp up your car with your beloved GN?
Click to expand...
Click to collapse
I have a Parrot MKI9200. I get in the car, it connects and I drive off. No point in turning BT off (very low power in standby) and you can do the other stuff with a BT on-connect event in Tasker. Don't generally bother, TBH. Lazy, me
Daern
Interesting. Right now I just keep Bluetooth on always, and then manually open the Pandora app (for music) when I'm in the car (built-in BT stereo). Leaving the car, it turns off automatically. Eventually I'm going to set up Delayed Lock to turn off lock screen while connected to BT.
daern said:
I have a Parrot MKI9200. I get in the car, it connects and I drive off. No point in turning BT off (very low power in standby) and you can do the other stuff with a BT on-connect event in Tasker. Don't generally bother, TBH. Lazy, me
Daern
Click to expand...
Click to collapse
I wanted to go that route too earlier but I connect to other BT devices as well through the day . Hope Tasker adds rules for specific devices soon.
zAlbee said:
Interesting. Right now I just keep Bluetooth on always, and then manually open the Pandora app (for music) when I'm in the car (built-in BT stereo). Leaving the car, it turns off automatically. Eventually I'm going to set up Delayed Lock to turn off lock screen while connected to BT.
Click to expand...
Click to collapse
Do try out tasker along with secure settings plugin. You will pay just a little bit more but acquire this and lot more functionality.
I'm using a Kinivo BTC8 bluetooth to fm
With the OEM car dock.
NFC key-chain and NFC Task Launcher to change my settings
Works great for music, calls, navigation, etc
shantzg001 said:
I wanted to go that route too earlier but I connect to other BT devices as well through the day . Hope Tasker adds rules for specific devices soon.
Click to expand...
Click to collapse
Doesn't Tasker already do this? When I select a context for "Bluetooth Connected," it opens a dialog where I can choose the name or address of the Bluetooth advice from a list of devices I've paired with. I choose to pair with my Parrot device, and it's always worked for me.
I should admit that I very rarely pair with any other device, so I might not notice whether Tasker is only responding to the fact of the Bluetooth connection, rather than the specific device. But if that's the case, why provide an option for you to select the specific device?
dan in la said:
Doesn't Tasker already do this? When I select a context for "Bluetooth Connected," it opens a dialog where I can choose the name or address of the Bluetooth advice from a list of devices I've paired with. I choose to pair with my Parrot device, and it's always worked for me.
I should admit that I very rarely pair with any other device, so I might not notice whether Tasker is only responding to the fact of the Bluetooth connection, rather than the specific device. But if that's the case, why provide an option for you to select the specific device?
Click to expand...
Click to collapse
Ah thanks for letting me know about this. I had tried this very long back when Tasker had just been released and didn't think of seeing again if it had been changed. Will try this.

NFC on Sony Headphones and Speakers

According to this article, Sony is looking to make a big push for NFC enabled products and should have the largest portfolio of such products by year end:
http://www.sony.com.au/pressrelease/asset/550842/section/consumerproductspressreleases
What I don't understand is, what exactly is the advantage to have NFC enabled for products such as headphones and and speakers? The article mentions something about pairing bluetooth using NFC with one touch - is that all it is good for?
So from my understanding the connection to play music between my phone and the speaker will still be using bluetooth, what NFC enables me to do is to touch my phone to the speaker to pair it quickly, without having to mess around with the menu settings?
If the above feature is really the only thing that adds to the product, then I'm not sure what the big deal is, or is there some other use for NFC on these products that I'm not seeing?
Yes quickly pairing is the killer feature. You start music on your phone. Touch the speakers to switch them on and pair at same time. It is all about convenience
plaisthos said:
Yes quickly pairing is the killer feature. You start music on your phone. Touch the speakers to switch them on and pair at same time. It is all about convenience
Click to expand...
Click to collapse
This would be awesome!
i got SBH20, NFC headset device and Xperia Z
well an awesome easy to use
following step will show you how fast and practical is
- connect headset, earphones, any speak through jack connection into SBH20 device
- power on SBH20
- enable NFC on your phone
- put your SBH20 near into NFC area of phone
- both devices are paired
- now you can listen music through audio player app
beside with smart connect, you can make event for it
- connecting SBH20, choose anything you want to do e.g launching and playing playlist from audio player
- disconnecting SBH20, choose anything you wan to do e.g disabling bluetooth if you do need it further
plaisthos said:
Yes quickly pairing is the killer feature. You start music on your phone. Touch the speakers to switch them on and pair at same time. It is all about convenience
Click to expand...
Click to collapse
I see... In effect I've done the same thing by sticking an NFC sticker on my Bluetooth speaker and programming it to toggle Bluetooth and start/stop my playlist. Just missing the part to automatically turn on the speaker.
Sent from my Nexus 4 using xda app-developers app
Robogar said:
I see... In effect I've done the same thing by sticking an NFC sticker on my Bluetooth speaker and programming it to toggle Bluetooth and start/stop my playlist. Just missing the part to automatically turn on the speaker.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
It's interesting that they put the phone next data to be received

Bluetooth problem about my watch

Hello everyone, I am kc which come form Hong Kong :laugh:
I found that my phone (Sony Z3) always turn on the Bluetooth function automatically,
I was wondering is it related with my smartwatch 3 ?
by the way, the bluetooth function of the watch, can it be turn off?
kcyyung said:
Hello everyone, I am kc which come form Hong Kong :laugh:
I found that my phone (Sony Z3) always turn on the Bluetooth function automatically,
I was wondering is it related with my smartwatch 3 ?
by the way, the bluetooth function of the watch, can it be turn off?
Click to expand...
Click to collapse
No idea about your phone's bluetooth turning on by itself, but if it's off, I don't know how a bluetooth device could make your phone activate it.
The bluetooth on the watch can be turned off by using airplane mode, but of course this also disables wifi. So your watch won't receive any data.
Being able to turn off bluetooth while leaving wifi on would be a good option, but you can't. When on wifi, the watch keeps trying to find the original bluetooth connection.
sirrelevant said:
No idea about your phone's bluetooth turning on by itself, but if it's off, I don't know how a bluetooth device could make your phone activate it.
The bluetooth on the watch can be turned off by using airplane mode, but of course this also disables wifi. So your watch won't receive any data.
Being able to turn off bluetooth while leaving wifi on would be a good option, but you can't. When on wifi, the watch keeps trying to find the original bluetooth connection.
Click to expand...
Click to collapse
If you put it in to Airplane mode then reenable WiFi it'll keep the WiFi on while leaving the bluetooth disabled
DarkRazorZ said:
If you put it in to Airplane mode then reenable WiFi it'll keep the WiFi on while leaving the bluetooth disabled
Click to expand...
Click to collapse
Good information, and quite unintuitive. I'll have to try that out for battery life.
I think you already got the answer. Here is the user guide for Sony Smart Watch 3. I hope you will find it help you.
http://support.sonymobile.com/global-en/swr50/userguide/Setting-up/

Categories

Resources