Timetable App Tutorial E2.1 - Completing the Week Activity! (Android Studio 3.0)

  Рет қаралды 12,896

Professor DK

Professor DK

Күн бұрын

In this video, we define the adapter class for the week and then set it to the listview. The final product is colorful and the app finally takes shape!
How to upgrade to latest Android Studio 3.0 - • How to Install/Upgrade...
Previous episode E2.0 - • Timetable App Tutorial...
Other episodes:
E1.1 - • Timetable App Tutorial...
E1.0 - • TimeTable App Tutorial...
E00 - • Simple Timetable App T...
If you liked this video, make sure you give it a big thumbs up, also comment below if you got any error or didn't understand something. I would love to help you.
Do subscribe for more videos! Happy learning :)
Follow me on:
Twitter - dheerajkmth
Instagram - dheeraj_kamath

Пікірлер: 84
@anupamdungdung9417
@anupamdungdung9417 4 жыл бұрын
This guy's explanation is the best I have ever seen and heard regarding Android tutorials. Explaining each and every component very clearly. Thank you!
@codinginflow
@codinginflow 7 жыл бұрын
Very nice work, keep it up!
@hadeelalamoudi438
@hadeelalamoudi438 6 жыл бұрын
Thank you so much.. I wish if I can give you million likes for your amazing videos.
@kingkhan3161
@kingkhan3161 7 жыл бұрын
Very nice video. Plz upload the next video... Waiting for the continuation!!
@ShreyeshSharma
@ShreyeshSharma 7 жыл бұрын
At 24:32 on set text for tv week I am getting error java null pointer exception attempt to invoke java.lang.charactersequence
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+Shreyesh Sharma Check the ID you have defined for tvWeek :)
@ShreyeshSharma
@ShreyeshSharma 7 жыл бұрын
Professor DK thanks solved it was the id causing the problem
@parkbora07
@parkbora07 Жыл бұрын
dont we need any backend,sir?
@bharathcool4387
@bharathcool4387 7 жыл бұрын
Thank you so much sir for uploading this!
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+bharath cool Glad you liked it :)
@ShreyeshSharma
@ShreyeshSharma 7 жыл бұрын
when are the videos for rest of the section of the app releasing?please release all of them a bit quickly
@Drakanx
@Drakanx 6 жыл бұрын
so i can adopted this for classes and time of each class? fro each day of the weak
@kilungyajames5484
@kilungyajames5484 7 жыл бұрын
Wow great work, keep it up
@joshalforque5663
@joshalforque5663 7 жыл бұрын
Thank you sir i really watched all your videos .plsss sir upload next video plssss
@ProfessorDK
@ProfessorDK 7 жыл бұрын
Will be uploaded this Sunday :)
@joshalforque5663
@joshalforque5663 7 жыл бұрын
Were just waiting for the next video what happened 😭😭
@josephifs6493
@josephifs6493 6 жыл бұрын
+Professor DK sir you told about home automation app this week will released but till now there's no where in utube
@francisdeh6951
@francisdeh6951 7 жыл бұрын
Thanks, your videos are great. Could you also consider including alarm system. Say a pop up notification some 15 minutes before time for a particular class. Per my research, it will definitely entail a lot but will really appreciate it if you could.
@weinschelbarretto3263
@weinschelbarretto3263 6 жыл бұрын
For the adapter classes (in the MainActivity.java and WeekActivity.java), how does it iterate through all the elements of the ListView to initialize them? Does it happen all at once or it does it happen one by one?
@nahian.rifaat
@nahian.rifaat 6 жыл бұрын
+Professor DK , i watched your video and wrote the same code for my app but the app crashes when i click the first item on my app. Please help
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Please post the error seen in your logcat :)
@nahian.rifaat
@nahian.rifaat 6 жыл бұрын
Professor DK thanks, I have resolved thhe problem. But please give me some idea of how to load results of a custom query to a listview. I need it for my proojrct which is to be submitted on july 1st
@rohitroy9828
@rohitroy9828 3 жыл бұрын
@@nahian.rifaat could you please point out where you have made the changes, as I am facing the same issue?
@ashaysingh9278
@ashaysingh9278 6 жыл бұрын
holder.tvWeek.setText(week[position]); in the above line the error is.... java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference at com.example.anshi.timetabledemo.WeekActivity$WeekAdapter.getView(WeekActivity.java:128) pls help
@rohitroy9828
@rohitroy9828 3 жыл бұрын
Sir could you please respond to this query as I have faced the same issue while building my project.
@soumyachatterjee2603
@soumyachatterjee2603 3 жыл бұрын
@@rohitroy9828 inside WeekActivity.java , He accidentally made a mistake. See At 16:24 , Replace (R.id.tvMain) with (R.id.tvWeek).
@parkbora07
@parkbora07 Жыл бұрын
can you upload video about developing an app using android studio for developing timetable generation in which there would be auto swapping of professors to a class with absence of professor....please,sir
@mokshmahajan6340
@mokshmahajan6340 6 жыл бұрын
Can I use BaseAdapter in case of ArrayAdapter?
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Yes, u can
@mokshmahajan6340
@mokshmahajan6340 6 жыл бұрын
Also when I'm trying to use ViewHolder the lines (containing holder.something) are not working, though they are showing no error. But when I did it without using viewholder it worked.
@rogerye664
@rogerye664 4 жыл бұрын
hey, so when testing on my phone, the app crashes after i click on the timetable button and im not sure what to do, i followed all your steps and your offical app on the app store does not have this problem so i dont know why it is crashing
@soniarodrigues441
@soniarodrigues441 4 жыл бұрын
same here
@ahmadibsibsshah5027
@ahmadibsibsshah5027 3 жыл бұрын
@@soniarodrigues441 plz change your app's "activity_week_single_item.xml" according to the settings in this video at 16.00 - 17.00 minutes. This worked for me :)
@soumyachatterjee2603
@soumyachatterjee2603 3 жыл бұрын
@@ahmadibsibsshah5027 Thank you so much mate 🤜🤛
@thecountrox
@thecountrox 2 жыл бұрын
@@ahmadibsibsshah5027 yes i had to change ivWeek to ivMain and it works, tysm
@joshx2286
@joshx2286 5 жыл бұрын
When i click on the panel to open the weeks tab the app crashes any fix to that?
@joshx2286
@joshx2286 5 жыл бұрын
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.example.timetablex.utils.LetterImageView.setOval(boolean)' on a null object reference this it the error
@anuraggupta5665
@anuraggupta5665 6 жыл бұрын
What is difference between ArrayAdapter and BaseAdapter? In MainActivity file you used BaseAdapter but here ArrayAdapter. Why?
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Array adapter has slightly more functionality capabilities. No other vast difference.
@akhileshtandle7126
@akhileshtandle7126 7 жыл бұрын
I HV a doubt sir that I HV made a simple calculator app only with one operation addition when I click button for result it's is crashing it's Hw to fix that
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+Akhilesh Sonu Could you tell me the error seen in logcat?
@kilungyajames5484
@kilungyajames5484 7 жыл бұрын
Kindly upload the next tutorials after the weekly activity, E2.2 and above
@ProfessorDK
@ProfessorDK 7 жыл бұрын
Yes, keep checking every week :)
@thehumblestudent5032
@thehumblestudent5032 6 жыл бұрын
When I click on the first list item (Time table) the application crashes and closes itself. Any ideas why?
@thehumblestudent5032
@thehumblestudent5032 6 жыл бұрын
It has something to do with the function setupListView, but I don't know what it exactly is.
@Tommy22898
@Tommy22898 6 жыл бұрын
@@thehumblestudent5032 did you solve this?
@thehumblestudent5032
@thehumblestudent5032 6 жыл бұрын
@@Tommy22898 he has grabbed the wrong id (findViewById). Look at the correlated xml file, you will see what I mean.
@Tommy22898
@Tommy22898 6 жыл бұрын
@@thehumblestudent5032 Which wrong ID did he use? The ID in the xml file is "ivletter" which seems to be correct in the getview function. Which function was is that was causing the error as im getting no errors and the apps just closing.
@SouravKumar951
@SouravKumar951 5 жыл бұрын
replace holder.tvWeek = (TextView)convertView.findViewById(R.id.tvMain); to holder.tvWeek = (TextView)convertView.findViewById(R.id.tvWeek);
@androidtube254
@androidtube254 7 жыл бұрын
waiting for the next video. Please release all of them sir
@ProfessorDK
@ProfessorDK 7 жыл бұрын
Will be released this Sunday! :)
@Tommy22898
@Tommy22898 6 жыл бұрын
the noise at 22:00 scared the shit out of me
@ProfessorDK
@ProfessorDK 6 жыл бұрын
Haha, sorry about that 🤣
@snehithavemireddy7514
@snehithavemireddy7514 6 жыл бұрын
sir,i am geting that i cannot resolve symbol andriod
@snehithavemireddy7514
@snehithavemireddy7514 6 жыл бұрын
sir, i got error free but i am unable to build apk debug it is not working ?
@Pankajsharma-zh6ov
@Pankajsharma-zh6ov 7 жыл бұрын
Hello brother good work.. Help me with the code for connecting this activities
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+Pankaj sharma You connect them by using Intents. I hope that's what u asked
@carpilami
@carpilami 6 жыл бұрын
public class WeekAdapter extends ArrayAdapter { @Override public int getCount() { return weekarray.length; } } //i added this in weekadapter
@maximilianocarsi2895
@maximilianocarsi2895 7 жыл бұрын
I hope and soon upload a new video
@mehrajud-dinbhat8048
@mehrajud-dinbhat8048 7 жыл бұрын
Sir ..we are impatiently waiting for the videos of the tutorial..please sir upload all the videos of the app
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+Mehraj Bhat Yes will be uploaded coming Sunday! :)
@bhargavibaljoshi7249
@bhargavibaljoshi7249 7 жыл бұрын
Plss upload next video sir
@ProfessorDK
@ProfessorDK 7 жыл бұрын
It is available now on my channel, do check it out :)
@harishankarkannan9198
@harishankarkannan9198 7 жыл бұрын
hey....pls. provide a video on sqlite filter search.
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+Hari Shankar You want a search implemented in the main activity right?
@harishankarkannan9198
@harishankarkannan9198 7 жыл бұрын
Professor DK no..what I actually meant is that make a separate video on the SQLite database and make a list view out of it. In which teach us how to implement search
@vishalborana9020
@vishalborana9020 7 жыл бұрын
Sir, please upload the future videos quickly.
@francisdeh6951
@francisdeh6951 7 жыл бұрын
Thanks, your videos are great. Could you also consider including alarm system. Say a pop up notification some 15 minutes before time for a particular class. Per my research, it will definitely entail a lot but will really appreciate it if you could.
@ProfessorDK
@ProfessorDK 7 жыл бұрын
+Deh Francis Once the entire tutorial is complete I'll cover add ons in which I'll cover the alarm pop-up :)
@francisdeh6951
@francisdeh6951 7 жыл бұрын
Professor DK thank you very much.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Simon Sinek's Advice Will Leave You SPEECHLESS 2.0 (MUST WATCH)
20:43
Alpha Leaders
Рет қаралды 2,4 МЛН
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
8 AI Tools I Wish I Tried Sooner
16:10
Futurepedia
Рет қаралды 266 М.