Check Internet connectivity with your own jar file in Android

Hi Android lovers… :-) After a long time. You can remember our last posts. Those are about connecting Internet and handling HTTP GET and POST methods. But have you ever consider to check whether your device is connected to Internet or not. Because, by the time your application runs, if the device is not connected to the Internet, you will get an error. As programmers, our duty is to check the infrastructure before user runs the application and get any errors. The important thing in this post is we are going to use our own jar file to check Internet connectivity :-)

Continue reading

Posted in Android Examples | Tagged , | 3 Comments

Handling HTTP POST method in Android

Hello Androidies… :-) Today I am going to talk about handling HTTP POST method in an Android program. This is little bit relate to my previous post which I have explained the same scenario for GET method. POST method is more secure when we transfer confidential data to a different location by using HTTP. The reason is the content goes inside the body, not with the header as in GET method. Continue reading

Posted in Android Examples | Tagged , , , , | 7 Comments

Handling HTTP GET method in Android

Hi… Android amigos… :-) Today we are going to communicate with a server page but  insecure way. Why I’m saying “insecure” is we are using HTTP GET method for the communication. All the values that user sends to the server, embedded with the URL that we send as the request, where a third party can easily watch it. If I say it more technical way, by using the HTTP GET method, we are sending user details in the header part of the request not in the body. Continue reading

Posted in Android Examples | Tagged , , , , , , | 7 Comments

How to Update and Delete data from SQLite database in Android

Hello Android friends… This is going to be my first blog post for the Dooms Year (2012) ;-) By the way, I have to keep a promise although I wanted to write a new topic. Therefore I am continuing with the SQLite post series and today I am going to show you how to do Update and Delete functions.  Continue reading

Posted in Android Examples | Tagged , , , | 23 Comments

How to retrieve data from a SQLite database in Android

Hello Android fellows… let us Retrieve today ;-) I mean lets learn how to retrieve data from a SQLite database in Android. This is the second part of the SQLite blog series. In my previous post I have shown you how to insert data to a SQLite database. I am continuing from there. So please have a look on my previous post before you go through this post directly. Continue reading

Posted in Android Examples | Tagged , , , , | 52 Comments

How to insert data in to a SQLite database in Android

Hi Android friends… In my blogging history, I have already written two blog posts related to database handling. One is MySQL with PHP and the next is MySQL with Java. In this blog post I am going to show you, how we can insert data to a table in a SQLite database when we are developing Android applications. This is going to be a starting point for a series of SQLite database related articles, because I am expecting to write Retrieve, Update and Delete in separate posts. :D Continue reading

Posted in Android Examples | 85 Comments

How to use BaseAdapter and OnItemClickListener in Android

Hi Android lovers :-) Till now we have developed some list item applications. But have you ever tried to click on one item of the ListView. Every time we passed a String Array or ArrayList witch type safe with String, to the Adapter. Is that the only way we can create an Adapter? Can’t we create our own fancy list to show our data? :O Don’t worry. We are going to cover all of that in this small blog post. Continue reading

Posted in Android Examples | 8 Comments