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

What's hot

Deploy with Confidence using Pact Go!
Deploy with Confidence using Pact Go!Deploy with Confidence using Pact Go!
Deploy with Confidence using Pact Go!
DiUS
 
2310 b 11
2310 b 112310 b 11
2310 b 11
Krazy Koder
 
Turmeric SOA - Security and Policy
Turmeric SOA - Security and PolicyTurmeric SOA - Security and Policy
Turmeric SOA - Security and Policy
kingargyle
 
07 objective-c session 7
07  objective-c session 707  objective-c session 7
07 objective-c session 7
Amr Elghadban (AmrAngry)
 
Assistive Technology_Research
Assistive Technology_ResearchAssistive Technology_Research
Assistive Technology_Research
Meng Kry
 
第一次用Parse就深入淺出
第一次用Parse就深入淺出第一次用Parse就深入淺出
第一次用Parse就深入淺出
Ymow Wu
 
Servlet session 7
Servlet   session 7Servlet   session 7
Servlet session 7
Anuj Singh Rajput
 
mediator
mediatormediator
mediator
guest55ff01
 
Academy PRO: ASP .NET Core MVC
Academy PRO: ASP .NET Core MVCAcademy PRO: ASP .NET Core MVC
Academy PRO: ASP .NET Core MVC
Binary Studio
 
2310 b 08
2310 b 082310 b 08
2310 b 08
Krazy Koder
 
Data management with ado
Data management with adoData management with ado
Data management with ado
Dinesh kumar
 
Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...
Shakir Majeed Khan
 

What's hot (12)

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

Viewers also liked

Learn java in hindi
Learn java in hindiLearn java in hindi
Learn java in hindi
Vipin sharma
 
Resume1
Resume1Resume1
android layouts
android layoutsandroid layouts
android layouts
Deepa Rani
 
Input and Output Control
Input and Output ControlInput and Output Control
Input and Output Control
Techronology Inc.
 
Android ui layout
Android ui layoutAndroid ui layout
Android ui layout
Krazy Koder
 
Android Ui
Android UiAndroid Ui
Android Ui
Jetti Chowdary
 
Layouts in android
Layouts in androidLayouts in android
Layouts in android
Durai S
 

Viewers also liked (7)

Learn java in hindi
Learn java in hindiLearn java in hindi
Learn java in hindi
 
Resume1
Resume1Resume1
Resume1
 
android layouts
android layoutsandroid layouts
android layouts
 
Input and Output Control
Input and Output ControlInput and Output Control
Input and Output Control
 
Android ui layout
Android ui layoutAndroid ui layout
Android ui layout
 
Android Ui
Android UiAndroid Ui
Android Ui
 
Layouts in android
Layouts in androidLayouts in android
Layouts in android
 

Similar to Android networking in Hindi

CHAPTER - 3 - JAVA NETWORKING.pptx
CHAPTER - 3 - JAVA NETWORKING.pptxCHAPTER - 3 - JAVA NETWORKING.pptx
CHAPTER - 3 - JAVA NETWORKING.pptx
DhrumilSheth3
 
URL Class in Java.pdf
URL Class in Java.pdfURL Class in Java.pdf
URL Class in Java.pdf
SudhanshiBakre1
 
The Full Power of ASP.NET Web API
The Full Power of ASP.NET Web APIThe Full Power of ASP.NET Web API
The Full Power of ASP.NET Web API
Eyal Vardi
 
Url Connection
Url ConnectionUrl Connection
Url Connection
phanleson
 
Url Connection
Url ConnectionUrl Connection
Url Connection
leminhvuong
 
An Overview of Entity Framework
An Overview of Entity FrameworkAn Overview of Entity Framework
An Overview of Entity Framework
iFour Technolab Pvt. Ltd.
 
Advanced #2 networking
Advanced #2   networkingAdvanced #2   networking
Advanced #2 networking
Vitali Pekelis
 
Ajax
AjaxAjax
Ajax
Yoga Raja
 
AJAX
AJAXAJAX
AJAX
AJAXAJAX
Client-Server
Client-ServerClient-Server
Client-Server
Ahsanul Karim
 
URL Class in JAVA
URL Class in JAVAURL Class in JAVA
URL Class in JAVA
Ramasubbu .P
 
Working with Servlets
Working with ServletsWorking with Servlets
Working with Servlets
People Strategists
 
13 networking, mobile services, and authentication
13   networking, mobile services, and authentication13   networking, mobile services, and authentication
13 networking, mobile services, and authentication
WindowsPhoneRocks
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
habib_786
 
ASP .net MVC
ASP .net MVCASP .net MVC
ASP .net MVC
Divya Sharma
 
Android Networking
Android NetworkingAndroid Networking
Android Networking
Matteo Bonifazi
 
Nestjs MasterClass Slides
Nestjs MasterClass SlidesNestjs MasterClass Slides
Nestjs MasterClass Slides
Nir Kaufman
 
WP7 HUB_Consuming Data Services
WP7 HUB_Consuming Data ServicesWP7 HUB_Consuming Data Services
WP7 HUB_Consuming Data Services
MICTT Palma
 
Connecting to the network
Connecting to the networkConnecting to the network
Connecting to the network
Mu Chun Wang
 

Similar to Android networking in Hindi (20)

CHAPTER - 3 - JAVA NETWORKING.pptx
CHAPTER - 3 - JAVA NETWORKING.pptxCHAPTER - 3 - JAVA NETWORKING.pptx
CHAPTER - 3 - JAVA NETWORKING.pptx
 
URL Class in Java.pdf
URL Class in Java.pdfURL Class in Java.pdf
URL Class in Java.pdf
 
The Full Power of ASP.NET Web API
The Full Power of ASP.NET Web APIThe Full Power of ASP.NET Web API
The Full Power of ASP.NET Web API
 
Url Connection
Url ConnectionUrl Connection
Url Connection
 
Url Connection
Url ConnectionUrl Connection
Url Connection
 
An Overview of Entity Framework
An Overview of Entity FrameworkAn Overview of Entity Framework
An Overview of Entity Framework
 
Advanced #2 networking
Advanced #2   networkingAdvanced #2   networking
Advanced #2 networking
 
Ajax
AjaxAjax
Ajax
 
AJAX
AJAXAJAX
AJAX
 
AJAX
AJAXAJAX
AJAX
 
Client-Server
Client-ServerClient-Server
Client-Server
 
URL Class in JAVA
URL Class in JAVAURL Class in JAVA
URL Class in JAVA
 
Working with Servlets
Working with ServletsWorking with Servlets
Working with Servlets
 
13 networking, mobile services, and authentication
13   networking, mobile services, and authentication13   networking, mobile services, and authentication
13 networking, mobile services, and authentication
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
 
ASP .net MVC
ASP .net MVCASP .net MVC
ASP .net MVC
 
Android Networking
Android NetworkingAndroid Networking
Android Networking
 
Nestjs MasterClass Slides
Nestjs MasterClass SlidesNestjs MasterClass Slides
Nestjs MasterClass Slides
 
WP7 HUB_Consuming Data Services
WP7 HUB_Consuming Data ServicesWP7 HUB_Consuming Data Services
WP7 HUB_Consuming Data Services
 
Connecting to the network
Connecting to the networkConnecting to the network
Connecting to the network
 

Recently uploaded

Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
HODECEDSIET
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
Aditya Rajan Patra
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 

Recently uploaded (20)

Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 

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