Friday, October 26, 2012

Queue


Another important DS we are going to discuss

QUEUE …

What is queue
    

See the above Image ,  peoples are standing in the queue and guy in the counter giving tickets or serving something …
Now think , if counter guy able to give ticket  in an ignore time , then do we require queue anymore … No absolutely not .
 But in practical situation, service provider(counter guy) not able to  serve the request (ppl standing in the queue) in an ignore time. So, we need queue in order to serve all the request.

 Queue has a sequence of the request, where which request comes first that will be processed first. And of-course there are some priority queue (this we will discuss later )

Lets see the implementation of the queue (C++)   .. it is under construction .. I'll post this soon

Tuesday, October 9, 2012

Adding your application in android source code



1. Paste your project in "Packages/apps/" folder
2. Add Android.mk file in your project (you can refer the other app make file)
3. have to add your project name in  generic_no_telephony.mk & large_emu_hw.mk file (available in build/target/product/)

thats all . build the source code and launch the emulator ,you can see your application in Emulator