Motodev localization tool

I came across a post about a useful motorola localization tool for eclipse. First you have to download the MOTODEV studio. To install follow these directions: To Install (On OS-X): 1) Help > Install New Software 2) Paste this URL 3) Enter your free Motodev username and password 4) Select the Moto Dev Studio(As pictured) To Use: 1) First make …

Views and Animation Tips

I was working on some animations today and had a few problems. The first was an interesting scenario where I needed to get the height of an item that wasn’t going to be displayed when the screen first loaded. The problem was that any time I called the getHeight method I always got zero returned to me. After some hunting …

JS.LA Thumbnails from Videos using JS and HTML5

I was giving a lightning talk at the last JS.LA meetup. I was going to demo how to take a screen shot from a very clip. Unfortunately there was no audio so I didn’t get to show the Very Mary Kate presentation clip. The presentation was going specifically cover how to get a thumbnail from a video in html5 using …

SECURITY_ERR; DOM Exception 18

I was working with HTML5 and Javascript when I started getting this error from calling toDataURL on a canvas object. Turns out that browsers aren’t supposed to let you convert a movie to an image if the movie is considered dirty[source]. Movies are considered origin-dirty if they are coming from another server. For example this is origin-dirty: <video> <source src=”http://someotheraddress.com/video.mp4″ …

ViewServer

So the other day I was working on a project. I looked at the xml and thought that it could use some refactoring. I went to use the hierarchyviewer in the android sdk. Unfortunately the tool wasn’t working with my phone. Turns out that it doesn’t work with production phones! You need root for it to work. Fortunately there is …

Copying Intent Data

There is some confusion from an earlier tutorial I wrote about using urban airships push notifications. On one of the steps I have a function call to copyIntentData. This is a method I wrote. I glossed over it because I was focusing on urban airship configuration and felt that this topic fell outside the scope of tutorial. I have had …

Custom Button States

I wanted to make a ImageButton to appear differently depending on a variable. The ImageButton would behave more like a checkbox. I know that there are other options such as subclassing the CheckBox or ToggleButton. This was more of a curiosity. My use case was I had a loop button that I wanted to display a different image when it …

Hide filter popup

Filtering a ListView is easy. However, there is popup text that comes with it: I couldn’t find reference to getting rid of this popup text. I had to do some exploring to come up with the following: The code for that is: Filter lFilter = mDataAdapter.getFilter(); lFilter.filter(“Item to filter for”); Also to clear the filter: Filter lFilter = mDataAdapter.getFilter(); lFilter.filter(“”); …

Up, up, and away with Urban Airship

Update I have gotten a lot of feedback from this post. I am a freelance Android developer. If you get stuck or simply don’t want the headache of configuring push notifications. I can be hired. Forward This tutorial is for using Urban Airship’s Android push notifications service. They offer two different methods for enabling push notifications. One via their in …