I am totally new at testing apps on devices, especially the Sony Xperia. I am testing apps using the Android emulator, but I have now a Sony Xperia. First I have connected
Steps to debug using Sony Xperia :
Settings > Xperia > USB Connectivity > USB connection mode
and select Mass storage mode (MSC).
The USB cable must be unplugged to change this option.
By default, Media transfer mode (MTP) was selected.
Untick "Install software"