For people experiencing issues, remember to import the two following: import android.view.View; import android.content.Intent; Then for the Intent, this works for me: Intent intent = new Intent(getApplicationContext(), MessageActivity.class); Hope it helps!
@usamaalioffical5 жыл бұрын
Thanks bro really it helps
@vitaliyfyodorov79365 жыл бұрын
It is working in my Android Studio 3.3.1. Thank you!
@kingoftennis945 жыл бұрын
thanks a lot but why is this not imported by default, like its shown in the video
@HarshSharma-rf7fk5 жыл бұрын
Sir my emulator works very slow always coming " WAITING FOR TARGET DEVICE TO COME ONLINE " even after connected with internet also
@FlickshotGaming74 жыл бұрын
@@HarshSharma-rf7fk bro instead of emulator run it on your mobile
@sudhir12744 жыл бұрын
This tutorial series is very good and very well put together. One of the best I have seen. Just been through the first six tutorials and I have learnt about features in Android Studio I did not know about. Thank you for preparing this tutorial and making it available on KZbin. Appreciate it. Look forward to watching the entire series.
@OasisFinder6 жыл бұрын
Nice .. Finally some latest android app videos (y) , youtube is filled with old outdated videos of android app development ,glad to find some new videos
@brandonlanski55405 жыл бұрын
Guys! It's case sensitive. If you're having trouble with this code then try playing with the upper/lower case first letter. Public is spelled with a lowercase p I'm so happy. This no joke took me 40 minutes to figure out after scouring the web and clearing cache files and reading through the documentation lol and it finally occurred to me that I never paid attention to how I actually typed it out.
@AnimateMJ4 жыл бұрын
most people's problems are typos....
@topasunday43906 жыл бұрын
you don't reply your comment section. A lot of us are having problem with the code you write in the main activity. especially the public void SendMessage(View view){ Intent intent = new Intent(this,Mactivity.class); startActivity(intent); the second view inside the parenthesis of the SendMessage method is underlined. Also it said intent was never used. "Macivity" is not an error, it the name i gave my new activity please help. I have downloaded all the videos in this series and really relying on you Sir
@RangerNation5 жыл бұрын
import the two following: import android.view.View; import android.content.Intent; Then for the Intent, this works for me: Intent intent = new Intent(getApplicationContext(), MessageActivity.class);
@SumitKumar-eh7bd5 жыл бұрын
Its awesome , worked perfectly . Little doubts regarding parameters of the the method and also parameters of Intent
@mohitsaraswat85045 жыл бұрын
Your tutorials are great.Thankyou so much
@sumathikakarlapudi52836 жыл бұрын
I'm getting the error called (error * 86 emulator currently requires hardware acceleration). so what i have to right now. plz answer to my question........... because of this error, i can't able to move to 2nd step....
@Samdon0946 жыл бұрын
C:\users\%USERNAME%\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\ and run the file named intelhaxm-android.exe it shud be fine
@BharadwajRbwaj956 жыл бұрын
Use "Vysor" !
@erikmaxandersen65316 жыл бұрын
I had the same problem It is a bios problem "Virtualization extensions are typically enabled through your computer BIOS and are frequently turned off by default. Check the documentation for your motherboard to find out how to enable virtualization extensions."
@jackycbz6 жыл бұрын
Sir Showing error in MainActivity. Java, public void, that is missing method body, or declare abstract. And error in intent, that is cannot resolve symbol Message Activity. Please help
@jackycbz6 жыл бұрын
I solved myself.. after the run button clicked, then gradle finished successfully but in my external device shows "unfortunately your app has stopped". Please reply
@yifanzhang5656 жыл бұрын
Hi have you figured out how to solve this? I have the same problem
@HarshSharma-rf7fk5 жыл бұрын
I have also this error in my emulator
@KoW6 жыл бұрын
Why nothing work when I click this button?
@hakkisan82856 жыл бұрын
he missed to put a Click listener, so u can add it to the button XML View in the activity_main => . i heat it too when someone forget key things in tutorials. beginner will face problems and quit very fast..
@MRizalWrc5 жыл бұрын
@@hakkisan8285 thanks
@hakkisan25085 жыл бұрын
@@MRizalWrc No Problem. I must revise my statement. This Guy does a Good Job. My Thanks to him.
@vanchhai30296 жыл бұрын
hi sir, my app always stop working when i click sendmessage, why please tell me
@HarshSharma-rf7fk5 жыл бұрын
If you get the answer please tell I have also this error in my emulator
@geetikakeim51385 жыл бұрын
hello sir, their is some problem regrading the apk output. In my case, in final layout text,buttons etc are overlapped. But in activity frame its show normal. What's the problem with me? please reply sir!!!
@harshamadusanka5163 жыл бұрын
For people experiencing issues on not working on button click You need to declare your sendMessage in the layout activity_main.xml E.g. android:onClick = "sendMessage"
@saurabhjaiswal87586 жыл бұрын
Hello sir Sir can u plzz help to solve out a ERROR "Manifest merger failed" // Actually sir in 12th Row of AndroidManifest.xml \\ "This .MainActivity" is coming Red and Error " Manifest merger failed" I'm getting. Plz sir help me
@syedasadabbas64435 жыл бұрын
Sir can you please help me, i am new to android studio, or android. Sir my problem is, when ever i put a image for background for an activity , my application crashes, but when i put a plane color for background for an activity, it works. I used different dimension png images but it always crashes. Sir help me.
@fiveminedu4835 жыл бұрын
Thanks for this tutorial sir..
@niketanmishra44106 жыл бұрын
please help im getting error at R.Layout as cannot resolve symbol inside ON create Method ..it says documentation is missing for R
@pavukane6 жыл бұрын
Easy fix for "cannot resolve symbol" errors: highlight the symbols and press Alt+Enter
@shalomusiripelli50534 жыл бұрын
thanks bro😃
@sairamteja67855 жыл бұрын
Sir why we are passing View parameter for sendMessage method.Please reply me sir
@stoyanivanov34296 жыл бұрын
I'm starting to like Indian accents :)
@kniveso.o53146 жыл бұрын
same Indian-English feels like my mother tongue
@Gphdwre5 жыл бұрын
I think you are saying this sarcastically. Being an Indian, I can tell you this. I think this video series is focussed and targeted to Indian audience. If it is reaching international audience and they are able to follow and benefiting, author will be happy and he would welcome everyone. Back to Indian accents. There are more than 100 languages in India and because of this diversity, you can find 100 or more Indian English accents. Sometimes, we Indians also find it hard to follow people from another region. Sometimes it looks like a chaos. Sometimes it feels great that our culture is very rich.
@AnimateMJ4 жыл бұрын
@@Gphdwre no he's not sarcastic he's saying that because his videos are really helpful he is actually liking the accent
@rajnishsahay52655 жыл бұрын
Got one error failed linking file resources.
@mohammedjabbarlafta73004 жыл бұрын
Sir when I click on new, window has not activity to select?!
@CompanyBusinessCards6 жыл бұрын
Hi Prabeesh, I'm enjoying this tutorial, When typing the code public void sendMessage(View view) { Intent intent = new Intent(packageContext: this,MessageActivity.class); startActivity(intent); } in main activity it seems packageContext is highlighted in red. The build also fails and I've got everything exactly like you show in your example. Java Compiler errors: error: ')' expected error: not a statement error: ';' expected error: not a statement error: ';' expected Has any of the code been deprecated
@smruthisathyamoorthy94246 жыл бұрын
I get the same problem
@sethucse245 жыл бұрын
The same issue has occurred for me, on mentioning the method name on Onclick function it show red color.
@dipeshkundnani275 жыл бұрын
Your series is good. Sir when I click on the button the app is unfortunately closed. Plz tell me how I can solve this?
@HarshSharma-rf7fk5 жыл бұрын
If you get the answer please tell I have also this error in my emulator
@Max-ep8oq7 жыл бұрын
Well, this videos are preety good, thanks.
@mikerogers9805 жыл бұрын
can anyone explain why we passed two parameters of view at send message method?
@sahithyaracha55075 жыл бұрын
Whenever I open my application it says "Pixel launcher has stopped" and then I can access the application.. Iam not able to open the message page by clicking on the button.. Please help
@CristianWSoza4 жыл бұрын
i get an error in the text saying "corresponding method handler not found onclick" ...i have already added the method in the main activity correctly but still, also it causes the app to crash....anyone else experience this?
@HarshSharma-rf7fk5 жыл бұрын
No error is coming but nothing is happening while click send message button
@HarshSharma-rf7fk5 жыл бұрын
If you get the answer please tell me I have also this error in my emulator
@Gojam126 жыл бұрын
Change text height not working as soon as I click on it. It goes back to what is was before
@yogeshkumar-ns6nc6 жыл бұрын
it shows an error while writting the onclick code of intent in main activityit shows full error
@ravibeniwal14235 жыл бұрын
startActivity (android.content.Intent) in Activity cannot be applied to (Intent) sir this error is occured plzz help me
@ektasharma35116 жыл бұрын
On clicking the button, nothing is happening. What's the issue? Please solve it.
@HarshSharma-rf7fk5 жыл бұрын
If you get the answer please tell I have also this error in my emulator
@sajjadjarwar45616 жыл бұрын
Error While Clicking the Button Unfortunately Application Has stopped
@HarshSharma-rf7fk5 жыл бұрын
Same this error coming in my program also
@Blue-vt6in4 жыл бұрын
it's not working when i click send message it exits the application
@adhithyansundararaj48725 жыл бұрын
I'm getting error : cannot find symbol class
@cybersk17 жыл бұрын
Do something for background noise cancellation for ur video
@PRABEESHRK7 жыл бұрын
Sorry for that....
@whereareyou12946 жыл бұрын
free m aur kya loge majeed bhai ?
@dhaneshpt86414 жыл бұрын
Thank you sir
@edwinmachariamwangi6 жыл бұрын
Thank you.
@qaworlds4 жыл бұрын
Sir in 6th lect I getting error , View view and PackageContext: this, Above both line Pls provide me yours what's app number or , if u have telegram user pls tell me your telegram channel name so that I send you a screen short of my error during build time
@monilpitliya73685 жыл бұрын
good.....
@ArpitDhamija6 жыл бұрын
Many errors are coming
@mysnapshotdiary6 жыл бұрын
What errors? Has it got something to do with intent and view?
@ArpitDhamija6 жыл бұрын
@@mysnapshotdiary i m not able to connect my phone , not even virtual device is opening
@SatnamSingh-kp2vp5 жыл бұрын
thanku sir
@ammarassi70953 жыл бұрын
THANKSSSSSSSSSSSSS
@nsywwa1145 жыл бұрын
good
@qaworlds4 жыл бұрын
Pls reply me as soon possible as
@nileshthorat24033 жыл бұрын
Present sir
@rathodketan55515 жыл бұрын
sendMessage error
@abdirahmanahmed71427 жыл бұрын
thanks alot
@ganeshcsaiisc5 жыл бұрын
'message' not 'massage', really dude! learn English pronunciation first!
@sadiqzufer41185 жыл бұрын
if you can understand that is enough
@jehdeiahgreen36444 жыл бұрын
I'm still having errors with view "cannot resolve view symbol"
@kausalyag26354 жыл бұрын
Check the close bracket for above default function '}'