I can not understand how to do the right to make requests to VKontakte.

VKRequest request = VKApi.audio().add(VKParameters.from("owner_id", "audio_id", ID_list.get(contex_menu_position))); 

owner_id - if you do not specify something, id will be taken by default, i.e. my. ID_list - ArrayList<Integer> which stores the id songs.

As a result, I get "VKError (API errorVKError (code: 100;; I’m undefined)), I’ve already tried many combinations, I’ve got 0.

    1 answer 1

    Solved a problem. I had to specify the owner_id in each request, it worked only this way, here’s the code, who can come in handy

     VKRequest requestAdd = VKApi.audio().add(VKParameters.from("owner_id",owner_ID.get(contex_menu_position), "audio_id", ID_list.get(contex_menu_position)));