Profile

Cover photo
Android Developers
732,260 followers|97,256,769 views
AboutPostsCollectionsPhotosYouTube
People
Have them in circles
732,260 people
xSonicBoomDXIx's Channel's profile photo
Kliff Le Roya's profile photo
Erick Reyes's profile photo
Brandon Gozick's profile photo
成皙's profile photo
Alexander Baez's profile photo
andrew aberdeen's profile photo
Isaac Johnston's profile photo
Jency Shepherd's profile photo
Story
Tagline
A place for Android developers everywhere to meet, share and discuss the latest on Android development
Introduction
This is the official Google+ home of the Android Engineering teams.

Android is a software stack for mobile devices that includes an operating system, middleware and key applications. 

The Android SDK provides the tools and APIs you need to develop applications on the Android platform. 

Stream

Android Developers

Shared publicly  - 
 
Episode 30 of the Android Developers Backstage podcast is now available!

This time, +Chet Haase and +Tor Norbye are joined by +Chris Banes (again!) to talk about the new Android Design Library, which was released at Google I/O 2015. Listen in to find out all about CoordinatorLayout, FAB, Snackbar, and more, more, more!

http://androidbackstage.blogspot.com/2015/07/episode-30-android-design-library.html
This time, Tor and Chet are joined by Chris Banes (again!) to talk about the new Android Design Library, which was released at Google I/O 2015. Listen in to find out all about CoordinatorLayout, FAB, Snackbar, and more, more,...
99
22
Rogen Alexandre Cardim's profile photoMnhl Daoud's profile photoOrlando Mele's profile photoJomar Tigcal's profile photo
2 comments
 
1
Add a comment...

Android Developers

Shared publicly  - 
 
Use colorPrimary to colorize your App Bar
Pro-tip by +Ian Lake 

The app bar [1], or action bar, is an iconic part of many Android apps, providing a consistent place for navigation affordances and frequent, important actions. But it can also be a great opportunity to bring some personality to your app. An easy way to do that is by using your branding color as the background of the app bar.

In fact, AppCompat makes this very straightforward using a technique of providing a color palette [2] for your app. While introduced in the Material themes added in Android 5.0, AppCompat makes this technique available to all Android 2.1+ devices.

If you’re using a theme such as Theme.AppCompat, you’d only need to add a colorPrimary attribute:
<style name="AppTheme" parent="@style/Theme.AppCompat">
<item name="colorPrimary">@color/primary</item>
</style>

And your App Bar will automatically be colored appropriately. You’ll note we’re using just colorPrimary and not android:colorPrimary as android:colorPrimary only works on Android 5.0 devices unlike the AppCompat provided colorPrimary. Just make sure you’re using the right theme so that the text and icons have enough contrast:
- Theme.AppCompat -> dark activity, dark app bar
- Theme.AppCompat.Light -> light activity, light app bar
- Theme.AppCompat.Light.DarkActionBar -> light activity, dark action bar

But perhaps you’ve already moved over to Toolbars (perhaps wrapped in the Design Library’s AppBarLayout [3])? In those cases, you’re probably using a Theme.AppCompat.NoActionBar or Theme.AppCompat.Light.NoActionBar theme and including those elements in your layout XML files. Thankfully, you can still take advantage of your colorPrimary using the format ?attr/colorPrimary:
<android.support.v7.widget.Toolbar
android:background="?attr/colorPrimary" />

This ?attr/ format allows you to pull any attribute out of your theme, making it easy to consolidate your theming into a single place and avoid finding/replacing across many files.

The other thing we’ve lost is our text coloring though - there’s no Theme.AppCompat.Light.DarkActionBar.NoActionBar. Here’s where a ThemeOverlay can prove incredibly helpful. ThemeOverlays, unlike a full theme, only seek to overlay the current theme, changing the few things they need to. For example, if we had a light theme but wanted a dark Toolbar, we could use:
<android.support.v7.widget.Toolbar
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
With just that change, our text and icons are now back to a white color - perfect for a dark Toolbar.

You’ll find a number of other colors you can and should add to your theme such as colorPrimaryDark for changing the status bar on 5.0+ devices to a darker branding color and colorAccent for a contrasting accent color designed to make elements such as a FloatingActionButton really pop out. If you’d want to learn more about AppCompat, check out our video on Consistent Design with AppCompat [4].

For now, bring some personality to your app by using colorPrimary to color your App Bar or Toolbar!

#BuildBetterApps

