Y ygz12345 Member Licensed User Longtime User Apr 23, 2013 #1 i used designer to create a button. the code is as below. Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("button1") New End Sub Click to expand... i have load the layout "button1" then it will go to NEW. so at NEW there i would like to check whether my button is trigger or not. If it is trigger, it will send 'W' through bluetooth . How do i write the code for sending something through bluetooth ?? thanks :sign0013: Im noob in this software Last edited: Apr 23, 2013
i used designer to create a button. the code is as below. Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("button1") New End Sub Click to expand... i have load the layout "button1" then it will go to NEW. so at NEW there i would like to check whether my button is trigger or not. If it is trigger, it will send 'W' through bluetooth . How do i write the code for sending something through bluetooth ?? thanks :sign0013: Im noob in this software
Y ygz12345 Member Licensed User Longtime User Apr 23, 2013 #2 For bluetooth part, i have taken the code from here http://www.b4x.com/forum/basic4android-getting-started-tutorials/14768-android-bluetooth-bluetoothadmin-tutorial.html Upvote 0
For bluetooth part, i have taken the code from here http://www.b4x.com/forum/basic4android-getting-started-tutorials/14768-android-bluetooth-bluetoothadmin-tutorial.html
Erel B4X founder Staff member Licensed User Longtime User Apr 24, 2013 #3 You should handle the button click event. I recommend you to start with the beginner's guide: Basic4android (Basic for Android) - Android programming with Gui designer Upvote 0
You should handle the button click event. I recommend you to start with the beginner's guide: Basic4android (Basic for Android) - Android programming with Gui designer