Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Current state of NFC?

Author
Message
JRNTexas
12
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 28th Apr 2014 10:55
It's been awhile since I've posted...I'm playing with NFC tags on my LG Optimus F3 and it's not working. I have Android OS 4.1.2. I know that Google Wallet will not work with this version. It needs 4.4.?.

But I can do lots of neat things with my phone using NFC and would really like to be able to write some apps for my own use.

Is anyone intimately familiar with which version of Android OS is required, or is there a list of phones it's compatible with?

I found only two, locked threads about NFC so it doesn't look like a hot topic. But it could be and tags might even be used in game play as well as several other interesting apps.

I'm hoping to generate some interest. I wrote RFID tag software 10 to 15 years ago. NFC is an offshoot. NFC has tremendous potential to unlock many different types of apps.

Thanks, in advance
JRNTexas
12
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 28th Apr 2014 11:05 Edited at: 28th Apr 2014 11:07
Oh, I've tried all of the commands. Most require "UINT iIndex", which is an integer, returned from GetRawFirstNFCDevice. I can't get GetRawFirstNFCDevice() to return any information so I've seeded the commands with faux numbers but to no avail. I'm not sure if First Device or Next Device is a reference to the device in the phone (reader/writer) or if "device" actually indicates a tag. I've got lots of tags and other apps recognize them but not the NFC commands within AGK.

Any help appreciated!
easter bunny
11
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 28th Apr 2014 12:08
I'm pretty sure they're not yet operational...


Audacia Games - Facebook - AUTOMAYTE 2.1, AppGameKit one click deploy to Android
"When you've finished 90% of your game, you only have 90% left"
Arbrakan
13
Years of Service
User Offline
Joined: 10th Oct 2010
Location: Geneva
Posted: 28th Apr 2014 12:44
I'm waiting for some NFC working command too.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 28th Apr 2014 13:44
i had made a request do rename all unfinished commands...

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 28th Apr 2014 14:34
are you sure NFC works on agk android?
i think the commands work only with windows on the ultrabook
JRNTexas
12
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 29th Apr 2014 01:01 Edited at: 29th Apr 2014 01:03
Here are links to the only other two references to NFC:

http://forum.thegamecreators.com/?m=forum_view&t=206693&b=41

This one above has someone that states it is working on their phone. I'm curious if it is still working?

The other is: http://forum.thegamecreators.com/?m=forum_view&t=202269&b=41

It definitely is not working on my phone. Although all other programs using NFC seem to work, except Google Wallet which has a security issue that is supposedly fixed with Android 4.4.x.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Apr 2014 10:54 Edited at: 29th Apr 2014 10:54
Quote: "i think the commands work only with windows on the ultrabook"


I thought this too, but the other thread clearly says it is working.
I have a Nexus 4 on Android 4.3 with NFC, I'll try GetNFCExists() this evening if I get chance.

Oh...and welcome back! It's been a while, I hope life is treating you well.

JRNTexas
12
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 29th Apr 2014 11:10
I'm doing well, thanks for asking...

My phone has NFC but GetNFCExists() returns a null.
JRNTexas
12
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 29th Apr 2014 11:18
One little trick (most of you probably already know this):

in code, you can check any command or custom function with:

if GetNFCExist()

instead of:

if GetNFCExist() > 0

or some other qualifier.

like,

if GetParticlesExists(1)
do something good
else
don't do anything
endif


works just as well as:

if GetParticlesExists(1) = 1
do something good
else
don't do anything
endif

Just saves a few keystrokes if you are writing a lot of code ;0)

Login to post a reply

Server time is: 2024-05-02 22:31:11
Your offset time is: 2024-05-02 22:31:11