Sparker0i / Weather

This is the weather app I've built as a part of the assignment of the Android Internship Workshop I'd attended at Amrita in the Summer of 2016
GNU General Public License v3.0
52 stars 40 forks source link

Splash Screen #27

Open Sparker0i opened 7 years ago

Sparker0i commented 7 years ago

Good first issue for newbies.

Someone could implement the Splash screen GlobalActivity.java, which has the app icon and a spinner.

So GlobalActivity will need some refactoring:

szaboa commented 7 years ago

I've just started to work on this. Assign to me @Sparker0i

flxwu commented 7 years ago

I would really like to do this as well :D

szaboa commented 7 years ago

@Pl4gue You can do it! @Sparker0i I suggest to you to read the "Clean code" by Robert Cecil Martin :)

flxwu commented 7 years ago

Alright, started working on it.

santhoshsamy29 commented 7 years ago

Is this still open?

Sparker0i commented 7 years ago

Yes

On 25-Oct-2017 2:20 AM, "Santhosh Kumar Munisamy" notifications@github.com wrote:

Is this still open?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Sparker0i/Weather/issues/27#issuecomment-339126831, or mute the thread https://github.com/notifications/unsubscribe-auth/AOSdWApkqV1ieG4Hiv3jIbZpNT3hYFNwks5svk2cgaJpZM4P6O07 .

ayush251196 commented 5 years ago

I would like to work on it. Please assign me.

Sparker0i commented 5 years ago

Hi @ayush251196 I have added you as a collaborator. Please accept the invite so that I can assign this to you :)

ayush251196 commented 5 years ago

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.jorgecastilloprz.progressarc.ProgressArcView.show()' on a null object reference

Sparker0i commented 5 years ago

That is unusual. How are you opening the WeatherActivity from the Splash Screen?

ayush251196 commented 5 years ago

Actually, I changed my implementation. The error is not coming now. Please review my commit.

yashk2000 commented 5 years ago

Can I work on this issue?

ayush251196 commented 5 years ago

Once I downloaded the data or json in Global Activity how should I send it to other activity for populating the views?

Sparker0i commented 5 years ago

Once I downloaded the data or json in Global Activity how should I send it to other activity for populating the views?

I'm sure there is a function in WeatherFragment which is used to render the data and display it. Go through the code and find that function. So once you finish loading the data in the splash screen, send it to the WeatherActivity, then while launching the WeatherFragment you can set this data inside a Bundle, then retrieve the data from it, then use the rendering function to display the data.

ayush251196 commented 5 years ago

I have implemented the data loading in global activity but as data loading is so fast that the splash screen layout is hardly visible to the user. Within milliseconds the Weather activity gets started. Should I use a handler to delay the control flow so that user may be able to see the splash screen for 1 or 2 seconds.

Sparker0i commented 5 years ago

as data loading is so fast that the splash screen layout is hardly visible to the user. Within milliseconds the Weather activity gets started.

Is this on a WiFi/4G Network?

ayush251196 commented 5 years ago

Yes, I am on a 4G network.

ayush251196 commented 5 years ago

I think because data is not that much huge, type of connectivity shall not affect data loading.

Sparker0i commented 5 years ago

I think because data is not that much huge, type of connectivity shall not affect data loading.

Most of my user base is from 3G phones. I just want to know whether you are able to load the data in the splash screen and send it to the fragment or not?

ayush251196 commented 5 years ago

Yes, I have done that.

Sparker0i commented 5 years ago

Cool. Make a PR. Will review that

ayush251196 commented 5 years ago

https://drive.google.com/open?id=1A5jrweBKi1W9mSZoed6mf55vzJz7ZFYy

ayush251196 commented 5 years ago

Please review the screen record.

Sparker0i commented 5 years ago

`Nicely done. Just wanted to know where you extracted that splash screen icon from?

ayush251196 commented 5 years ago

its in mipmap/ic_launcher_foreground

Sparker0i commented 5 years ago

its in mipmap/ic_launcher_foreground

Please copy app/src/ic_launcher_x-web.png to the drawable folder and then use it

ayush251196 commented 5 years ago

I have done it.

ayush251196 commented 5 years ago

Was there some bug in the splash screen that I implemented?

Sparker0i commented 5 years ago

Might be. I also accepted another patch. Maybe from that too.

On the Enter City page (on first startup until entering default city), when we click on the location icon and go to the WeatherActivity, it crashes.

Even otherwise when undoing your commit, there were a few other bugs too. That is why I have reset master to the last working build, and all other progress from KWoC is safe in the um branch