[android-developers] NFC Question

2011-03-15 Thread Manuel Roman
Hi, I am writing an NFC application on Gingerbread 2.3.3. The application writes and reads data to and from tags. I am using the white plastic tags that look like a badge. I have been able to write data to the tags. However, it only works when the tag is unformatted. That is, I get a brand new ta

Re: [android-developers] NFC Question

2011-03-16 Thread Nick Pelly
Hi Manuel, You can write to a formatted card using the Ndef technology class (as long as it was not made read-only). Nick On Tue, Mar 15, 2011 at 4:50 PM, Manuel Roman wrote: > Hi, > > I am writing an NFC application on Gingerbread 2.3.3. The application > writes and reads data to and from tags

Re: [android-developers] NFC Question

2011-03-21 Thread Zhihong GUO
Hi all, I have the same issue. I write the tag by Ndef class, but the tag can't be read by any readers application, it cause them crash. The source code is below: ... Tag tagFromIntent = null; void writeTag(){ NdefRecord record = new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecor

Re: [android-developers] NFC Question

2011-03-21 Thread Zhihong GUO
hi all, the exception is due to the intent action, it is NfcAdapter.ACTION_NDEF_DISCOVERED, not ACTION_TAG_DISCOVERED, which is listened by tag or tagwriter app. 2011/3/22 Zhihong GUO > Hi all, I have the same issue. I write the tag by Ndef class, but the tag > can't be read by any readers appli

Re: [android-developers] NFC Question

2011-03-22 Thread Michael Roland
Hallo Zhihong, > [...] I write the tag by Ndef class, but the tag can't be read by any > readers application, it cause them crash. > [...] > NdefRecord record = new NdefRecord( > NdefRecord.TNF_WELL_KNOWN, > NdefRecord.RTD_TEXT, > new byte[0], > "this is a write tag".getByt

Re: [android-developers] NFC Question

2011-03-23 Thread Michael Roland
Hallo, Well, the field in the constructor is clearly named "payload", so in NDEF terminology it has to contain the complete payload. Text records (and other RTDs) are built on top of the NDEF specification, so in my opinion, a higher layer of abstraction (like a class NdefTextRecord), that sets up

[android-developers] NFC question: card emulation is not supported in the Android SDK yet, right?

2011-02-25 Thread davemac
I'm no NFC guru, but from what I can tell of the docs and the samples, there's no way to do card emulation on an Android device at this time, using the SDK. Is that correct? I see the published classes/methods for reading/writing tags, and for the Ndef push using P2P and the mysterious com.android

Re: [android-developers] NFC question: card emulation is not supported in the Android SDK yet, right?

2011-02-28 Thread Nick Pelly
Hi Dave, Correct, we do not support Card Emulation in the SDK. It's actually very hard to do this in a consistent way across the Android platform, due to the current hardware architecture of NFC. Different NFC hardware can support Card Emulation in very different ways, to the point where its very

Re: [android-developers] NFC question: card emulation is not supported in the Android SDK yet, right?

2011-03-02 Thread nov
Hi, I am repeatedly getting "02-28 06:16:40.267: DEBUG/SntpClient(66): request time failed: java.net.SocketException: Address family not supported by protocol" in my Sudoku program. Also my program doesn't proceed from these statements even after 5 hours.My files are the same as given in Ed Burnet