Listing 119 reslayoutmainxml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Android CookBook RPC Demo" android:textSize="22dp" /> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent"

android:layout_height="wrap_content">

<EditText android:layout_width="wrap_content"

android:layout_height="wrap_content" android:id="@+id/value1" android:hint="0-30"></EditText> <Button android:layout_width="wrap_content"

android:layout_height="wrap_content" android:id="@+id/buttonCalc" android:text="GET"></Button> </LinearLayout> <TextView android:layout_width="wrap_content"

android:layout_height="wrap_content" android:text="result" android:textSize="36dp" android:id="@+id/result"></TextView>

</LinearLayout>

The AndroidManifest is shown in Listing 11.10. Inside the service tag, there is an extra attribute android:process=".remoteService".This asks the system to create a new process named remoteService to run the second activity

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook


Post a comment