AllOnline.se

A place to dig into Andriod Apps

Flower

Toggle Button Selector

Add this to drawable

<selector xmlns:android=”http://schemas.android.com/apk/res/android”>
<item android:state_checked=”true”
android:drawable=”@drawable/android_focused” /> <!– pressed –>
<item android:drawable=”@drawable/android_normal” /> <!– default/unchecked –>
</selector>

and add android:background=”@drawable/toggle”/> to your main.xml layout file.

Problem in Tab Layout tutorial

When doing the tab layout tutorial at http://developer.android.com/resources/tutorials/views/hello-tabwidget.html I have noticed that it missed a part. The part that is missing is the Manifest file update that needs to be updated.

Here is what you need to add

In the <application android:icon=”@drawable/icon” android:label=”@string/app_name”>… ADD HERE … </application>

Add the following lines:

<activity android:name=”.ArtistsActivity”></activity>
<activity android:name=”.AlbumsActivity”></activity>
<activity android:name=”.SongsActivity”></activity>

Then your ready to go. Good luck!

Create Apps by hand coding

Well, after playing around with App Inventor I realize that it is limited in the way you can use it and if your really want to create advanced apps you will need to code them. Surley this is not a problem for experienced Java developers, but there is always the problem with learning a new SDK.

On this site: http://developer.android.com/resources/tutorials/hello-world.html

There is alot of tutorials, to walk through. I have done some of them now.

More Tutorial on Andriod

https://sites.google.com/site/appinventorresources/home/tutorial-topics

I liked the TineDBWeb tutorial. Just need to setup my env to produce my own web service to utilize.

I am thinking of installing a VirtualBox with Ubuntu linux on it, since I am running windows and do not want to make it dirty with things.

http://www.virtualbox.org/ and http://www.ubuntu.com/

Work Around – Multiple Screen problem in App inventor

I found this link, might be useful:

http://theunlockr.com/2010/09/01/google-appinventor-how-to-create-multiple-screens-for-your-app-as-best-we-can/

QuizMe – Simple quiz app

This app just goes through the if / else statement within appinventor – OK but boring.

Coolthing is that you can install the app now also buy using the barcode scanner in your phone!!! scan the image below and it will install it =)

MoleMash

First game – added on a few rules to the game:

Rule 1. hit the mole to score

Rule 2. miss the mole reduces score with 1

Rule 3. when score is 10 then move to the next level. The mole moves faster!

Get it here: MoleMash.apk

In the block designer:

This were the last basic tutorial – now time for some food before getting dirty in the ADVANCED STUFF ;-)

Do this first

Hi,

I noticed when setting up app inventor that it is best to enable your phone first, since you will try to connect to it when installing on your PC.

http://appinventor.googlelabs.com/learn/setup/phone.html

/Peter

Next upp Drawing on a cat, fantastic!

Just followed this tutorial: http://appinventor.googlelabs.com/learn/tutorials/paintpot/paintpot-part1.html

Here is the result: PaintPotv2.apk

Cheers!

/Peter Atthem

My first Android App

Hello Gizmo, just followed the andriod tutorial. Very nice!

You may download it here: HelloKitty