Profile

Cover photo
Daniele Segato
Works at Neosperience
Attended University of Pavia
300 followers|298,287 views
AboutPostsCollectionsPhotosYouTube+1'sReviews

Stream

Daniele Segato

Shared publicly  - 
 
 
Android Design Support Library: bringing material design to life
The Design library brings a number of important material design components to all Android 2.1 or higher devices (http://goo.gl/KZBhH2). You’ll find a navigation drawer view, a floating label TextInputLayout, a floating action button, snackbar, tabs, and a motion and scroll framework to tie them together.

You’ll be able to build your navigation drawer’s items using a menu resource file and connect a TabLayout with a ViewPager with just a single call to setupWithViewPager().

AppBarLayout lets you set scroll flags to control how views such as your Toolbar scroll on and off the screen or extend it farther with CollapsingToolbarLayout to resize title text size, pin views as the app bar collapses, and add parallax effects - again just a few lines of XML.

With components that match the material design spec out of the box and the tools you need to provide rich behavior between views via the new CoordinatorLayout, the Design library gives you the building blocks needed to build a modern, great looking Android app without building everything from scratch.

#io15   #materialdesign   #supportlibrary   #AndroidDev  
78 comments on original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
Glide vs Picasso: two Android Image Library with very similar API

Glide is apparently suggested by Google

Main features pro Glide:
- Glide disk-cache all resize = faster to load -- this also makes more reliable transition between activities
- Glide automatically handle ImageView size and load the image accordingly (without specifying a resize)
- Glide automatically handle activity and fragments lifecycle
- Glide handle gif images

I still didn't tried Glide but I'll surely try it out at the first occasion!
In the passed Google Developer Summit Thailand, Google introduced us an Image Loader Library for Android developed by bumptech named Glide as a library that recommended by Google. It has been use
1
Marcos Trujillo's profile photo
 
Support Gif == Must win!
Add a comment...

Daniele Segato

Shared publicly  - 
 
Oh.. :) guess I'm not going bed just yet
Google Developers originally shared to I/O:
 
Download the Google I/O 2015 Android app! #io15  

Following the release of the I/O schedule last week (https://goo.gl/r6tlfc) on the I/O web app (https://goo.gl/xk3NcN), you can now also customize your schedule and plan your I/O experience via the Android app: https://goo.gl/yLE3bF

Feel free to switch back and forth between the I/O web app and the I/O Android app -- your schedule will always sync between the two. To remain even more in sync, you can enable the Google Calendar integration in the Android app settings to see your I/O schedule alongside your personal events, all in one place.  

In addition to the schedule, the I/O’15 Android app includes the agenda, a video library from past I/Os and an overview of the social conversations happening about the conference on both Google+ and Twitter. By indicating if you’ll be attending in-person or remotely, the app shows you only the content that’s relevant to you - this means onsite attendees are offered facilitated pre-event WiFi configuration and can browse the venue map, while the remote experience shows live streamed content (with closed captions and Cast support).  

New this year: inspired by Google Now, the Explore screen aggregates similar content in cards. We hope this will make it even easier for you to find interesting events to add to your schedule.

Every year we build and open source the I/O mobile app with the goal of providing the developer community with a canonical example of a well designed Android app. This year our development applies Android best practices across testing, architecture, and UI, as well as a full implementation of the material design library. More details about the open source to come soon!

The app release to all users on Google Play might take up to 24 hours, so check back in soon if you’re not seeing it yet.
25 comments on original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
 
A lot of perf tricks we use on Android are really workarounds for issues in Dalvik. ART (the runtime in Android 5+) has very different perf characteristics. I think the trick that's most likely to be affected is object pooling. Here's why:

Dalvik's allocator is surprisingly outdated. It is not designed for multicore systems. There's a single global lock for allocations and deallocations. This means that allocations are ridiculously expensive compared to ART, which has thread-local allocation. So avoiding allocations by object pooling can be a big win.

On ART, though, POJO allocations are super cheap. ART actually uses fixed-size object pools under the hood, and because they use C++ tricks that aren't available in Java (like inferring the pool from the address of the object), the cost is comparable to the cost of managing an object pool in Java. Based on code analysis, I expect allocations to be slightly slower and deallocations to be slightly faster than a good Java object pool implementation.

That's not the whole story, though. ART also has a significantly more sophisticated generational collection model. Objects with short lifetimes are incredibly cheap to collect. But because of the way ART does concurrent collection, arrays of references can be kind of expensive. The cost is roughly proportional to the amount of churn in the array, so an object pool that sees heavy use is actually more expensive than a set of short-lived allocations.

All of which means that on ART, pooling is not an automatic win. Instead, the rules for pooling become pretty much the same as any other runtime: pool objects that are either (a) expensive to create, or (b) expensive to destroy.

As I mention in APP season 2 episod 10, Paint and Paint-related objects satisfy both of those conditions. But most POJOs don't.
16 comments on original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
Texting is tacky. Calling is awkward. Email is old. Next time try Somebody ...
2
Add a comment...

Daniele Segato

Shared publicly  - 
 
Neosperience, the company I work for, sponsors this event! :)

