SlideShare a Scribd company logo
You can download this document from www.besthinditutorials.com
Android Networking
 Introduction to android networking in Hindi
 Networks status in android in Hindi
 HTTP request handling with android networking in Hindi
 Example
Introduction to android networking
Mobile phones computer Android phones networking
computer emails, web surfing
औ watching online videos services android networking
provide user web services provide
application networking implement
Android networking 3 implement
 IP (Internet Protocol)
 WiFi
 Bluetooth
Android java.net औ org.apache.http-client packages provide इ
packages application basic networking implement
detail networking implement android.net
package उ applications web
based
Network status
device network connected check
ConnectivityManager class इ
ConnectivityManager class object create इ current object
getSystemService() method call इ method
You can download this document from www.besthinditutorials.com
CONNECTIVITY_SERVICE context pass method object return
convert ConnectivityManager class object assign
इ इ object isConnected() method call
device network connected method true औ
false return
ConnectivityManager obj;
obj = (ConnectivityManager) this.getSystemService(context.CONNECTIVITY_SERVICE);
if(obj.isConnected())
{
Toast t1 = new Toast();
t1.makeText(context, "you are connected to internet",Toast.LENGTH_SHORT);
t1.show();
}
else
{
Toast t2 = new Toast();
t2.makeText(context, "you are not connected to internet",Toast.LENGTH_SHORT);
t2.show();
}
Handling HTTP requests
device network connected
operations perform Server HTTP requests औ HTTP
response basic networking operation URL open
request operations perform
HTTP operations perform android URL औ
httpURLConnection classes provide URL class object
इ object valid URL pass इ इ
object openConnection() method call इ result
httpURLConnection class reference variable assign इ
You can download this document from www.besthinditutorials.com
httpURLConnection class उ object connect() method call
इ httpURLConnection class object getInputStream() method call
औ इ InputStreamReader class object pass औ
InputStreamReader class object BufferReader class object pass
इ BufferReader class object readLine() method call
data read loop इ
BufferReader class object close() method call input stream close
औ httpURLConnection class object disconnect() method call
connection disconnect result return
इ उ
Activity class getHttpResponse() method
String result;
URL myurl = new URL("http://www.google.com");
httpURLConnection obj = (httpURLConnection) myurl.openConnection();
obj.connect();
InputStreamReader isr = new InputStreamReader(obj.getInputStream);
BufferReader br = new BufferReader(isr);
String input;
int count=0;
while(input = (br.readLine() != null)) // reading data
{
result = input;
count++;
}
br.close();
obj.disconnect();
return result;
You can download this document from www.besthinditutorials.com
Read more tutorials on Android in Hindi at www.besthinditutorials.com

More Related Content

PPT
Servlet 03
PPT
Diving in the Flex Data Binding Waters
PDF
Chapter 27 Networking - Deitel & Deitel
PPT
Flex data binding pitfalls: 10 common misuses and mistakes
PPT
Air Drag And Drop
PPT
Servlet client request
PPTX
Share pointtechies linqtosp-andsbs
TXT
Vb database connections
Servlet 03
Diving in the Flex Data Binding Waters
Chapter 27 Networking - Deitel & Deitel
Flex data binding pitfalls: 10 common misuses and mistakes
Air Drag And Drop
Servlet client request
Share pointtechies linqtosp-andsbs
Vb database connections

What's hot (12)

PDF
Deploy with Confidence using Pact Go!
PPT
2310 b 11
ODP
Turmeric SOA - Security and Policy
PDF
07 objective-c session 7
DOCX
Assistive Technology_Research
PDF
第一次用Parse就深入淺出
PPTX
Servlet session 7
PPTX
mediator
PPTX
Academy PRO: ASP .NET Core MVC
PPT
2310 b 08
PPT
Data management with ado
PPTX
Sharepoint Saturday India Online best practice for developing share point sol...
Deploy with Confidence using Pact Go!
2310 b 11
Turmeric SOA - Security and Policy
07 objective-c session 7
Assistive Technology_Research
第一次用Parse就深入淺出
Servlet session 7
mediator
Academy PRO: ASP .NET Core MVC
2310 b 08
Data management with ado
Sharepoint Saturday India Online best practice for developing share point sol...
Ad

