Menu

Tag: android

Material Design

How to set up your Android app project to use Material Design with AppCompat

AppCompat v21.+’s Theme.AppCompat extends Theme.Base.AppCompat which extends Theme.Platform.AppCompat which extends android:Theme.Material on 21+ devices (i.e. Android 5.0 Lollipop) so you only need to extend Theme.AppCompat to use Material theme if you are using the AppCompat v21 (or above) library.

First add compile ‘com.android.support:appcompat-v7:21.0.0’ to the dependancies section of your build.gradle file.

Android Studio

Google release Android Studio based on IntelliJ for Android Development

The new Android Studio based on the Community Edition of IntelliJ was released yesterday at Google IO. This replaces the ADT Bundle based on Eclipse released last year. It bring a new set of features and tools to make it easier to develop great Android apps. This video provides a walk through of the new features: […]

Android SDK ADT logo

Google release new ADT Bundle based on Eclipse for Android Development

Not long ago I was talking with a iOS developer friend of mine who told me that he had looked into Android development, but the installation process was confusing. To get started on developing for Android you had to separately download and install the Android SDK, Eclipse IDE and the ADT. By comparison Xcode the […]

Not an Android developer meme

How to enable developer options in Android

Google has hidden the developer options in Android 4.2 Jelly Bean upwards (Kit Kat, Lollipop and Marshmallow). This is to ensure that regular users of Android devices don’t accidentally enable options that may impact the user experience that are only intended for developers testing apps. Here’s how to enable developer options in 4.2: Go to […]

Android logo

How to fix the Android “Debug certificate expired” error

Upon installation, the Android SDK generates a “debug” signing certificate for you in a keystore called debug.keystore. A debug certificate is only valid for 365 days after which it generates a “Debug Certificate expired” error. To generate a new one you must delete the existing debug.keystore file. Its location is platform dependent. Delete your debug certificate […]

WordPress logo

How to detect mobile visitors in your WordPress theme or plugin

There are plenty of solutions for making your WordPress website mobile friendly. Most of them redirect to a separate mobile friendly theme. However this may be overkill for certain sites which just require a few minor changes to look right on a mobile device. This solution could be used for example to load a separate […]