bytearray - How to show byte array elements in Listview? -
i have byte array:
byte[] myarray={6,23,44,34,56,23,32,13,67,45};
i want show elements in listview this:
what command should use?
use arrayadapter,just this:
{ byte[] myarray={6,23,44,34,56,23,32,13,67,45}; arrayadapter<string> adapter = new arrayadapter<string>(this,android.r.layout.simple_list_item_1,myarray);//use system has achieved xml file simple_list_item_1 setlistadapter(adapter); }
Comments
Post a Comment