Butterknife - A viewbinding tool for Android

Are you tired of writing findViewById(R.id.view) everywhere in your app where you are dealing with views? There is a tool by Jake Wharton at Square, called Butterknife that uses annotation processing to generate this boilerplate code for you. It can do field and method binding for your views, which can save you a lot of typing, and make your code a tad cleaner. Installation This is the easiest part ever. Add Butterknife to your app with Gradle.

» Read more

Easily add device frames to your Android app screenshots

If you have an app that you want to showcase by taking screenshots, you can easily make it look more appealing by adding the correct device frame around the screenshot. Fortunately, this is easy to do. Method 1: Using the Android developer website On the Android developer website there is a page where you can drag and drop your screenshots onto one of the 5 Google devices, to automatically generate a screeshot with a frame, that you can just download.

» Read more

Debugging websites on mobile devices with Opera Mobile and Dragonfly

I have previously written about how you can debug mobile websites with a tool called Weinre. Now I will explain another way to debug sites, this time, with Opera Mobile, and Opera Dragonfly. I will be demonstrating this on a Galaxy S 2, with Opera Mobile 11.10 on Android  and Opera desktop version 11.50. This is Opera Mobile, not Mini, which is a different browser. This will not work for iPhone or iPad since Opera Mobile is not

» Read more

How to enable remote access to a MySQL database

If you need to access your mysql database remotely, which I did, you can create a mysql user that has access locally, and remotely. For example if you want to login and edit the database via HeidiSQL or other mysql tools. CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT OPTION; CREATE USER 'username'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION; These commands will

» Read more

How to easily debug websites on mobile devices with "Weinre"

If you do web development, chances are you sometimes need to fix something on the website adapted to mobile devices such as iPhone and Android. Debugging websites in a browser on a computer is easy with all the good tools available, such as Firebug in Firefox, Webkit inspector in Chrome and  Dragonfly in Opera. But mobile devices doesn’t have any such tool. What do you do then? That was my problem the other day, a div  element on the

» Read more

Easily zoom in during presentations etc in Windows using the built in Magnifier tool

If you are doing presentations for other people, recording your own screen, or just have a bit bad eyesight, this little tip may suit you well. Windows 7 has a built in program called Magnifier. This program allows you to zoom in on a specific part of the screen. To open the Magnifier tool, just hold your Windows key, and press + Theres also a couple of different viewmodes and options easily available from the menu.

» Read more

How to get extra storage on Dropbox

If you have 2 or more computers, and need to synchronize files and folders between them, you could do it with Dropbox. Or if you just need to share files or folders with others, for collaborate editing or file hosting for example. Here are a couple of tips to how to get even more free online storage! If you sign up with this referral link, you get 2250 MB of free storage, to use for backup, synchronization or whatever you

» Read more