Profile

Cover photo
Alex Lockwood
Works at Google
Attended Carnegie Mellon University
Lives in Lexington, MA
3,030 followers|938,914 views
AboutPostsPhotosYouTube+1'sReviews

Stream

Alex Lockwood

Shared publicly  - 
 
Read the third comment.
 
You guys can't be serious about this mockup, right?

This official Google mockup of Material Design on a music player looks very nice, but I don't see how this will work in the real world.

In the fictional land that many mockups live in, you see a lot of large, picture-based design like this. The problem with this design style in the real world is answering the question of "where the hell do you source these images from?" In the real world, no one has the 2560x1440 background art for millions of albums that this design depends on.

Google seems to want to actually do this for real, so where will the wallpapers come from? Will Google Play Music support attaching a wallpaper image for my uploaded music the same way it supports attaching album art? Will purchased Google Play songs come with a wallpaper now? Will this screenshot just never, ever really happen and Google will fall back to a blurred, blown up image or some stock background? This is from a material design session that encourages app developers to do this, where the heck are they supposed to get these images from?

This mockup looks incredible, but a big part of the reason it looks so good is because of how "hand made" and curated it is. I wonder what the vast majority of songs in this app would look like when it is made programmatically, instead of in Photoshop with pictures from a professional photographer. The result usually looks like ass, which is why you only see design like this in mockups, and not in shipping apps.
7
2
Wes Campbell's profile photoJesús Manzano Camino's profile photoJason Hamel's profile photoAlex Lockwood's profile photo
6 comments
 
+Alex Lockwood ha guess I got a little ahead of myself 
Add a comment...

Alex Lockwood

"Check out my app!"  - 
 
2048++

+Shannon Lee and I just released an app we've been working on for the past month or so. Let us know what you think in the comments, or +1/share this post to help us spread the word!

Our goal is pretty simple: to write the best 2048 app for Android. The app has a clean, colorful design and feels much smoother than most of the non-native/WebView 2048 apps that currently dominate the Play store.

Six game modes are currently available: 2048, 243, 16384, Blitz, Fibonacci, & 144. More coming soon! Google Play Games achievements/leaderboards are all supported as well, and your high scores are automatically synced across all your devices.

https://play.google.com/store/apps/details?id=com.alexjlockwood.twentyfortyeight

+Android Central +Android Community +Phandroid +Android Police +Android Authority 
2048++ is hands down the cleanest, most responsive 2048 app for Android.★ S...
8
1
Kyli Rouge's profile photoAlex Lockwood's profile photo101apps.co.za's profile photo
2 comments
 
not particularly fast, but good enough for some great fun! Nice aesthetics, too!
Add a comment...

Alex Lockwood

Shared publicly  - 
 
Not gonna lie, leaking screenshots is kinda fun.
15
Alex Lockwood's profile photoAdesh Atole's profile photo
3 comments
 
Naw... I messed up and forgot that I had the developer preview flashed on my N7. :)
Add a comment...

Alex Lockwood

Shared publicly  - 
18
4
Nanik T's profile photoRonald Ammann's profile photoAlex Lockwood's profile photoYehan Pemarathne's profile photo
5 comments
 
It's source code..I'm not excited until it reaches my Nexus 4.
Add a comment...

Alex Lockwood

Shared publicly  - 
 
Are Loaders a failed abstraction?

A general recommendation, when trying to create a framework for significant reuse, is to design and create three discrete implementations of the framework. If your framework can support three different approaches, the design is probably flexible enough to handle future implementations.

The Loader framework, at the end of the day, is designed around one implementation: CursorLoader. Period. There are no other concrete implementations of Loader in the SDK. In particular, the Loader framework has a contract that requires that implementations of Loader be able to deliver updated results automatically. While this is a lovely contract from the standpoint of users of the Loader framework, it makes things difficult for those who might create implementations of the Loader framework.

[1]: http://commonsware.com/blog/2014/03/31/cwac-loaderex-failed-abstractions.html
[2]: http://stackoverflow.com/q/20762514/844882
10
6
igor ganapolsky's profile photoDaniele Segato's profile photoheart goog's profile photoNick Bauman's profile photo
12 comments
 
Actually I used Loaders in many occasions.

- Loading DERIVED data from a Cursor
- Calling a remote service and getting the result [1]
- For direct access to SQLite database without going through ContentProvider [2]

In general when I want to do something asynchronously that should reflect a change in the UI.

What's really missing there is a way to notify the UI of the progress, you can still implement it by getting the current loader (if any) and queriyng for the state, but that's a little bit more convoluted.

The data change mechanism is something that you have to implement cause the Loader, by definition, should survive the Activity rotation, thus can't keep a reference to the Activity or would create a memory leak.

