Service to create the incoming message

by sunitha » Wed, 11 Nov 2009 23:37:44 GMT

Sponsored Links

I am looking for the sample code to create a service runs in the
background and creates incoming message.

I can see sample only to create the incoming message not with service.

Thanks for your help in advance.

Please provide me sample code.


Other Threads

1. Intercepting an outgoing call

hi guys,

i saw many people have raise the same question but could not find the
solution and mine is little bit different.

this application is working properly in HTC TATTOO but in Motorola
Milestone i'm getting this issue.

in milestone outgoing call is detecting and even it's been pass to
relevant class. but suddenly focus is getting lost and the default
call application is displayed. don't have any idea how this works
properly in HTC and not in Milestone.

please share your ideas here

i have a receiver which will listen for out going calls

public class CallListener extends BroadcastReceiver {
        private Context context;
        String phonenbr;
        TelephonyManager telManager;
        Handler handler = new Handler();

        public void onReceive(Context context, Intent intent) {
                // TODO Auto-generated method stub
                this.context = context;
                // this.intentttt = intent;
                // String s = intent.getAction();

                if (intent.getAction()
.equalsIgnoreCase(Intent.ACTION_NEW_OUTGOING_CALL)) {
                        phonenbr = 
                        intent = new Intent(context, OutGoing.class);
                        Log.d("GDHGDHGHDGDHGDHGHDGHDGH", phonenbr);
                        intent.putExtra("Number", phonenbr);

in the manifest

         <receiver android:name=".listener.CallListener" >
           <intent-filter android:priority="2147483647">

this is my class

public class OutGoing extends Activity {
        Map<String, String> map;
        String mobileNumber;
        Handler handler = new Handler();

        protected void onCreate(Bundle savedInstanceState) {
                // TODO Auto-generated method stub
                Bundle bundle = getIntent().getExtras();
                String number = bundle.getString("Number");
                // alert("Number", number);
                TextView t = new TextView(this);




2. Maintaining the state when changing the orientation

I am having an application showing ListItems and Dialog boxes in it..
I want that when i change the orientation from Portrait to landscape mode, i
need to maintain the state of the application .. I have seperate XMLs for
landscape and portrait mode..
What is the best way to achieve this >
Thanks ,


3. Set result of svnversion to tag android:versionName

4. How to receive message in a chat application

5. WTThanks: To boss AH, suhu SA & suhu Riswan aka Jakontil

6. can't anymore show light notification

7. Dubious extra call to OnCreate on orientation change