Showing posts from November, 2012


Graphics in Android

Android API provides allow to draw custom graphics onto a canvas or to modify existing views to look good.

 We we draw graphics, we can do it in 2 ways.

1. draw the graphics into a view object from layout.
2. draw the graphics directly to the Canvas.

To draw something, we need 4 basic components.

1. A Bitmap to hold the pixels.
2. A canvas to host the draw  calls- writing into the Bitmap.
3. Draw primitive- like draw rectangle, text, path etc.
4. Paint- describes the colors and styles to draw.

Bitmap to hold the pixels:

It's a simple example to draw a bitmap on screen in View. The content view is set to a View, and the drawing is achieved in onDraw method.
To draw a bitmap on screen in View, Content view is set to view and dwaing is get in onDraw().

 A canvas to host the draw  calls- writing into the Bitmap:
Canvas works as interface to actual surface upon which graphics will drawn.
It holds all "draw" calls.With canvas, drawing is actually performed…

jobs@ Android

Urgent Requirement for Android Developers for Hyderabad Location Experience Range            :               0-5 Years

send resumes to


We are rapidly growing software solutions company based in Ahmedabad with primary client base in North America. We are developing couple of cloud software, providing web solutions to client round the globe and at the same time we provide top class small business web design services to clients in North America.
We are in our development stage but, promise our employees healthy and comfortable work conditions and a promising career at the same time.

Why to work @ Simform ? 

Employee-friendly company environment
Working days : Monday to Friday 
Flexible work hours
Attractive Salary Package, Incentives for top performer of month


Designation Offered: IPhone Applications Developer 
Department: Mobile Applications Development 
Qualification: B.E./B.Tech/M.E./M.Tech/ 
Experience: 1 yr + 
Reporting to: PM 

Roles & Res…

Fragments in android

Fragments represent behavior in particular portion in an activity.
Fragments must embedded in an activity and they cannot run independently without activity. fragments having its own life cycle like activity life cycle. To create fragement, we have to create a sub class of fragment. Fragments introduced from android 3.0(HoneyComb) onwards It contains callback methods similar to an activity such as   onCreate(), onStart(),onPause() and onStop(). 

Fragment Lifecycle:
onCreate()    -     system calls when creating a fragment.Initialize components here. onCreateView()-     system calls when the fragment to draw its user interface for 1st time. onPause()     -     system calls when the user is leaving the fragment. onAttach()    -     it is called when the fragment is associated with activity. onActivityCreated()- it is called when the activity's onCreate() is returned. onDestroyView()    - it is called when view hierarchy associated with the fragment is removed. onDetach()         -it is cal…

BroadCast Receiver

It class which extends BroadCastReceiver.  
which is registered in the android app via manifest file.

This class can be able to recieve intents via sendBroadcast()

BroadCast Receiver defines the method  onReceive(). only during this method , your BroadCast Receiver object will be valid.

ex: public class PhoneReceiver extends BroadcastReciever

public void onReceive()

Upload file to server FTP

Class FTPClient
  extended by
      extended by
          extended by

 public abstract class SocketClient extends Object

1. SocketClient provides the basic operations that are required of client objects accessing sockets. It is to be subclassed to avoid to rewrite the same code over and over again to open a socket, close a socket, set time outs etc.
2.setSocketFactory method, which allows you to control the type of Socke,the SocketClient creates for initiating network connections.

3. you could create a SocketFactory that requests browser security capabilities before creating a socket. All classes derived from SocketClient should use the _socketFactory_  member variable to create Socket and ServerSocket instances rather than instantiating them by directly invoking a constructor

4. The user will always be able to provide his own Socket implementations by substitutin…