vendredi 31 juillet 2015

How copy String to String[] in android

I have String having data like

String myString = 10,20,30,40,50,60;

all i want to convert it into String[] to use these value in SQLite for

db.delete(TABLE_NAME, myString ,columnName);

But db.delete requires String[] So i want to convert it but it's value is becoming something rubbish and get error at time of delete those Id's from My_Database. So if you have any Smart Answer for that please share it.

My Required Data is String[] myArray = {10, 20, 30, 40, 50, 60};

Aucun commentaire:

Enregistrer un commentaire