Thank you so much for this. There aren't many useful guides on how to start using Bluetooth and yours was concise and brilliant.
@guynimni3825 жыл бұрын
Great tutorial! Tnx for taking the time to record it. I just wanted to have a quick start with communicating with the Arduino via Bluetooth. Next step for me is to dig deep into the Kotlin+Android fundamentals in order to better understand some of the things you did in the video :)
@ilkesert10504 жыл бұрын
Unresolved reference: select_device_refresh. I have this problem on MainActivity but i haven't got any problem at activty_mainly CAN U HELP
@omeryumusak69003 жыл бұрын
add build.gradle this code plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-android-extensions' }
@omeryumusak69003 жыл бұрын
türkmüşsün zaten bu kodları ekle
@krisjanisnoviks1203 жыл бұрын
@@omeryumusak6900 thank you :)
@cassidygonzalez3742 жыл бұрын
Add this line above the line that uses select_device_refresh: val select_device_refresh = findViewById(R.id.select_device_refresh) as Button
@jamesedwards90545 жыл бұрын
The items are not showing in my list view...
@zainablawal972 жыл бұрын
Hi Apptaura, Thank you so much for this tutorial. Is there a way i can receive data from an arduino hc-06 Bluetooth device?
@scodedead90615 жыл бұрын
Great tutorial !!! but i always get could'nt connect ( HC-5 ) to arduino , huft i did not see any error ,should i ???
@aqualk37225 жыл бұрын
Thanks it helped.can you update the code for see the name of bt device on listview and reading data
@hugopetrucci39383 жыл бұрын
there are many things that don´t work on android studio 4.2.2 , please describe version that you use
@hugopetrucci39383 жыл бұрын
3.0.1
@carlosproduction41835 жыл бұрын
Just a question, I have to do something about "position" in (your) line 58, do I have to initialize it in some way (val position:Int = 1 ?) Thank you anyway !
@samqueen83373 жыл бұрын
If your list does appear it may be because the font and the text color are both set to white. Try changing the background-color of your list
@robertauer27634 жыл бұрын
Something has changed - I'm following the instructions to the letter and I keep getting: "AndroidManifest.xml:13:9-17:25: AAPT: error: unexpected element found in " and the android:name is in Red.
@loriklassen24166 жыл бұрын
The arduino code listed doesnt correspond with the what the tutorial teaches. Where can i find the correct android sketch
@jaumebobet99986 жыл бұрын
Is there a way to show in the ListView te connected device names instead or together with de device MAC address ?. Thank you in advance. Apart from this issue, your example and explanations are great. I've learned a lot and I customized it for my own purpouses. It works very well
@guynimni3825 жыл бұрын
Don't know if it's relevant after so much time passed :) What I did was to add a new array that holds only the device names and pass it to the listView. private fun pairedDeviceList() { m_pairedDevices = m_bluetoothAdapter!!.bondedDevices val list : ArrayList = ArrayList() val listOfNames : ArrayList = ArrayList() // Added if (!m_pairedDevices.isEmpty()) { for (device: BluetoothDevice in m_pairedDevices) { list.add(device) listOfNames.add(device.name); // Added Log.i("device", ""+device.name) } } else { toast("no paired bluetooth devices found") } val adapter = ArrayAdapter(this, android.R.layout.simple_list_item_1, listOfNames) // Changed to listOfNames select_device_list.adapter = adapter select_device_list.onItemClickListener = AdapterView.OnItemClickListener { _, _, position, _ -> val device: BluetoothDevice = list[position] val address: String = device.address val intent = Intent(this, ControlActivity::class.java) intent.putExtra(EXTRA_ADDRESS, address) startActivity(intent) } }
@frootyfloyd93983 жыл бұрын
@@guynimni382 Great!
@videos4mydad2 жыл бұрын
Unfortunately a lot of code in this tutorial is now "deprecated" and we cannot simply follow the tutorial step by step. I am trying to find a more recent tutorial.
@pascalschaer Жыл бұрын
same. Have you found anything?
@videos4mydad Жыл бұрын
@@pascalschaer I am learning Flutter and Dart. That way I can write it once and use it on Android and iOS. Unfortunately, using bluetooth on something like React Native and Expo frameworks is a complete pain in the ass even though I am familiar with React.
@mattgewain77435 жыл бұрын
Very Good tutorial. But the font on Android Studio is to small for me to read except on my biggest monitor. I wish I could see it better.
@freedomphiliplachica54144 жыл бұрын
I'm getting error. The word list is underlined red saying: expression 'list' of type 'kotlin.collections.ArrayList /* = java.util.ArrayList */' cannot be invoked as a function what should I do?
@K0nzerv4 жыл бұрын
Thank you for this tutorial, you saved me tonnes of time.
@mannhansen93375 жыл бұрын
Thanks for sharing this tutorial. How can I import it into Android Studio version 3.5.3 ? I have tried but get lots of errors. Looks like compatibility issues with the new version ?
@danny117hd3 жыл бұрын
Presentation size coding window please. Or maybe use the magnifier
@MyVoid3124 жыл бұрын
any idea on how to do it on java?
@emethp77516 жыл бұрын
Is this tutorial applicable in communication between a Bluetooth low energy beacon and a phone that supports the same?
@apptaura81316 жыл бұрын
Hi Emeth, thanks for the comment. Unfortunately Bluetooth and Bluetooth low energy are two completely different technologies. However we may look into doing a tutorial on Bluetooth low energy at a later date.
@riekje3216 жыл бұрын
Would be nice. Thanks.
@陳少豪5 жыл бұрын
Thanks for your tutorial
@geekmustafa6 жыл бұрын
Thinks bro but if u can make one about received data plz 😊
@DrequimaX5 жыл бұрын
Sir, can u tell how to display message from BT device, I used m_bluetoothSocket!!.inputStream.read(output.toByteArray()), but it is not working!
@ryszardal26314 жыл бұрын
hi, did u solved it?
@Jim1Dean3 жыл бұрын
@@ryszardal2631 i want to know it too
@jayverma18703 жыл бұрын
kindly zoom your code when you record video
@smyra4 жыл бұрын
Hi, I don't know if you still follow this but I'll give a try for my question. First, I want to thank you for this tutorial. I'm unfortunately late and pretty new on this. Now, I'm using AndroidStudio do lots of things have been changed, I assume. I used all your coding, butI'm getting some error and unfortunately again I couldn't solve it and also find on the net. So maybe you can help me with this. Android gives an error at the SelectDeviceActivity class with this code: "val intent= Intent(this, academy.mestim.neurostimulator.ControlActivity: :class.java)" with the error: " e: C:\Users\smyra\AndroidStudioProjects euroStimulator\app\src\main\java\academy\mestim eurostimulator\SelectDeviceActivity.kt: (63, 84): Expecting ')' ". I tried "alt + enter" but it didn't help either. So, waiting for your help. Have a nice day
@alanlowe9716 Жыл бұрын
Ditto. It is difficult to follow this tutorial when everything he types is deprecated.
@V3NG3ANC336 жыл бұрын
Link to that wallpaper pls?!
@apptaura81316 жыл бұрын
Hi zyyystan, thanks for the comment. Here is a link to the wallpaper: bit.ly/2GB4dbu
@tryJOCIM2 жыл бұрын
0dp didnt work
@zenon59405 жыл бұрын
Your tutorial is quite interesting BUT .... it would be so much more interesting if we could read more easily what you show us on your monitor, Have you ever considered having more contrast like for instance black otext on white background ?
@scottcarrington10235 жыл бұрын
Could it be your internet connection? I was having troubles in some areas, too, but after restarting my modem and going full screen on the video, the text was crystal clear.
@CharlesGouin6 жыл бұрын
You could have made this video much sorter by showing less of the design process. Your title is "How to communicate to a Bluetooth device", not "Android studio 101". Great video anyway and thx!
@apptaura81316 жыл бұрын
Hi Ozkee, thanks for the comment. We will keep this in mind for future turorials.