Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onClick(View v)
- {
- Toast.makeText(SingleContactActivity.this, "Hej", Toast.LENGTH_SHORT).show();
- String url = "http://192.168.1.41:8383/android_butler/fjernnu.php";
- HttpClient client = new DefaultHttpClient();
- try {
- client.execute(new HttpGet(url));
- } catch(IOException e) {
- //do something here
- }
- <TextView android:id="@+id/name_label"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textSize="25dip"
- android:textStyle="bold"
- android:paddingTop="10dip"
- android:paddingBottom="10dip"
- android:onClick="onClick"
- android:clickable="true"
- android:textColor="#43bd00"/>
- <?php
- include('db.php');
- sqlsrv_query($conn,"DELETE * FROM butler");
- sqlsrv_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement