Bonjour,
Je débute sous android .... et mes bases java sont faibles.
juste deux lignes de code
évidement rien ne marche, d'où vient Context ?Code:
1
2
3 import android.content.Context; Context.getSystemService(Context.TELEPHONY_SERVICE);
le message :
? y a un explication simple ?Citation:
Cannot make a static reference to the non-static method getSystemService(String) from
the type Context
j'ai trouvé :
mais aucune explication d'où vient context ?Code:
1
2
3 TelephonyManager tel = (TelephonyManager) context . GetSystemService (Context.TELEPHONY_SERVICE);
merci
AE