If you are in the Milan area around 28 of May we will meet there!
1
2
Jacopo Rabolini's profile photoViola Sgarbi's profile photo
Add a comment...

Daniele Segato

Shared publicly  - 
 
 
Today we’re introducing a new program called Designed for Families, which allows developers to designate their apps and games as family-friendly. Participating apps will be eligible for upcoming family-focused experiences on Google Play that will help parents discover great, age-appropriate content and make more informed choices. Read more on the blog.

#AndroidDev   #GooglePlay  
13 comments on original post
1
Add a comment...
Have him in circles
300 people
Ronald Ammann (ramdroid)'s profile photo
Michele Scaramal's profile photo
Matteo Foppiano's profile photo
Xavier A's profile photo
Simonetta de Brumatti's profile photo
Wolfram Rittmeyer's profile photo
Pablo Cerdà Zbinden's profile photo
Andrea Massa's profile photo
Evelio Tarazona Cáceres's profile photo

Daniele Segato

Shared publicly  - 
 
Google Developers originally shared to I/O:
 
The tools in the new Google Identity Platform can help you cut friction out of every step of getting people signed in to your app or site. Here’s what’s in it:

New - Smart Lock for Passwords: An API that recognizes and pre-fills login credentials across devices. Your users can save their password and never be asked for it again on. Try it out on +The New York Times, +Eventbrite, +Instacart, +Orbitz, +Netflix and +LinkedIn's Android apps or sites (on Chrome) today.

Google sign-in: An updated Google branded sign in is now available for your app and site. The NYTimes has seen a 20% increase in signed-in usage of their site after implementing this.

Identity Toolkit: Just getting started with an app? Check out our authorization solution in-a-box.

Visit developers.google.com/identity to learn more.
View original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
Interesting.. Apparently android sharedPreferences leak threads..

This library promise better performance and solve this issue.. I think I'll give it a try
 
Using SharedPreferences? Not satisfied? Solution found! Another great library for Android Developers:
https://github.com/OleksandrKucherenko/UnifiedPreferences

Why to use? By one code line you can improve your SharedPreferences performance in up to x100 times for low-end devices and resolve several well known android SharedPreferences issues.

Benefits / Design Goals
Improve performance of the SharedPreferences on low-end devices
Fix issue with threads (Each instance of SharedPreferences creates thread which is never destroyed). 'Storage' can have only one 'save thread' for a process now.

Give ability to implement any custom de-/serialization of the data. Storage serialization can be replaced by any implementation you prefer: DB, JSON, etc.

Statistics collecting, allows to collect some runtime counters/metrics during class usage

Ability to store data in sqlite database

Improved ability to store long strings in SharedPreferences
Memory 'storage' pool. Creation of new instance of SharedPreferences is cheap.

'Storage' pool based on weak references. Polite to memory usage.
Save of storage in background thread only.

Save threads change own priority based on thread queue size.
Actions Factory - allows to customize deeply modifications of the preferences.

Implemented CommitsListener - allows to monitor in memory commit transaction.

Custom names for save background threads. Easy to identify who created the thread and control it lifetime.

Save to Disk Thread Pools max size is polite to device resources. CPU Cores count influence on Max number of available threads in thread pool.

Merged save transactions, multiple Apply calls merged into one save to disk operation.
View original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
Sebastian Kaspari originally shared to Android:
 
Wow! This looks like an awesome tool to detect memory leaks. Square saving the day again. #androiddev
Nobody likes OutOfMemoryError crashes. In Square Register, we draw the customer's signature on a bitmap cache. This bitmap is the size of the device's screen, and we had a significant number of out of memory (OOM) crashes when creating it. We tried a few approaches, none of which solved the ...
View original post
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
The last App I've worked on is out! Available for #Android  (4+) and #iPhone  

