Profile

Cover photo
Akash Ramani
Attended PSG College of Technology
883 followers|1,169,356 views
AboutPosts+1'sReviews

Stream

Akash Ramani

Shared publicly  - 
1
Add a comment...

Akash Ramani

Shared publicly  - 
 
 
Doesn't look like there's going to be any middle ground for Suicide Squad. It will be either really good or really bad...
10 comments on original post
1
1
Add a comment...

Akash Ramani

Shared publicly  - 
 
 
A flowchart for background work, alarms, and your Android app
Pro-tip by +Ian Lake

For many apps, doing work in the background can be an important part of building a great experience. An alarm registered with AlarmManager (http://goo.gl/FtpShV) is one way to schedule your app to be run sometime in the future, even if your app isn’t in the foreground. What alarm type and API should you use for your app or are alarms even the best option? Let’s go through some of the factors that should influence your opinion:

How often do you want to trigger?
For events less than 60 seconds apart, alarms aren’t the best choice: use the much more efficient Handler (http://goo.gl/CE9vAw) for frequent work.

Want to set a user visible alarm clock?
On API 21+ devices, new APIs allow you to set a user visible alarm via setAlarmClock(): the system UI may display the time/an icon and apps can retrieve the next alarm clock with getNextAlarmClock(). Note that alarms set with setAlarmClock() work even when the device/app is idle (similar to setExactAndAllowWhileIdle()): getting you as close to an exact wake up call as possible. For backward compatibility, you’ll follow the same guide below for a single alarm.

Wake up the device/app while idle (i.e., doze, app standby)?
On Android 6.0+ (API 23) devices, additional power-savings optimizations (http://goo.gl/dVtgz6) have been added in the form of Doze (triggered by a completely stationary, unplugged, and idle device) and App Standby (triggered by an unplugged device on idle apps that haven’t been used recently). You’ll use setAndAllowWhileIdle() for inexact and setExactAndAllowWhileIdle() for exact alarms if you need it to fire an alarm while in these idle states. If it can wait until the user returns to their device/your app, use the standard set() and setExact() to be the best Android citizen and save your user’s battery.

(We’ll be talking more specifically about Doze and App Standby later!)

Just a single alarm?
A single alarm can be set with the aptly named set() method. One thing to keep in mind is that on API 19+ devices when you target API 19+, the system will be treated as inexact, potentially batching alarms together - the alarm will never go off before the time specified, but may go off afterwards. If you have some flexibility in the start time but have a hard deadline, consider using setWindow() to gain more control over the exact time period to be used.

You can use setExact() for a precisely timed single alarms on API 19+ devices, but use these only when the exact timing is required (such as with a calendar reminder).

Need to repeat at a constant rate?
For repeating alarms, batching is the key to good battery life. setInexactRepeating() does exactly that. Prior to API 19, you can use one of the INTERVAL_ constants (such as INTERVAL_HOUR to batch alarms of the same interval. On API 19+ devices, all repeating alarms (no matter what the interval) set with setInexactRepeating() will be batched.

You’ll note there’s also setRepeating() - similar to set() the behavior changes with API 19 from exact to inexact repeating alarms, meaning if you are on an API 19+ device and target API 19+, this functions identically to setInexactRepeating(). If you really need exact repeating alarms on API 19+, set an exact alarm with setExact() and schedule the next alarm once your alarm has triggered - keep in mind the battery implications though!

BUT WAIT: should you even use alarms?
If you want to be as battery efficient as possible (and you should!), consider using JobScheduler (https://goo.gl/CQjbsp) on API 21+ devices or GcmNetworkManager (https://goo.gl/CGNi3p) on all Google Play services enabled devices of API 9+.

Supporting both one off and periodic work, these APIs lack the ability to wake from idle, but gain the ability to wait for network access, wait until the battery is charging, take advantage of automatic backoff and retry, persist across reboots, and batch jobs across the system (meaning lower battery usage!).

That’s a lot of good reasons to use JobScheduler and GcmNetworkManager so consider them strongly in your push to #BuildBetterApps
83 comments on original post
1
Add a comment...

Akash Ramani

Shared publicly  - 
 
Watch this. Get #motivated  . Do something. You are welcome
1
1
Add a comment...

Akash Ramani

Shared publicly  - 
1
Add a comment...
Have him in circles
883 people
Harold Laranjo's profile photo
chitra raghunath's profile photo
Red Wolf's profile photo
Neelima Vinjmuri's profile photo
Thangaraj M's profile photo
Ayyakannu Arumugam's profile photo
Gayathri S's profile photo
Eshwar Danduri's profile photo
Rupesh kumar's profile photo

Akash Ramani

Shared publicly  - 
 
1
Akash Ramani's profile photoSathya Vasudeva's profile photo
7 comments
 
That's an interesting observation ....
Add a comment...

Akash Ramani

Shared publicly  - 
1
Add a comment...

Akash Ramani

Shared publicly  - 
 
There I was. In my bathtub, under the shower-head, crouched in tears as hot water poured over me, telling myself I was a complete failure as an entrepreneur and as a person.
1
Add a comment...

Akash Ramani

Shared publicly  - 
 
Our emotions influence every aspect of our lives — how we learn, how we communicate, how we make decisions. Yet they’re absent from our digital lives; the devices and apps we interact with have no way of knowing how we feel. Scientist Rana el Kaliouby aims to change that. She demos a powerful new technology that reads your facial expressions and matches them to corresponding emotions. This “emotion engine” has big implications, she says, and coul...
1
Add a comment...

Akash Ramani

Shared publicly  - 
5
Add a comment...
People
Have him in circles
883 people
Harold Laranjo's profile photo
chitra raghunath's profile photo
Red Wolf's profile photo
Neelima Vinjmuri's profile photo
Thangaraj M's profile photo
Ayyakannu Arumugam's profile photo
Gayathri S's profile photo
Eshwar Danduri's profile photo
Rupesh kumar's profile photo
Work
Occupation
CTO
Basic Information
Gender
Male
Apps with Google+ Sign-in
  • Checkers 2
  • Word Search
  • ∞ Loop
  • Rad Boarding
  • SimCity Mobile
  • WaveRun
  • Lara Croft GO
Story
Tagline
Equanimity
Education
  • PSG College of Technology
    MSc. Software Engineering, 2005 - 2010
  • The School K.F.I
    1993 - 2005
Links
Other profiles
Akash Ramani's +1's are the things they like, agree with, or want to recommend.
Zappos: Shoes, Clothes, & More - Android Apps on Google Play
market.android.com

Shop with our app and receive FREE 1-Business-Day Shipping when and where available.Ready? Set. Shop! It’s that easy on the Zappos.com app

Word Search – Android Apps on Google Play
market.android.com

This Word Search game (also known as Word Find, Word Seek or Word Sleuth) has more than 22000 puzzles distributed in 37 languages, 3 sizes a

Thomas Was Alone
market.android.com

Huge savings in the Bossa Holiday sales bonanza! All Bossa titles on offer from 23rd December to 4th January.Meet Thomas, a curious rectangl

Wordbase
market.android.com

Beat your friends at this challenging word game, and show off your superior vocabulary skills. The most fun you’ll have with words!“Challeng

Bleep (alpha)
market.android.com

Bleep, currently in alpha, is a private messaging app by BitTorrent that lets you make voice calls and send text messages over your wi-fi or

Journal (by Journey)
play.google.com

# Journal App with a Human TouchCapture life moments, from everyday thoughts to useful travel logs, Journey helps you to rediscover the joy

The evolution of Hugh Jackman's upper body - The Oatmeal
theoatmeal.com

More Stuff. Christopher Columbus was awful (but this other guy was not) · The DOs and DO NOTs of running your first marathon · Realistic Bat

Can Rational Arguments Actually Change People's Minds?
lifehacker.com

Are we, the human species, unreasonable? Do rational arguments have any power to sway us, or is it all intuition, hidden motivations, and va

Hitman GO
market.android.com

¡Consigue tu dosis diaria del Agente 47 con este impecable juego de estrategia de Hitman!Hitman GO es un juego de estrategia por turnos con

Million Lines of Code - Information Is Beautiful
www.informationisbeautiful.net

Is a million lines of code a lot? How many lines of code are there in Windows? Facebook? iPhone apps? Let our data-visualization program you

The Five Stages of Recovery - Skyd Magazine
skydmagazine.com

As (mostly) unpaid athletes, we sure put our bodies through the ringer for a sport that still lacks significant coverage, understanding, and

Exodus: Gods and Kings
www.imdb.com

An account of Moses' hand in leading the Israelite slaves out of Egypt.

Coursera
market.android.com

With Coursera, education is free, open, online - and now mobile!Coursera connects students, professionals, and lifelong learners everywhere

A State Of Trance
plus.google.com

The Official A State Of Trance G+ Page

Addicted to the Gym
plus.google.com

Fitness & motivation to get you to the gym and crush it.

500px: Best Photos
market.android.com

500px ("Five Hundred Pixels") is a premier photo community for everyone who loves inspiring photos. From portraits to landscapes, wildlife t

Nadella as Microsoft CEO: A slap in the face for Indian system
www.firstpost.com

We can feel a touch of pride at the elevation of Satya Nadella as Microsoft CEO, but it is also a slap in the face of our system which sends

Bootstrap 3
bootstrapuikit.com

This UI Kit contains all Twitter Bootstrap 3 UI controls in vector format, Glyphicons that come with Bootstrap and lots of bonus UI elements

It's a beautiful small waterfall, perfect for newbie explorers to climb up to the top. The access to the waterfall itself is filled with beautiful plants and views of the rivers filled with dead trees. Roots providing a huge life force for newer small plants are jus mind blowing!
Public - in the last week
reviewed in the last week
The first 40% of the hike is a little steep but once you cross that, do not give up, go to the end until you reach the top of the rock! It's a small hike and plenty of routes to take off from the main trail to explore on your own too. Good for medium experienced hikers.
Public - in the last week
reviewed in the last week
Public - in the last week
reviewed in the last week
It's a very old place, very unique structure of being able to lose your way and ticket counters being on a whole different level than the actual venue
Public - in the last week
reviewed in the last week
127 reviews
Map
Map
Map
Very good for an American Sunday morning filling lunch. Don't expect too much exquisite food though. It's borderline unhealthy stuff. People are definitely very friendly and deliver food on time even if it's crowded.
Public - in the last week
reviewed in the last week
Public - in the last week
reviewed in the last week
It's unbelievably beautiful! Definitely go visit the caves on the lava flow trail. You have to spend more than a day to really see the whole place! From really fine sand to not too long back lava rocks to beautiful rock formations to white rocks all within the same state park makes it a definite visit. Bring plenty of water and a torch if you are exploring the caves.
Public - a week ago
reviewed a week ago