Hi all
I am trying to get my Bluetooth MAC Address of my device and i use this syntax:
Label2.Text = seriale.Address
but during compilation it gives me a lot of errors:
Seriale is declared as Serial
and Label2 is declared as Label
What can i do to get and show the MAC address of my device?
Thanks in advance
I am trying to get my Bluetooth MAC Address of my device and i use this syntax:
Label2.Text = seriale.Address
but during compilation it gives me a lot of errors:
Error occurred on line: 39 (main)
java.lang.NullPointerException
at anywheresoftware.b4a.objects.Serial.getAddress(Serial.java:73)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:302)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at b4a.example.main.afterFirstLayout(main.java:98)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Resume **
Seriale is declared as Serial
and Label2 is declared as Label
What can i do to get and show the MAC address of my device?
Thanks in advance