Thank you sir, for this video i have successfully completed the project, though i got some error but some errors where already taken in the comment section and some i solved by myself and the app is working great 🔥 thanks again sir ✌️.
StringRequest.... How did you implement it, did you import Class from the Volley... Because when I try it's not recognizing the dependencies, I synced the Gradle after adding a the dependencies but it's still not working.
i can't call the API because now on openweather, they use lat and lon (in your video, you can use city name). can you help me with that (i want to use city name too)?
Yes, they've changed their API, removed city as a parameter, instead using lat and lon for a city/location's weather. In that case, use their *Geocoding API* to pass city name, get JSON response, parse JSON as shown in this tutorial to get lat/lon, and use their Weather API to get weather details. It's a straightforward process and similar to what I demonstrated in this video. Check this link for more details on their Geocoding API: openweathermap.org/api/geocoding-api Hope it helped!
Make sure you wrote the following onCreate() method that is taking only one Bundle argument: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); . . . } If you are still stuck, download the source code (link in description) and check with yours. Good luck!
Good day, Sir! I would like to thank you for this video tutorial. This video help me a lot on my project. I really appreciate your effort in making this video. ❣️
Thanks advance. i used your code and it can show data using Toast. but I want to save to my own created class object name weather.but it's not working. how can I solve it?
Hello, one solution is, you can serialize your weather object and write directly into a file using FileOutputStream and ObjectOutputStream and when required you can use FileInputStream and ObjectInputStream to read object. Hope it helps to guide you in the right direction.
Hello good man, I have done this on my computer but here is what happened: StringRequest is all in red, after i Alt+Enter then Request and Response are both red. How do i fix this??
I appreciate your interest in the background picture! Feel free to explore stock photo websites for similar images that may meet your requirements. If you have any other questions, please don't hesitate to send an inquiry via my website.
Download the full source code from video description. Inside app > src > main > res > xml folder you'll find the network_security_config.xml file. Hope that helps!
@@SandipBhattacharya there are so many lines in RED . not able to understand what to do and i can u please confirm that it is not becoz of that api and url thing
@@omsuryawanshi5478 Make sure you have the latest version of Android Studio, gradle and Android SDK. Then, clean the project and see if the issue is resolved.
It's working with Alternatively, you can use this inside the opening application tag: android:networkSecurityConfig="@xml/network_security_config" This is the content of network_security_config.xml file under res\xml:
After Importing the source code from git -update the build.gradle for the weather.app module. (Lines that need updating will be highlighted, hover over them and alt shift enter them. -Build and then make project -File. sync project with grade files. -File Reload all from disk Should work then enjoy!
Once you click on the link, you will be redirected to github(dot)com/sandipapps/Weather-Update. There you can see the green "Code" button. If you click on that button, you'll be given option "Download ZIP". The ZIP file is not corrupt, I have verified that.
@@SandipBhattacharya sir, can you tell us what to do after we download the file as a zip? how long does it take us to completely install the application after downloading the zip file
Hi @Meenakshi, check the link in video description. Open the link. Click subscribe (Current Weather Data) > Get API Key (Free) > Create a New Account > Get the API Key
The OpenWeatherMap API key (APPID) is a unique identifier that authenticates requests associated with your project for usage and other details. So, it's required.
You just need to type it in the EditText for Country Code as shown in the tutorial. You can also make a Spinner to select from a list of Country Codes.
I've shared the complete source code on GitHub in the description, but it requires some updates due to recent changes in the OpenWeatherMap API. Please refer to my response to @ssmo's question for details.
In most of the cases, this error is occurred due to connectivity issue. So, if you are running this app on emulator, make sure you have internet access also in the emulator. If the problem persists, turn off your firewall and see.
Thank you so much.This video REALLY helped me in my career at the university
Glad it helped! 🙂
Thank you sir, for this video i have successfully completed the project, though i got some error but some errors where already taken in the comment section and some i solved by myself and the app is working great 🔥 thanks again sir ✌️.
Great 👍
StringRequest.... How did you implement it, did you import Class from the Volley... Because when I try it's not recognizing the dependencies, I synced the Gradle after adding a the dependencies but it's still not working.
Have you tried the source code I provided with this video? Check the video description.
i can't call the API because now on openweather, they use lat and lon (in your video, you can use city name). can you help me with that (i want to use city name too)?
Yes, they've changed their API, removed city as a parameter, instead using lat and lon for a city/location's weather. In that case, use their *Geocoding API* to pass city name, get JSON response, parse JSON as shown in this tutorial to get lat/lon, and use their Weather API to get weather details. It's a straightforward process and similar to what I demonstrated in this video. Check this link for more details on their Geocoding API:
openweathermap.org/api/geocoding-api
Hope it helped!
thank you!
Thank you so much. Really helped me in my career at the university with this video.
Thank you so much. Glad I was able to help. Wish you good luck for your career.
Was this your project?
@Rayan Amir yes
Thank You So much Very Hepfull
Glad I could help. Happy learning!🙂
I have made the app as you showed but it's not opening...it's showing Android with a black background..
Can you tell me the reason?
Make sure you wrote the following onCreate() method that is taking only one Bundle argument:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
.
.
.
}
If you are still stuck, download the source code (link in description) and check with yours. Good luck!
Thank you very much sir, this tutorial helped in understanding the application development in easiest way
Glad it helped. Keep learning, keep coding. All the best.
Sir , would you please tell me how to extend the code for. 5days whether forecast,,
Sir my app give wrong information there's no bug shows in the project. but false result shows how to fix it?
Pls go through my answer to ssmo's question in the comments section.
Good day, Sir! I would like to thank you for this video tutorial. This video help me a lot on my project. I really appreciate your effort in making this video. ❣️
Glad to know it helped in your project. Keep learning, all the best. 🙂
Hi sir, are you using any security related concept?
Not this time.
It works, thank you very much for video.
You're welcome! 🙂
What is meant by string url ? Can we generate it or not?
It's just a String used to store the URL to hit. For this particular app, you can generate it as shown in the tutorial.
Finally my project work thanks a lot sir 😌
Most welcome 😊
Thanks a lot and this helps me in my coursework
Happy to help! Best of luck with your coursework. 😊
What did you do for String request
1:11 sir, why all tutorial use LinearLayout instead of ConstraintLayout?
I don't know, it's up to you.
Thanks a lot..but my scrolling isn't working..i completed the whole project...but page isn't scrolling..can u please help
Follow the instructions step-by-step, it'll work.
Thanks advance. i used your code and it can show data using Toast. but I want to save to my own created class object name weather.but it's not working. how can I solve it?
Hello, one solution is, you can serialize your weather object and write directly into a file using FileOutputStream and ObjectOutputStream and when required you can use FileInputStream and ObjectInputStream to read object.
Hope it helps to guide you in the right direction.
@sandip Bhattacharya we need that image what you selected
Hlo pls reply sir actually mere pass getweatherdetails m error arha h agr m alt+enter krti hu to create method ka option nhi arar what i can do?
Hi Simran, clean and rebuild the project.
You can also manually create the method in your Activity class.
@@SandipBhattacharya ok solve hogya
Hi sir, am getting the following error on my mobile device "com.android.volley.AuthFailureError" How do I fix this?
Get your OpenWeatherMap API Key and use that.
Am getting an error "cannot resolve symbol StringRequest" when I press on import com.android.volley class it say cannot resolve symbol 'volley'...
@@UpVerse7 make sure you open the right build.gradle file, since there are 2, you need to pick the 2nd one.
how did u solve this i am getting com.android,volley.ClientError please help
Hello good man, I have done this on my computer but here is what happened:
StringRequest is all in red, after i Alt+Enter then Request and Response are both red. How do i fix this??
Actually, i fixed this, but now my aplication is crashing
Somthing to do with security config or something
Hi Mihael, download the source code from video description and match with yours.
Hello, how can we put weather icons?
Sir when i run the project by just weite kolkata before json viewer then my logcat to gives the response
Does anyone know a code for displaying the weather for the week?
Check OpenWeatherMap's 5 day weather forecast documentation. Link in video description.
can you send me thee link of the background picture?
I appreciate your interest in the background picture! Feel free to explore stock photo websites for similar images that may meet your requirements. If you have any other questions, please don't hesitate to send an inquiry via my website.
Hi
If I want to create registration and login activities using firebase before creating the activity of the weather am I supposed to have a problem?
no not an issue
THANK YOU SIR
How and where to download network security config file?
Download the full source code from video description. Inside app > src > main > res > xml folder you'll find the network_security_config.xml file.
Hope that helps!
Smooth tutorial, well explained.. Thank you very much for the tutorial...
Thank you so much for your feedback!!!🙂
please guide how to download code from GitHub and run the code in android studio without errors
Noted.
Thank you very much!
I'm having trouble with the error though.
at tvResult.setTextColor
I'm sorry!
Resolved!
Great!
GREAT VIDEO! also you have very interesting content in your chanel, just suscribed. Awesome!!
Hi Paolo, thanks for your kind words and sincere thanks for subscribing.
Sir were is network_security_confi.xml...... And how you made.... Please help I'm stuck in problm
Hi Manish, download the source code, there you'll find the network_security_config.xml file. Check the GitHub link in description.
Thank you sir, works super fine
Thanks for your feedback, blaze! 😀
app is not starting , what must be the problem ??
Start over watching the video again. Also, check your Logcat statements for any errors.
@@SandipBhattacharya i just copied from source code and the app is not opening.... Thanks for fast reply
@@omsuryawanshi5478 Ok. Check Logcat for errors. This is the first thing we should check once we get an issue.
@@SandipBhattacharya there are so many lines in RED . not able to understand what to do
and i can u please confirm that it is not becoz of that api and url thing
@@omsuryawanshi5478 Make sure you have the latest version of Android Studio, gradle and Android SDK. Then, clean the project and see if the issue is resolved.
error
Can't determine type for tag ''
It's working with
Alternatively, you can use this inside the opening application tag:
android:networkSecurityConfig="@xml/network_security_config"
This is the content of network_security_config.xml file under res\xml:
@@SandipBhattacharya sure thanks mate
Thank you, sir
Most welcome
Sir i made this app according to your tutorial but i dont get result when i click on get
What error you're getting? Check your Logcat statements and google with that. I hope you'll find a solution.
i have copied the code as it is but still it is showing runtime exception because of that application is not opening
Watch the video and follow the instructions carefully. It will run.
After Importing the source code from git
-update the build.gradle for the weather.app module. (Lines that need updating will be highlighted, hover over them and alt shift enter them.
-Build and then make project
-File. sync project with grade files.
-File Reload all from disk
Should work then enjoy!
How to download source code from the given link please help
Click the link > Code > Download ZIP.
@@SandipBhattacharya but there is no download zip option after > Code
Showing archive is corrupt
Once you click on the link, you will be redirected to github(dot)com/sandipapps/Weather-Update. There you can see the green "Code" button. If you click on that button, you'll be given option "Download ZIP". The ZIP file is not corrupt, I have verified that.
@@SandipBhattacharya sir, can you tell us what to do after we download the file as a zip? how long does it take us to completely install the application after downloading the zip file
Can you tell me about network security config file, like from where we can get it?
I have added the Source Code for this video in description (check Github link). Just get it from there.
Thanks
You're welcome!
How to remove Google adds?
Why does the application crash if you enter it incorrectly?
What do you enter it with?
@@SandipBhattacharya When I enter the name of the city with a mistake. Instead of a message about an erroneous input, the application crashes
Sir, how to use WeatherKit API rather than openWeatherMap api
Please make video for weatherKit
WeatherKit API requires Apple Developer Program membership. It's not a good match for developing Android apps.
Thanks mate, really learnt a lot of things from this tutorial
Glad it helped 🙂
Always be creating!
how to get API for open weather ?
Hi @Meenakshi, check the link in video description.
Open the link. Click subscribe (Current Weather Data) > Get API Key (Free) > Create a New Account > Get the API Key
why do we need an app id?
The OpenWeatherMap API key (APPID) is a unique identifier that authenticates requests associated with your project for usage and other details. So, it's required.
Tysm
nothing is popping up when i click on the button
Check your Logcat statements for any errors.
Cheers mate. Great tutorial
Thank you so much! 🙂
Where's the file of Security
Check the GitHub link in the video description. You should find the 'network_security_config.xml' file in the app/src/main/res/xml folder.
why is mine not "Response Listener" ?,
minute 7:05
Have you added the gradle dependency?
what is the url now?
The same URL as displayed in the video still works.
How do I enter the country code?
Google 2-letter country code (ISO 3166-1 alpha-2)
@@SandipBhattacharya Is there a video tutorial on how to put it on?
You just need to type it in the EditText for Country Code as shown in the tutorial. You can also make a Spinner to select from a list of Country Codes.
Please share the complete source code sir
I've shared the complete source code on GitHub in the description, but it requires some updates due to recent changes in the OpenWeatherMap API. Please refer to my response to @ssmo's question for details.
Thanks a lot
Welcome! 🙂
Can you send me the background image alone
Guess you might want to revise for loss of audio from from 0:29 till 3:47
You mean the xml layout design part? Actually, I skipped that since I created so many tutorials on that earlier in the same playlist.
4:50 pr #.## m error arha h
What is the error message?
And, where you're getting this error? (Like in "Logcat" or somewhere else?)
@@SandipBhattacharya in code
And pls one request also 4:24 pr ek appid h vo likhe agr apke vali hi likhe to chljayga project bcoj m sign up nhi krparhi
No. Create your own app id.
@@SandipBhattacharya but sir i can but it reject
Great
Thanks!
Yesss.. i love it
Thank you so much!
Siaaap
sir how did you got that network security config file sir
Check this out for network security config: ruclips.net/video/6U8-_G5yjwA/видео.html
Iam geeting volley.timeouterror
In most of the cases, this error is occurred due to connectivity issue. So, if you are running this app on emulator, make sure you have internet access also in the emulator. If the problem persists, turn off your firewall and see.
Thanks !
Welcome!