[android-developers] Re: Menu : Handling click events : DialogBox

2012-05-12 Thread Tolriq
You can put it in both it's the same. You just forgot to show the created dialog :) Dialog dialog = new AlertDialog.Builder(this).setTitle(About).setMessage(el viva Android !).create(); dialog.show(); Le samedi 12 mai 2012 12:10:20 UTC+2, huberte a écrit : I did red

[android-developers] Re: Menu : Handling click events : DialogBox

2012-05-12 Thread huberte
Le samedi 12 mai 2012 07:20:46 UTC-4, Tolriq a écrit : You just forgot to show the created dialog :) o| Sorry Thanks Tolric :) Just 3 other questions if I may. The text in question could be very long, 1. Would the scrollbar auto appears ? 2. Should I use the sample code from API

[android-developers] Re: Menu : Handling click events : DialogBox

2012-05-12 Thread Tolriq
If simple TextView there's no scrollbar by default, you need a scrollview or things like : http://stackoverflow.com/questions/1748977/making-textview-scrollable-in-android For 2 and 3, it depends on your needs :) If you want your text in multiple language then res would be the way to go, if

[android-developers] Re: Menu : Handling click events : DialogBox

2012-05-12 Thread huberte
Thanks. But I'm to noob to check how to have this menu item clicked and then display a basic textbox from a txt file... I try to find something easy, but I didn't succeed :( Le samedi 12 mai 2012 09:38:29 UTC-4, Tolriq a écrit : If simple TextView there's no scrollbar by default, you need a

[android-developers] Re: Menu : Handling click events : DialogBox

2012-05-12 Thread huberte
Tolriq, I have this main.xml : ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical ScrollView android:id=@+id/scrollView1

Re: [android-developers] Re: Menu : Handling click events : DialogBox

2012-05-12 Thread Kostya Vasilyev
Regarding the umlauts: 1) Replace this: // Convert the buffer into a string. String text = new String(buffer); with this: // Convert the buffer into a string. String text = new String(buffer, UTF-8); ... you will now need to catch UnsupportedEncodingException, as a

Re: [android-developers] Re: Menu : Handling click events : DialogBox

2012-05-12 Thread huberte
Le samedi 12 mai 2012 18:17:55 UTC-4, Kostya Vasilyev a écrit : ... you will now need to catch UnsupportedEncodingException, as a formality. Didn't understood... 2) Check the encoding of your asset text file in Eclipse: right click, properties, see bottom of the right pane. Done,