Android tutorial (2018) - 06 - Create and Start an Activity

  Рет қаралды 102,071

PRABEESH R K

PRABEESH R K

Күн бұрын

Пікірлер: 85
@joakimeskils335
@joakimeskils335 6 жыл бұрын
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!
@usamaalioffical
@usamaalioffical 5 жыл бұрын
Thanks bro really it helps
@vitaliyfyodorov7936
@vitaliyfyodorov7936 5 жыл бұрын
It is working in my Android Studio 3.3.1. Thank you!
@kingoftennis94
@kingoftennis94 5 жыл бұрын
thanks a lot but why is this not imported by default, like its shown in the video
@HarshSharma-rf7fk
@HarshSharma-rf7fk 5 жыл бұрын
Sir my emulator works very slow always coming " WAITING FOR TARGET DEVICE TO COME ONLINE " even after connected with internet also
@FlickshotGaming7
@FlickshotGaming7 4 жыл бұрын
@@HarshSharma-rf7fk bro instead of emulator run it on your mobile
@sudhir1274
@sudhir1274 4 жыл бұрын
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.
@OasisFinder
@OasisFinder 6 жыл бұрын
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
@brandonlanski5540
@brandonlanski5540 5 жыл бұрын
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.
@AnimateMJ
@AnimateMJ 4 жыл бұрын
most people's problems are typos....
@topasunday4390
@topasunday4390 6 жыл бұрын
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
@RangerNation
@RangerNation 5 жыл бұрын
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-eh7bd
@SumitKumar-eh7bd 5 жыл бұрын
Its awesome , worked perfectly . Little doubts regarding parameters of the the method and also parameters of Intent
@mohitsaraswat8504
@mohitsaraswat8504 5 жыл бұрын
Your tutorials are great.Thankyou so much
@sumathikakarlapudi5283
@sumathikakarlapudi5283 6 жыл бұрын
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....
@Samdon094
@Samdon094 6 жыл бұрын
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
@BharadwajRbwaj95
@BharadwajRbwaj95 6 жыл бұрын
Use "Vysor" !
@erikmaxandersen6531
@erikmaxandersen6531 6 жыл бұрын
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."
@jackycbz
@jackycbz 6 жыл бұрын
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
@jackycbz
@jackycbz 6 жыл бұрын
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
@yifanzhang565
@yifanzhang565 6 жыл бұрын
Hi have you figured out how to solve this? I have the same problem
@HarshSharma-rf7fk
@HarshSharma-rf7fk 5 жыл бұрын
I have also this error in my emulator
@KoW
@KoW 6 жыл бұрын
Why nothing work when I click this button?
@hakkisan8285
@hakkisan8285 6 жыл бұрын
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..
@MRizalWrc
@MRizalWrc 5 жыл бұрын
@@hakkisan8285 thanks
@hakkisan2508
@hakkisan2508 5 жыл бұрын
@@MRizalWrc No Problem. I must revise my statement. This Guy does a Good Job. My Thanks to him.
@vanchhai3029
@vanchhai3029 6 жыл бұрын
hi sir, my app always stop working when i click sendmessage, why please tell me
@HarshSharma-rf7fk
@HarshSharma-rf7fk 5 жыл бұрын
If you get the answer please tell I have also this error in my emulator
@geetikakeim5138
@geetikakeim5138 5 жыл бұрын
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!!!
@harshamadusanka516
@harshamadusanka516 3 жыл бұрын
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"
@saurabhjaiswal8758
@saurabhjaiswal8758 6 жыл бұрын
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
@syedasadabbas6443
@syedasadabbas6443 5 жыл бұрын
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.
@fiveminedu483
@fiveminedu483 5 жыл бұрын
Thanks for this tutorial sir..
@niketanmishra4410
@niketanmishra4410 6 жыл бұрын
please help im getting error at R.Layout as cannot resolve symbol inside ON create Method ..it says documentation is missing for R
@pavukane
@pavukane 6 жыл бұрын
Easy fix for "cannot resolve symbol" errors: highlight the symbols and press Alt+Enter
@shalomusiripelli5053
@shalomusiripelli5053 4 жыл бұрын
thanks bro😃
@sairamteja6785
@sairamteja6785 5 жыл бұрын
Sir why we are passing View parameter for sendMessage method.Please reply me sir
@stoyanivanov3429
@stoyanivanov3429 6 жыл бұрын
I'm starting to like Indian accents :)
@kniveso.o5314
@kniveso.o5314 6 жыл бұрын
same Indian-English feels like my mother tongue
@Gphdwre
@Gphdwre 5 жыл бұрын
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.
@AnimateMJ
@AnimateMJ 4 жыл бұрын
@@Gphdwre no he's not sarcastic he's saying that because his videos are really helpful he is actually liking the accent
@rajnishsahay5265
@rajnishsahay5265 5 жыл бұрын
Got one error failed linking file resources.
@mohammedjabbarlafta7300
@mohammedjabbarlafta7300 4 жыл бұрын
Sir when I click on new, window has not activity to select?!
@CompanyBusinessCards
@CompanyBusinessCards 6 жыл бұрын
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
@smruthisathyamoorthy9424
@smruthisathyamoorthy9424 6 жыл бұрын
I get the same problem
@sethucse24
@sethucse24 5 жыл бұрын
The same issue has occurred for me, on mentioning the method name on Onclick function it show red color.
@dipeshkundnani27
@dipeshkundnani27 5 жыл бұрын
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-rf7fk
@HarshSharma-rf7fk 5 жыл бұрын
If you get the answer please tell I have also this error in my emulator
@Max-ep8oq
@Max-ep8oq 7 жыл бұрын
Well, this videos are preety good, thanks.
@mikerogers980
@mikerogers980 5 жыл бұрын
can anyone explain why we passed two parameters of view at send message method?
@sahithyaracha5507
@sahithyaracha5507 5 жыл бұрын
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
@CristianWSoza
@CristianWSoza 4 жыл бұрын
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-rf7fk
@HarshSharma-rf7fk 5 жыл бұрын
No error is coming but nothing is happening while click send message button
@HarshSharma-rf7fk
@HarshSharma-rf7fk 5 жыл бұрын
If you get the answer please tell me I have also this error in my emulator
@Gojam12
@Gojam12 6 жыл бұрын
Change text height not working as soon as I click on it. It goes back to what is was before
@yogeshkumar-ns6nc
@yogeshkumar-ns6nc 6 жыл бұрын
it shows an error while writting the onclick code of intent in main activityit shows full error
@ravibeniwal1423
@ravibeniwal1423 5 жыл бұрын
startActivity (android.content.Intent) in Activity cannot be applied to (Intent) sir this error is occured plzz help me
@ektasharma3511
@ektasharma3511 6 жыл бұрын
On clicking the button, nothing is happening. What's the issue? Please solve it.
@HarshSharma-rf7fk
@HarshSharma-rf7fk 5 жыл бұрын
If you get the answer please tell I have also this error in my emulator
@sajjadjarwar4561
@sajjadjarwar4561 6 жыл бұрын
Error While Clicking the Button Unfortunately Application Has stopped
@HarshSharma-rf7fk
@HarshSharma-rf7fk 5 жыл бұрын
Same this error coming in my program also
@Blue-vt6in
@Blue-vt6in 4 жыл бұрын
it's not working when i click send message it exits the application
@adhithyansundararaj4872
@adhithyansundararaj4872 5 жыл бұрын
I'm getting error : cannot find symbol class
@cybersk1
@cybersk1 7 жыл бұрын
Do something for background noise cancellation for ur video
@PRABEESHRK
@PRABEESHRK 7 жыл бұрын
Sorry for that....
@whereareyou1294
@whereareyou1294 6 жыл бұрын
free m aur kya loge majeed bhai ?
@dhaneshpt8641
@dhaneshpt8641 4 жыл бұрын
Thank you sir
@edwinmachariamwangi
@edwinmachariamwangi 6 жыл бұрын
Thank you.
@qaworlds
@qaworlds 4 жыл бұрын
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
@monilpitliya7368
@monilpitliya7368 5 жыл бұрын
good.....
@ArpitDhamija
@ArpitDhamija 6 жыл бұрын
Many errors are coming
@mysnapshotdiary
@mysnapshotdiary 6 жыл бұрын
What errors? Has it got something to do with intent and view?
@ArpitDhamija
@ArpitDhamija 6 жыл бұрын
@@mysnapshotdiary i m not able to connect my phone , not even virtual device is opening
@SatnamSingh-kp2vp
@SatnamSingh-kp2vp 5 жыл бұрын
thanku sir
@ammarassi7095
@ammarassi7095 3 жыл бұрын
THANKSSSSSSSSSSSSS
@nsywwa114
@nsywwa114 5 жыл бұрын
good
@qaworlds
@qaworlds 4 жыл бұрын
Pls reply me as soon possible as
@nileshthorat2403
@nileshthorat2403 3 жыл бұрын
Present sir
@rathodketan5551
@rathodketan5551 5 жыл бұрын
sendMessage error
@abdirahmanahmed7142
@abdirahmanahmed7142 7 жыл бұрын
thanks alot
@ganeshcsaiisc
@ganeshcsaiisc 5 жыл бұрын
'message' not 'massage', really dude! learn English pronunciation first!
@sadiqzufer4118
@sadiqzufer4118 5 жыл бұрын
if you can understand that is enough
@jehdeiahgreen3644
@jehdeiahgreen3644 4 жыл бұрын
I'm still having errors with view "cannot resolve view symbol"
@kausalyag2635
@kausalyag2635 4 жыл бұрын
Check the close bracket for above default function '}'
@abdurrahim3283
@abdurrahim3283 5 жыл бұрын
thanks a lot
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
الكمبيوتر الكمي | Quantum Computer
26:54
Waleed Khedr
Рет қаралды 45 М.
Android tutorial (2018) - 16 - An Example for SharedPreferences API
21:44
Button In Android - How Start an Activity on Button Click
7:20
Codes Easy
Рет қаралды 14 М.
How To Create Module In Odoo 17 || Odoo 17 Developement
49:32
Odoo Mates
Рет қаралды 44 М.
Android tutorial (2018) - 13 - Fragment Activity Communication
19:56
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН