yashsingh1/xdaforums huggingface dataset:
[Nexus S Themes and Apps] islipfd19:
This is such a great App! I've been using it a lot. I recently sent you an email from your website with two enhancement requests. As I said in the email, I'm very new to developing Apps. Anyways; this reply is more in the lines of the tag being detected and removed. What do you think of the following? It may be a bit cryptic and an outline as to what I was thinking of, I'll try to explain it all the best I can. It's what I like to call brain regurgitation. I write down on paper (or type in an empty document) what I'm thinking otherwise my mind races for hours and I can't concentrate.

The first part I found on stackoverflow, it obtains the tags UID. I think using a UID or some other unique identifier from the tag may be key to detect that a tag was removed. After getting the tag's UID, the app would essentially start a service. This service would run as long as the tag is within close proximity of the phone.

The service would request the tags UID every so many X number of seconds, comparing it to the first UID it retrieved when the tag was first placed near the phone. If the tag were to be removed, no UID would be returned and the service would then send an intent back to the app informing it that the tag was removed. The service would then stop.

If the tag were to be replaced by another tag (with a different UID of course); the service would recognize that the two UID's are different. It would inform the app that the first tag was removed and that a new tag was placed within close proximity. The service would then use the second tags UID replacing the first to perform the comparison.

The NFC tag detection itself, the process that signals the phone a tag is within proximity (I think) would have to be temporarily turned off while the service is running. If enabled, the app would detect the tag and so would the service. The app would then think the tag was placed near the phone twice. This may or may not be an issue.

____________________________________________________________________________________________________________________

// Method to build the NFC tags UID

void resolveIntent(Intent intent) {

...

String uid = toHex(intent.getByteArrayExtra(NfcAdapter.EXTRA_ID));

Toast.makeText(this, uid, Toast.LENGTH_LONG).show();

...

}

// Store UID as “newUID” variable

// Loop to compare UID’s

for(int detectTimer = 1; i <=60; i++)

{

// Capture lastUID and assign to variable

void resolveIntent(Intent intent) {

...

String uid = toHex(intent.getByteArrayExtra(NfcAdapter.EXTRA_ID));

Toast.makeText(this, uid, Toast.LENGTH_LONG).show();

...

}

// compare UID

if ( newUID == lastUID)

{

//sleep for X seconds

}

else if( newUID != lastUID)

{

// Additional if statement to determine if newUID is truly new or blank. If blank assume tag is removed.

// Exit loop, clear “newUID” variable and run intent

// If new tag is detected, store “lastUID” as “newUID” and start loop

}

else

// Something went wrong here!

}

}
[Nexus S Themes and Apps] kalhimeo:
this sounds like a good feature for me too
[Nexus S Themes and Apps] Taomyn:
Is there any chance in a future version that the notification icon/message could be made persistent? I quite like seeing what was run last but I keep accidentally clearing it.

Thanks.