Maybe this wasn't the best possible implementation but I think it's fair and not the worst in Android ecosystem.

For instance I find a lot more annoying the way you have to handle cancelling of notification on notification action (on the receiver) cause it force the responsibility of handling the notification to be spread in different part of your app.

[1] This is useful when you want to show the result to the UI and do not have a persistent mechanism behind it that store the actual result. It's just handy.

[2] You can still rely on the ContentResolver notification for data change, see this reply I gave on stack overflow: http://stackoverflow.com/a/13824539/902276
Add a comment...
Have him in circles
3,030 people

Alex Lockwood

Shared publicly  - 
 
Activity Transitions & Sharing Views Between Fragments

I've been messing around with the new Activity transitions APIs in the developer preview. As you probably heard at Google IO and the video linked below, these APIs allow you to share/animate views across activities.

One problem I faced early on had to do with sharing views between fragments. For example, let's say we are transitioning from ActivityA to ActivityB, and that each activity displays its entire layout inside its own, self-contained fragment (FragmentA and FragmentB respectively). Now let's say there is a view in FragmentA and that we would like to animate it into FragmentB's view hierarchy using the new Activity Transitions API. It isn't immediately obvious how this should be done and for a while I was stuck trying to figure out how to get the activity transition to work in this case.

Eventually I discovered two solutions:

(1) If you must add the fragment programatically in your activity's onCreate() method, make sure you call the FragmentManager#executePendingTransactions() method to execute the FragmentTransaction immediately. Not executing the transaction immediately apparently causes the Activity transition to break.

(2) Declare the fragment inside the activity's layout file using the <fragment> XML tag. The Activity transition should run as expected (I assume the fragment transaction is executed immediately behind the scenes, similar to above).

Unfortunately, as of today there's very little documentation about the new Activity Transitions APIs in the developer preview... I'm sure that will change soon. Hopefully these hints can help someone until then. :)
24
13
Oğuzhan Alpaylı's profile photoSalvador Gómez's profile photoWade Reweti's profile photoScott Olcott's profile photo
5 comments
 
One of the Material sessions with +Chet Haase, Material Witness if I had to guess.
Add a comment...

Alex Lockwood

Shared publicly  - 
 
2048++

+Shannon Lee and I just released an app we've been working on for the past month or so. Let us know what you think in the comments, or +1/share this post to help us spread the word!

Our goal is pretty simple: to write the best 2048 app for Android. The app has a clean, colorful design and feels much smoother than most of the non-native/WebView 2048 apps that currently dominate the Play store.

Six game modes are currently available: 2048, 243, 16384, Blitz, Fibonacci, & 144. More coming soon! Google Play Games achievements/leaderboards are all supported as well, and your high scores are automatically synced across all your devices.

https://play.google.com/store/apps/details?id=com.alexjlockwood.twentyfortyeight
2048++ is hands down the cleanest, most responsive 2048 app for Android.★ S...
32
10
Michael Kuechenmeister's profile photoRiyaz Mohammed Ibrahim's profile photoAnder Webbs's profile photoAlex Lockwood's profile photo
11 comments
 
+Ander Webbs It wasn't planned, I swear! :)
Add a comment...

Alex Lockwood

Shared publicly  - 
 
Does anyone know what's up with the new XP points that are now displayed in achievements? I can't find it anywhere in the docs.

On a related note, is it now recommended to scale down achievement icons in size to avoid being cut off at the corners? Also can't find any documentation about this recent change.
3
Wolfram Rittmeyer's profile photoAlex Lockwood's profile photoRonald Ammann's profile phototobby o's profile photo
7 comments
 
+Alex Lockwood Oh I see. I just read the "don't care" part, not that they should be meaningful nonetheless :-)

I have to adapt those achievements for Ultimate Tic-Tac-Toe. There are two achievements even I haven't managed to get yet (one of these actually isn't possible as of now but will be with the final release).
Add a comment...

Alex Lockwood

Shared publicly  - 
 
Will be releasing a new app in the next few days... stay tuned!

Reshare to help me spread the word! :)
36
2
Paul Burke's profile photoVladimir Bjelakovic's profile photoMassimo Patti's profile photoAlex Lockwood's profile photo
2 comments
 
+Paul Burke Unless your app has anything to do with 2048, I think you should be fine. :)
Add a comment...

Alex Lockwood

Shared publicly  - 
 
Dafaq?!? 
24
Michal Podsedník's profile photoJuhani Lehtimäki's profile photoPatrick Bashizi's profile photoEddie Roseberry's profile photo
4 comments
 
Wow. Me too. Took me like five times to figure it out. 
Add a comment...

