This example is used to access the data from the specific url. The Stream Connection is used to connect the application to the specific url by Airtime (connect to the internet). In this example we are trying to make a connection between internet and mobile. In the example we have created the connection, but here a message will be shown "Is it OK to Use Airtime?", If user click on 'No' button then it return to launch page, but if user click on 'Yes' button then it check the http connection from the internet, if connection is available then text will be displayed otherwise exception will be thrown.
The Application is as follows:
Source Code of AccessUrl.java
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: December 18, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles