Android: Delete server image

1

I need to delete an image from the server, before what I did was to make an instance of CheckIn which is where I have my Getts and Setts then called checkIn.getImages (). remove (positionPicture); and it removes from the ArrayList of Bitmasp the image that is found in the position of the image that is wanted, everything to good but the image in the server still exists, then how would the process to eliminate it from the server?

int positionPicture = intent.getIntExtra("positionPicture", 0);//en mi variable obtengo la posicion
            CheckIn checkIn = CheckIn.getInstance();//hago una instancia de checkIn
            checkIn.getImages().remove(positionPicture);//del arreglo elimino la imagen en esa posicion
    
asked by Javier fr 16.12.2016 в 20:15
source

1 answer

1

Ideally, you should program a script in PHP that receives a GET parameter of confirmation with the name of the image so that PHP will remove it from the server. When you already have the script, simply from java make the request to the file by passing it said parameter.

    
answered by 16.12.2016 в 21:15