Test on new server



Android Counter


I’ve been learning Android for various reasons. Though I’m primarily a Flash guy, I felt that I needed to learn Java. What better way to learn then to use it for Android apps. I’m currently not a fan of AIR for Android to build apps, we’ll see when it comes out. My current though is use AIR to get flash apps on the phone that are already built, but if it’s new, code native for Android. Games are another story.

Alright, let’s move on. I made a counter app when I was at FITC SanFran. I was Stage Manager and one of my duties was to count the number of people in room. This was hard to do on the first day cause people kept asking me question and I had to start over. That made me think of this counter.

Step 1: Setup your environment: http://developer.android.com/sdk/index.html

Step 2: Setup your view (res/layout/main.xml)

< ?xml version="1.0" encoding="utf-8"?>
<linearlayout android:id="@+id/mainlayout"
		<textview android:gravity="center_vertical|center_horizontal"
			android:text="0"  android:id="@+id/count" 
			android:layout_height="fill_parent" android:textSize="200sp"/>

Step 3: Write your code (src com.joshspoon.Main)

package com.swfitgood;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnLongClickListener;
import android.widget.TextView;
public class Main extends Activity implements OnClickListener, OnLongClickListener {
    /** Called when the activity is first created. */
	private int numCount = 0;
	private TextView tView;
    public void onCreate(Bundle savedInstanceState) {
        //link object to UI of TextView
        tView = (TextView) findViewById(R.id.count);
        //set up listeners for short and long press. The Main Activity is registered as the listener for the TextView
        //click tied to the listener
	public void onClick(View v) {
		numCount += 1;
        //long click tied to listener
	public boolean onLongClick(View arg0) {
		numCount = 0;
		return true;

Step 3: AndroidManifest.xml: has all the instructions for intents, startups and permissions

< ?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">
        <activity android:name=".Main"
            <intent -filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
    <uses -sdk android:minSdkVersion="8" />

Pretty Easy Hu? :)

Flash Dynamic Audio Coming Soon


I have been messing with audio in Flash the last couple of days, fresh off the creative high of FITC. I plan in the next couple of days to announce some projects. Stay tuned.

HOWTO Create a Facebook App using FlexBuilder


So for a couple of weeks, I’ve been messing around w/ building a simple app using Facebook. I decided to use the new ActionScript 3 API created by Adobe and Facebook. I wanted to do a little tutorial because some of this information is hard to understand since most of the API has definitions like, ” “.

In this tutorial I will show you how to login to Facebook, retrieve your friends list and populate a TileList with their pictures. Ok, let’s get started.

Read more »

Guitar Synth for Flash



Andre Michelle has created a guitar synth that sounds AMAZING.

It’s done w/o sampling audio, just math and FP10.


Abstract Thermometer AIR app


So over the last few months I’ve been messing around with Adobe AIR. The first thing that I worked on was what I was called at the time Abstract Weather Bug. I then noticed that the title was too long.

Look the title is not important. The way the this app works. Is you open the setting slider and enter in your zip, low and high temp scale, Fariehiet or Celsius, and the click GO.

You have the option to save your setting and intervals to which it will check the temperature again.

It then will display a color some were between a gradient of pure blue and red. Post coming soon explaining some of how to create a color scale.

I’m not really a designer (planning to work on that this year) so it doesn’t look awesome.

Objective-C Port of PureMVC


I wish I had a mac to try it out but you can now use PureMVC to build iphone apps w/ Objective-C.

I can’t wait till the get one for Android. So I can develop on me PC.

My 2009 Predictions

  1. Britney gets remarried.
  2. Amy Winehouse goes back to rehap.
  3. Steven Colbert majorly retools his show.
  4. An amemdment is passed for poligamy but not gay marriage.
  5. Another Hulk movie w/ another actor, again
  6. Flying cars

Johnny V now available on Adobe AIR Marketplace


Check it out, Adobe excepted my submission into the AIR Marketplace. I thought they’d give me crap about the uncleared picture of the actual Johnny Five from Short Circuit. Cool later.

Merry Christmas I’m not completely Tone Deaf?…am I?


If you have every wondered how I’d sound if I tried recorded an EP Christmas album for Disney Records, here is your chance. I had fun singing like a goof.

All songs created w/ Abelton Live, an AutoTune and/or lots of reverb and chorus.
Jingle Bell Rock
MerryXmas (War is over)
Wonderful Christmas Time