title: Intercepting app https traffic on Android device
body: <p>I'd like to view the https traffic from my app.</p>
  
  <p>I installed fiddler on my pc and downloaded the certificate to the device and can view https traffic from the browser.</p>
  
  <p>But when I try my app - I get javax.net.ssl.sslhandshakeexception java.secirity.cert.CertPathVelidatorException Trust anchor for certification path not found.</p>
  
  <p>I believe the fiddler setup is correct as I can view https traffic from my phone browser.</p>
  
  <p>Any help?</p>
  
  <p>or other ways of doing the same.</p>
  
  <p>I know from running java apps on the desktop - you can specify  the proxy ip+port to the java vm - maybe something similar needs to be done on the device.</p>
  
  <p>I was able to set up the emulator for http traffic - but https doesn't work - I installed the fiddler cert on the emulator also. Using Android 29.</p>