Android HTTP Authentication -


मैं एंड्रॉइड में HTTP के जरिए प्रमाणित कैसे करूं?

  यूआरएल यूआरएल = नया यूआरएल ("यूआरएल यूआरएल"); Authenticator.setDefault (नया प्रमाणकर्ता () {@Override संरक्षित पासवर्डअधिकरण getPasswordAuthentication () {System.err.println ("" के लिए उपयोगकर्ता नाम और पासवर्ड का उपयोग करना "+ getRequestingScheme ()); वापसी (नया पासवर्डअटिकेशन (" उपयोगकर्ता नाम "," पासवर्ड ".toचरअरे ()));}}); InputStream स्ट्रीम = url.openStream ();    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

javascript - What is an alternative to using getElementByClass for hiding multiple elements? -

javascript - Making the first column of a table fixed on horizontal scroll -