Alex Lockwood

Shared publicly  - 
 
TMI
 
Gooooooooaaaaaaaaaaaalllllll!!!......or not.

#goal   #androidl   #androidpolice  
24
7
Raj Mal's profile photoJavier Rueda's profile photo李海珍's profile photoArilson Carmo's profile photo
 
哈哈,so funny!
 ·  Translate
Add a comment...
People
Have him in circles
3,030 people
Work
Occupation
Software Engineer
Employment
  • Google
    Software Engineer, 2014 - present
  • Google
    Software Engineer, 2013 - 2013
    Google+ Android Platform
  • Google
    Site Reliability Engineer, 2012 - 2012
    Google App Engine
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Lexington, MA
Previously
Pittsburgh, PA - New York City, NY - Williamstown, MA - San Jose, CA
Contact Information
Work
Email
Story
Tagline
Blogger, Go Programmer, and Android Enthusiast
Education
  • Carnegie Mellon University
    Computer Science, 2011 - 2014
  • Williams College
    Computer Science, 2010 - 2011
  • Lexington High School
    2006 - 2010
Basic Information
Gender
Male
Links
Contributor to
Alex Lockwood's +1's are the things they like, agree with, or want to recommend.
TuneIn Radio
market.android.com

TuneIn é o rádio de verdade. Descubra, siga e ouça o que há de mais importante para você no vasto mundo dos esportes &amp; futebol, notícias, mú

Waze Social GPS Maps &amp; Traffic
market.android.com

Waze is one of the world&#39;s largest community based traffic and navigation apps. Join drivers in your area who share real-time traffic &amp; road

Triple Solitaire
market.android.com

Three deck variation of the classic three turn Solitaire, also known as Klondike, built specifically for tablets.Feature List: - Google Play

reddit sync pro
market.android.com

reddit sync pro is fast and beautiful way to enjoy reddit on the go. Easily sync your favorite subreddits for later offline viewing. Support

2048++
market.android.com

2048++ is hands down the cleanest, most responsive 2048 app for Android. ★ Six different game modes, including: 2048, 243, 16384, Blitz, Fib

I/O Hunt 2014
market.android.com

I/O Hunt is a location-based game you play at Google I/O 2014!Hunt for Alex, the Android Dog, who is playing hide and seek in Moscone Center

What's new in Android
www.google.com

Join us for a thrilling, guided tour of all the latest developments in Android technologies and APIs. We’ll cover everything that’s new and

Kim Jong-il's Sushi Chef Kenji Fujimoto
www.gq.com

We sent Pulitzer Prize-winning novelist Adam Johnson to meet Kim Jong-il's former sushi chef Kenji Fujimoto

Android SQLite Database with Multiple Tables Example
www.androidhive.info

Tutorial about using multiple SQLite in your android applications. An example of todo application database schema is explained with CRUD ope

Sonos Controller for Android
market.android.com

Sonos er et system bestående av HiFi-høyttalere og lydkomponenter, som er designet for å passe hvor som helst i hjemmet ditt. Systemet foren

Google I/O 2014
market.android.com

The official Google I/O 2014 app was built to be your co-pilot to navigate the conference, whether you're attending in-person or remotely.*

CardsLib Demo
market.android.com

WARNING: This is a demo app for a library project! -------------------------------------------------------------------------------------- Th

CardsLib Demo Extras
market.android.com

WARNING: This is a demo app for a library project! -------------------------------------------------------------------------------------- Th

Frequently Asked Questions
www.wtfpl.net

How do I use the WTFPL? Step 1. Download or copy/paste the full text of the WTFPL and distribute it with your work. A common file name for t

Gradle, please
gradleplease.appspot.com

Gradle, please. dependencies { // Google Play Services compile 'com.google.android.gms:play-services:' // Support Libraries compile 'com.and

Google I/O 2014
www.google.com

Design, develop &amp; distribute. Explore the themes of design, develop and distribute during Google&#39;s annual technology conference, as we share

24: Live Another Day
market.android.com

24: LIVE ANOTHER DAY is a thrilling new event series set to restart the ticking clock on the groundbreaking and Emmy Award-winning drama. Th

Bank of America
market.android.com

Bank conveniently and securely with Bank of America® Mobile Banking.* Enjoy a fast, optimized experience on your AndroidTM device. Features

Google I/O 2014
www.google.com

Google I/O 2014 brings developers together for an immersive, two-day experience focused on exploring the next generation of technology. Join

It's OK... meh.
Public - 10 months ago
reviewed 10 months ago
Yay, steak burger!
Public - 10 months ago
reviewed 10 months ago
2 reviews
Map
Map
Map