Android URL - Incomplete path

0

Hello

I'm trying to create a URL but it seems that when I create the URL it is not created with the full path.

Creating the URL

url = new URL("https://api.plivo.com/v1/Account/" + authID + "/Message/");

When I get the URL path

System.out.println(url.getPath());

The result is: I/System.out: /v1/Account/XXXXXXXXXXXXXXXX/Message/

Does anyone know how to solve this?

    
asked by anonymous 10.08.2016 / 21:40

1 answer

0

Speak GuiDupas,

Why are you getting getPath ()?

You can notice that if you print only the url already solves:

System.out.println(url);

Hugs.

    
10.08.2016 / 21:46