Wednesday, September 14, 2011

Android Basics 2

As per  the first step of leaning any thing u have to configure the environment so just follow what is here (i wont go into details of installation) 

Now to the concepts
there are some basic concepts we should have a look at,before going into details

From a developer's perspective, the fundamental building blocks / components of Android are:
1. Activities
2. Services
3. Broadcast Receivers
4. Content Providers.

The means of communication between the above mentioned components is through
1. Intents
2. Intent Filters

The User Interface elements are by using what are called:
2. Notifications

Now lets simply define these concepts 

  1. Activity : Activity is the presentation layer for a Android App. in Simple words Activity is the screen visible to user. Every screen in an application is an activity by itself each activity is an independent entity.For Example  A screen Showing Key pad to type the text.
  2. Services : Services are the background tasks/program that can be executed for a a specific task.For example, a service might play music in the background
  3. Broadcast Receiver : Broadcast Receiver is a component that can receive and respond to any broadcast announcements from the system. for example, a broadcast announcing that the battery is low.each broadcast is delivered as an Intent object .(Intentent described below)
  4. Content Provider  : A Content Provider manages application dataou can store the data in the file system, an SQLite database, on the web, or any other persistent storage location your application can access. Through the content provider, other applications can query or even modify the data (if the content provider allows it).
  5. IntentsIntents are the messages passed between the components just like the parameter passed between APIs.mostly Intents are async.
  6. Intent Filters : Intent Filters are the mean through which component advertise their capabilities to do a task/job/operation to ANDROID platform.
  7. View : User Inter face of activities. simply any drwable object used as an element like button and Image etc
  8. Notifications

Android Basics 1

My current employer is cellular compny providing Value added services (VAS ) to different cellular companies like Mobilink ,Warid and Telenor etc across the country.
as the world is going to mobile computing so we are going to start delivering services for different handsets like android, iphone nokia etc....

In the first phase ANDROID.
so here we be updating our day to day learning and concepts so keep going and enjoy ANDROID development.........

Tuesday, September 13, 2011

extend flexigrid

It's quite easy to understand, what's the magic behind
flexigrid, so I am not a afraid of not beeing able to update, since my
flexigrid at least twice as powerfull as the original one... In Germany we
say "Kosten Nutzen Rechnung", dunno if the translation "Costs and Benefits
Calculation" will point it out...

But here's something for you!! You can extend any jquery plugin easyly by
using the correct extender-function.

look at the end of the flexigrid.js. here you will find several extentions,
the author already implemented. Just Copy-Paste one of them, change the name
und the method, that will be called... add private method to flexigrid..


$.fn.flexReload = function(p) { // function to reload grid

        return this.each( function() {
                if (this.grid&&this.p.url) this.grid.populate();

    }; //end flexReload

This function should be in your flexigrid.js already.  Copy that and paste
it like this:

$.fn.flexMyExtendedFunc = function(p) { // function to reload grid

        return this.each( function() {
                if (this.grid&&this.p.url) this.grid.myprivatefunction();

    }; //end flexReload

Now, search for the function "populate" ... you'll find something like this:

populate: function () { //get latest data
                var g = this;


Again.. Copy paste the whole function and rename it to "myprivatefunction"
and, of course, change the code inside the function.

You can pass parameters as well!

And now you may ask, how to call this function??

very easy!

Let's says, you have a " <table id="myFlexTable"/>∓lt;/table&gt;

You did   "$("#myFlexTable").flexigrid(...); somewhere...

Now just call  $("#myFlexTable").flexMyExtendedFunc();" 
and the code INSIDE the flexigrid ("myprivatefunction") will be executed. You have full control
in here... you can access all variables, the flexigrid uses...

And what about updating?

If you really JUST add a new extension method AND ONLY add methods to the
flexgrid-plugin, you can easyly copy-paste them to a new version.... That's
how I would do it... Anyway, trust me, if you ll get to understand the code,
the other way - adding updates via copy-paste to your version of flexigrid,
might be a lot faster...

Hope that helps some people out there, who try to expand the flexigrid.

Source code

Monday, September 12, 2011

How to install LAMP (Apache, PHP and MySQL in Linux) using Yum - Techie Corner

How to install LAMP (Apache, PHP and MySQL in Linux) using Yum - Techie Corner: "Below are the steps to install LAMP (Apache, PHP and MySQL in Linux) using Yum:-

Open a terminal (if you are using X-Window), and type
   yum install httpd 
and follow on screen instruction to install apache web server
Once apache web server has been installed, type
yum install php
Once PHP installed successfully, type
yum install mysql-server mysql php-mysql

Once everything finish,
you can do all the above steps in a single command like
yum install httpd php mysql-server mysql php-mysql
service httpd start  
to start your apache web server, screen will show you if web server service successfully started
type service mysqld start 
to start your mysql server"

'via Blog this'

Cross domain ajax calls

Friday, September 9, 2011



Lightweight but rich jquery  php data grid with resizable columns and a scrolling data to match the headers, plus an ability to connect to an xml based data source using Ajax to load the content.
Similar in concept with the Ext Grid only its pure jQuery love, which makes it light weight and follows the jQuery mantra of running with the least amount of configuration.