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

Dotnet supported platforms

20 February 2012

Dotnet is supported in the below platforms. Windows 98 or later versions Linux and Mac OS ( Linux and Mac are supported by using Dotnet MONO Project) Note: Sign Up For .NET Training

Read the full Article

Posted in .NET Framework FAQ0 Comments

Custom Exceptions in C#

20 February 2012

In C# all Custom Exception should be inherited from a class called as ApplicationException. In the below sample i created a Custom Exception class called CustSalException. I am raising an Exception when some creates an object of Salary class by passing salary value less than 5000. Please see the below code for the sample. In the code we [...]

Read the full Article

Posted in .NET Framework FAQ0 Comments