meta data for this page
  •  

This is an old revision of the document!


Android Coding Questions

How to add question ?

Log into wiki, find this question (index) page, and add a question beginning the this page, after first headline.

  ==== My Problem ? ====
  How to get functionality X to work ?

How do I start another activity?

  startActivity(new Intent(this, MyAnotherActivity.class));

+ Don't forget to add lines in AndroidManifest.xml

How to add EditText fields to the table's cells?

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:scrollbars="vertical" android:layout_height="fill_parent"
	android:layout_width="fill_parent" android:stretchColumns="*">
	<TableRow android:id="@+id/tablerow0">
		<TextView android:text="Set"/>
		<TextView android:text="Reps" />
		<TextView android:text="Weight" />
	</TableRow>
	
</TableLayout>

How to save XML file after editing (f.e. adding new child) - what class to use?

How to answer a question ?

Just write a solution text into section, after question.

If solution is bigger that one paragraph size (having eg. couple screenshots), it is good idea document solution into separate page.

  Solution in [[separate page]]