---
[Nexus S Themes and Apps] krohnjw:
That used to be an option! However it got tossed out because there were too many options :) I'll see if I can work it back in in a manner that's simple for users (average users have no idea what that means and it's just clutter to them).
[Nexus S Themes and Apps] islipfd19:
I'm not sure how others use their tags. What I'm currently using the tag(s) for my screen is always on and unlocked because I have the phone charging.

Though I do understand that a possible solution should not be built around one persons wants/needs.

You could store the tag UID in memory or even a temp file and when the phone wakes up and is unlocked the service can perform a 'isConnected()' and if it doesn't return a UID consider the tag lost. An arbitrary timer may also work, or even perhpas a notification to the user asking if the tag was lost. In either case, this could be presented as an option to the user as to how to handle this type of user activity. But it also adds a more complexity.

To understand which may be a better solution, the developer could gather statistics as to which options and functions are used more often.

Couldn't you wait for the tag to fire before beginning any of the tag removal processing? Perhpas the detection algorithm allows for this, it could poll the tag more often for the first X seconds than "stabilize" by polling the tag Y seconds.

I was picturing of having the service suspended when the phone is placed in a sleeping state but storing the UID in memory or a temp file. When the phone wakes, the service would get the UID (from memory or temp file) if the UID exists and begin polling to see if the tag is still present. If not consider it lost.

Having the UID stored ina temp file may be better, if it's left in memory a memorry killer app may free up that portion of memory leaving an undesired effect.

Thank for taking yout time reading my post! I will happily discuss possible ideas and solutions to solve this. Would it be beneficial to begin typing up requirements to support this? Perhaps start a different thread just for this? I'm would be willing to help with part of the development and testing of it. Even if that means I need to buy different tags to test with.
[Nexus S Themes and Apps] REALid10t:
I may just be being a stupid noob here, but it seems that disabling the LED notification on the Galaxy S3 does not actually work.

I have a task set that includes disabling it when I'm sleeping, but the LED blinks like a champ anyway.
[Nexus S Themes and Apps] krohnjw:
Blame Samsung here. They broke the standard android notification light API and split it into multi settings. I'm taking a look at that next week.
[Nexus S Themes and Apps] dalesd:
I made a task to send a text message (I entered the number and a message in the task setup screen) and then launch navigation. The idea is I can tap this tag when I leave the office and it will text my wife "I'm on my way home", then launch navigation so I can see the traffic.

Navigation launches, but the text message does not get sent. As far as I can tell, nothing happens with the text. What's wrong?

I have a Galaxy Nexus running 4.1.1 Jellybean and I'd prefer the text to go out through Google Voice.
[Nexus S Themes and Apps] krohnjw:
Did you email? Essentially what is likely happening is that two intents are being dispatched too close together. We get around this with pauses when launching apps. I'll add that to Nav / SMS and a few other things in the next release.
[Nexus S Themes and Apps] dalesd:
Yes, I sent an email through the app feedback last night.

Thanks for the info. When's the next release expected? Should I try a workaround with Tasker in the meantime? Or split it up in to two tags?
[Nexus S Themes and Apps] celeox:
URL issue

I apologize if this has been askwered alredy first of all.

I put an URL on the tag lets say Facebook and when i try to open it, it trys to open with Opera and it just gives it u/ and it comes up with nothing. If I uninstall Opera it opens fine in Dolphin. Is there a way to propmt it not to use Opera browser and use Dolphin. I keep Opera cause it is best to download stuff IMO.

Thanks in advance.
[Nexus S Themes and Apps] krohnjw:
I'm on vacation now for the next 10 days or so. So not until after then. If you want to use the automatic SMS plugin that should work. Otherwise tasker is a fine workaround in the meantime.
[Nexus S Themes and Apps] krohnjw:
This is an annoying opera problem :-/
[Nexus S Themes and Apps] closeshave2:
I use an app called Volume Ace to switch between various volume profiles that I've created. It would be very cool if I could use an NFC tag to launch this app and select one of these predefined profiles. I've been tinkering around with the "Custom" field which shows up when you select the application to launch. After much experimentation, I haven't been able to get anything to work!

I have been in touch with the author of Volume Ace. I have confirmed that there is a ProfileSet activity which should allow me to select a profile assuming I can invoke this activity and pass the name of the profile I want to select.

Is this possible or just wishful thinking? If possible, what would I need to put in the custom field? Any suggestions?
[Nexus S Themes and Apps] krohnjw:
You'll need to define a custom intent. That's not possible in the app right now, but it's planned for a future release.
[Nexus S Themes and Apps] closeshave2:
That would be awesome -- I'm looking forward to future updates. Thanks for your response!
[Nexus S Themes and Apps] MeInGatineau:
NFC technology has a lot of potential. I’ve recently purchased a few tags. I would like to be able to only use NFC Task Launcher instead of a combination of different apps such as tasker to complete specific activities on my device.

Right now, I am able to:

Disable Wifi

Enable GPS (with root)

Start mapmyrun+

I would like to be able to start playing a specific playlist with NFC Task launcher without using another app.

Once I figure it out, my girlfriend will be very happy that technology is helping her save time when she wants to go for a run.
[Nexus S Themes and Apps] krohnjw:
Starting a playlist in what app? Right now it might not be possible. Soon though I want to add support for Google Music playlists.
[Nexus S Themes and Apps] MeInGatineau:
Perfect, Google music playlist works for me !
[Nexus S Themes and Apps] rsandy:
Nice louncher thank you
[Nexus S Themes and Apps] fatchoi:
Hi Developer,

Would it be possible to make a USB Fast Charge Toggle please?

It's gonna be useful if I could place one tag near the USB port, so that I can choose if I "fast charge"

Thanks!
[Nexus S Themes and Apps] Taomyn:
Is it me or is there no way to edit tasks for a tag? I don't store them on the tags if that makes a difference

---
[Nexus S Themes and Apps] krohnjw:
You can't currently "edit" individual actions within a task. That is planned for a future release right now.

You can edit a task by loading the saved task and then adding/removing actions.
[Nexus S Themes and Apps] Taomyn:
Thanks and now the new version won't execute anything when I scan my tags. It simply says 'Found tag' and nothing more.

I reverted back and it was OK again. Upgraded and rebooted still not working.

---
[Nexus S Themes and Apps] krohnjw:
Switch tag or regular task tags?
[Nexus S Themes and Apps] Taomyn:
Not quite sure which is which. All I know is that the tags don't have the tasks written to them ie. the way the app worked when it first came out.

---
[Nexus S Themes and Apps] krohnjw:
Enable debugging in the app - scan the tag in question and send me the log. That would be easiest. Are your saved tags present in the app when you open it?
[Nexus S Themes and Apps] Taomyn:
Yes they are all still there. Will get a log shortly.

---

---------- Post added at 07:43 PM ---------- Previous post was at 07:33 PM ----------

Log sent

---
[Nexus S Themes and Apps] hewlett777:
How does NFC Task launcher deal with exiting tasks? Do I need 2 tags/stickers? One 'on' and one 'off'?

e.g.

If I have a tag in the car to enable my car tasker task which turns on Nav app and turns off wifi. Does NFC TL then turn off the Nav app and back on the wifi? Or do I need another tag to do this for me?

Thanks
[Nexus S Themes and Apps] gkrawiec:
you can put a set of reverse settings on the same tag. They are called "switches" look on NTL for "New Switch" and create it there.
[Nexus S Themes and Apps] hewlett777:
Thanks, but I can't find that option, I have ' + add action' which then gives 'settings' social+messaging' and 'applications' none of which have a switch option.
[Nexus S Themes and Apps] krohnjw:
Switch tag, not a task tag.
[Nexus S Themes and Apps] hewlett777:
Ah! Brilliant, thanks!
[Nexus S Themes and Apps] kari kimber:
Is app can support screen locked phone (sleep)?

Is app can support screen locked phone (sleep)?
[Nexus S Themes and Apps] krohnjw:
If you mean work with the screen locked this will require flashing your device with a modified NFC service that is set up to run with the screen locked. Otherwise Android disables NFC as soon as the screen turns off and does not re-enable it until the screen is on AND the device unlocked.
[Nexus S Themes and Apps] modidlee:
Question: if I write a tag using NFC Task Launcher can any NFC capable phone read it, even without the Task Launcher app installed?
[Nexus S Themes and Apps] krohnjw:
If the app isn't installed it will take then to the play store to install it.
[Nexus S Themes and Apps] Mercusio:
Hello.

I have been using NFC Task Launcher for some weeks now, and, like many of you, with one tag inside my car.

For me, this tag is supposed to be a "Switch", if I enter my car, I activate the thing and it goes in "Enter Car" mode :

- Bluetooth On

- Data On

- Wifi Off, etc.

If I leave my car, say for shopping, I activate it again and it goes into "Leave Car" mode : Bluetooth turns Off, Volume goes Up etc.

I have one issue thought, it's that I don't always activate the tag a second time.

For example if I arrive at home, there is no point in activating again the switch tag inside my car and going into "Leave Car" mode since I will be activating one inside the house.

So if I am on "Enter Car" mode, and I activate the tag inside the house, the next time I try to activate the switch inside my car, it will go into "Leave Car" mode, so I will have to activate it again in order to go into "Enter Car" mode. I don't know if I am clear enough.

So I tried solving the issue with a Tasker task, but even if NFC Task Launcher says that it is launching the task, it never does anything from Tasker.

I tried uninstalling both apps, but still the same.

Of course I allowed external apps access with Tasker.

Could you help me please ?
[Nexus S Themes and Apps] gkrawiec:
This is actually a valid point and an issue I've run into myself. A new available task should be "reset switch X to mode 1/2". So if you do use the task in your house it resets the car task.
[Nexus S Themes and Apps] Mercusio:
But that is not possible with NFC Task Launcher itself right ?
[Nexus S Themes and Apps] krohnjw:
For Tasker:

Tasker must be installed first, then NFC Task Launcher. External access must be enabled in Tasker. All that I do with Tasker is use the shared class from Tasker and tell it "Start Task with name of NAME". It must handle everything else. I can guarantee that the intent is being sent that says "Start this task".

Currently switch tags reset after 12 hours back to their initial state. This is a setting in the next release that can be enabled or disabled (it is disabled by default).

Having this on a tag would create a REALLY big tag as you're storing the fill switch text and a few bytes for the additional command structure. I could make something like reset *all* switch tags as an action or a manual button in the app itself. This would take up far less space, but it would be more of a shotgun solution.
[Nexus S Themes and Apps] gkrawiec:
I think its not an option right now. Maybe its in the works.
[Nexus S Themes and Apps] krohnjw:
Yeah, not right now.
[Nexus S Themes and Apps] Mercusio:
Thank you for your answer. After reading you, I tried that. First of all I didn't lose my profiles (is this normal ? Even if I chose to erase all datas from the app before removing it). Unfortunately it seems that NFC Task Launcher is now unable to write on tags...

When I am invited to put my phone against a tag and I do it, nothing happens except the sound playing. Reading a tag works fine though.

EDIT : I am sorry. I just rebooted the phone and it works perfectly now.

Thank you very much !

If it is disabled, does it mean that it never reset ?
[Nexus S Themes and Apps] krohnjw:
Right - it will always operate on a 1-2-1-2 basis.

With the preference enabled it will continue to operate on a 1-2-1-2 basis unless 12 hours has passed since it was last scanned. Then it will always execute task 1.
[Nexus S Themes and Apps] KotDroid:
I'm not sure if it's been already asked but how about adding "auto answer call" and "loud speaker" toggle functionalities? I would be glad to see them without using extra app like Auto Answer. Is it possible? :o

I've tried to use corresponding functions from Tasker but it seems to not work on my SGS 3 with stock JB :(
[Nexus S Themes and Apps] kravex:
New to this NFC thing but is it possible to run a file off of a pc with this, like \\server\folder\movie.mp4 ?

Thinking of putting them around an educational site I work and linking each to a video that would play when touched, then being able to update the video files on a server whenether I like. Maybe I'm taking it to far but I'm sure some of the students would find it very interesting, could even be used for visiters.
[Nexus S Themes and Apps] sysadmn:
It probably depends on the software used to read the tags - you can definitely encode a url (actually, URI), which would have the same effect. My NFC keychain holds the URL for my google+ profile, so anyone scanning it sees "me" in a browser.
[Nexus S Themes and Apps] Crafty77:
Does anyone know of a music player app I can kick off with task launcher that will auto play music when started ?

Currently I'm using media start/stop but it always starts the default music app on my S3.

This app has a bug in that it "forgets" its in shuffle mode, so I still need to access the phone and make it run in shuffle.

I've been looking for a music app that has an activity to make it play, but I can't fine one.
[Nexus S Themes and Apps] krohnjw:
Have you tried starting a music app and then using the Start/Stop media playback command?
[Nexus S Themes and Apps] morphers82:
So Question for everyone,

What kind of tags do you get, with what chips, and format such as sticker, pvc tag, keytag etc.. Bundles of different types of tags and keychains etc... Anything you wish had a built-in tag like a coaster or glass etc...

Also, do you like it if it has a logo on it or some kind of image the depicts what you'll use it for or would you rather have something more customize able such as a sheet of labels that you could print or write on yourself and attach to a tag?

What are the tasks you commonly use NFC for like turning Wifi On and off, or saving a vcard etc..

Do you like to buy tags with preprogrammed tasks on them? if so which tasks do you, or would like to have preprogrammed tasks on tags?
[Nexus S Themes and Apps] veitograf:
hey guys,

today my nfc tags arrived and i installed nfc task launcher. i created a tag for switching wifi but when i click on "safe&write" (if thats the correct translation) but nothing happens.:( when i hold my phone over the tag, a window pops up saying: empty tag.

what im a doing wrong?

btw: i tried the app nfc retag with a simple wifi on action and it works. so i guess its not the tags but something else.
[Nexus S Themes and Apps] krohnjw:
It literally says empty tag? Enable debugging in the app, try to write the tag and send me the log.
[Nexus S Themes and Apps] fantomex:
Foursquare Mayorships

Does the foursquare checkins from the app count towards the foursquare mayorships? Does it send current location with the checkin? I see from the foursquare website, that i am checked with NFC task launcher, so this is why i am asking.
[Nexus S Themes and Apps] krohnjw:
It send your current GPS coordinates (lat, long, accuracy) with the checkin request.
[Nexus S Themes and Apps] krohnjw:
After more than a year I am consolidating threads. Maintaining several threads was getting to be too much. Please move to the new thread here with any new questions or comments: http://xdaforums.com/showthread.php?p=34417369
[Nexus S Themes and Apps] krohnjw:
Closing, move here! http://xdaforums.com/showthread.php?p=34417369
[Nexus S Themes and Apps] krohnjw:
Correct, they are rewritable (i think they are rated for 100k writes). They can be formatted to read only, but I do not do that as it doesn't have much utility for what we want to do :)

Yes, the entire point was to make it unnecessary to either do things manually or to be reliant on a polling service to launch them. Tasker is a good application for a lot of these things, but I wanted to put the NFC functionality to good use.

Another feature is that anyone can hit your tag (with the application installed) and get the same functionality from it. It's not limited to local profiles or configurations.
[Nexus S Themes and Apps] bratfink:
Found a good deal but not sure if they will work;

here is the ebay link http://cgi.ebay.co.uk/25-x-RFID-125...pt=UK_CCTV&hash=item1c1a262541#ht_1266wt_1139

Im from UK so its a good deal for me, but are they re-writable because it says chip type R/O and will i be able to use them with my Nexus S?
[Nexus S Themes and Apps] krohnjw:
I don't think these will work (from the auction):

- RFID type is EM card/tag 125kHz

- Operating frequency: 125 kHz ± 5 Hz (At room temperature)

Nexus S uses HF - 13.56 MHz

It also doesn't say what the underlying chip is (or what specs it conforms to).
[Nexus S Themes and Apps] fesar:
Thanks and Great work.

I have already purchased this app. If you need me to test anything do add me in count always.
[Nexus S Themes and Apps] krohnjw:
Thanks :)

1.3 Up - fixed a FC in the free version when checking for license via the menu.
[Nexus S Themes and Apps] krohnjw:
1.4 Going up tomorrow sometime.

Added support for volume control - Can now change Ringer volume, Media volume, Alarm volume, Ringtone and Ring type (silent, normal or vibrate). These just need a bit more testing before i am comfortable.

Brightness controls coming soon as well.
[Nexus S Themes and Apps] fesar:
Send to me for testing

For all testing on this, do send it to my gmail for testing. I am using the tasker mainly for Volume control.
[Nexus S Themes and Apps] Highland3r:
Tags arrived today - very quick service (and prices are ok) for those in the UK looking for tags.

The credit card style tags were out of stock, but picked up some of the discs & a wristband style tag - testing now but the phone picks up the blank tags without a problem....

<edit> First tag failed to write.... :( </edit>

<edit2> Ok tags write ok second time around and accept the same action as failed before.

Some further info (tested on a new tag) -

Launch App

Add action "enable bluetooth" (ONLY THIS ACTION)

Tag size 4bytes.

Click Write Tag

Tag touched to device - Error "IO Error Writing to Card" displayed

LogCat shows the following error:

E/NFC Dispatch(29205):IO Exception writing format to tag

E/NFC JNI ( 283):phLibNFC_RemoteDev_CheckPresence() returned 0x00ff(NFCSTATUS_FAILED)

Something seems to have killed the NFC reader in the phone - not registering tags at the moment. Disabling/Re-enabling just hangs - possibly the radio crash (logcat shows similar errors), need to reboot.

</edit>

<edit Again>

Ok reboot fixed. Looks like (for some reason) enable bluetooth can't be the first thing written to a tag...

Added "Enable Bluetooth" as a single action - write fails

Added "Disable Wifi" (as a second action after bluetooth) write also failed

Removed "Enable Bluetooth" write succeeds

Re-added "Enable Bluetooth" as a single action and it worked fine.

Aaaaannnnnnd NFC is dead again.

</edit>

-
[Nexus S Themes and Apps] 3Shirts:
Hmm. I ordered from a US site and they still haven't even shipped them yet! I've ordered a few more from that UK based company so I'll probably end up with a ton of them now!