Viewers also liked (7)

PDF
Learn java in hindi
DOC
PPT
android layouts
PDF
Input and Output Control
PDF
Android ui layout
PPT
Android Ui
PDF
Layouts in android
Learn java in hindi
android layouts
Input and Output Control
Android ui layout
Android Ui
Layouts in android
Ad

Similar to Android networking in Hindi (7)

PDF
Android Performance #4: Network
PPTX
Performance #4 network
PDF
Android Networking
PPTX
Communication in android
PDF
Android App Development 06 : Network & Web Services
PDF
Android http library
PDF
Importance of Standardization of APIs and its Usage
Android Performance #4: Network
Performance #4 network
Android Networking
Communication in android
Android App Development 06 : Network & Web Services
Android http library
Importance of Standardization of APIs and its Usage

Recently uploaded (20)

PPTX
Internet of Things (IOT) - A guide to understanding
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
web development for engineering and engineering
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
Welding lecture in detail for understanding
PPTX
Lecture Notes Electrical Wiring System Components
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
bas. eng. economics group 4 presentation 1.pptx
Internet of Things (IOT) - A guide to understanding
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Automation-in-Manufacturing-Chapter-Introduction.pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
web development for engineering and engineering
CYBER-CRIMES AND SECURITY A guide to understanding
Operating System & Kernel Study Guide-1 - converted.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Geodesy 1.pptx...............................................
Welding lecture in detail for understanding
Lecture Notes Electrical Wiring System Components
R24 SURVEYING LAB MANUAL for civil enggi
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
bas. eng. economics group 4 presentation 1.pptx

Android networking in Hindi

  • 1. You can download this document from www.besthinditutorials.com Android Networking  Introduction to android networking in Hindi  Networks status in android in Hindi  HTTP request handling with android networking in Hindi  Example Introduction to android networking Mobile phones computer Android phones networking computer emails, web surfing औ watching online videos services android networking provide user web services provide application networking implement Android networking 3 implement  IP (Internet Protocol)  WiFi  Bluetooth Android java.net औ org.apache.http-client packages provide इ packages application basic networking implement detail networking implement android.net package उ applications web based Network status device network connected check ConnectivityManager class इ ConnectivityManager class object create इ current object getSystemService() method call इ method
  • 2. You can download this document from www.besthinditutorials.com CONNECTIVITY_SERVICE context pass method object return convert ConnectivityManager class object assign इ इ object isConnected() method call device network connected method true औ false return ConnectivityManager obj; obj = (ConnectivityManager) this.getSystemService(context.CONNECTIVITY_SERVICE); if(obj.isConnected()) { Toast t1 = new Toast(); t1.makeText(context, "you are connected to internet",Toast.LENGTH_SHORT); t1.show(); } else { Toast t2 = new Toast(); t2.makeText(context, "you are not connected to internet",Toast.LENGTH_SHORT); t2.show(); } Handling HTTP requests device network connected operations perform Server HTTP requests औ HTTP response basic networking operation URL open request operations perform HTTP operations perform android URL औ httpURLConnection classes provide URL class object इ object valid URL pass इ इ object openConnection() method call इ result httpURLConnection class reference variable assign इ
  • 3. You can download this document from www.besthinditutorials.com httpURLConnection class उ object connect() method call इ httpURLConnection class object getInputStream() method call औ इ InputStreamReader class object pass औ InputStreamReader class object BufferReader class object pass इ BufferReader class object readLine() method call data read loop इ BufferReader class object close() method call input stream close औ httpURLConnection class object disconnect() method call connection disconnect result return इ उ Activity class getHttpResponse() method String result; URL myurl = new URL("http://www.google.com"); httpURLConnection obj = (httpURLConnection) myurl.openConnection(); obj.connect(); InputStreamReader isr = new InputStreamReader(obj.getInputStream); BufferReader br = new BufferReader(isr); String input; int count=0; while(input = (br.readLine() != null)) // reading data { result = input; count++; } br.close(); obj.disconnect(); return result;
  • 4. You can download this document from www.besthinditutorials.com Read more tutorials on Android in Hindi at www.besthinditutorials.com