Ali's interests
Ali's posts
Post is pinned.Post has shared content
Maybe it's the subject matter, maybe its the snazzy title, however "Using concurrency to improve speed and performance in Android" is now my most recommended story on Medium!
#PerfMatters
#PerfMatters
I discuss how I used ThreadPools to achieve true concurrency in an Android app and thus improve performance. The code discussed captures 10 images per second from the camera API, converts them to Bitmap, rotates and resizes the bitmap, writes the Bitmap to disk and even simulates upload to a server all while keeping the app extremely responsive.
Post has shared content
Maybe your app has very stringent security requirements and you would like to persist objects on disk in an encrypted manner. Here is one solution I came up with using Facebook conceal and +Jake Wharton's DiskLruCache. You can read about it on my blog[1], or if you just want to see the code, head over to gist[2]. Would appreciate any advice/help on improving this.
[1]: https://medium.com/@ali.muzaffar/encrypt-and-persist-parceable-objects-on-disk-in-android-using-disklrucache-and-facebook-conceal-7b54d530a17f#.emv0km44r
[2]: https://gist.github.com/alphamu/87ca7bf57b5f9e6a0f84db93bef3b792
[1]: https://medium.com/@ali.muzaffar/encrypt-and-persist-parceable-objects-on-disk-in-android-using-disklrucache-and-facebook-conceal-7b54d530a17f#.emv0km44r
[2]: https://gist.github.com/alphamu/87ca7bf57b5f9e6a0f84db93bef3b792
Post has attachment
Post has attachment
Public
If someone tells you, that you take too much caffeine, tell them you're a developer. If they say, that's not a good enough reason, tell them you're a runner.
Post has attachment
Public
Friend: If you hate swimming, why do you keep doing it?
Me: I'm preparing for a fight against Aquaman.
Friend: I don't think swimming lengths will help.
Me: How else do i catch him when he runs away?
Me: I'm preparing for a fight against Aquaman.
Friend: I don't think swimming lengths will help.
Me: How else do i catch him when he runs away?
Post has shared content
Is there a way to reduce the space between the icons and the text in NavigationView? By default it seems to use 32dp, I want to reduce this to 16dp.
Post has attachment
Public
Between the Node.js thing and Ubuntu on Windows, this has been a crazy month! For those wanting more technical details on Ubuntu for Windows, this might help.
Post has attachment
Public
AnimatedEditText has comfortably crossed 200 ★'s on GitHub.
Currently at version 0.0.5. It now supports animating text our when you setText(null) or setText(""). It also solved issues with crashes when you called setText() and with swipe and auto-suggest/predict.
Currently at version 0.0.5. It now supports animating text our when you setText(null) or setText(""). It also solved issues with crashes when you called setText() and with swipe and auto-suggest/predict.
Wait while more posts are being loaded



