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:

enter image description here

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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -