Share My Creation Weather4Cast

I released a new app to view weatherforecast for the next 5 days on the play store.

https://play.google.com/store/apps/details?id=com.maximussoft.simpleweather

It is mean to be a very simple weather app.
No widgets, notifications etc.
Just clean clear fast weather.

The feed is driven by http://openweathermap.org/
Special thanks to HotShoe, NJDude, XverhelstX and all the guys on the chat.

Please let me know if you see any issues.

Screenshot_2013-12-24-22-32-16.png Screenshot_2013-12-24-22-33-04.png Screenshot_2013-12-24-22-33-17.png Screenshot_2013-12-24-22-32-18.png
 

LucaMs

Expert
Licensed User
Longtime User
Ok I refixed the broken text by adding the 'MARQUEE' effect. I dont even know why I didnt think of that before. Thanks a lot for that suggestion.
I rarely use the designer, I find it much faster and flexible to write layouts by code.


I read that you prefer to build the layout from code (much flexible but not much faster).

Maybe we can help each other.

At the beginning, I had performed some tests from which it appeared that using code not increase the size of the compiled.

My idea (you find it in a few posts) was to draw the layout with the designer and, at run-time, a class or module should generate the code needed to obtain the same layout having the dimensions expressed as percentages (bleah, I hope it is clear).

I post the link, otherwise repeat everything!

Damn, it was in italian :)

So, please, use Google Translator or answer with a :p, then I'll translate it here :)
 

ilan

Expert
Licensed User
Longtime User
Ok I refixed the broken text by adding the 'MARQUEE' effect.

cool, sound great that what i meant but i have upgrade your app and still nothing have changed the text is not showing correct

s1.png


i wait but no 'MARQUEE' effect, maybe he think the text is not longer then the label size ?

you wrote in this thread that you have added this to enable the effect also if the label is not focused:

r.RunMethod2("setSelected", True, "java.lang.boolean")

have you forgot to add it??

thread: http://www.b4x.com/android/forum/threads/using-reflection-to-set-marquee-on-label.15743/#post-89480
 

thedesolatesoul

Expert
Licensed User
Longtime User
I read that you prefer to build the layout from code (much flexible but not much faster).

Maybe we can help each other.

At the beginning, I had performed some tests from which it appeared that using code not increase the size of the compiled.

My idea (you find it in a few posts) was to draw the layout with the designer and, at run-time, a class or module should generate the code needed to obtain the same layout having the dimensions expressed as percentages (bleah, I hope it is clear).

I post the link, otherwise repeat everything!

Damn, it was in italian :)

So, please, use Google Translator or answer with a :p, then I'll translate it here :)
For me code is a lot faster when writing layouts. I dont like to click and point, I prefer to be exact in placing items. I dont really care about the size of the compiled apk, it makes no difference. Maybe with Erel's new tools it will get better, yet still, with nested panels, the designer does not provide any features that you cannot do directly in code. Also easier to try out fonts and layouts, as you just need to loop over the views to change a value, and you can easily change it back. I can probably write an essay to say why I prefer layouts in code.


cool, sound great that what i meant but i have upgrade your app and still nothing have changed the text is not showing correct

View attachment 21621

i wait but no 'MARQUEE' effect, maybe he think the text is not longer then the label size ?

you wrote in this thread that you have added this to enable the effect also if the label is not focused:

have you forgot to add it??

thread: http://www.b4x.com/android/forum/threads/using-reflection-to-set-marquee-on-label.15743/#post-89480
This is weird. It worked for me, I tested it by making the label smaller, and I saw the marquee effect. This is the code I used:

B4X:
Sub SetEllipsize(TextView As Label, Mode As String)
    Dim R As Reflector
    R.Target = TextView
    R.RunMethod2("setLines", 1, "java.lang.int")
    R.RunMethod2("setHorizontallyScrolling", True, "java.lang.boolean")
    R.RunMethod2("setEllipsize", Mode, "android.text.TextUtils$TruncateAt")
    R.RunMethod2("setSelected", True, "java.lang.boolean")
End Sub
 

hookshy

Well-Known Member
Licensed User
Longtime User
you are using canvas to draw temperature through circles and lines and scale temp to dip units of canvas? your weather state images like "few clouds" are predefined? is there a full specification on weather state in orther to show proper image to the receive whether state from server? thanks found weather icons you are selecting image through data received?
 
Last edited:

hookshy

Well-Known Member
Licensed User
Longtime User
why are you using gps position? is.nt enough to locate with network data? generaly gps drains battery and getting whether forcast dont require precise location.
 

thedesolatesoul

Expert
Licensed User
Longtime User
you are using canvas to draw temperature through circles and lines and scale temp to dip units of canvas?
No, I am using accelerated surface, but it is the same principle. I scale it based on max and min temp.

your weather state images like "few clouds" are predefined? is there a full specification on weather state in orther to show proper image to the receive whether state from server? thanks found weather icons you are selecting image through data received?
If you go to openweathermap.org the whole specification is there. They send a weather description and also an icon code (they can also send icons). I use those to map to my own icons.

why are you using gps position? is.nt enough to locate with network data? generaly gps drains battery and getting whether forcast dont require precise location.
The GPS only turns on when you want to locate yourself (usually when people are too lazy). It doesnt stay on for long so doesnt drain the battery.
There is no background code running in the app itself.
 

stanks

Active Member
Licensed User
Longtime User
lol jemel....pls cand you send us your bank account so we can check it for our thesis :p
 

jemel

Member
Licensed User
Longtime User
Sorry for the slow response on this. I havent had much time to work on this.
Recently I overcomplicated more things in the feed class trying to fix some things.
I believe it still requires a lot of work, but here is the class that fetches the weather and parses it.
Hi there i see that you uploaded a module for this..but can you please show me how to use this, because im a newbie in b4a programming and our thesis project os somehow related to this great app of yours..Thank you very much for your feedback :)
 

sorex

Expert
Licensed User
Longtime User
I though the point of a software thesis is to document something to the bone that you have written yourself?
 
Top