Friday, April 11, 2014

SMART SMS : SMS COMPRESSION USING LZW COMPRESSION ALGORITHM IN ANDROID

        In this work we investigate the possibility of reliably sending a small file via Short Message Service (SMS) by using data compression for a more effective mobile data exchange in which basic GSM is the only available data communication option.
        The Short Message Service (SMS) is a fundamental facility in the GSM communication standard. It is also the simplest form of data communication and sometimes also the cheapest when a terminal has no CSD data channel. Every day, billions of SMSes are sent and received all over the world, bringing SMS to be one of the most used applications in the mobile communication arena. Usually SMS is used for private conversation, but many other applications use it, as for example online banking, mobile payment, etc.. A typical SMS is composed at most of 160 symbols (by using 7 bits per symbol in the GSM standard) or up to 140 bytes (for binary messages). This is a relevant limitation essentially due to the need to support the service also on devices with very limited hardware capabilities.
          So the SMS I am imported the LZW Algorithm in the SMS application. before sending the SMS, which is compressed by the LZW Based compression and Send to the recipient. The SMS is then decompressed  using the Same App.

Wednesday, March 26, 2014

Android SQLite

      This section,describes how to use the SQLite database in Android applications. SQLite is an Open Source database. SQLite supports standard relational database features like SQL syntax, transactions and prepared statements. The database requires limited memory at runtime (approx. 250 KByte) which makes it a good candidate from being embedded into other runtimes.
       SQLite supports the data types TEXT (similar to String in Java), INTEGER (similar to long in Java) and REAL (similar to double in Java). All other types must be converted into one of these fields before getting saved in the database. SQLite itself does not validate if the types written to the columns are actually of the defined type, e.g. you can write an integer into a string column and vice versa.

More information about SQLite can be found on the SQLite website: http://www.sqlite.org.

SQLite in Android

       SQLite is embedded into every Android device. Using an SQLite database in Android does not require a setup procedure or administration of the database.


You only have to define the SQL statements for creating and updating the database. Afterwards the database is automatically managed for you by the Android platform.

Access to an SQLite database involves accessing the file system. This can be slow. Therefore it is recommended to perform database operations asynchronously.

If your application creates a database, this database is by default saved in the directoryDATA/data/APP_NAME/databases/FILENAME.