I looked up the function to make the phone vibrate. The code compiles and runs as expected on the emulator but does not function AT ALL on the physical phone. Here is the code used:
I thought the issue might have been a concurrency problem so I created a new thread as you can see in the code above, still no success on the physical device.
public void targetDetected(TargetProperties targetProperties)
//no targets found
if(targetProperties.length == 0)
welcomePage.append("No data stored.");
return; //exit method as nothing found.
Thread thread = new Thread();
I also created a gauge to use as a progress bar. Once again it works as expected on the emulator but the bar only gets updated when all the data has been retrieved, which makes the loading screen obsolete. Similar issue to my vibrate problem, I thought creating a new thread may solve the problem but it didn't, everything is fine on the emulator but the physical phone is refusing to work as expected.
Why am I having these issues with the physical device when the emulator works as expected? To clarify, I'm using NetBeans v 6.8 IDE and the Nokia 6212 NFC emulator and transferring the .jar onto the physical 6212 via Nokia PC Suite v 188.8.131.52.