Question: Hello friends I am an android developer and right now i am working on sencha touch framework on android platform to develop an app which can run on multi platform e.g android tablets and ipads.

But i have question in my mind that if i create my app on android tablet emulator according to the android tablet need(means layout configuration),will the same app work on ipad? or i have to work on simulator to make it work on ipad? Please suggest me with ur views.

Thanx in advance.

Answer: 
For an audit table within the DB itself, have a look at the [PL/pgSQL Trigger Audit Example](http://www.postgresql.org/docs/8.4/static/plpgsql-trigger.html#PLPGSQL-TRIGGER-AUDIT-EXAMPLE)

This logs every INSERT, UPDATE, DELETE into another table.
In your log table you can have various columns, including:

* `user_id` (the user that did the action)
* `activity_type` (the type of activity, such as `view` or `commented_on`)
* `object_id` (the actual object that it concerns, such as the Article or Media)
* `object_type` (the type of object; this can be used later, in combination with `object_id` to lookup the object in the database)

This way, you can keep track of all actions the users do. You'd need to update this table whenever something happens that you wish to track.