Skip to content

Content Tagged "android"

Page 5 of 6

Content Tagged "android"

Android: Make Your Notification even Sticky-er

October 16, 2014Category: Software
In my previous post , I've expanded things to make a notification sticky. This worked in my tests until yesterday, when I've found a new case where my notification would go away: Build an sticky notification as per the two previous posts Activate the notification - this will trigger the activity…

Android: Make Your Notification Sticky

October 14, 2014Category: Software
Following my quest from the previous article , I realised that my app would not be in the foreground, like an email, browser or a game might be, but it would work without any GUI, using something like a cron job. This is all nice and lovely, but I'm not fond of applications doing stuff behind my…

Android: Notifications with Custom Layout

October 14, 2014Category: Software
In the previous entries, I have managed to display a notification and make it sticky . Now, since the app I'm developing is supposed to be visible mainly through this notification, I wanted to see if I can customise the actual content. Yes, I know there are options by default, like: Small and…

Android: Display a Notification

October 13, 2014Category: Software
One of the applications I'm thinking about I want it designed like the notification-based applications you see out there (Light Flow from reactle comes to mind). To be able to do this, I first need the app to display a notification on the device as a first step. The code to trigger a notification…

Android Studio: Change the Cache Location (AndroidStudioBeta)

September 30, 2014Category: IT
Android Studio (AS) creates a directory .AndroidStudioBeta (which will likely be .AndroidStudio once it's launched officially). This happens for each user and looks like a cache directory, where local bits are stored. Unfortunately, the size of mine (after only a couple of projects) is of about…

Android java.lang.VerifyError and Boilerplate code

August 19, 2014Category: Software
TL;DR: Change the java version compatibility in your gradle file (see below) or remove Hugo references from your e.g. "debug" code in Velcro. The other day I discovered a bunch of template-based application generators for android. While they are very interesting and apply some of the best…

ELI5 - Injection Concepts

August 9, 2014Category: Software
TL;DR: Injection is the process to automatically initialise variables (or parameters) when building an instance. I'we tried to wrap my head around dagger for a few days until I realised I was missing actually the concept of injections in java (to my defense, I stopped using recent java releases…

Android - Speed up Building with Android Studio and Gradle

August 5, 2014Category: Software
I've noticed that building a small application with gradle is slow (in my case because I'm only starting with Android development and I compile stuff way too often). One of the things I found online was a way to speed up building by using the gradle daemon instead. From daemon's documentation…

Gradle and Proxy Authentication in Android Studio

July 28, 2014Category: Software
Update : This is obsolete as Android Studio is going to eliminate JVM arguments for gradle. See this post for a more future-proof approach . The other day I did an exercise to install Android Studio ("AS" henceforth) (0.8.4 at the moment of writing) and create a project with gradle in an…

Braindump: Save State on Activity Rotation Lifecycle - Android

July 1, 2014Category: Software
Now I'm trying to write a (more complex) Hello World application for Android following a bunch of internet resources . I've read that an Activity has a life cycle (create/start/stop/resume/pause/destroy). This makes sense, because most UI elements (also in other frameworks) can be viewed as…
PreviousNext

All tags