[1] - http://goo.gl/Meu1sE
[2] - https://goo.gl/EHaUMj
[3] - https://goo.gl/Wo1IBv
[4] - https://www.youtube.com/watch?v=5Be2mJzP-Uw
231
94
Pacific Prakash Regmi's profile photoAdeleh Najafi's profile photoPaul Núñez's profile photoJeroen Debois (Joen93)'s profile photo
10 comments
 
+Ian Lake​ Thanks.
Add a comment...

Android Developers
owner

Discussion  - 
 
 
100 days of Google Dev, Episode 30/100

Busting jank isn’t just about writing code that runs faster. The fastest code in the world can still grind to a halt if it tries to access the network or flash memory. +Ian Ni-Lewis describes how to find slow operations in fast code using Android’s Strict Mode API.

#GoogleDev100

https://goo.gl/YksDqO
1 comment on original post
12
4
HC ZHANG (脉脉不得语)'s profile photoJaydeep Wagh's profile photo
Add a comment...

Android Developers

Shared publicly  - 
 
Update on Eclipse Android Developer Tools

It is officially time to migrate to Android Studio. If you have not had time to migrate check out the details here: http://goo.gl/qUpfA5

#AndroidDev
207
91
Nestor Pallero's profile photoAjay Jones's profile photoMAR matusita's profile photoPriscila Apocalypse's profile photo
27 comments
 
+Vincenzo Petronio Thanx mate
Add a comment...

Android Developers

Shared publicly  - 
 
Reliable message processing with WakefulBroadcastReceivers
Pro-tip by +Joanna Smith

A common pattern used to process an incoming broadcast is for your BroadcastReceiver to start a service, often times an IntentService, to process the message. But what if that processing never happened?

I ran into this when I was using Google Cloud Messaging to deliver severe weather alerts to affected devices in a weather app: the message would be received and yet the notification wouldn’t fire. Tracing the bug led me to the following scenario:

The device would be idle, just chilling, doing it’s thing on the tabletop, while the screen was off. Then I would send the weather message to the GCM servers, which would pass it along to my device. This causes the device CPU to wake up and trigger onReceive().

The onReceive() method would then get excited to be called up to do its job, and so it would call startService() to trigger my IntentService. But in that moment between onReceive() finishing its work and the IntentService beginning, the CPU was being super protective of my device battery and was going back to sleep. This didn’t happen every time, but only occasionally. And it left me sitting there, staring at my device and wondering where my alert was!

And this, my friends, is the exact reason we created the WakefulBroadcastReceiver [1], a BroadcastReceiver that automatically creates a partial wakelock. So in onReceive(), instead of calling startService(), now I call startWakefulService(), and the system will take care of acquiring and holding the wakelock for me while my IntentService does its job, preventing the device from falling back asleep. Then, when the service is finished, I call completeWakefulIntent() to let the system know that it can release the wakelock because I’m done building my notification.

So, you may be wondering why would anyone ever use a BroadcastReceiver if the super cool WakefulBroadcastReceiver exists. And honestly, it comes down to your use case. How critical is your response to a message? If you are expecting immediate action, like a severe weather notification so that your users are informed of potential danger, you want to depend on that wakelock. But if your response is only relevant while the user is active on their device, you don’t need to worry, and you can stick with the classic BroadcastReceiver.

For more information on receivers, you can check out Managing Device Awake State: https://goo.gl/hU5tiR

[1] - https://goo.gl/GIjGvH

#BuildBetterApps
118
56
GDG Bangalore's profile photoTriet Bui Minh's profile photoSrikanth Reddy's profile photoHalyson Gonçalves's profile photo
9 comments
 
+Pranjal Dwivedi Free apps make money by selling advertising space in their apps, upgraded experiences, subscriptions, digital goods via In App Purchasing or physical goods using something like Amazon's Mobile Associates API (https://goo.gl/6NOz2b). I suspect there are no limits to how you can monetize your app, so long as it's good enough that people will want to use it for extended periods of time.
Add a comment...

Android Developers

Shared publicly  - 
 
M is for MIDI

Google is adding a MIDI API to the M release of Android. It will support USB MIDI devices, MIDI over Bluetooth LE, and virtual software based MIDI devices. Developers can try out the new API by downloading the preview release of M available here http://goo.gl/GMzEhB. Look for the “android.media.midi” package in the documentation.

#MIDI #AndroidAudio #AndroidMIDI #ProAudio
466
80
Aman Upadhyaya's profile photoEmanuel Raimundo's profile photoPriscila Apocalypse's profile photoRichard Sámela's profile photo
36 comments
Diego D
 
