rafffel Posted March 11, 2010 Share Posted March 11, 2010 Bon soucis sur lequel je bloque. ça doit pas être compliqué mais j'ai pas trouvé de solution évidente :( dialog = ProgressDialog.show(this, "Dialog",R.string.DialogLocale, true, true, new DialogInterface.OnCancelListener() { public void onCancel(DialogInterface arg0) { finish(); } }); Le soucis c'est que R.string.DialogLocale est un int (textId pour les string en fonction des paramètres de language) et que le .show() demande un charsequence. Avez vous un quelquonque moyen de convertir le TextId en charsequence? Link to comment Share on other sites More sharing options...
Alocaly Posted March 11, 2010 Share Posted March 11, 2010 Yep : String Text = getResources().getString( R.string.DialogLocale ); Et voila, le tour est joué !!! Emmanuel / Alocaly Link to comment Share on other sites More sharing options...
rafffel Posted March 11, 2010 Author Share Posted March 11, 2010 Merci bien :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.