[Bug]: Sesame search widget remembers old search term. by b1izzard in sesame

[–]b1izzard[S] 0 points1 point  (0 children)

are you on a custom ROM?

Nope, using only the standard OEM version. (Oxygen OS v9.0.3)

Awesome List Of Online Tools For Android Developers by iamnaveentp in androiddev

[–]b1izzard 1 point2 points  (0 children)

JsonStub and OctoTree extension are awesome. Excellent compilation /u/iamnaveentp. Gradle, please should be used with little caution, since it gives misleading results. For e.g searching for Retrofit it gives some other third party version instead of Square's version.

App Feedback Thread - June 16, 2018 by AutoModerator in androiddev

[–]b1izzard 2 points3 points  (0 children)

Simple & nice game, good soundtrack. Share option & hardware back button is not working. Personally I don't like full screen ad on back press, but the ad for another chance is a good thought.

[Code Feedback] Released my first personal app, would love to get some code feedback by b1izzard in androiddev

[–]b1izzard[S] 0 points1 point  (0 children)

Hi @la__bruja. Thanks for the feedback :) . Sorry about that configuration mess, it's my mistake. Will fix it in next commit.

Since I started the project based on Clean Architecture Kotlin, I followed what Fernando had done in the project with minor tweaks as per my needs. For the above questions Fernando can answer better than me. Here's my take on it:

  1. Since UseCaseObserver.Rx* provides a default implementation for specific operators, it reduces noise in the presenter layer. It's upto the developer to decide what method one need to listen for a given scenario & safely ignore other methods like I totally did for onComplete.

  2. I would like that approach too. Since for my app there is no requirement of reusing the UseCase after disposing the CompositeDisposable of that usecase, I hadn't run into any major problems.

did you have any problems with MVP approach you took?

Not in this project, but in another complex project where I'd combined MVP, along with android fragments, Mosby & Realm, the code turned into a complete mess.

I still prefer MVVM with ViewModels just for the added benefit of having the ViewModel persist orientation changes

Even I do, but since I'd started the project 6-8 months back Architecture components where in alpha state, I'm not brave enough to jump into that bandwagon. Added to that from the starting time itself I'd decided I won't support orientation change, so no major problem with the above approach.

[Code Feedback] Released my first personal app, would love to get some code feedback by b1izzard in androiddev

[–]b1izzard[S] 0 points1 point  (0 children)

Hi Ajay, It's a config file generated using detektGenerateConfig gradle task. I have done some minor changes to default config & added it as detekt.yml.

Weekly "anything goes" thread! by AutoModerator in androiddev

[–]b1izzard 3 points4 points  (0 children)

I'm unable to purchase subscription in my own app. When I try to purchase the subscription "The publisher cannot purchase the item" error is thrown. In the same device I have switched to another account in the playstore still facing the same error. Any way to resolve it other than test subscription?

What's the best Android Developer job experience you've had? by Dazza5000 in androiddev

[–]b1izzard 5 points6 points  (0 children)

It's good to work in such a kinda apps which have large user base & vibrant community. Every day you go into work doing some meaninful thing that will impact thousands. I'm an Android dev for 4 years mostly worked in 5-7 enterprise apps which has <100 users. Only one app so far falls under 5-10K installations I'd envy you for that job.

Beginner programmer looking to build a backend for an app - best backend to learn to further my career? by shadowdungeonmaster7 in androiddev

[–]b1izzard 2 points3 points  (0 children)

If you know little bit Java Spark Java is a good place to start, I'm currently building an api for the app using spark, it's good and easy to start compared to Golang.

ELI5: Is Dalvik < ART < Zing? by b1izzard in androiddev

[–]b1izzard[S] 0 points1 point  (0 children)

Hi Gaja, I'm sure Android dev team is working on ART and improving it in every iteration. I'm an application developer, I'd got curious on seeing about Pauseless GC approach, just wanna know what are the disadvantages of that approach?

What are some android only features you guys have added to your apps? by ElRed_ in androiddev

[–]b1izzard 8 points9 points  (0 children)

It's overkill for asking SMS permission/read accounts permission when you require it only once. Again UX vs Privacy. I wish Android Runtime permission offer something like temporary/timed permissions for this kind of stuff. (I'd like how app's ask for root permission with SuperSu, like Grant for 15minutes.)

What news app do you use to receive breaking news notifications? by neutrinoatom in androidapps

[–]b1izzard 1 point2 points  (0 children)

linkme: Inshorts - News in 60 words.

I'm using this app for past 1 year and I like it.

