killerkyle113
Lurker
ok i have the xml code down no problem and the premise for my program in my head but i can not for the life of me get the source to do what i want heres the xml code
i want the user to be able to enter an amount of time to wait till the phone turns off then after that time has passed the phone shuts off .... thats all i want it to do and any help would be appreicieated thanks
and heres a pic
Code:
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout
android:id="@+id/widget0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<DigitalClock
android:id="@+id/widget28"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="8:54 PM"
android:layout_x="126px"
android:layout_y="23px"
>
</DigitalClock>
<TextView
android:id="@+id/widget29"
android:layout_width="290px"
android:layout_height="wrap_content"
android:text="and i would like my phone to turn off in"
android:layout_x="37px"
android:layout_y="49px"
>
</TextView>
<TextView
android:id="@+id/widget30"
android:layout_width="66px"
android:layout_height="wrap_content"
android:text="Its"
android:layout_x="139px"
android:layout_y="6px"
>
</TextView>
<EditText
android:id="@+id/widget31"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hrs"
android:textSize="18sp"
android:layout_x="135px"
android:layout_y="78px"
>
</EditText>
<TextView
android:id="@+id/widget32"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hours and"
android:layout_x="126px"
android:layout_y="139px"
>
</TextView>
<EditText
android:id="@+id/widget33"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="mins"
android:textSize="18sp"
android:layout_x="131px"
android:layout_y="174px"
>
</EditText>
<Button
android:id="@+id/widget34"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Set "
android:layout_x="125px"
android:layout_y="270px"
>
</Button>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="EditText"
android:textSize="18sp"
android:layout_x="272px"
android:layout_y="-78px"
>
</EditText>
<TextView
android:id="@+id/widget36"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="mins"
android:layout_x="136px"
android:layout_y="233px"
>
</TextView>
</AbsoluteLayout>
and heres a pic