When I run the application it does not open. A error pops up on emulator saying "App keeps stopping". I found the error from logcat. It is on the 52:04 line. The newsRV one. It does not show error in main activity but shows in logcat
My gradle is building There is not a single error The app is running But it's only showing a blank page with news application written And in the logcat it's how's ACR not enable ioctl error Can someone please help
Hi, I am wondering if we can still build android apps in java? or kotlin is the only way to go? I am learning java, and I don't wanna switch to kotlin for now! what do you think about the future of java in android world?
I think for Android, future is definitely Kotlin considering the reason why Google developed kotlin. Java to me is more like an evergreen language which strengthens your base as a programmer and will be used for much longer to develop secure backend and other things in tech giants.
getItemCount(){ return categoryRVModals.size(); } Error : java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference Please try to solve my Error.
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.developer.samandar.newsappgfg, PID: 19606 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.developer.samandar.newsappgfg/com.developer.samandar.newsappgfg.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference at com.developer.samandar.newsappgfg.MainActivity.getNews(MainActivity.java:64) at com.developer.samandar.newsappgfg.MainActivity.onCreate(MainActivity.java:44) at android.app.Activity.performCreate(Activity.java:6975) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) it's happening iltimos yordam bering
Apply For Video Internship Program - script.geeksforgeeks.org/on-boarding/youtube
what's the back end of this project?
Hello, i cant fetch the news, the app showing only layout without news
Finally after several attempt's to create the app I finally managed to create it by myself... Thanks a million ✌️✌️.
Bro can you share your code
Please help me to solve the error😢
great video. followed each step and done without any single error.
That's good help me to finish this app
Brother can you send me the zip file of that please?? It would be huge help! I'm waiting for your replay!!
I want to display the source and date of publish above title in card view... How can i do it
When I run the application it does not open. A error pops up on emulator saying "App keeps stopping". I found the error from logcat. It is on the 52:04 line. The newsRV one. It does not show error in main activity but shows in logcat
16:18 on writing "idIVNews" shows error . idINews is not defined anywhere. Did you mean idRVNews
Just rename IVNews to idIVNews in the layout
after doing all the steps I am still getting an error fail to get data as toast for onErrorResponse
what should I do
You guys are doing such a great job for android beginners,
Please continue it in kotlin.
Sir catagory when i was open category it's shows bug error and category wise not open what should i do
Bro open source code is available..? Please how create in shor model news app explain..
why i got null pointer exception in mainactivity.this on for loop can anyone suggest answer for this
For category "All" which image url we should mention?
My gradle is building
There is not a single error
The app is running
But it's only showing a blank page with news application written
And in the logcat it's how's ACR not enable ioctl error
Can someone please help
How to create database in this app? And how add other option in this app also admin panel..here is no information in this video..
sir i am a beginner, what tools apps do you use to make this application?
The main tool used is android studio and java must be installed
Which dependencies are added in the first step?
this is very cool .. please make more videos on android development using android studio of different kinds
Please share your code
superb explanation :)
can you please provide the source code
GsonConverterFactory this was not adding automatically and showing error what should i do
Can we show full news content on this app, is thi api a able to do this?
Hello sir last moment when run show keep stopping app and auto cut
Massive respect, Thank a lot gfg💗
plz share your code on github
@@Mohit-gb9dv have to completed the code
@@Mohit-gb9dv can you share that
Hey can't able to pass the GsonConverterFactory at 1:01:01 time. Please help.
Implementation is required
Yes PLease Provide source code if any one have
What is
loadingPB = findViewById(R.id.idPBLoading); ?
I cannot find idPBLoading .......Help me with this please.
i am getting error at 37:58. it says cannot resolve symbol picasso
Same
How can I overcome from crashing app when i opened it.. Everytime it,s same reaction, so please anybady helps me to overcome this eorre
RecyclerView: No adapter attached; skipping layout
hey gfg im getting this error in console pls help
newsrv.setadapter(newsrvadapter);
Did you set the adapter
Thank u so much geeks for geeks and bow to the mentor and the team
plz share your code on Github
Plz share your code
Please share your code
My app is keep sttoping..what to do?I followed every step
Sir when I m trying to run the application in my own phone the app is crashing everytime.... Help to overcome it.
Hey Abhay! Can you see any error in the console log on android studio?
@@anmol441 Thanks for asking but i fixed it...and it is perfectly running ... Tysm GFG
@@abhaykumar0215 glad to know! 😀
could you please tell how?
@Abhay kumar please tell how u fixed it
when i am clicking the category the app is crashing....i have copied each and every line of code....please help
Same here, how o solve this issue?
Bro after successfull launching it shows app keeps Stoping
Same here, how to solve this issue?
Check the log cat
sir in categoryrvadaptor my int position for oncategoryclick showing error
Did you get the resolution?
App is working successfully but it shows the toast message as fail to get news, it is not fetching the data from the server. Please help
Thanks for the tutorial!
hey brother can you send me git link if you uploaded your practice code on git ?
hey brother can you send me git link if you uploaded your practice code on git ?
@@amit.flutter can you share your git link
Thanks. This app very useful for me developing different apps
Please share the source code bro
Sir it Is showing an error"expected begin_object but was begin_array
also could mark different parts, and steps
Hi, I am wondering if we can still build android apps in java? or kotlin is the only way to go? I am learning java, and I don't wanna switch to kotlin for now! what do you think about the future of java in android world?
I think for Android, future is definitely Kotlin considering the reason why Google developed kotlin.
Java to me is more like an evergreen language which strengthens your base as a programmer and will be used for much longer to develop secure backend and other things in tech giants.
as i click on the news to read the whole news it is crashing, pls help..
yes same issue
I'm getting error in dependency
Do you actually have to pay for this API?
No. The API is totally free to use.
Thumb Rule: No one can beat an India guy youtube tutorial.
thank you so much sir
Did the news displayed for you..?
not able to run this app on my phone , crashing.
Same here.... Getting error in Mainactivity. Java....asking to initialise call in call.enqueue()......if u have found the answer please tell ne
Same here, how to solve this issue?
Hello mara program ma error ave che run thay jay che pachi mobile ma app nathi khulti
sir, i am not getting data in app. It is showing "fail to get data" that toast message. please help
Same here
Exactly did the same, but always getting the failed to get news :( .
how to fix dependency error of firebase?
Thanks you very much Sir
Hay, i m not getting any error in android studio codes, but the application is not being opened.
Sir hmare news channel k lie aap application devlove krde charges m pay krdunga
Thank you!
Please share your code
my app is not working please provide the source code to cross reference
Yes same ...
code is stuck on first run ( running loading indicator)
Make sure to have the Source code next time.
Source code please 🤘🤘
No search bar?..
Hay, i m not getting any error in android studio codes, but the application is not being opened.
can anyone send source code
19:00
25:38
Java project?
My App is crashing at runtime
Sir you spoke so fast...
Watch at 0.5x speed 😑
@@priyansshraj XD
Bro iam create game news app
Source code?
51:16
source code
getItemCount(){
return categoryRVModals.size();
}
Error :
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
Please try to solve my Error.
Sir make gallery application
ERROR
Bhut bakwaas hai app keeps crashing
Dependencies latest version implement karo
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.developer.samandar.newsappgfg, PID: 19606
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.developer.samandar.newsappgfg/com.developer.samandar.newsappgfg.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference
at com.developer.samandar.newsappgfg.MainActivity.getNews(MainActivity.java:64)
at com.developer.samandar.newsappgfg.MainActivity.onCreate(MainActivity.java:44)
at android.app.Activity.performCreate(Activity.java:6975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
it's happening iltimos yordam bering
can anyone send source code