What is the real advantage of Interfaces ?

01 April 2013

Interfaces are useful for making contracts between developers.

Read the full Article

Posted in .Net Tutorials, C# FAQ, Java0 Comments

Difference between Equals and Reference Equals method

06 July 2012

1. ReferenceEquals and Equals methods behaves same for Reference types but it differs for value types. 2.ReferenceEquals is a Static method and hence we cannot override this method where as Equals method we can override this method. Ex1: bool b=0.Equals(0); bool b1=Object.ReferenceEquals(0, 0); Response.Write(b); Ex2: //Write this code in the main method. Palle p1 = [...]

Read the full Article

Posted in .NET Framework FAQ, C# FAQ0 Comments

Android training : Services FAQs

24 March 2012

SERVICES What is a service? A Service is a component that can perform long-running operations in the background and does not provide a user interface. Should I use service only for above purpose? No, there is another purpose, if you want to share some functionality with other application, then use Service. Using binder IPC one can share [...]

Read the full Article

Posted in ANDROIDComments Off

Android training: Broadcast Receiver example, how it looks like..

09 March 2012

package com.techpalle.reciver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.widget.Toast; public class myreciver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub /* * Here don’t try to do anything which takes more time say * networking sessions, sd card preparation, image uploading, DB reading etc. [...]

Read the full Article

Posted in ANDROID0 Comments

android training: broadcast receivers

09 March 2012

                                                ANDROID training: broadcast receivers   Broadcast receivers Broadcast receivers are something which will get triggered on some broadcasted message. One can choose to respond to those broad cast messages by registering the [...]

Read the full Article

Posted in ANDROID0 Comments

Android training: Eclipse over all view in android application development.

02 March 2012

Read the full Article

Posted in ANDROID0 Comments

Android training: Activity life cycle phases.

02 March 2012

Read the full Article

Posted in ANDROID0 Comments

Android training : activity life cycle phases, when to use which function.

28 February 2012

Activity life cycle : different phases  onCreate()        – to —  onDestroy()  ==> ENTIRE LIFE TIME of ACTIVITY  onStart()            – to —  onStop() ==> VISIBLE LIFE TIME of ACTIVITY onResume()      – to  –  onPause() ==> FOREGROUND/ ACTIVELY RUNNING LIFE TIME of ACTIVITY   When should I use different functions of Activity life cycle ? onCreate The system calls this [...]

Read the full Article

Posted in ANDROID0 Comments

Android training: Starting one activity from other activity

23 February 2012

Note: Before starting this program, it is expected that programmer should already create two activities with below names in androidmanifest.xml file. Summary: This program will depict how to start one activity from other activity   File name: SubActivityActivity.java   package com.satishandroid.subactivity;   import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; //import [...]

Read the full Article

Posted in ANDROID0 Comments

Android training: Button clicking example

22 February 2012

//File name: ButtonclickActivity.java // Note: before executing this program, you should ensure that you have one button & one edittext in your main.xml file. package com.techpalle.buttonclick; // This is the package name in which your project will reside. /* * Below are the import statements which will import different classes which you will be * using [...]

Read the full Article

Posted in ANDROID0 Comments