android - Does the _id in content providers table needs to be in sequence -


i using content providers application.the app register added user server.the server send id user.i need populate listview content providers data.can use id _id content providers table because server's id may not in sequence.

is work on non sequence id's.or need go other options

i'm not sure id comes server side. api guide:

a provider isn't required have primary key, , isn't required use _id column name of primary key if 1 present. however, if want bind data provider listview, 1 of column names has _id. requirement explained in more detail in section displaying query results.

basically, if server id unique may use it


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -