Tutorials

Writing a *NIX Shell in C

The shell will take in a maximum line length of 512 characters. Additionally it will support batch execution of commands specified in an input file. To call the shell in batch execution mode execute as: ./shell <input file> The shell will fork and execute each process as a child process so that in the event of an infinite loop the terminal can still respond to the SIGTERM command. Output...

read more

Using a SQLite Database in Android

Using a SQLite Database in Android

This tutorial will demonstrate how to use the database adapter created in “Creating a SQLite Database in Android” to add and get data to and from the database to populate a ListView. ...

read more

Quick and easy Android HTTP POST of JSON string

There are several ways to send data across the internet to a server on the Android. I was recently working on a project and needed to send a JSON string to the server to add data to a database. Additionally in certain cases I wanted to receive data back from the server. The fastest and easiest way to do this was to use HTTP POST android library and capture the response from the server using a...

read more

Creating a SQLite database in Android

Creating a SQLite database in Android

This example will show you how to create a somewhat abstracted SQLite adapter on Android. This adapter can then be utilized by your program to do common database functions such as, querying and searching. I start by creating the class DBAdapter in my Android project and declaring the variable data necessary to create the database. EDIT: The code has been modified since it originally assumed that...

read more