Profile cover photo
Profile photo
Anthony Restaino
334 followers -
Android Developer
Android Developer

334 followers
About
Anthony's posts

Post has attachment
Foggy night in New York.
Photo

Post has attachment
Finally. The application context bug has been fixed in WebView... Now all the floating browsers won't crash when the WebView tries to create a dialog window.

I wonder if this actually allows the dialogs to work if you pass in an application context or if it just doesn't show the dialog.
Photo

Post has attachment
The best view in Brooklyn. Nexus 5X has a heck of a camera.
Photo

Post has shared content
If you want to use this, now you can do it by just including it as a dependency in your gradle build file:

compile 'com.anthonycr.grant:permissions:1.0'

The AAR is currently hosted on jcenter.
Grant - A Library For Simplifying Android Permissions

Hey Android people,

As I was updating Lightning for 6.0 I was annoyed that I would have to move my code around and disrupt my application logic to deal with the new Android permissions. Also, doing all the checks and requests for permissions everywhere was getting out of hand. As a result, I built a small library that allows you to wrap some code that needs a permission to run in a simple abstract class and then send that to a PermissionsManager along with the permissions required for it to run, and it will execute your code when the permissions are granted, or will notify you when one of the permissions is denied.

I called it Grant. Check it out, feedback appreciated. Also, the README is a bit messy right now, so forgive me until I can fix typos and confusing sentences and flesh it out a bit more.

The README has some information on how to use it. Currently I haven't published it to jcenter or maven central, so if you want to use it you'll either have to copy the files into your project, or add clone the repo and add the library module as an external dependency. I'm hoping after I clean it up some more to be able to publish it to jcenter/maven for simpler use via gradle. I've also included a sample app in the repo that demos the use of the library.

Library is licensed using Apache 2.0 so there shouldn't be any problem whether your app is open/closed source.

Enjoy!

Post has attachment
#pixelpushing  

And then as I'm working on adding LeakCanary to [REDACTED] in order to detect [alleged] memory leaks, and I finally get it integrated correctly, and as I begin to use the app like I normally do, LeakCanary starts inspecting the memory and it's all like...
Animated Photo

Post has attachment
Grant - A Library For Simplifying Android Permissions

Hey Android people,

As I was updating Lightning for 6.0 I was annoyed that I would have to move my code around and disrupt my application logic to deal with the new Android permissions. Also, doing all the checks and requests for permissions everywhere was getting out of hand. As a result, I built a small library that allows you to wrap some code that needs a permission to run in a simple abstract class and then send that to a PermissionsManager along with the permissions required for it to run, and it will execute your code when the permissions are granted, or will notify you when one of the permissions is denied.

I called it Grant. Check it out, feedback appreciated. Also, the README is a bit messy right now, so forgive me until I can fix typos and confusing sentences and flesh it out a bit more.

The README has some information on how to use it. Currently I haven't published it to jcenter or maven central, so if you want to use it you'll either have to copy the files into your project, or add clone the repo and add the library module as an external dependency. I'm hoping after I clean it up some more to be able to publish it to jcenter/maven for simpler use via gradle. I've also included a sample app in the repo that demos the use of the library.

Library is licensed using Apache 2.0 so there shouldn't be any problem whether your app is open/closed source.

Enjoy!

Security update for my Nexus 4 just took 40 minutes to install... a bit tad excessive IMO. I feel like normal users will probably stop updating their devices if they are faced with update times taking this long.

On a related note, there are some problems with Lightning Browser on Marshmallow and I promise to fix them when I get my Nexus 5X in a couple weeks. Emulator just wasn't good enough to prep Lightning for Marshmallow I guess.

Post has attachment
Lightning Browser v4.2.3 - rolling out to all users over the next few hours ⚡

The story of this update:
This update has been a long time coming. The last big update to the free version was in April, so this is a culmination of all the changes since then. Paid version was updated later than that but still it hasn't seen these changes yet.

Summer went by fast... basically, as you might know, I got a job as a software engineer working on Android apps at Ask Partner Network in New York City a couple blocks from the Google building. It's been a big adjustment as I moved out of my parents' house in upstate NY where I lived most of my life (and throughout college) down to NYC. It's been challenging juggling work and personal life and trying keep going on Lightning and trying to survive in a big city by myself. It took a long time to get this update ready.

I should have released versions sooner, but my project management skills are nowhere what they need to be as I don't have a roadmap for features, don't really make any plans on what I'm adding, and so I don't ever feel that the browser is ready for a release. It all compounds, and eventually a lot of time has elapsed since I last published an update. There's lots of activity in the code, I'm just bad at releasing.

Hopefully the project management skills I'm learning on the job will help me in the future to be more prepared about what I'm releasing instead of just working on the code for a couple months and then tagging and throwing it up on the store.

Anyway, hope you guys enjoy 😎

Mostly Complete Changelog:
* Tablet UI (can turn on for phones as well)
* Support for Marshmallow
* Improved Reading Mode
* Added bookmark folder support!
* Settings revamp (community effort!)
* Updated icons + UI cleanup
* Improved full-screen mode
* Fixed some memory leaks
* Added animations between screens
* Added actions to the bookmarks drawer
* More translations
* Performance and stability fixes

https://github.com/anthonycr/Lightning-Browser/releases/tag/v4.2.3

Post has attachment
In NASA HQ today
Photo

Post has attachment
The most New York gif ever.

https://www.youtube.com/watch?v=UPXUG8q4jKU
Animated Photo
Wait while more posts are being loaded