Android Dev Mac Tech Web

Dealing with hosts on Android SDK Emulator – MAC OS X 10.8

I was getting some odd bugs with responsive design on some Android phones and need to test it. After spending an afternoon at the Shopping Mall annoying the everyone to let me test every Android phone I could find I decided to install the Android SDK on my MB Air running OS X 10.8

After some tweaks I managed to set the emulador working, there is plenty of tutorial online on that I couldn’t test my dev sites because I always use hosts and your localhost on the emulator (if using MAMP with port 80 or add the port after the ip eg

So my solution was:
As I use a define so I only change one file from dev to production I have a define for my WEB_URL the only question was to change that define:

	define("WEB_URL", "");	
	define("WEB_URL", "http://myhostname/");

BONUS TIP: Giving the Emulator localhost access

When you create a Avd you need to give it a name change myAvdNameHere to the name you gave Avd and this way you have access to localhost

emulator -avd myAvdNameHere -partition-size 128

More on this Emulator localhost acceess

Note to self:

cd ~/Development/android-sdk-mac_x86/sdk/tools/
./emulator -avd phone -partition-size 128

Tech Web

Gmail Cheat Sheet Wallpaper

gmail cheat sheet wallpaper 1920x1080
Click to view full size

I created this clipping from


What if I was to tell you I would remove the need for ads on your content…

would that be something you might be interested in?

Software Web

Why I don’t use Gmail Priority Inbox

priority inbox

This week Gmail has been rooling out a new feature called Priority Inbox.
After turning it on for 24 hours, I ended up turning it off. Why? Because I believe it clutters my inbox more than it helps.

Priority Inbox sections

The sections in wish Gmail divides Priority Inbox don’t seem to make a lot of sense.
For me:
Important and Unread = Unread
Starred = Read
Everything Else = Spam/Garbage

What is Everything Else!?

The one section I really dont like and also the one that you cannot remove (all others you can change or remove) is Everything Else.

All the emails that go to the Everything Else section can only be of 2 types:
-Spam and should be on the spam folder
-Important and should be out of this section

If I receive an email it must be important for me or else is spam/garbage.

Read Unread

All I need in my inbox are my unread messages so I can read them or the ones that I already read and need to come back.

All other messages should go to the archive, spam or trash. Isn’t that simpler than having some blue bars and emails changing place?

I simply love, adore and absolutely need Gmail

I don’t like this feature but Gmail is the only email client I can imagine myself using today. I love it, it’s my only suggestion to anyone in need of an email account and whenever my computer is on gmail is running on my browser.

BTW – making the Mark read, unread, starred, unstarred options go to a combox, not that smart also. Prettier but annoying.


Google Chrome View Source

IMHO view source from Google Chrome acts really odd.

When you click view source a new tab opens and the page is loaded all over again.

Maybe there is a very valid reason for this. But I cant find one. To me this can even be problem.


  • If you pass values via POST you cant get the results as Chrome does not re-POST it just issues a new request using GET and a new session. (I found a couple “Notice: Undefined variable” on some of my code, but this was my problem as I wasnt doing proper verifications) But anyway you never get the POST values and see the source for your page.
  • If you have a counter or random dinamic content you will never get to see exactly what you get on the rendered html you have on the initial tab.

A work around is to use “inspect element” but its not the same. Its great for some things but its not the same.

If someone finds a valid reason for this “view source” behaviour I would love to know.