コード例 #1
0
 public TitaniumHttpClient(TitaniumModuleManager tmm, String userAgent) {
   if (httpClientThreadCounter == null) {
     httpClientThreadCounter = new AtomicInteger();
   }
   this.weakTmm = new WeakReference<TitaniumModuleManager>(tmm);
   me = this;
   onReadyStateChangeCallback = null;
   readyState = 0;
   responseText = "";
   responseDataKey = -1;
   credentials = null;
   this.userAgent = userAgent;
   this.softWebView = new SoftReference<TitaniumWebView>(tmm.getWebView());
   this.nvPairs = new ArrayList<NameValuePair>();
   this.parts = new HashMap<String, ContentBody>();
 }
コード例 #2
0
 public TitaniumJSEventManager(TitaniumModuleManager manager) {
   this(manager.getWebView());
 }