Somebody is a messaging App to send a message to your friends through a third person, the messenger, "somebody". Somebody will bring your message personally to your friend performing the message verbally.

Since this is the first release and there is still no user in it to test it out you'll have to convince at least two friends to use the App, the messenger will need to be close to your friend for you to see him as possible person to deliver the message!

I developed the Android version working in, from bottom to top[1], and part of the services. The App has been commissioned by Miu Miu and Miranda July.

Try it out and let me know what you think about it!
And share if you want, the more people use it the better!

[1] Actually the UI and UX has been provided by +Viola Sgarbi (thank you!)

Also thanks to +Janos Tolgyesi that worked with me in the tech analysis and services architecture

#SomebodyApp  
Somebody is a messaging service created by Miranda July with support from Miu Miu. When you send your friend a message through Somebody, it goes — not to your friend — but to the Somebody user nearest your friend. This person (likely a stranger) delivers the message verbally, acting as your stand-in.
1
Add a comment...

Daniele Segato

Shared publicly  - 
 
This is huge
 
App indexing (g.co/AppIndexing) has been helping you drive engagement with your app for a little while — we now have 30 billion links within apps indexed. Starting this week, you can also drive discovery with people who don’t have your app installed yet. If you’ve implemented App Indexing, when indexed content from your app is relevant to a search done on Google on Android devices, people may start to see app install buttons for your app in search results. Tapping these buttons will take them to the Google Play store where they can install your app, then continue straight on to the right content within it. 

With the addition of these install links, we are starting to use App Indexing as a ranking signal for all users on Android, regardless of whether they have your app installed or not. We hope that Search will now help you acquire new users, as well as re-engage your existing ones. To get started, visit g.co/AppIndexing.

#AppIndexing   #AndroidDev  
30 comments on original post
1
Add a comment...
Daniele's Collections
People
Have him in circles
300 people
Ronald Ammann (ramdroid)'s profile photo
Michele Scaramal's profile photo
Matteo Foppiano's profile photo
Xavier A's profile photo
Simonetta de Brumatti's profile photo
Wolfram Rittmeyer's profile photo
Pablo Cerdà Zbinden's profile photo
Andrea Massa's profile photo
Evelio Tarazona Cáceres's profile photo
Education
  • University of Pavia
    Computer Science, 2002 - 2008
  • ITIS Q.Sella Biella
    Liceo Scientifico Sperimentale Progetto Brocca, 1997 - 2001
Story
Tagline
I’m a programmer with a degree in computer science. I use Linux for fun and at work.
Introduction
I’m currently programming in Android and Java.
I use 
gentoo at home and debian at work.

I like anything technical, Manga and Anime.
Bragging rights
High school was fun, then I began to study... now it's fun, but more nerdy
Work
Occupation
I'm Software Engineer, an Android Programmer, Technical Architect and designer
Skills
Android, Java, Git, Linux, many other things...
Employment
  • Neosperience
    Software Engineer, 2011 - present
  • OpenReply
    Consultant & Technical Leader, 2008 - 2011
Basic Information
Gender
Male
Daniele Segato's +1's are the things they like, agree with, or want to recommend.
Manual Camera
market.android.com

Limited time offer! 50% off - only till the end of January!Important: This app takes full advantage of Lollipop's Camera2 API, and therefore

KIKO
market.android.com

Chiudi gli occhi e riaprili nel mondo di KIKO Rewards, un programma che premia la tua passione per KIKO e per il mondo della bellezza con in

Câmera do Google
market.android.com

A Câmera do Google captura fotos e vídeos rápida e facilmente e inclui modos de imagem criativos como Photo Sphere, Desfoque da lente e Pano

2048
market.android.com

