Using The Android Sensors <font size=-2><a href= target=_blank>PRO</a></font>

The android device has sensors we can use in our code. We can get data coming from these resources using the SensorManager object. The following code sample shows how to do it. package com.abelski.samples; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.os.Bundle; import; import android.content.Context; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import […]

Zend_Db_Table Simple Demo <font size=-2><a href= target=_blank>PRO</a></font>

Using the Zend_Db_Table class, which is part of the Zend Framework, we can easily access a specific table in our database. The following code sample shows how simple it is to add a new row using this class. The following code includes our definition for the users controller. <?php require_once ROOT_DIR.’/models/Users.php’; class UsersController extends Zend_Controller_Action […]

Facebook PHP SDK Jump Start <font size=-2><a href= target=_blank>INFO</a></font>

The Facebook PHP SDK is composed of two files: facebook.php and base_facebook.php. The first includes the definition for the Facebook class. The second includes the definition for the BaseFacebook class, which is a parent class for Facebook together with few more classes. You can easily download the Facebook PHP SDK at The following video […]