Skip to content

Content Tagged "android"

Page 3 of 6

Content Tagged "android"

My ProGuard Configuration Base File

May 28, 2015Category: Software
Following my previous proguard entry , I think it's useful to present my final proguard configuration. I'm starting with my base file (proguard-rules.pro), explaining it along the way (as much as I can understand). Proguard Set-up I have a normal project structure ( <fallpaper>/<app> ), and my…

Get Access to Files in Genymotion

May 26, 2015Category: Software
Genymotion is a fine emulator. I'm using it as any normal user and once in a while I need to get a file from the VM to analyse (a DB file or a trace usually). Normally, the way I go is via the Device Monitor (which, in turn goes via adb). Granted, this is the universal method (read: works both on…

Android AdMob Bug

May 23, 2015Category: Software
I'm trying to implement AdMob in my application as an exercise. I followed the tutorial to the letter (read: copy/pasted code from the sample into my app). I ended up with an activity, where onCreate() had the following code: and a layout like this: Pretty simple. However, I found that after…

ProGuard and Third Party Libraries - a Strategy

May 22, 2015Category: Software
Today I tried to compile my app for release with proguard . Previously, I skipped proguard, but now I wanted a lean package :). Soon, I got into a bit of a mess, because I noticed I have quite a few libs which need custom proguard rules. So, I ended up with one proguard file per library, included…

Android - More Speed up Building with Gradle

May 20, 2015Category: Software
In my previous post I described one thing you can easily do to improve the build speed, namely enabling the gradle daemon . In the meantime, things improved quite a bit: Gradle 2.4 (at the moment of writing) has better speed You can run things in parallel now like other build tools (e.g. make…

Fix CodeIris plugin in Android Studio

April 16, 2015Category: Software
TL;DR : For the combination of AS 1.2beta and CodeIris 1.13 beta, go to your .AndroidStudioPreview12/config/plugins/CodeIris-Idea/lib and remove your groovy-all jar file. I wanted to get an UML representation of my classes and one plugin I found was CodeIris . Unfortunately, when I tired to…

Material Palette Resources

April 7, 2015Category: IT
Today I wanted to change the colours of my app (still in alpha). Since I want to be material , I went looking for material links. Here are some things I found: A Stack Exchange question on how to programmatically generate a monochromatic palette materialpalette.com - cool material picker…

Better Toast in Android

April 2, 2015Category: Software
In my previous post , I've presented a Toast solution via a Handler and a Runnable . While that solution was a nice one and serves pretty well, I still got an exception. Therefore, I've decided to implement a builder-type wrapper to cover all situations: Direct : just display a Toast…

Attempted to Finish an Input Event ...

March 16, 2015Category: Software
... but input event receiver has already been disposed. This is the error I got while trying to do something off a menu in Android. Silly really. The message is not too revealing so I ended up scouring the net for an answer and scratching my head afterwards... With a service My problem was trying to…

Android: Provide Local Asset in Testing

March 13, 2015Category: Software
In the past few days I had a little bit of a problem: InstrumentationTestCase gives access to local assets while AndroidTestCase gives access to getAssets() for assets specific to testing. I had a scenario to test where I get a file from my local src/androidTest/assets directory while the code…
PreviousNext

All tags