Profile

Cover photo
Jeff Sharkey
Works at Google
Lived in Mountain View, CA
3,349 followers|525,163 views
AboutPostsPhotosYouTube

Stream

 
MST3K Turkey Day Marathon!
12
1
Warren D.'s profile photo
Add a comment...

Jeff Sharkey

Shared publicly  - 
 
Richer access to secondary shared storage devices

In KitKat we introduced APIs that let apps read/write file in app-specific directories on secondary storage devices, such as SD cards.

We heard loud and clear that developers wanted richer access beyond these directories, so in Lollipop we added the new ACTION_OPEN_DOCUMENT_TREE intent.  Apps can launch this intent to pick and return a directory from any supported DocumentProvider, including any of the shared storage supported by the device.  Apps can then create, update, and delete files and directories anywhere under the picked tree without any additional user interaction.  Just like the other document intents, apps can persist this access across reboots.

This gives apps broad, powerful access to manage files while still involving the user in the initial selection process.  Users may choose to give your app access to a narrow directory like “My Vacation Photos,” or they could pick the top-level of an entire SD card; the choice is theirs.

To make it easy for developers to transition to these new APIs, there’s a new DocumentFile support library class.  It looks and feels just like a traditional java.lang.File object, which makes it easy to adapt existing code:

http://developer.android.com/reference/android/support/v4/provider/DocumentFile.html

These new APIs aren’t just limited to shared storage; they can be used with any DocumentsProvider that adds support for Root.FLAG_SUPPORTS_IS_CHILD, such as the advanced Vault example:

https://android.googlesource.com/platform/development/+/android-5.0.0_r2/samples/Vault/src/com/example/android/vault/VaultProvider.java#258

#android   #sdcard   #psa  
97
62
Ahmed Motawakiil's profile photoAbderrahim Khalek's profile photoJeff Harris's profile photoZhixin Liu's profile photo
54 comments
 
+Achwaq Khalid my understanding is that the possible user case for this INTENT is that asking user to choose the folder for storing the captured images first. Sometime its good if you want to give user this kind of flexibility. But for my own camera app, I would not bother user and would like to save the images into my specific folder (for some reason, I will not allow user to change it). Plz let me know if my understanding on that is not correct.
Add a comment...
 
I recently backpacked the Lost Coast Trail with a few friends.  It's a treacherous 26 mile stretch of wilderness along the Pacific Ocean, but when the weather cooperates it can be stunningly beautiful.  #lostcoast #backpacking
26
Kenny Root's profile photoJeff Sharkey's profile photo
2 comments
 
+Kenny Root you weren't at your desk when I walked by  :P
Add a comment...
 
Tycho is a great local band, so it's sweet to hear them playing at #io14 #ambient #trippyjellyfish
16
Matthias Friedrich's profile photo
Add a comment...
 
Heading up to #io14 for keynote via #caltrain. I'll be around #android office hours on both days, so stop by and say hello!
14
Simon Wilson's profile photo
 
You might make it in time for the end of the show if you are relying on Caltrain!
Add a comment...

Jeff Sharkey

Shared publicly  - 
 
 
The correct way to read "Java: Concurrency In Practice."
27 comments on original post
90
14
Luigi Massa Gallerano's profile photoFazle Rabbi Tanjil's profile photo
Add a comment...

Jeff Sharkey

Shared publicly  - 
 
Color grading!

I built a NAS server recently, and I wanted to get some nice blinkenlights footage before installing it.

So I grabbed a lens with some nice shallow DoF, and fidgeted around with lighting, but I still wasn't happy with how it looked.

It all came down to colors, and +Patrick Sharkey recommended I check out DaVinci Resolve.  I was blown away; it's an incredibly powerful color grading suite, and it's free!

http://www.blackmagicdesign.com/products/davinciresolve

It supports selecting regions based on color thresholds, motion tracking, and more.  I ended up with a pretty straightforward 6-node graph, and all the processing was offloaded to my GPU.

Here's the final footage, with the original to compare against:

[after] NAS (post color grading)
[before] NAS (original)
4
1
Anthony Colangeli's profile photoJeff Sharkey's profile photoMaximilian Salomon's profile photoInderjit Gill's profile photo
3 comments
 
Looking good. :)
Add a comment...
Have him in circles
3,349 people
Scott Rattray's profile photo
Ran Nachmany's profile photo
Christoffer Hirsimaa's profile photo
nagendra ponakala's profile photo
Markus Bösling's profile photo
Terry Karungi's profile photo
Vita Vidaurre's profile photo
陳煥中's profile photo
Quincy Dawson's profile photo
 
+Chad Brubaker and team just released a neat tool to help developers catch poor/broken usage of SSL in Android apps.  If you're protecting user data flowing over the network, this is definitely worth a look.

"The Android Security Team has built a tool, called nogotofail, that provides an easy way to confirm that the devices or applications you are using are safe against known TLS/SSL vulnerabilities and misconfigurations. Nogotofail works for Android, iOS, Linux, Windows, Chrome OS, OSX, in fact any device you use to connect to the Internet. There’s an easy-to-use client to configure the settings and get notifications on Android and Linux, as well as the attack engine itself which can be deployed as a router, VPN server, or proxy."

http://googleonlinesecurity.blogspot.com/2014/11/introducing-nogotofaila-network-traffic.html

#android   #ssl   #security  
9
4
Eric Hung's profile photoPavel Lašta's profile photo
Add a comment...
 
When hiking the Lost Coast Trail, we tried timing to avoid high-tides but we still had three places where we had to scramble around large rock formations to move forward.

On the final day we had 15' ocean swells, which made this one pretty intimidating!  #lostcoast #backpacking
6
Jamie Huson's profile photo
 
awesome! I want to hike that trail now!
Add a comment...

Jeff Sharkey

Shared publicly  - 
 
40TB ought to be enough for anybody, right? #nas #sas #rackable
17
1
Jeff Sharkey's profile photoJake Weisz's profile photoMike Wallace's profile photoChris Wren's profile photo
4 comments
 
Nobody will ever need more than 640kb
Add a comment...

Jeff Sharkey

Shared publicly  - 
 
The keynote line has now lapped the building 3x!? +Dan Sandler #insanity #io14
15
2
Evelio Tarazona Cáceres's profile photoChris Nesladek's profile photoShinichi Ogawa's profile photoPieter-Jan Vandormael's profile photo
5 comments
 
+Jeff Sharkey y lunch?
Add a comment...
 
Backcountry tracks

Fresh backcountry tracks off Two Sentinels near Kirkwood, CA on closing weekend 2014.  I'm not crazy enough to go off-piste, but maybe someday.
9
1
Amar Gandhi's profile photovaibhav limbasiya's profile photokpacu nacka's profile photo
2 comments
 
I hope it would be very interesting visit such an amazing place on the http://earth.it's really stunning if I get a chance i would like to surfing on it....
Add a comment...
People
Have him in circles
3,349 people
Scott Rattray's profile photo
Ran Nachmany's profile photo
Christoffer Hirsimaa's profile photo
nagendra ponakala's profile photo
Markus Bösling's profile photo
Terry Karungi's profile photo
Vita Vidaurre's profile photo
陳煥中's profile photo
Quincy Dawson's profile photo
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Mountain View, CA
Work
Employment
  • Google
    Software Engineer, present
Basic Information
Gender
Male