bonjour,
je vais changé l'image par defaut d'android lorsque je fait un appel dans mon application voila la code:
package com.anis.telgps;

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
 
public class secour extends Activity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.secour);
        //bouton police
        {ImageButton po = (ImageButton)findViewById(R.id.police);
 
        	po.setOnClickListener(new View.OnClickListener() {
 
				public void onClick(View v) {
					Intent po = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:197"));
 
					startActivity(po);
				}
			});
        }
        //bouton protection civil
 
        {ImageButton pro = (ImageButton)findViewById(R.id.protectio);
 
    	pro.setOnClickListener(new View.OnClickListener() {
 
			public void onClick(View v) {
				Intent pro = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:198"));
 
				startActivity(pro);
			}
		});
    } 	
 
      //bouton SAMU
   {ImageButton sam = (ImageButton)findViewById(R.id.samu);
 
    	sam.setOnClickListener(new View.OnClickListener() {
 
			public void onClick(View v) {
				Intent samu = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:193"));
 
				startActivity(samu);
			}
		});
    }
 
   //bouton garde national
 
   {ImageButton sam = (ImageButton)findViewById(R.id.samu);
 
	sam.setOnClickListener(new View.OnClickListener() {
 
		public void onClick(View v) {
			Intent samu = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:193"));
 
			startActivity(samu);
		}
	});
}
 
}
 
}