Community » Forums » Android - Examples > Development of an Android App - MyTwitter Part 1
February 1, 2010 11:14:39 PM PST (25 weeks ago). Seen 4,343 times.
Photo Serete Itebete
Member since Dec 23, 2009
Location: Oakland
Posts: 16
This is a sample android app that works with a twitter account and allows the user to post twitter account updates. The app will also automatically connect to twitter.com every once in a while to check for new friend statuses, and notify us of us.

The goal of this application is to illustrate all the major pieces of Android application development by implementing them in an actual app.

Project Overview
This is basically all the bits and pieces that we'll build as part of this project.


The application will encompass various android interfaces to make this happen.



Basic functions include the java file MyTwitter.java and auto generated basic AndroidManifest.xml files is the only file that has been changed.

Images files were dropped into the drawable folder- please refer to the source code for content.

MyTwitter.java
Code:

package com.example;

import android.app.Activity;
import android.os.Bundle;

public class MyTwitter extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}



AndroidManifest.xml at this stage only references the drawable files that have been dropped in the res/drawable folder. The notable change is the MyTwitter app icon on the desktop on the phone, it references to the new icon - twitter_icon

AndroidManifest.xml
Code:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0" package="com.example">
<application android:icon="@drawable/twitter_icon" android:label="@string/app_name">
<activity android:name=".MyTwitter"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>
<uses-sdk android:minSdkVersion="3" />

</manifest>



Source
http://marakana.com/static/tutorials/MyTwitter-Part1.zip
http://marakana.com/static/tutorials/twitter_icon.zip
Edited one time. Last edit by Serete Itebete on Jun 15, 2010 at 1:14:57 AM (about 5 weeks ago).
February 2, 2010 6:57:40 AM PST (25 weeks ago)
Photo DIA Mamadou
TCHAP
Member since Jan 27, 2010
Posts: 3
I think that you've forgot something
This is just a sample hello worldd code !!!
Mamadou
February 2, 2010 8:40:12 AM PST (25 weeks ago)
Photo Marko Gargenta
Marakana, Inc.
Member since Jan 19, 2007
Location: San Francisco
Posts: 90
Like the name suggests, this is just Part 1 of 5-part example to building a simple Twitter app for Android. Stay tuned for more...
February 2, 2010 8:48:15 AM PST (25 weeks ago)
Photo DIA Mamadou
TCHAP
Member since Jan 27, 2010
Posts: 3
ooh yea,
sorry

Merci
February 8, 2010 3:52:39 PM PST (24 weeks ago)
Photo Marko Gargenta
Marakana, Inc.
Member since Jan 19, 2007
Location: San Francisco
Posts: 90
I just posted the graph of the entire app. I hope this helps explain the development we're undertaking and how pieces fit together.
February 10, 2010 9:19:41 AM PST (24 weeks ago)
Photo Marko Gargenta
Marakana, Inc.
Member since Jan 19, 2007
Location: San Francisco
Posts: 90
Another diagram of this project, courtesy of Robin John, participant in Android Bootcamp:
http://marakana.com/static/tutorials/MyTwitterArchDesign.pdf