Test on new server

May
28

Test

Android Counter

Aug
31

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"
		xmlns:android="http://schemas.android.com/apk/res/android"
	    android:orientation="vertical"
	    android:layout_width="fill_parent"
	    android:layout_height="fill_parent"
		>
 
		<textview android:gravity="center_vertical|center_horizontal"
			android:text="0"  android:id="@+id/count" 
			android:layout_width="fill_parent" 
			android:layout_height="fill_parent" android:textSize="200sp"/>
</linearlayout>

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;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
 
        //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
        tView.setOnClickListener(this);
        tView.setOnLongClickListener(this);
    }
 
        //click tied to the listener
	@Override
	public void onClick(View v) {
		numCount += 1;
		tView.setText(String.valueOf(numCount));
 
	}
 
        //long click tied to listener
	@Override
	public boolean onLongClick(View arg0) {
		numCount = 0;
		tView.setText(String.valueOf(numCount));
		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"
      package="com.swfitgood"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">
        <activity android:name=".Main"
                  android:label="@string/app_name">
            <intent -filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent>
        </activity>
 
    </application>
    <uses -sdk android:minSdkVersion="8" />
 
</manifest>

Pretty Easy Hu? :)

Flash Dynamic Audio Coming Soon

Aug
26

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

Jun
24

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

Feb
27

guitarsynth

Andre Michelle has created a guitar synth that sounds AMAZING.

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

http://lab.andre-michelle.com/karplus-strong-guitar

Abstract Thermometer AIR app

Jan
22

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

Jan
19

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

Dec
31
  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

Dec
29

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?

Dec
25

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