SRL Archive - General

Making my Own Android App


xtrapsp

2013-05-09 05:17:17

Hey all,

I'm working on a semi-big android app for work, but for practice I am using tutorials to create small projects and this is my log book.

I have just installed the Java Eclipse ADT and am install patches etc.


I will now be setting up my virtual android device, the nexus 7 takes my fancy today :D

Some progress pictures:

So I'm waiting for it to boot up and nothing happens :P

To be continued

xtrapsp

2013-05-09 05:36:31


Got my Hello world App working! This is the XML:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >

<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginTop="40dp"
android:text="Hello World" />

<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:text="Press Me" />

</RelativeLayout>