There are two ways to compile your application:
* One is using the Eclipse Framework to manage mobile projects and then add the .JARs with the NFC+extension that we have sent to you. With the Netbeans will be the same.
* Two is a trick I made too, creating my own BenQ T80 from the DefaultColorPhone in the WTK:
1.- I copied the folder DefaultColorPhone that you will find in C:\WTK2.5.2\wtklib\devices to BenQT80 for instace. So you will have the same folders:
C:\WTK2.5.2\wtklib\devices\DefaultColorPhone
and
C:\WTK2.5.2\wtklib\devices\BenqT80
2.- I renamed every file. Where it said DefaultColorPhone, now it says BenQT80. Like the folder.
3.- The important part is the .properties file because you must to put here where are each extension. So, after rename the files inside, I put at the end these two lines:
api.class.path: lib\\cldcapi11.jar;lib\\cldcapi10.jar;lib\\jsr75.jar;lib\\jsr184.jar;lib\\midpapi20.jar;lib\\midpapi10.jar;lib\\mmapi.jar;lib\\wma11.jar;lib\\ext\\SiritNFCControl.zip;lib\\ext\\extensions_jsr257_share.jar
emulator.library: lib\\cldcapi11.jar;lib\\cldcapi10.jar;lib\\jsr75.jar;lib\\jsr184.jar;lib\\midpapi20.jar;lib\\midpapi10.jar;lib\\mmapi.jar;lib\\wma11.jar;lib\\ext\\SiritNFCControl.zip;lib\\ext\\extensions_jsr257_share.jar
4.- As you can see, it is configured to use files inside of the folder
C:\WTK2.5.2\wtklib\devices\BenqT80
I create in it the folder lib and ext:
C:\WTK2.5.2\wtklib\devices\BenqT80\lib
C:\WTK2.5.2\wtklib\devices\BenqT80\lib\ext
5.- Placed in the folder lib the common files. I got them from the Nokia SDK, but you can use the default files from the WTK. And I placed the JSR257 + Sirit extensions in the ext folder.
I relaunch the WTK and it will show the new configuration BenQT80 in the Device list, and now I can compile for this configuration.
----------------------------------------
The three differences with the SDK of Nokia are:
1.- you must to call the static method
com.sirit.nfc.Hardware.NFCRequestEnabledADD(true);
to make enable the NFC capabilities of the BenQ;
2.- the name of the following method:
package javax.microedition.contactless.ndef;
class NDEFRecord {
...
public NDEFMessage getNestedNDEFMessage(int offset);
...
}
package javax.microedition.contactless.ndef;
class NDEFRecord {
...
public NDEFMessage getNestedMessage(int offset);
...
}
;
3.- and the strings of the PushRegistry:
* for Text tags
MIDlet-Push-X: ndef:rtd?name=T, MIDletClassName, filter
* for URL tags
MIDlet-Push-X: ndef:rtd?name=U, MIDletClassName, filter
* for SmartPosters tags
MIDlet-Push-X: ndef:rtd?name=Sp, MIDletClassName, filter
----------------------------------------
Check if this works and advice us if there is any kind of problem.
Best regards,
Jose