The 2048 app is a fun, addictive and a very simple puzzle game. Join the numbers and get to the 2048 tile!HOW TO PLAY: Swipe (Up, Down, Left

Orario Treni PRO
market.android.com

Applicazione con widget per la consultazione degli orari dei treni italiani, ricerca treni e molto altro!☆ Comprende treni di Trenitalia, Tr

Thread Scheduling in Android
www.androiddesignpatterns.com

This post will give an overview of how thread scheduling works in Android, and will briefly demonstrate how to explicitly set thread priorit

Keyboard shortcuts - Hangouts Help
support.google.com

Format your messages Use the following keyboard shortcuts before you type a new message to add formatting. <th width=</table...

DevDrawer
market.android.com

DevDrawer is a widget based app for developers who are constantly installing / uninstalling / clearing data on their projects.I find myself

Publish an aar file to Maven Central with Gradle
gmariotti.blogspot.com

Publish an aar file to Maven Central with Gradle

Spaceteam
market.android.com

Do you like pushing buttons and shouting at your friends? Do you like discharging Clip-jawed Fluxtrunions? If you answered yes, or no, then

Ultimate Tic-Tac-Toe Online
market.android.com

Clean and simple Ultimate Tic-Tac-Toe against your friends! 9x9 boxes with an extra set of rules for extra fun! What is Ultimate Tic-Tac-Toe

PhotoHunt: End-to-end Google+ Platform sample application
developers.google.com

Google+ Platform; Quickstart. Android · iOS · C# /.NET · Go · Java · JavaScript · PHP · Python · Ruby · PhotoHunt Sample · Android · C# /.NE

Duolingo: Learn Languages Free
market.android.com

Learn Spanish, French, German, Portuguese, Italian, and English. Totally fun and 100% free."Among apps for learning or practicing a language

Hangouts (replaces Talk)
market.android.com

Hangouts brings one-on-one and group conversations to life with photos, emoji, and video calls for free. Connect with friends across compute

Android
plus.google.com

A place for Android fans everywhere to meet, share and get the latest on all things Android.

SwiftKey 3 Keyboard
market.android.com

Unlock your typing potential.✮✮✮50% off holiday sale✮✮✮Get SwiftKey 3 – the best keyboard on Android! #1 selling app in 38 countries - over

Camera ZOOM FX
market.android.com

★★★★★ "The Best Camera App for Android" - lifehacker ★★★★★>> "The Best Camera App for Android" - lifehacker >> "Grab this to show off to you

Si mangia bene ma non ci sanno fare. È un posto che consiglio per la cucina! strepitosa e abbondante. La moglie del proprietario però a volte è scortese e fuori luogo. Sorvoltate e andateci, merita davvero (chiuso nei week end). Consiglio risotto in cagnone e tris di dolci.
Public - 2 months ago
reviewed 2 months ago
Birreria storica, pareti con roccia a vista e atmosfera rustica ma elegante. La birra è ottima e a buon prezzo! Pizze e ristorante eccellenti! Provate le specialità alla birra! Ottima anche nel dopocena! Se ci andate a cena consiglio di prenotare anche fra settimana perché son sempre pieni ;-)
Public - 2 months ago
reviewed 2 months ago
Mangiato da Dio! In 2 abbiamo preso panelle da dividerci, spaghetti Cassaro (acciughe, tonno, soffritto e pangrattato... 10+ ma quanto erano buoni?) e spaghetti alle vongole veraci. Un bel vinello bianco della casa, acqua naturale e caffè (offerto)! Il tutto a soli 27 euro.. Meno di 15 a testa e siamo andati via pieni (porzioni generose) e soddisfatti! Davvero ottimo! Sì trova a pochi passi dal palazzo di giustizia. La zona non è delle più belle (come molte a Palermo purtroppo) ma dentro è molto carino: muri con pietra a vista e soffitto in legno! Bagni puliti! Il proprietario molto simpatico e in gamba. Unica pecca abbiamo ricordato il vino a un cameriere perché non arrivava e chiamato per chiedere dei dolci e del caffè, ci avevano dimenticato :-P Ma sinceramente... Non é questo gran problema! Il cibo era fantastico e il prezzo incredibile! E poi c'era un cameriere al suo primo giorno, facilmente era dovuto a questo ;-) Non so valutare i dolci perché siamo arrivati tardi ed erano finiti. Anzi grazie per averci accettato quasi alle 15! Se siete da quelle parti fateci un salto ;-) io ci andrei tutte le settimane se non abitassi a più di 1000km ;-)
• • •
Public - a year ago
reviewed a year ago
4 reviews
Map
Map
Map
Una delle pizze più buone di tutto il biellese! Leggera e digeribile, gustosa e con ingredienti genuini. Ottima birra.
Public - 2 months ago
reviewed 2 months ago