Skip to content

Content Tagged "android"

Page 1 of 6

Content Tagged "android"

Fix "Multiple dex files define L..." Errors

July 22, 2016Category: Software
Today I got an error when building the APK: Multiple dex files define L/... My scenario is that of a project with 2 modules: a core and an app . Both modules use a plugin named androiddevmetrics , which generate some code, including a class which has the same signature in both modules. The…

Material Drawer and Toolbar Options

April 15, 2016Categories: Software, Tutorial
The latest couple of days I've spent in adding the Excellent Material Drawer to one of my applications. In my case, the drawer is shown on the second activity in the workflow. Below, I'll outline my experiments. Preamble First, the requirements are: An android application with one (or more…

Intercept OkHttpClient Response for Debug

March 16, 2016Category: Software
I wanted to log the data retrieved by OkHttpClient for debugging purposes. After digging for a while, the process seems quite straight-forward now. First, we create the OkHttpClient : Then, we add an interceptor: The interceptor code is: The main thing to remember is that one the response has…

Access Data Files for Local Tests in Android

March 9, 2016Category: Software
TL;DR: Put your data files in test/resources and access it with: I've got an android application with a module performing data processing (HTML scraping in fact). This part is pure java and all its tests are in the src/test path. My particular problem is that I have a set of (large-ish) files…

GoogleApiClient .connect() Interface or Class

February 14, 2016Category: Software
TL;DR : If it's your code, check the version play services ( com.google.android.gms:play-services-\* ). If you're using a library, check if the library has a version using play services >= 8.1.0 . If not, you'll need to clone and upgrade it yourself. The other day I got an interesting error coming…

Hide Apps in Nova Launcher Drawer

January 28, 2016Categories: IT, Tutorial
TL;DR : Select Nova Settings -> App and widget drawers -> Hide apps (scroll down bit) -> select the apps you want to hide. I've noticed that my app drawer started to get cluttered with stuff I'm not really using (like the Audio FX stuff). since some of the things I can't remove (system apps…

Add Wear Notifications to Android App

January 24, 2016Category: Software
TL;DR : Use android.support.v4.app notification mechanism. Steps are: Create a WearableExtender: Extend the notification mechanism: Trigger the notification: After reading various sources , I got my application to send notification to my watch using the code above. At the beginning, I thought the…

Load Glyphs with LibGDX

January 3, 2016Category: Software
TL;DR : Remember to give the font loader the list of characters to render from the font! I'm trying to get a more resolution-independent mechanism to load simple shapes in place. After investigating SVG loading for several days I got nowhere. Then, I found out that libGDX actually supports vector…

Generate Amazon Underground Launcher Icons

November 26, 2015Category: Software
TL;DR : Use (adapt) the script below to automatically generate the Amazon Underground application launcher icons. I was toying with the idea to build an Amazon Underground version of one of my applications. According to their rules, you need to: Repackage your app Name custom permissions (Lollipop…

Picking Colours for Your Application

November 5, 2015Category: Software
While working to get a theme for my new app Epso View (Play and Amazon ), I've identified two types of websites: Inspiration (like dribbble or materialup ) Combinations (like colourlovers or materialui ) You can use the inspiration sites to get inspired; what colours work together, would…
Next

All tags