title: ApplicationConnectionResult statuscode 2002
body: <p>When I tried googlecast/CastHelloText-android, I met following failure. BTW, I uploaded receiver.html to one URL that I can access in my network. I registered app id in cast console as customer style.</p>
  
  <p>==========================================================================</p>
  
  <p>02-15 23:18:43.923: D/libEGL(15662): loaded /system/lib/egl/libEGL_tegra.so
  02-15 23:18:43.943: D/libEGL(15662): loaded /system/lib/egl/libGLESv1_CM_tegra.so
  02-15 23:18:43.963: D/libEGL(15662): loaded /system/lib/egl/libGLESv2_tegra.so
  02-15 23:18:43.983: D/OpenGLRenderer(15662): Enabling debug mode 0
  02-15 23:18:46.363: D/dalvikvm(15662): GC_FOR_ALLOC freed 128K, 2% free 8342K/8508K, paused 14ms, total 15ms
  02-15 23:18:47.513: D/MainActivity(15662): onRouteSelected
  02-15 23:18:49.113: D/MainActivity(15662): onConnected
  02-15 23:18:52.593: D/MainActivity(15662): A*<em>pplicationConnectionResultCallback.onResult: statusCode2002
  02-15 23:18:52.603: E/MainActivity(15662): application could not launch</em>*</p>
  
  <p>==========================================================================</p>
  
  <p>Meanwhile, I tried googlecast/CastVideos-android as well and met same error.</p>
  
  <p>I ran both of the two sample app, the chromecast showed "brain freeze we're sorry, but something could not load. Activity aborted".</p>
  
  <p>I tried allcast, still failed with following log and the screen showd the same error info as above. Could anybody give me any advise? Thanks a lot!!!</p>
  
  <p>============================================================================</p>
  
  <p>02-15 23:32:12.633: I/CastService(13119): Sending url: file:/storage/emulated/0/Tencent/MicroMsg/Camera/microMsg.1385135098732.jpg
  02-15 23:32:12.633: I/CastService(13119): Cleaning up route
  02-15 23:32:12.633: I/AllCast(13119): Releasing locks.
  02-15 23:32:12.633: I/AllCast(13119): Acquiring partial lock.
  02-15 23:32:12.653: D/dalvikvm(13119): GC_CONCURRENT freed 1571K, 11% free 13633K/15236K, paused 2ms+6ms, total 45ms
  02-15 23:32:12.673: D/CastMediaRouteProvider(848): onSelect
  02-15 23:32:12.673: D/CastMediaRouteProvider(848): Received control request Intent { act=android.media.intent.action.PLAY cat=[android.media.intent.category.REMOTE_PLAYBACK] dat=http :// 192.168.199.235:34118/13fa3c06-32dd-4660-bc6e-adbcfce89a1d/airplay.jpg typ=image/jpeg (has extras) }
  02-15 23:32:12.673: D/CastMediaRouteProvider(848): processRemotePlaybackRequest()
  02-15 23:32:12.673: D/CastMediaRouteProvider(848): got remote playback request; action=android.media.intent.action.PLAY
  02-15 23:32:12.673: D/CastMediaRouteProvider(848): checkSession() sessionId=null, currentSessionId=null
  02-15 23:32:12.673: D/CastMediaRouteProvider(848): startSession()
  02-15 23:32:12.673: D/MediaRouteSession(848): starting session for app CC1AD845
  02-15 23:32:12.693: D/CastDeviceController_MRP(848): launchApplicationInternal() id=CC1AD845, relaunch=true
  02-15 23:32:12.773: D/ReceiverControlChannel(848): Received: {"requestId":0,"status":{"volume":{"level":1.0,"muted":false}},"type":"RECEIVER_STATUS"}
  02-15 23:32:12.773: D/ReceiverControlChannel(848): requestId = 0, ignoreVolume = false
  02-15 23:32:12.773: D/ReceiverControlChannel(848): onStatusReceived
  02-15 23:32:12.773: D/CastDeviceController_MRP(848): processReceiverStatus: applicationInfo=null, volume=1.000000, muteState=false
  02-15 23:32:12.773: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:12.773: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:12.773: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 0.000000
  02-15 23:32:12.773: D/CastMediaRouteProvider(848): buildRouteDescriptorForDevice: id=34e32664671cebbe2a2c890fd358e723, description=stone-cast, connecting=false, volume=20
  02-15 23:32:12.773: D/CastMediaRouteProvider(848): published 1 routes
  02-15 23:32:13.143: D/ReceiverControlChannel(848): Received: {"reason":"CANCELLED","requestId":2,"type":"LAUNCH_ERROR"}
  02-15 23:32:13.143: D/RequestTracker(848): request 2 completed
  02-15 23:32:13.143: D/CastMediaRouteProvider(848): onApplicationConnectionFailed: statusCode=2002
  02-15 23:32:13.143: D/MediaRouteSession(848): [1105900168] onApplicationConnectionFailed; mPendingState=0
  02-15 23:32:13.143: D/CastMediaRouteProvider(848): onApplicationConnectionFailed: statusCode=2002
  02-15 23:32:13.143: D/MediaRouteSession(848): [1105754528] onApplicationConnectionFailed; mPendingState=0
  02-15 23:32:13.143: D/CastMediaRouteProvider(848): onApplicationConnectionFailed: statusCode=2002
  02-15 23:32:13.143: D/MediaRouteSession(848): [1107022664] onApplicationConnectionFailed; mPendingState=0
  02-15 23:32:13.143: D/ReceiverControlChannel(848): Received: {"requestId":0,"status":{"volume":{"level":1.0,"muted":false}},"type":"RECEIVER_STATUS"}
  02-15 23:32:13.143: D/ReceiverControlChannel(848): requestId = 0, ignoreVolume = false
  02-15 23:32:13.143: D/ReceiverControlChannel(848): onStatusReceived
  02-15 23:32:13.143: D/CastDeviceController_MRP(848): processReceiverStatus: applicationInfo=null, volume=1.000000, muteState=false
  02-15 23:32:13.143: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.143: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.143: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.663: D/CastMediaRouteProvider(848): Received control request Intent { act=android.media.intent.action.GET_STATUS cat=[android.media.intent.category.REMOTE_PLAYBACK] (has extras) }
  02-15 23:32:13.663: D/CastMediaRouteProvider(848): processRemotePlaybackRequest()
  02-15 23:32:13.663: D/CastMediaRouteProvider(848): got remote playback request; action=android.media.intent.action.GET_STATUS
  02-15 23:32:13.663: D/CastMediaRouteProvider(848): checkSession() sessionId=null, currentSessionId=null
  02-15 23:32:13.683: D/ReceiverControlChannel(848): Received: {"requestId":0,"status":{"volume":{"level":1.0,"muted":false}},"type":"RECEIVER_STATUS"}
  02-15 23:32:13.683: D/ReceiverControlChannel(848): requestId = 0, ignoreVolume = false
  02-15 23:32:13.683: D/ReceiverControlChannel(848): onStatusReceived
  02-15 23:32:13.683: D/CastDeviceController_MRP(848): processReceiverStatus: applicationInfo=null, volume=1.000000, muteState=false
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.683: D/ReceiverControlChannel(848): Received: {"requestId":0,"status":{"volume":{"level":1.0,"muted":false}},"type":"RECEIVER_STATUS"}
  02-15 23:32:13.683: D/ReceiverControlChannel(848): requestId = 0, ignoreVolume = false
  02-15 23:32:13.683: D/ReceiverControlChannel(848): onStatusReceived
  02-15 23:32:13.683: D/CastDeviceController_MRP(848): processReceiverStatus: applicationInfo=null, volume=1.000000, muteState=false
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.683: D/ReceiverControlChannel(848): Received: {"requestId":0,"status":{"volume":{"level":1.0,"muted":false}},"type":"RECEIVER_STATUS"}
  02-15 23:32:13.683: D/ReceiverControlChannel(848): requestId = 0, ignoreVolume = false
  02-15 23:32:13.683: D/ReceiverControlChannel(848): onStatusReceived
  02-15 23:32:13.683: D/CastDeviceController_MRP(848): processReceiverStatus: applicationInfo=null, volume=1.000000, muteState=false
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:13.683: D/CastMediaRouteProvider(848): onVolumeChanged to 1.000000, was 1.000000
  02-15 23:32:14.663: D/CastMediaRouteProvider(848): Received control request Intent { act=android.media.intent.action.GET_STATUS cat=[android.media.intent.category.REMOTE_PLAYBACK] (has extras) }
  02-15 23:32:14.663: D/CastMediaRouteProvider(848): processRemotePlaybackRequest()
  02-15 23:32:14.673: D/CastMediaRouteProvider(848): got remote playback request; action=android.media.intent.action.GET_STATUS
  02-15 23:32:14.673: D/CastMediaRouteProvider(848): checkSession() sessionId=null, currentSessionId=null</p>