我想创建一个投票应用程序,其中有不同的职位,其中有两个职位每个都有两个联系人。我希望当我选择一个人记录到数据库。 [职位的disgn与它的参赛者部] 下面是XML代码的一部分:如何使用android studio将单选按钮的值保存到mysql数据库?
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:text="@string/posts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:id="@+id/textView3"
android:textStyle="normal|bold"
android:textSize="30sp"
android:layout_weight="0.03"
android:textAlignment="center" />
android:text="@string/chairman"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="31dp"
android:id="@+id/textView4"
android:textStyle="normal|bold" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:layout_weight="0.01"
android:id="@+id/Chairman">
android:text="@string/duncan_sirikwa"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton4"
android:layout_weight="1.23" />
android:text="@string/kosgei_kevin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton3"
android:layout_weight="1" />
2016-11-18
Dunn