Once again a kind kid from India teaches me through KZbin what a professor who I pay 1000$ per course can't teach me properly
@ZlamionyPLD4 жыл бұрын
Thats true
@Notchmods4 жыл бұрын
Maxim Kozin lol I learn more from Indian KZbinrs than my IT teacher who is really slow at teaching and spends most of the lesson calling me to installing inessential software.
@mrbooqie4 жыл бұрын
In the past 4 years of studying IT, 100% of what I have learnt is completely self taught and from amazing videos like these.
@scatterlings14 жыл бұрын
Wow... That's kind of inappropriate?
@thehulk26424 жыл бұрын
@@ANKUR--xoxo twitter.com/dheerajkmth see there. he is teen.
@pramoddissanayake276 жыл бұрын
Best android login tutorial series I saw on youtube. Login with Firebase database is great. Keep up the good work sir.
@ricksegalCanada7 жыл бұрын
Nicely done. For newbies, like me, it is a kind and professional act for you to make these videos. Thank you!
@ProfessorDK7 жыл бұрын
Glad you liked it! Means a lot :)
@techshare24987 жыл бұрын
so fast bro
@mechinnova16785 жыл бұрын
@@ProfessorDK need a help
@engineersamomesa61884 жыл бұрын
Nice login page which has helped me in my project .keep it up bro
@Austin-pw2ud4 жыл бұрын
@rick can you tell me how to create id and password like google /fb/netflix on android studio which works online and is sequre.... Plz do reply
@StolenFusion5 жыл бұрын
Simple, to the point, well explained, no bakwaaz tutorial. This would be the tutorial I'd suggest people who are starting to learn Android Development. Good job Man. You won the sub.
@PDLII6 жыл бұрын
This video was very helpful man! Keep it up!
@FunNationTricks4 жыл бұрын
I was searching for Android tutorial for beginners and found this very useful. Now I have full confidence to start a Android application.
@louisroy83236 жыл бұрын
Great, I finally see how Android studio works
@rameshtcpatel10432 жыл бұрын
First of all, DK is a Learned person, The way of teaching is excellent......
@AlessandraAmosso5 жыл бұрын
Thank you, I'm learning a lot through your tutorials :)
@gaajendrenvivegananthan63644 ай бұрын
Your video is the starting point for me in this coding world. Thank you
@steveotieno84416 жыл бұрын
I agree i almost gave up on android programming, thank you
@TeamKollywood4 жыл бұрын
Best video for beginners like me. Very down to earth and I finally made this app ... You are a better teacher than my android studio teacher...Make more videos. Thank You
@mohammadmaaz316 жыл бұрын
your code doesnt send u to second activity even when u enter correct details it just decreases the login attempts
@ProfessorDK6 жыл бұрын
Change == to .equals()
@mohammadmaaz316 жыл бұрын
@@ProfessorDK nope u have to add counter block outside the else loop
@rotichke4 жыл бұрын
This is the kind of tutorial I needed to jump-start me in Android app development. For this you get a like and I subscribe to your channel.
@johnxu31995 жыл бұрын
Hey Professor DK! I'm new to Android Studio, and I was just wondering what are the advantages to constrained layout versus something like relative layout. Is it because then it's adaptable to multiple devices, and also different orientations?
@javacodingcommunity4 жыл бұрын
Constraint Layout is the default Layout currently. It is simillar to the relative layout but has a lot more futures. You can connect Views relative to one another and it makes editing easier. Hope this helps :) Read more here: developer.android.com/training/constraint-layout
@sanidhyadesai44495 жыл бұрын
Hello sir, how did you added the second blue screen beside the main screen?
@CodingXP5 жыл бұрын
👍
@serbanc88266 жыл бұрын
Hello, when i start emulator it says LoginDemo keeps stopping and when i hit restart it says the same what can i do ?? Thanks
@snapit3794 жыл бұрын
Even I am facing the same problem.
@shan-tennis5 жыл бұрын
you’re way better than my lecturer
@alishahid20796 жыл бұрын
i face same problem (username=="admin ") not working not move second activity but again i apply your method username.equals("admin"),,,,and than solve my problem thanks dear ,,,,
@stiphenrobert44696 жыл бұрын
Thanx vai... U solved it
@mediaandsports80906 жыл бұрын
Thanks brotherr
@swagatachakraborty2656 жыл бұрын
Manyy many thanks for ur this comment 🙏🙏 Warna mera 1hr waste hua tbse aur i fail to find the prblm..thanks
@mohdaasimansari94896 жыл бұрын
.equals method will work on every place like jsp or simple java file
@mohammedismail22086 жыл бұрын
Thank you so much for your comment brother ♥
@Lucas-bv1ps4 жыл бұрын
Very helpful and good explanation even if u know basically nothing about programming u can understand it.
@masterchiefu57195 жыл бұрын
???? :( If anyone knows how to do those quotations or if I need that exact symbol to get that function to work please help
@Alquerian4 жыл бұрын
you need to use .equals() insead of ==
@stanleybatchu93945 жыл бұрын
I even understood the code lines you had wrote by your explanation !!! Thats awesome ..Thanks bro
@SISR20136 жыл бұрын
Thank you for your smooth explanation. I understand the layout constraints even though that's not the point of the video. Haha thanks again!
@mjpender94433 жыл бұрын
I have to agree with all the commenters here. You have presented the information so clearly and it is extremely helpful. Thank you so much. Mary
@pardeshijatin14546 жыл бұрын
Thanks For helping Newbies Like Us
@dr.viksitkumarsharma9204 жыл бұрын
Good and easiest tutorial on KZbin,Thanks for providing knowledge,keep uploading such a videos...
@muhammadaamirakhter6 жыл бұрын
The tutorial was really helpful
@Anthony5ist6 жыл бұрын
at 3:57, how do you get to the menu on the far right? Rn i cannot enter in 'etText' or edit the hints.
@alinazachia41826 жыл бұрын
*PAISE KI BAAT HEE NHI THI MAINE BOLA DIVINE BADA HAI TU TAB SADA*
@richardpilhofer39947 жыл бұрын
Keep the videos coming man these are super useful!
@ProfessorDK7 жыл бұрын
+Richard Pilhofer Glad you liked it. Happy learning :)
@jytubs46572 жыл бұрын
What us in 8:32 that looks like 2 comas like this ,, between the admin and userPassword? Pleas reply
@DACS_VJHarshita6 жыл бұрын
The way you explain code is absolutely owesome
@masbro19017 жыл бұрын
my only question is, how do you familiar with the syntax that not cause error, and how do you get reference to the right syntax if you want "something" in your code that run properly, and how if you forgot what to do next and lost in the middle of something while you're not focus at the moment.?
@AVictoriaContents5 жыл бұрын
In the MainActivity.java, why is there a letter J with blue highlight instead of the usual symbol "C"? Please help. Since it cannot recognize Buttons or Texts
@chionchuikamgone3765 жыл бұрын
Can you help me with this? please... error: cannot find symbol class TextView error: cannot find symbol class Button error: cannot find symbol class TextView error: cannot find symbol class Button
@Miguel_le_Petit_Crabe5 жыл бұрын
ME I HAVE THIS Casting 'findViewById(...)' to 'EditText' is redundant less... (Ctrl+F1) Inspection info: Reports unnecessary cast expressions.
@puchkadey48865 жыл бұрын
Chion Chui Kam Goñe Go to settings(ctrl+alt+S) and under editor-> General->Auto Import Ensure all the check boxes are checked in that. Select "ALL" from the insert imports on paste drop down menu. Apply. OK. Let me know if this works
@tamalbose33363 жыл бұрын
generally, I don't comment, but couldn't resist me now, and to subscribe too!
@Alquerian4 жыл бұрын
This is mostly spot on, only change I would make is to your string comparison for the username and password - you should use .equals() instead of ==. Aside from that, well done!
@cscastro7 жыл бұрын
Glad I found you DK. Very clear and ez to follow. Thanks!
@ProfessorDK7 жыл бұрын
+cscastro Glad you liked it. Happy Learning :)
@cscastro7 жыл бұрын
I'm searching for a basic tutorial on setting up and using SQLite. Maybe you can build on to the log in app so that the details get saved to a DB. Just thought I'd throw the idea your way.
@saurabhdhote81703 жыл бұрын
Thanks sir. You told me one such mistake that could change my whole project.
@iamboltzmann4125 жыл бұрын
I didn’t get what you meant by constraint to bottom, left right etc. could you please explain. Thank you
@sarzrohan48414 жыл бұрын
Really your tutorial is very detailed and understable, Hence I should call you Sir. Thanks for the this tutorial ,Keep this type of tutorial coming, Sir❤️
@yalaso1856 жыл бұрын
My 1.validate( ) is appearing as never used. 2.No of atttempts is not decreasing while put the error login. 3.Cant access to secondActivity after enter the correct Login. pls help.!!!!!!!!
@avanishmeedimale26186 жыл бұрын
for the third problem: Maybe second activity is not the name of your second screen? Check on the top where all the tabs are to see name i dont know the other two
@monaagrawal6675 жыл бұрын
Sr plz help can't access second activity...
@monaagrawal6675 жыл бұрын
If we enter the correct name and password can't access to second actitvity..
@Gracovitz5 жыл бұрын
@@monaagrawal667 check all the code you wrote, it worked just fine for me.
@sriramseshagiri1705 жыл бұрын
Hi. What is the symbol used between Admin and userPassword in the second line of private void?
@ProfessorDK5 жыл бұрын
I guess u mean "&&"?
@sriramseshagiri1705 жыл бұрын
@@ProfessorDK yesssss. Thank you so much!
@mohammedabuaslam36157 жыл бұрын
Dude U R just awsome....it would be really helpful if you upload a tutorial of entire API explained on video...I mean how every function can be utilized... hat's off to the way you explain things... Please do give a thought about it.... It will help many
@ProfessorDK7 жыл бұрын
+mohammed abu aslam I had actually not thought about this. Seems like a brilliant thing to do. Thanks for the idea mate. Surely, will do :)
@phyratesclan66996 жыл бұрын
Even aftr placing the button on the layout i cant see it and unfortunately cant drag it anywhere It says it is moved to (0,0) location Even when i try to find at (0,0) approx i cant find the button.only i can see is blank screen. Plzz help sir.
@christinrajesh13256 жыл бұрын
Sir,I done everything as what you did.but if I press login it will not go to the second activity page. what can I do?
@priyankamehta25695 жыл бұрын
Sir i saw the tutorial...i did the same as you did..there was no error..but when i ran the app on my phone,when the clicked the login button after entering the correct username and password the second homepage did not open...what can be the mistake?
@denden20395 жыл бұрын
I feel you
@Krishnawisdompath4 жыл бұрын
try instead of == use .equals() for comparison. Refer the link below stackoverflow.com/questions/16143562/string-comparison-android#:~:text=equals()%20tests%20whether%20two%20strings%20have%20the%20same%20value.&text=The%20%3D%3D%20operator%20checks%20to,the%20same%20characters%20in%20them).
@madiha30927 жыл бұрын
I made my login screen with one EditText and two buttons (Start Connection and Reset) but when I run it on the emulator only one button is displayed i-e of Start Connection. The other two things are not appearing. Is there any way you could help?
@ProfessorDK7 жыл бұрын
+Madie ؛ Have you constrained the buttons?
@madiha30927 жыл бұрын
Yesss. That was the problem. Now they’re appearing. Thanks
@ProfessorDK7 жыл бұрын
+Madie ؛ Great :)
@Smertbplay4 жыл бұрын
Dear friend, can you help me please. I had already written text of program in android studio, created app on mobile phone, but when I trying to login , the second activity doesn’t open . And I think problem in wrong password because numbers are changed:5,4,3 and etc . What should do me ?
@BenToogood5 жыл бұрын
*HELP:* When I run my app, every time I log in, the app crashes. Does anyone know why?
@aishazulaik5 жыл бұрын
Same problem
@vinayreddy1274 жыл бұрын
its because there is mistake in your main activity as your validate method is not properly written in oop concepts. its a run time error.
@parasmaniglobal86326 жыл бұрын
sir, i follow every step but m facing a problem my login app is displaying but it giving a error "login continously stopped" .its not even open the first page of my app .please help me out this
@weloveginga7 жыл бұрын
Very Nice Man!! Thank You Very Much! Your tutorial is really straightforward. Just the way I like!!
@ProfessorDK7 жыл бұрын
+Matheus Dümpelmann Glad you liked it. Happy learning :)
@techshare24987 жыл бұрын
complicated
@lastbench68846 жыл бұрын
Sir want to make an auto-touch app which automatically works without user touch and i want to decleare it by positions of the screen for eg.x and y(screen position) ,is there any knowledge please help
@adonisgallegos9987 жыл бұрын
hello professor dk a question: what is the symbol that you incorporate in this part of the programming ?if ((userNombre == "Pedro") ¿____? (userContraseña = 1234)). if you can help me please Thank you
@ProfessorDK7 жыл бұрын
+Adonis Gallegos The symbol used is "&&" which is a conditional and operator which means that both the conditions must be satisfied to enter the loop :)
@adonisgallegos9987 жыл бұрын
Professor DK thank you :)
@harpreetarora93496 жыл бұрын
Insteat of String.valueOf(counter) if we write counter+" " it also converts the value into string value it is right
@ProfessorDK6 жыл бұрын
Yes you are right :)
@rasoolkilani31704 жыл бұрын
You are amazing my friend, thank you so much Simple and to the point, please keep this great content!
@samridhjoshi44277 жыл бұрын
sir it is saying Error:Execution failed for task ':app:processDebugResources'. > Duplicate symbol in table with resource type 'id' and symbol name 'et' what to do?
@ProfessorDK7 жыл бұрын
+samridh joshi Go to your XML layout and check if all the IDs are unique. Maybe you have defined both the IDs of username and password edit texts as same value.
@samridhjoshi44277 жыл бұрын
no sir its all unique
@GNgameplay5 жыл бұрын
Having trouble connecting the private commands to the findViewById commands. Shouldn't it automating connect?
@cedricpaige80446 жыл бұрын
"Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference" If this is my error, what did i do wrong?
@ProfessorDK6 жыл бұрын
Check if you assigned the right XML ID to the TextView
@manishsaxena29743 жыл бұрын
Login.setonclicklistener me problem aa rha hai. Nullpointerexception, on a null object reference. What to do??
@akshaykadam46925 жыл бұрын
Thank you so much sir.. please keep up the good work, it helps a lot for beginners like me.
@noorain5153 жыл бұрын
Does we need to connect our phone to the AS apps with usb? i follow but i can't run the apps
@kousalyat38075 жыл бұрын
Hii sir, I want to know what happens behind when I click on an app...
@manojsuri0074 жыл бұрын
I am getting errors while running the app. Do we need to import widgets?
@preetinaidukodidala10976 жыл бұрын
When I am dragging the plain text box into my phone like thing, a box is not appearing for me in my phone like thing and even the blue thing beside the phone. Pls guide me.
@ProfessorDK6 жыл бұрын
Have you constrained the items u dragged? Coz without that u won't be able to see, or even if u see, they will be in wrong locations.
@Rangabhari3 жыл бұрын
I am create education application from news application which is licensed and I am getting it from youtube then how I could use this for my application and there is coming any legal issues for use it and publishing application and if not then what changes is required
@khaledalshishani73404 жыл бұрын
It did not take me to the home page (mainActivity) ??? i use this your mainactivtiy i use loginactivity your secondActivity i use mainActivity
@mmarshall50036 жыл бұрын
Hi Prof, how do I do if after the attempt number turn to 0 and login cant be clicked, and theres a period of time to enable back the login button without exit the app? thx in advanced
@ProfessorDK6 жыл бұрын
You need to create a thread runnable which will count for a certain period of time and then reset the counter.
@mmarshall50036 жыл бұрын
i'm new to this apps development, if you can provide me some sample codes or any reference to refer to it is much appreciated
@miawchan55926 жыл бұрын
Is there a way to differentiate guest layout and account layouts when pressing the same button?
@shadabilyas24834 жыл бұрын
As i pressed the login button the app get closed.... Why? As i have already connected with second activity
@RodrigoOliveira-go1nf5 жыл бұрын
on real apps the username and password are not hardcoded in the file. so how would you do it in that case?
@markusgaul84675 жыл бұрын
9:05 he need a variable for the password with a (e.g.) mysql database connection
@francescodetrana6324 жыл бұрын
i have a problem with "intent" parameters . I have 3 empty Activity in first one the ide take the parameters like good...but in the second activity take it like a error. and the parameter "counter" too you can help me?
@saapmongong49186 жыл бұрын
Hi your title was with database but I dont see any database used. Do you mind doing a video of this same login but with intro to how you integrate database into android studio and using it to check for login credentials?
@ProfessorDK6 жыл бұрын
Check out my video series simple login app using database. That covers it
@Mariacosplayph4 жыл бұрын
what is in the middle of if (userName == "Admin") (?)userPassword) what key is that ?
@madiha30927 жыл бұрын
One of the best tutorial! Very easy to understand. Thanks Alot!
@prahangowda43926 жыл бұрын
i tried u r method but after click on login button name and password was not reading means after entering the right name and pass also it reduces the no of attempts and also not enter the second activity ....i m totally confused ....plz help me
@ProfessorDK6 жыл бұрын
Try username.equals("admin") instead of username == admin. Do the same for password. It will work :)
@masterchiefu57195 жыл бұрын
In case I dont figure this out in time , dumbest question probably of the day but how did u make those bold open ended quotations for the user name user password function???
@malluvalasajohnkumar62385 жыл бұрын
Why are you convert int counter to string? .Then how can it show the no of attempts in integers.
@avinashkadam39377 жыл бұрын
sir after complete process run program click on submit button second activity didn't start how and no any single error was there.
@ProfessorDK7 жыл бұрын
+avinash kadam Did you change username == "admin" to username.equals("admin")? If not do the same for both username and password and then let me know. Replace "==" by " .equals() "
@subhammahana18565 жыл бұрын
This is the best tutorial I've seen so far for beginners like me. You've really done a great work Sir. Thank you very much.
@kaushalagarwal41537 жыл бұрын
Hello DK sir. If we are to create almost an actual login app, do we need to write all usernames and corresponding passwords into a file ( say text file) and read from file each time the app opens. If the user creates a new account, his username and pasword are added to file. Am I thinking correctly?
@ProfessorDK7 жыл бұрын
+Kaushal Agarwal Yes you are in the right direction but instead of a text file we use something called a mySQL database where each user login gets stored once they register/signup. I will be uploaded a video to create such a dynamic database in the advanced android tutorial series. Have patience :)
@Hitheshpeddapyata3 жыл бұрын
8:27 what is the text I don't know plz tell fast I'm in between coding
@purushothamr14953 жыл бұрын
Sir in this when I click on run, it is showing ,failed to compile values file
@atharvapatkar96746 жыл бұрын
I used username == admin to username.equals("Admin") ; this method for email and password but its not working Everytime I use the email id and password it counts it as an incorrect one . What should I do?
@atharvapatkar96746 жыл бұрын
done there was the problem with the initialization line.Thank you the video was very helpful
@archanakorlahalli99326 жыл бұрын
You are so fantastic.. You teach so well.. Kudos to you
@Mdirfan-lk1wx6 жыл бұрын
Sir when I click register button it will directly open the second activity but I set it to the main activity
@ProfessorDK6 жыл бұрын
Which video are you talking about? Check your intent
@Mdirfan-lk1wx6 жыл бұрын
Professor DK Thank you so much
@Reaxxcartoons7 жыл бұрын
StraightForward & Simple Subscribed!!
@ProfessorDK7 жыл бұрын
Thank you :)
@adnanaleem61374 жыл бұрын
Can anyone solve my problem? When i create a login page(using any layout) and run on my phone the "login" and "register" buttons just disappear from the screen and the above textviews drop down...pleasee help me
@rutvikkulkarni51436 жыл бұрын
getting an exception java.lang.ClassCastException: android.support.constraint.ConstraintLayout cannot be cast to android.widget.EditText After running app it says stopped working
@prashantmeta15 жыл бұрын
same problem here. could you find the solution.
@FelixOOwa4 жыл бұрын
Good day sir. Thanks for the tutorials. Please I need you to help me on a problem. Whenever i click the update button (Profile - update password - update) without inserting any input into it, the application stops (application has stopped) . What could cause this? please check at your end. Thanks.
@greyrat1646 жыл бұрын
How do I do it online? For example: I want to log out of a person ie banish it ie when I take out automatically take that login from the air.
@ProfessorDK6 жыл бұрын
Watch my tutorial on login app using database, it might help! :)
@greyrat1646 жыл бұрын
@@ProfessorDK please link bro i not found the specific video thanks.
@ashishshrivastava99666 жыл бұрын
Hi...Ashish here....in my case, main activity page is opening but when i am entering username and password and clicking on the login button, second activity page is not opening. I think Intent function is not getting triggered and only counter value is decrementing. I am using android studio 3.0.1....can u just help me in this regard....
@ProfessorDK6 жыл бұрын
Change username == "admin" to username.equals("admin"). Do the same for password as well :)
@ashishshrivastava99666 жыл бұрын
Thanks....with that change it worked for me.... :)
@UsaM4 жыл бұрын
January 2, 2021 , still relevant. Thank you dude
@degamegeek40075 жыл бұрын
Hello sir, everything works but I tested it through the main menu then it works. But if I want to test it in my own app, it won't work, what am I doing wrong? I want to use it in the bottom navigation drawer.want want me videos behind the login screen
@Someshkavade4 жыл бұрын
8:26 par jo mark lagaya wo kese lagate hai bro plz batao na
@ratnet736 жыл бұрын
Good one. Clearly explained most important key points.. thanks mate.
@iamuzairaslam4 жыл бұрын
Love your way of teaching :)
@fahdbhat7 жыл бұрын
Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. what is this error help please
@ProfessorDK7 жыл бұрын
+Fahad Firdous Looks like you haven't closed the brackets correctly. Check if each one has a pair :)
@cat_family3695 жыл бұрын
how do u use that colun between condition of usename and password what kind of button need to press
@muhammadwaseemasghar21045 жыл бұрын
my app is running successfully on my android device which is installed during build but when i send this app to another device via bluetooth/whtastpp from my device it does't run on this device show App not installed error....any body can help plz