Hi all.
i have in my Card Sim 3 contact ( name, number, email ).
Now.. i utilize this code:
The Query is:
But i have all value present in SIM Card, where i wrong ???
Thank you all
Marco
i have in my Card Sim 3 contact ( name, number, email ).
Now.. i utilize this code:
B4X:
......
ListView2.AddTwoLinesAndBitmap2( crsr.GetString("name"), crsr.GetString("number") & " - Email:" & crsr.GetString("emails"),LoadBitmap(File.DirAssets,"simcard.png"),crsr.GetLong("_id"))
Next
crsr.Close
End Sub
'Copia il Share, Copia Numero, invia SMS, Chiama
Sub ListView2_ItemClick (Position As Int, Value As Object)
Dim simUri As Uri
Dim verifica_nome As String
MsgBox( Value, "Check") '<------ Here _id is correct, 0, 1, 2 etc....
simUri.Parse("content://icc/adn") '
Dim crsr As Cursor = cr.Query(simUri, Array As String("_id", "emails", "number", "name"), "_id = ?", Array As String(Value), "")
'HERE i WAIT 1 VALUE BUT I HAVE ALL VALUE ( 3 ROW )
For i = 0 To crsr.RowCount - 1
crsr.Position = i
verifica_nome = crsr.GetString("name")
Next
crsr.Close
Msgbox(verifica_nome,"Messaggio")
The Query is:
B4X:
Dim crsr As Cursor = cr.Query(simUri, Array As String("_id", "emails", "number", "name"), "_id = ?", Array As String(Value), "")
But i have all value present in SIM Card, where i wrong ???
Thank you all
Marco