Android Question google word pronunciation problem

AbbasMohammed

Member
Licensed User
Longtime User
Hellow evrybody,
this code shold result pronunciation of the word Edel , but it didnt, can any one help me about this,
B4X:
Dim WebView1 as webview
WebView1..initilize("xxx")
WebView1.LoadUrl("http://translate.google.com/translate_tts?tl=de&q="&"Edel")
Many thanks in advance
 

eurojam

Well-Known Member
Licensed User
Longtime User
you have to add the webview to a parent view like the activity:
B4X:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    Dim WebView1 As WebView
    WebView1.initialize("xxx")
    Activity.AddView(WebView1,0,0,100%x,100%y)
    WebView1.LoadUrl("http://translate.google.com/translate_tts?tl=de&q=Edel")

End Sub
 
Upvote 0
Top