techknight Well-Known Member Licensed User Longtime User Aug 25, 2012 #1 How do you test for the bluetooth adapter presence before accessing? Reason I ask is every time i run my program in the simulator it crashes with that stupid NullPointerException when accessing bluetoothadmin in any way. Is there a way to test for its presence before working with bluetoothadmin?
How do you test for the bluetooth adapter presence before accessing? Reason I ask is every time i run my program in the simulator it crashes with that stupid NullPointerException when accessing bluetoothadmin in any way. Is there a way to test for its presence before working with bluetoothadmin?
margret Well-Known Member Licensed User Longtime User Aug 25, 2012 #2 Do a search for bluetoothadmin. It may have something that will work. You could also use. TRY CATCH ENDTRY. Upvote 0
Do a search for bluetoothadmin. It may have something that will work. You could also use. TRY CATCH ENDTRY.