Question: I am trying to add button attribute to my checkbox in android.
But the checkbox gets hidden in android 10 devices.
On removing the button attribute, the checkbox is displayed.  

What may be the root cause of the issue?

```
<CheckBox
                android:id="@+id/cb"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:button="@color/check_box_selector"
                android:checked="false"
                />

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:color="#00000000" android:drawable="@drawable/ic_checked" android:state_checked="true" />
    <item android:color="#00000000" android:drawable="@drawable/ic_unchecked" android:state_selected="false" />
</selector>

```

Answer: 
You have serious sql Injection issues. In any case you must call `ExecuteNonQuery()`. Try like:

```
strsql = " INSERT INTO [gdo].[dbd].[1Volcar1] VALUES (@param1,@param2);";
comando = new SqlCommand(strsql, conexion);
comando.Parameters.Add("@param1",SqlDbType.NVarchar).Value = lcodigo[i];
comando.Parameters.Add("@param2",SqlDbType.NVarchar).Value = lsuperficie[i];
comando.ExectuNonQuery():

```
You need to perform an execute action after you prepare your query. e.g.[SqlCommand.ExecuteNonQuery](https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlcommand.executenonquery?view=netframework-4.8).

```
System.Diagnostics.Debug.WriteLine(" La query que se va a hacer es: " + strsql);
comando = new SqlCommand(strsql, conexion);
comando.ExecuteNonQuery();

```

<https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlcommand.executenonquery?view=netframework-4.8>