Main
com.rvi.Main · Class · SocialCard 1.0.3
Demonstrate a complete write and read-back with a link and a text record.
When to use it
Section titled “When to use it”Use the demo as a reference for a small command-line integration. It selects the first available reader and writes its fixed example message, so run it only with a tag you intend to overwrite.
Java example
Section titled “Java example”com.rvi.Main.main(new String[0]);For your own data, compose a message with NDefMessageCreator and call the service directly. The demo takes no configuration from its arguments.
How it works
Section titled “How it works”main(String[]) builds the message, opens the service, connects, writes and reads the stored message to display its NDEF byte count. The service also performs verification during the write. The package-private createMessage() contains the demo data.