mridang / gasflow

A lightweight Android app that shows the network speed as an icon in the status bar.
https://play.google.com/store/apps/details?id=com.mridang.speedo
Apache License 2.0
27 stars 8 forks source link

apk size #2

Open gabsoftware opened 8 years ago

gabsoftware commented 8 years ago

Gasflow is advertised as "lightweight" but I find 11 MB to be quite big for such a small app. Please reduce the apk size :-)

gabsoftware commented 8 years ago

Would it be possible to generate the picture used for the notification instead of storing every possible values?

Almtesh commented 8 years ago

Oh, that's why the app is so heavy, I was very surprised when I installed it.

gabsoftware commented 8 years ago

The app itself is lightweight but its resources make it heavyweight.

gabsoftware commented 8 years ago

Maybe it would be doable to only have pictures of digits from 0 to 9 and compose the speed number from that? For example 123 KB/s would display the picture of 1, then 2, then 3?

mysegfault commented 6 years ago

Maybe we could generate the bitmap on the fly, but it will downgrade the performance because generating bitmaps will take more CPU and RAM.

Anyway, I compressed (lossless) the PNG files so the app size will be a bit smaller (https://github.com/mridang/gasflow/pull/8)

Almtesh commented 6 years ago

Or you could generate bitmap cache at first launch, so the apk is not so heavy, but the bitmaps are still present for work.

gabsoftware commented 6 years ago

Does it have to be pictures, can't it be text? Just asking, not sure it that's possible for Android notification bar. For example using setNumber.

mysegfault commented 6 years ago

@Almtesh that's a good idea, i can try to generate the bitmaps and cache them @gabsoftware no it can't be text, just bitmaps. setNumber is used to give an extra number (like unread messages) only

qtron commented 6 years ago

Thanks Gabs/w 4 this app but it wont change to white colour, & notification size so tiny, very hard to read. Android kitkat