Profile

Cover photo
Android Developers
729,028 followers|96,924,877 views
AboutPostsCollectionsPhotosYouTube

Stream

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
199
86
Said Meddas's profile photoMathilde Guillossou's profile photoRenan Barbioni's profile photoChandra Prakash (C P)'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
112
55
Leonardo Santos's profile photoThomas Cooper's profile photoGDG Bangalore's profile photoTriet Bui Minh's profile photo
7 comments
 
+Filip Maelbrancke Correct, for Google Cloud Messaging, the GcmReceiver is a WakefulBroadcastReceiver. However, many developers use BroadcastReceivers outside of GCM, or even may want to create their own custom receiver for use with GCM. I wanted to reach those developers to explain why a WBR may be more reliable than a standard BroadcastReceiver.
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
452
75
Burak Göncü's profile photoGDG Bangalore's profile photoJan Tyšer (xkingx007)'s profile photoMhar Perez's profile photo
34 comments
 
+Sajid Shaikh  The MIDI docs are buried. Here is how to find them.
Download and extract the Docs from http://goo.gl/GMzEhB and extract.
Open the "index.html" file with your browser. Click on "View the API Reference". Scroll down through the packages on the left to get to "android.media.midi". It links to a tutorial on the API.

Relative link is "m-preview-1-developer-docs/reference/android/media/midi/package-summary.html".
Add a comment...

Android Developers

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

Android M is bringing the power of Android to all kinds of workplaces.

#GoogleDev100

https://goo.gl/ALCT9Q
83
16
Abigail Cable's profile photoRussell Wheeler's profile photo
Add a comment...

Android Developers

Shared publicly  - 
 
Go for a run, improve your game, and explore the outdoors with Android Wear! This post by +Joshua Gordon highlights features that you can use to take your fitness app to the next level.

#AndroidDev #AndroidWear #GoogleFit #GoogleMapsAPI

http://goo.gl/LKEPbi
75
13
HYng Hwang's profile photoGilbert Algordo's profile photoGilbert Algordo's profile photoJohn Zhang's profile photo
2 comments
 
1 mile in 12:40?!? We're they walking?
Add a comment...

Android Developers

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

Calling new() inside of onDraw() is a good way to get nagged by Android Studio and Lint. But why would an allocation in onDraw() be worse than an allocation anywhere else? Ian Ni-Lewis explains why onDraw() is no place for new objects.

#GoogleDev100 #PERFMATTERS

https://goo.gl/0vFfnx
112
21
Ian Ni-Lewis's profile photoLionel Ros's profile photoScott Olcott's profile photoAlexandra Ionașc's profile photo
 
Que le isiero al pepo se ve como de goma y solo a me me desian boracho no mamen vean esa cara de boracho arepentido♥♥♥
 ·  Translate
Add a comment...
In their circles
32 people
Have them in circles
729,028 people
mario orta's profile photo
Brandon Gozick's profile photo
Mcgis Kenya's profile photo
Francisco Eudasio de Lima's profile photo
Faith Jennings's profile photo
Marcelo Quinteros's profile photo
Givengo Amadi's profile photo
Dustin Akers's profile photo
Derrick P's profile photo

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
58
15
Jackson Miras's profile photoIvo Encarnação's profile photoErick Vicente Agrazal Lopez's profile photoVijay Vankhede'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
71
17
marieclaude berton's profile photoRussell Wheeler's profile photoIgor Erceg's profile photoPraman Liver's profile photo
2 comments
 
Hello,
do you know how to write a mathematics formula under Android Studio please?
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
83
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

Shared publicly  - 
 
The Advanced Android App Development "Ask the Experts" live stream is starting in a few minutes! Join +Dan Galpin, +Ian Lake and Joanna Smith in discussion with +Reto Meier on the this new course with +Udacity. #AndroidDev   
118
15
Gabor Orosz's profile photoRobert Brital's profile photoAlfonso Vargas's profile photoGilbert Algordo's profile photo
18 comments
 
+J.J. Valenzuela The course material is free. For the nanodegree you wiil have to pay
Add a comment...

Android Developers
owner

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

Calling new() inside of onDraw() is a good way to get nagged by Android Studio and Lint. But why would an allocation in onDraw() be worse than an allocation anywhere else? Ian Ni-Lewis explains why onDraw() is no place for new objects.

#GoogleDev100 #PERFMATTERS

https://goo.gl/0vFfnx
1 comment on original post
18
3
Guillaume Imbert's profile photoKevin Tan Hong Ann's profile photo
Add a comment...

Android Developers

Shared publicly  - 
 
Advanced Android App Development "Ask the Experts" tomorrow, June 23, 2015 at 2pm PDT

Join +Dan Galpin+Ian Lake and Joanna Smith for a live discussion with +Reto Meier on the new Advanced Android App Development course with +Udacity.   

Have questions or interested to see what others are curious about? Submit or vote on questions at https://goo.gl/5zGQ2E

Can't make it? No worries, we'll be recording it and sharing it out afterward.

#AndroiDev   #Udacity  
 
Submit questions here: https://goo.gl/5zGQ2E

Last month at #io15  we announced a number of new Android courses with +Udacity, including Advanced Android App Development. This course is designed to teach you how to make your apps production-ready, and covers advanced tools and concepts, including material design approaches, image handling, performance profiling and more!

To help you learn more about the course, we're hosting our second "Ask the Experts" live streamed session! In this episode, join course instructors Dan Galpin, Ian Lake and Joanna Smith, in conversation with veteran instructor Reto Meier, to learn more about the origins of the course, benefits to developers, and how to get started. 

Live stream here: http://www.youtube.com/watch?v=M9AfkPhL5G4
11 comments on original post
83
14
Droidcon Greece's profile photoOrhan öcalan's profile photoRogen Alexandre Cardim's profile photopancrazio carbotti's profile photo
3 comments
 
Orhan öcalan
 ·  Translate
Add a comment...
Android Developers's Collections
People
In their circles
32 people
Have them in circles
729,028 people
mario orta's profile photo
Brandon Gozick's profile photo
Mcgis Kenya's profile photo
Francisco Eudasio de Lima's profile photo
Faith Jennings's profile photo
Marcelo Quinteros's profile photo
Givengo Amadi's profile photo
Dustin Akers's profile photo
Derrick P'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.