Got it :)
If anyone need this I created a new int variable and assigned to it the image id of the clicked image from gallery.
iSwitcher.setImageResource(pics[arg2]);
foto = arg2;
and when I click my button I read "foto" var.
myWallpaperManager.setResource(pics[foto]);