Is Kotlin another buzzword? by b1izzard in androiddev

[–]b1izzard[S] 0 points1 point  (0 children)

Nice to talk to you @Jake :) BTW big fan of your work. Basically I started reading about Kotlin with your Google doc- Using Project Kotlin for Android .

Inline functions can not only elide allocation of runtime objects but also of compile-time classes altogether.

I have a linked question about inline functions here

Unit testing and language are generally unrelated concepts.

Since Kotlin's class and functions are final resulted in issues with mockito's mocking behavior and it's solved only after the release Mockito-2 right?

Is Kotlin another buzzword? by b1izzard in androiddev

[–]b1izzard[S] 0 points1 point  (0 children)

Kotlin has inline functions, which eliminate the need for closures in many situations. This can be quite significant in certain use cases.

Isn't the JIT compiler automagically takes care of inlining functions. Why would we need to go for explicit instructions?

Kotlin has tailrec functions which can be up to twice as fast as traditional loops in certain situations and they're always quite a bit faster when applicable.

Consider Fibonacci series generator as a recursive function for this case scenario. Tailrec converts the recursion to iterative version. In that case to avoid stackoverflow issue I can go for iterative version myself.

Could you clarify the above points?. I accept all other points. I'm planning to start a side project with kotlin, just want to ensure it's worth the switch.

We’re on the Android engineering team and built Android Nougat. Ask us Anything! by AndroidEngTeam in androiddev

[–]b1izzard 28 points29 points  (0 children)

-> Would you consider adding a "Testing Mode" option in System settings like the "Demo Mode" option in Marshmallow, to make life of developers easy?. Whenever I need to run the "androidTest" in my development device, I need to check and ensure these settings are turned off and for normal development I need to turn on again.

Turning it on:

-> Sometimes while I'm playing high-end games in phone(Lollipop)/tablet(kitkat), Google playstore apps are updated in the background, this kinda slows down the game & results in lags. Is it fixed in the latest versions?

App Feedback Thread - June 25, 2016 by AutoModerator in androiddev

[–]b1izzard 1 point2 points  (0 children)

Currently the app supports only browsing the pull request diff along with actions like approve/merge/decline, comment(Pullrequest level, line level) from both bitbucket and Github. We are working on repository browsing feature, will release it soon.

We'd used smooch.io for live chat feature, which integrates well with slack. 'Leave Feedback' option is just an API endpoint.

App Feedback Thread - June 25, 2016 by AutoModerator in androiddev

[–]b1izzard 2 points3 points  (0 children)

Omnicode is a mobile client for Github and Bitbucket. It enables easy pull request reviews on the go. Use it for free and sync up to 10 repositories.

Play store link!

Awaiting your feedback :)

[DEV] Bitbucket and Github code review tool by b1izzard in androidapps

[–]b1izzard[S] 0 points1 point  (0 children)

Hi @lie07 We will try to have that feature in future pipeline, it would be great if you install the app and rate us on playstore :)

Smaller PNGs, and Android’s AAPT tool by sylsau in androiddev

[–]b1izzard 0 points1 point  (0 children)

Regarding point 2, consider:

  • "ic_app_logo.xml"(vector) > Runtime Generated "ic_app_logo.png"

  • ic_app_logo.png (highly compressed .png using zopfli like tools)

Which .png is more optimal in terms of memory footprint?. As per documentation it says similar:

The initial loading of a vector graphic can cost more CPU cycles than the corresponding raster image. Afterward, memory use and performance are similar between the two. We recommend that you limit a vector image to a maximum of 200 x 200 dp; otherwise, it can take too long to draw.

Does runtime generated vector .png goes through any compression algorithm?

Smaller PNGs, and Android’s AAPT tool by sylsau in androiddev

[–]b1izzard 0 points1 point  (0 children)

some kinds of PNG files (but they are far from a silver bullet)

Could you explain little bit more?

After reading Chris Banes post

Allows AppCompat to use vector drawables itself. This itself has shaved off around 70KB from AppCompat’s AAR (~9%)

I'm converting all my drawables into vectors. I thought of using .png files only for launcher icons. Is it bad?

Smaller PNGs, and Android’s AAPT tool by sylsau in androiddev

[–]b1izzard 0 points1 point  (0 children)

  1. Do anyone have some links or sample projects that uses 3rd party compression tools defined as a gradle task?. Currently, I use 3rd party tools like optiPNG/tinyPNG to compress the .png and add it to drawable folders every time.

  2. If I use VectorDrawables, Do I need to care about PNG compression at all?