+akshay patel what does this have to do with MIDI ? Or are you just one of those help vampires who made SO a wasteland of bad questions ?
Add a comment...
Have them in circles
732,260 people
xSonicBoomDXIx's Channel's profile photo
Kliff Le Roya's profile photo
Erick Reyes's profile photo
Brandon Gozick's profile photo
成皙's profile photo
Alexander Baez's profile photo
andrew aberdeen's profile photo
Isaac Johnston's profile photo
Jency Shepherd's profile photo

Android Developers

Shared publicly  - 
 
Game Performance can improve tremendously when taking the hardware into account. Learn how to make CPU friendly code and optimize your cache by using Data-Oriented Design from our games developer advocate +Shanee Nishry #GameDev

http://goo.gl/GCKLGR
95
14
Pasquale Cerone's profile photoArk Aeus's profile photoOrlando Mele's profile photoเวิน บุนิน's profile photo
3 comments
 
Google 
Add a comment...

Android Developers

Shared publicly  - 
 
You've just spent your #LeapSecond reading this. You're welcome, #AndroidDev.
191
12
Mattia Aracne's profile photomsr rezaei's profile photoJimmy Sunnegård's profile photocharity mbarire's profile photo
7 comments
 
#Awesome  
Add a comment...

Android Developers

Shared publicly  - 
 
100 days of Google Dev, Episode 30/100

Busting jank isn’t just about writing code that runs faster. The fastest code in the world can still grind to a halt if it tries to access the network or flash memory. +Ian Ni-Lewis describes how to find slow operations in fast code using Android’s Strict Mode API.

#GoogleDev100

https://goo.gl/YksDqO
83
23
HÉCTOR HUGO ÁVILA GONZÁLEZ's profile photoAswathy Nath.J's profile photoCyrus Ramirez's profile photoBill Jordan's profile photo
 
If in mobile i simultaneously start 10 to 15 thread then how performance will be affected to Phone with RAM 1 GB or more ??
Data to be fetched from thread contains 5 fields containing Strings & double values..
Add a comment...

Android Developers

Shared publicly  - 
 
Learn how to get users to your app & tips for building your business by downloading the App Monetization Playbook from AdMob.
 
Download Making Money: The App Monetization Playbook

The future is bright for mobile apps and their developers, but the road to success isn’t always smooth. With challenges all along the way – in designing, developing, growing and monetizing mobile apps, the process can be overwhelming without the right tools and resources to help.

In a survey Google conducted last year, 25% of app developers had a hard time finding quality resources and support around monetization. That’s why we’re releasing a new eBook today called Making Money: The App Monetization Playbook.

We are thrilled to help bridge that gap for app developers like you by providing a detailed map of Google's tools and resources. Whether you’re part of a large company building multiple apps or you’re just getting started building your first app on your own, you’ll find helpful tips and best practices that you can use right away. Download a free copy here: https://goo.gl/EDPfhI
3 comments on original post
59
17
Vijay Vankhede's profile photoNight Sky79's profile photoGDG Bamako's profile photoazizkhan rajaliaqat's profile photo
 
Hello Sir, Please Give Me The HTC One M7 Gpe Stock Android 4.4 Rom..And Its Works On My HTC One M7 with Sense???..Because After Update to lollipop my beterry life get worse. so please help me..
Add a comment...

Android Developers

Shared publicly  - 
 
100 days of Google Dev, Episode 25/100

The Android M Developer Preview is here, find out what's included, how to get it, details on flashing Nexus devices and some important behaviors to test.

#GoogleDev100

https://goo.gl/WvdjH3
75
17
marieclaude berton's profile photoRussell Wheeler's profile photoIgor Erceg's profile photoPraman Liver's profile photo
6 comments
 
Sára Viktoria viki szuszi nekem teszik bruno Mars videót és teszik nekem teszik viki 
 ·  Translate
Add a comment...

Android Developers

Shared publicly  - 
 
Check out how Shifty Jelly was able to drive double digit sales growth for the leading podcast app on Google Play, Pocket Casts, by adopting #materialdesign and expanding to new platforms with #AndroidAuto and #AndroidWear

https://goo.gl/Pbfrj9

#GooglePlay #AndroidDevStory
85
12
Spencer Riddering's profile photoGoogle Australia's profile photoB A X T E R's profile photoRussell Wheeler's profile photo
5 comments
 
I knew and used Pocket Casts before they won their Material Design award and went all mainstream! #HipsterCommentOfTheDay  
Add a comment...
Android Developers's Collections