you are a good programmer because you using comments when you are coding.this is a very good habit.every programmer should use comments.
@bestbest11074 жыл бұрын
Good code doesn't need comments, because it's easy to understand
@adfinemrising4 жыл бұрын
i didnt know bluetooth doesnt work on android emulator.. it really has to run on a real device to be tested. very nice tutorial sir :)
@AtifSayings4 жыл бұрын
Happy to help
@gadgetzup52432 жыл бұрын
Thanks bro or the tutorial, I want to ask that android studio is saying that startactivityforresult() is depreciated, how can upgrade to modern way.
@AtifSayings2 жыл бұрын
You're welcome. Here is the link of a video already made by me. kzbin.info/www/bejne/qoaml3yBbpVrn5o
@dhavalpatel3794 Жыл бұрын
Could you please make the tutorial for how can I communicate over Wifi and Bluetooth with esp32? If i want to take realtime data from esp32 toandroid application in kotlin then is it possible?
@AtifSayings Жыл бұрын
No idea
@semakzl45243 жыл бұрын
Thank you for sharing this amazing video. But i have problem with this code sentence "startactivityforresult deprecated" what should i fix this issue?
@AtifSayings3 жыл бұрын
You can easily change to recommend new way to do the same by watching this video by me kzbin.info/www/bejne/qoaml3yBbpVrn5o
@sankalpnaik8772 жыл бұрын
@@AtifSayings iam still not getting it Plzz help
@sankalpnaik8772 жыл бұрын
I have many problems of security exception....how to resolve plzz help
@karimkhaled97114 жыл бұрын
Understood very well ,but please i want to know how to connect to device after listing paired devices ?
@hariharank47412 жыл бұрын
hi this tutorial is very useful to me. This Project is working successfully THANK YOU
@natobaratashvili84702 жыл бұрын
Could you tell my how i replace startActivityForResult()? it does not work :(
@fam225x4 жыл бұрын
L'hai spiegato in modo molto semplice. Well done!
@AtifSayings4 жыл бұрын
😊
@theoberessi67942 жыл бұрын
Heyy thanks for the tutorial ! Can someone tell me what is the shortcut to write quickly ?
@AtifSayings2 жыл бұрын
You're welcome Line Comment hold both: Ctrl + / Block Comment hold all three: Ctrl + Shift + /
@TheBuzoTechie3 жыл бұрын
Great video, I plan to use this for one of my projects :)
@matkobiss3 жыл бұрын
Thanks bro....just starting off my project :)
@AtifSayings3 жыл бұрын
You're welcome
@8animer8894 жыл бұрын
how to list out all nearby devices along with rssi??
@AppsLelo-Official2 жыл бұрын
Awesome boss, It is the perfect what I was looking for. Thanks A Lot.
@AtifSayings2 жыл бұрын
You're welcome :)
@AppsLelo-Official2 жыл бұрын
I need a tutorial on BLE too, with full functionality.
@AtifSayings2 жыл бұрын
@@AppsLelo-Official May be in future
@nolinkay13613 жыл бұрын
Thanks bro very helpful
@moisegimiko74125 жыл бұрын
Hello, Thank you for your video, but when I press the button "Get paired Device" the application stops abruptly .... what is the problem?
@AtifSayings5 жыл бұрын
check logcat for crash reason
@Hung06182 жыл бұрын
Excuse me, the presence of Call requires permission which may be rejected by the user: code should explicitly check to see if permission is available (with `checkPermission`) or explicitly handle a potential ` SecurityException `. How to solve the error?
@AtifSayings2 жыл бұрын
Mention time where this error is showing
@devadarshbiju59812 жыл бұрын
does this work with Bluetooth module HC-05, to get paired on it
@nocompromise82643 жыл бұрын
Sir, How to sync/automatically save data/database in SQLite/Kotlin?
@AtifSayings3 жыл бұрын
If you know to use SQLite & Firebase separately then you just need to get data from firebase and call insert in firebase. Since firebase db supports realtime changes so it will save data as and when data changes
@harisnoori66123 жыл бұрын
Yeah, it's working. Let me know, how can I see he available devices to connect with ?
@hejiahan70952 жыл бұрын
Hi! what do i do now that 'getDefaultAdapter' is deprecated?
@Mfbzai3 жыл бұрын
Is it possible to get rssi in your way?
@ayoubmoul28933 жыл бұрын
Thank you very much, it's helpful for me, please do you have a tutorial about sending and receiving data
@AtifSayings3 жыл бұрын
You're welcome. Not have yet
@luisalejandromonroy78502 жыл бұрын
Muy bien, es le mejor tutorial en este tema que hay
@paolodecaro37412 жыл бұрын
Hello and thank you for answering me. Following your video you fail to see the java specs well, many features are deprecated. So dear Atif I ask you the kindness if you can, to send me the complete code, possibly aligned with the latest release of android studio. You have to forgive me I'm not very good at java, and I need an example program like yours. Thanks in advance. Best regards
@AtifSayings2 жыл бұрын
I don't promise, but I'll try to check in latest android atudio and then let you know.
@paolodecaro37412 жыл бұрын
@@AtifSayings thank you
@scottclark31534 жыл бұрын
I cant help but laugh on the inside when I read that some of you are having issues after watching this "silent tutorial"( which I feel is an oxymoron), and then think that the person that made this video will respond back to your questions and concerns. I think if he wanted to communicate with you, he would have in this video.
@ckcheckcar252 жыл бұрын
i want to android emulators x64 support bluetooth. can you help me.
@AtifSayings2 жыл бұрын
Android emulator doesn't have Bluetooth (i think so)
@felix221122114 жыл бұрын
exelentes videos me ayudaron gracias eres un genio
@martinwhite43635 жыл бұрын
thanks very much but need your help please on how to turn on Bluetooth with out the dialogue that asks me to allow permission to enable Bluetooth thanks
@AtifSayings5 жыл бұрын
You're welcome. No idea about that yet
@davidlewisnthiga24742 жыл бұрын
Great,Atif,could we link up have some question please.David
@AtifSayings2 жыл бұрын
Can you say in comment?
@chrisdunne22964 жыл бұрын
Very informative. Thanks
@AtifSayings4 жыл бұрын
You're welcome
@ewe_loon29785 жыл бұрын
Note to All in MainActivity the "if mBlueAdaptor.isEnabled() " ... part should be in the "else" section of the proceeding "if mBlueAdaptor == null" section to stop trying to read "isEnabled" from a null
@paolodecaro37412 жыл бұрын
Good evening, I tried to upload your project to Android Studio, latest version, but many instructions are in error, you may kindly post the sources, or modify them with the latest version of Android Studio. Thanks in advance.
@AtifSayings2 жыл бұрын
Can you comment the issues here
@alexanderklepach77282 жыл бұрын
@Override public abstract void onClick(View v) {switch (v.getId() /*to get clicked view id**/) { case R.id.onBtn: if (!mBlueAdapter.isEnabled()){ showToast(msg:"Turning Bluetooth ON"); // Intent to on Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(intent, REQUEST_ENABLE_BT); } else{ showToast(msg:"Bluetooth ON"); } } break; case R.id.offBtn: if (mBlueAdapter.isEnabled()){ showToast(msg:"Turning Bluetooth OFF"); break; case R.id.scanBtn: break; default: break; } }
@alexanderklepach77282 жыл бұрын
I have an error here
@nouzainahassan56232 жыл бұрын
Can i use this app to get data from the arduino Bluetooth module ?
@jcayournewstyle1826 ай бұрын
The code doesn't work for me. I think that now the implementation to connect to bluetooth in android studio is different 😔
@AtifSayings6 ай бұрын
I don't think so. It should work. Try to test in a real device instead of an emulator.
@dilumnethsara66456 ай бұрын
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.connectbluetooth2/com.example.connectbluetooth2.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothAdapter.isEnabled()' on a null object reference why showing this error?
@AtifSayings6 ай бұрын
There might be 2 reasons for this exception 1) You might have called this code if (bluetoothAdapter.isEnabled()) before intitializing the instance of BluetoothAdapter that is bluetoothAdapter Example: bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); //after that call the if (bluetoothAdapter.isEnabled()) 2) The device doesn't have bluetooth hardware.
@enzofigura5 жыл бұрын
Muy buen tutorial, es genial que tomes en cuenta cada una de las excepciones, estaría genial que se pudiera seleccionar y conectar uno de los dispositivos emparejados, pero la verdad no me puedo quejar, excelente video!
@yousefmohammed3466 Жыл бұрын
Hello my brother Youssef from Gaza. I am telling you. I have a graduation project. I did the same video, which is Bluetooth and Android Studio. I did the same thing as you did, but I got a problem, and I don't know where it is. If you want to make it work, you have to make it work. If you help me, I will be very grateful to you. I have money if needed. Thank you. My situation is difficult. My brother is not allowed. 1:22
@carlosdelgado66974 жыл бұрын
eres el pro mano, ERES EL PRO!
@manuelocano20554 жыл бұрын
Great video bro. It really helped me with my homework :)
@tonyarduinotechs12794 жыл бұрын
where is the code ican not found it even after clicking on the link
@trungnguyen14274 жыл бұрын
what is the emulator you are using to test with Bluetootth? can u share please?
@AtifSayings4 жыл бұрын
its not emulator, its real device
@shouravpaul2635 жыл бұрын
awesome tutorial...u made it really simple
@dhruvkumarcontractor77165 жыл бұрын
Hello Atif, what changes do i do in bluetooth api to display only names start with '*'? Can you please guide me on that?
@AtifSayings5 жыл бұрын
before adding in list you can use if statement to check if name contains '*'
@alone-g9k-x6l3 жыл бұрын
thanks
@markhannibal54345 жыл бұрын
Thanky ou very nice tutorial
@dineshwasoo19783 жыл бұрын
Damn good tutorial. May i know how to activate the autodropdown coding to make easy referencing while typing the codes
@AtifSayings3 жыл бұрын
Its basic feature of Android Studio Check if you somehow not diaabled jt or you didn't put Android studio on powesave mode
@ares92385 жыл бұрын
Buenísimo me sirvió de mucho la verdad te lo agradezco mucho... Ya que me ayudo a aclarar algunas dudas que tenia..
@josephrivera38745 жыл бұрын
Hello, can you help me with the part of (showTost, String msg and with the intent) it puts the words in red and marks error in the method
@ndmaru85185 жыл бұрын
JOSEPH RIVERA pls check if you put that part in the right parentheses
@koonlintube6503 жыл бұрын
Thanks bro! 감사합니다!!!
@AtifSayings3 жыл бұрын
You're welcome
@wilsonamadio31944 жыл бұрын
Great tutorial !!!! You really helped me a lot . . . Thanks !!!!
@AtifSayings4 жыл бұрын
You're welcome
@raff51845 жыл бұрын
hi, great tutorial. I have two problems: 1. the color of the buttons is magenta and doesn't change to blue like yours; 2. the bluetooth icons don't change color, are grayed out and I can't see them on the Layout design, neither on the app
@mritunjaysaha2234 жыл бұрын
can it connect 3 or more devices?
@abdelhamidlabsir85743 жыл бұрын
hello , thank you so much for this video, I have a question in the same subject, I wonder if someone has the solution /// I bought a pair of air pods known as i12 tws ,and when I used them I find that the left and the right channels are reversed, (the left one is on the right ear and vice versa indeed) I'm asking if there is any software solution to overcome this issue without disassembling and switching them physically, something like a programme or a script connecting them to my Mac, and get programing them to the correct way, left ch on left ear and right ch on the right ear /// thnx so much ..
@smileandwave95902 жыл бұрын
Hi, I copied your code word for word but had to changeout the OnActivityResult. I followed your other video on that. But now my bluetooth requests and discover need permission from the user. But the ''this" argument in: if (ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_SCAN) != PackageManager.PERMISSION_GRANTED) { doesn't work due to this being inside of a listener. What do I put instead of this or do I have to move the permission request? Thanks
@RustysAdventures Жыл бұрын
I'm having the same problem now. Did you fix it?
@shakespear76756 жыл бұрын
I copied your code exactly and added images but theres still errors in MainActivity, any updates?
@AtifSayings6 жыл бұрын
what errors are you facing?
@AtifSayings6 жыл бұрын
images should be in drawable folder 11:54 if you did same and still facing this problem then show your code at my email mohammadatif50@gmail.com
@MADCUBEproductions6 жыл бұрын
@@AtifSayings Hi, I am having an issue when I try to run the app, the error message of the app crashing appears on the virtual machine, is this configured to a specific version of android, I am using a virtual device running Nougat
@AtifSayings6 жыл бұрын
emulator has no bluetooth try to test on real device
@MADCUBEproductions6 жыл бұрын
@@AtifSayings ah will do, thank you for the quick reply, great video btw!
@MrRika454 жыл бұрын
Where can i download the android studio bluetooth API ?
@siddharthburse4 жыл бұрын
I use this coding for Bluetooth connectivity.. it's very useful thanks a lot...but I have occurred one run time error... The application is not opening.. it's get forcefully close.. so what is the problem I didn't get it... So please can you or anybody help me please....
@dev0ok3055 жыл бұрын
Is it indeed necessary all these lines of codes to press on buttons...?
@albertsoffici42802 жыл бұрын
Do you have an updated project for Android Studio, it looks like several things have changed since you published this by the excellent tutorial, congratulations - Al
@AtifSayings2 жыл бұрын
Not sure, but i think this should work in latest android version too.
@merazmario5 жыл бұрын
Very nice how to activate detected Bluetooth Low Energy?
@87-haj6 жыл бұрын
thank....plz help me i want code for sharing wifi profile with another android phone this aproperty found in galaxy note 3 ,4,5....etc
@AtifSayings6 жыл бұрын
i'll check if API for this is available or not
@isaacclark24995 жыл бұрын
@@AtifSayings Where is the WIFI Version, You said you'll check!!!!!
@cyz66235 жыл бұрын
Thanks bro! It is so helpful for me.
@AtifSayings5 жыл бұрын
You're welcome
@manpham81865 жыл бұрын
I use Android studio 3.5 and in import it got Android X so does it affect alot in result ? Plz help
@manpham81865 жыл бұрын
I copied your code and past but when i ran in genymotion they cant run
@AtifSayings5 жыл бұрын
What happens when you try to run
@manpham81865 жыл бұрын
@@AtifSayings i solved it
@bonusintro24275 жыл бұрын
Could you tell me " How to read Uuid from all device?" i mean in set devices
@suprativdas19835 жыл бұрын
I wanted to ask the same question
@AtifSayings4 жыл бұрын
device.getUuids();
@SXPRO_SCHOOLSYSTEM6 жыл бұрын
Thank you so much .. very good lesson .. I hope if you explain also how to send and receive data ( text of files )
@AtifSayings6 жыл бұрын
You're welcome ill try
@freire_gtr5 жыл бұрын
@@AtifSayings Yes please!!, your lessons are wonderfull man! thank u for ur time to share ur knowledge
@AtifSayings5 жыл бұрын
@@freire_gtr thanks you :)
@adityamattaparthi76155 жыл бұрын
hey did you get how to send data ,if found pleas help me i am making a final year project in which I have to implement this functionality
@stinen0125 жыл бұрын
THANKS !
@saadmaksood3 жыл бұрын
not working
@AtifSayings3 жыл бұрын
have you tried in real device? it will not work in emulator
@paolodecaro37412 жыл бұрын
Buonasera , ho provato a caricare il tuo progetto su Android Studio, ultima versione, ma molte istruzioni sono in errore, potresti gentilmente postare i sorgenti , oppure modificarli con ultima versione di Android Studio. Grazie in anticipo.
@AtifSayings2 жыл бұрын
Kindly say in English
@bikashbisoyi884 жыл бұрын
Hay bro.. I have some error.. In this code Here.. msg is showing in red it's mean error... How.....and showtoast is also showing error... What can i do... Plzzzzzz reply..
@dylanwhite2467Ай бұрын
It took me forever to realize you don't type msg it just appears automatically when you add the quotation marks. Hopefully this helps.
@முகிழினியால்5 жыл бұрын
Atif peravaiz...when i run this ... the app is crashing wht can i do
@AtifSayings5 жыл бұрын
check logcat for crash reason
@முகிழினியால்5 жыл бұрын
@@AtifSayings I am having error " E/BluetoothAdapter: Bluetooth binder is null"
@முகிழினியால்5 жыл бұрын
how to solve this...I am running this on emulator
@AtifSayings5 жыл бұрын
@@முகிழினியால் emulator doesn't have bluetooth, so test on real device
@முகிழினியால்5 жыл бұрын
@@AtifSayings ok..thank u...it is working on real device
@sfcguy83004 жыл бұрын
sir I am doing android project My project title bluetooth based chatting system..so which android version is best for bluetooth.. plzz tell sir
@riddy857 Жыл бұрын
Had you completed the project? I am working with the same project for academic purpose. Can you help with the source code please
@eejaytaa93135 жыл бұрын
My app kept on closing
@klmho12325 жыл бұрын
Wow ,, 대단합니다
@antoniosnissem20894 жыл бұрын
Thank u very mush
@AtifSayings4 жыл бұрын
You are welcome
@itsmd.254 жыл бұрын
Nice Video👍 #ItsMD
@souravnaskar86804 жыл бұрын
19:06 just to remember
@OLiconaGR6 жыл бұрын
Como puedo cambiar la velocidad de transmisión y recepción para la aplicación de android. Usa por defecto 9600 baudios y necesito incrementar esa velocidad.
@AtifSayings6 жыл бұрын
please reply in English
@OLiconaGR6 жыл бұрын
@@AtifSayings How can I change the transmission and reception speed for the Android application? Use default 9600 baud and I need to increase that speed.
@hirenm31236 жыл бұрын
thanks Atif Pervaiz , BTW i want to extract characters from string (written in Textbox) ,for example "HELLO" then i need 'H' 'E' 'L' 'L' 'O' , in single variable- is it possible ??if Yes how ?
@AtifSayings6 жыл бұрын
You're welcome but what are you talking about? This is Bluetooth tutorial
@hirenm31236 жыл бұрын
@@AtifSayings i'm talking about only Textbox text, can i get whole word as character by character??
@inamfareedchishti43875 жыл бұрын
can i control arduino Bluetooth with this app ? control like on/off Bluetooth Module on Arduino. ?
@saurabhjejurkar50654 жыл бұрын
Same question
@yousefmohammed3466 Жыл бұрын
Hello my brother Youssef from Gaza. I am telling you. I have a graduation project. I did the same video, which is Bluetooth and Android Studio. I did the same thing as you did, but I got a problem, and I don't know where it is. If you want to make it work, you have to make it work. If you help me, I will be very grateful to you. I have money if needed. Thank you. My situation is difficult. My brother is not allowed.
@AtifSayings Жыл бұрын
Send details on my email (available in about of my channel)
@fantera91155 жыл бұрын
its works for LE ?
@AtifSayings5 жыл бұрын
what do you mean by LE?
@AtifSayings5 жыл бұрын
Ok. I didn't tried that
@nickslobodsky44445 жыл бұрын
When i run the app on my device, the following toast message pops up : Bluetooth isn't supported on your device. My device has an api of 19. What could be the problem ?
@xXWhatzUpH8erzXx5 жыл бұрын
Android Studio doesn't support bluetooth on emulated devices, you have to test on an actual device. Could that be the problem that you are trying to use an emulated device on your computer?
@nickslobodsky44445 жыл бұрын
@@xXWhatzUpH8erzXx I plugged my device to the computer, and it said that Bluetooth isn't supported on this device.
@munishkumar71652 жыл бұрын
plase share sorce code
@EdwinaWify4 жыл бұрын
Thank you for the good video. Can you upload the version of 'Kotlin'?
@AtifSayings4 жыл бұрын
Yes sure
@EdwinaWify4 жыл бұрын
@@AtifSayings thank you~~ :D
@yuvrajagarkar89422 жыл бұрын
can I buy your channel ?
@AtifSayings2 жыл бұрын
Not for sale
@ajaysurve_213 жыл бұрын
no source code!!
@djemaryouma7215 жыл бұрын
merciii
@yousefmohammed3466 Жыл бұрын
Hello my brother Youssef from Gaza. I am telling you. I have a graduation project. I did the same video, which is Bluetooth and Android Studio. I did the same thing as you did, but I got a problem, and I don't know where it is. If you want to make it work, you have to make it work. If you help me, I will be very grateful to you. I have money if needed. Thank you. My situation is difficult. My brother is not allowed. 1:33 1:34
@AtifSayings Жыл бұрын
If it's not too late, you may send complete details... mohammadatif50@gmail.com
@hirenm31236 жыл бұрын
android code to connect Bluetooth with paired device
@AtifSayings6 жыл бұрын
ill try to make video on it
@isaacclark24995 жыл бұрын
Where is the WIFI Version, You said you'll check!!!!!