Emulator Problem

codeit707

Member
eGreetings,
Can anyone test this attached source code and tell me if it connects to the web site (using the Emulator)?

I have tried everything I can think of and can not get the Emulator to load a web page;-(
* am not running behind a proxy
* have uninstalled the re-install the Android SDK (thinking this might correct the problem)


Thanks in advance,
mikeB

the code*****************************************************

Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.

End Sub

Sub Globals
'These global variabes will be redeclared each time the activity is created.
'These variables can only be accessed from this module.


Dim Button1 As Button
Dim WebView1 As WebView
Dim ImageView1 As ImageView
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("mikestest") 'Load the layout file.
Button1.Text = "Connect to Lakota Speakster - v.FREE"

WebView1.Top = 0
WebView1.Left= 0
WebView1.Width=100%x
WebView1.Height=100%y
WebView1.Visible = False
End Sub

Sub Button1_Down
Msgbox("Connecting to the mobi site...","Lakota Speakster")

WebView1.LoadUrl ("http://www.lakotaspeakster.com")
WebView1.Visible = True
ImageView1.Visible = False
Button1.visible = False
End Sub
******************************************************
 

Attachments

  • Test1.zip
    847 bytes · Views: 185

codeit707

Member
Oooooooooooops!

Sorry for my ignorance!

Did not include the project files with the last zip file.

Here's a new one;-)

Thanks in advance - I'd REALLY like to get this thing going,
mikeB
 
Upvote 0

codeit707

Member
Oooooooooooops!

Sorry for my ignorance!

Did not include the project files with the last zip file.

Here's a new one;-)
get it at >>> Bad Link (1.46Mb(

Thanks in advance - I'd REALLY like to get this thing going.
mikeB
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Works here without any problem:
SS-2011-10-16_09.33.07.png


The following code is better:
B4X:
'Activity module
Sub Process_Globals
   'These global variables will be declared once when the application starts.
   'These variables can be accessed from all modules.

End Sub

Sub Globals
   'These global variabes will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.
   

   Dim Button1 As Button
   Dim WebView1 As WebView
   Dim ImageView1 As ImageView
End Sub

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("mikestest") 'Load the layout file.
Button1.Text = "Connect to Lakota Speakster - v.FREE"

 WebView1.Top = 0
 WebView1.Left= 0
 WebView1.Width=100%x
 WebView1.Height=100%y
 WebView1.Visible = False
End Sub

Sub Button1_Down
 ProgressDialogShow("Connecting to the mobi site...")

 WebView1.LoadUrl ("http://www.lakotaspeakster.com")
 WebView1.Visible = True
 ImageView1.Visible = False
 Button1.visible = False
End Sub
Sub WebView1_PageFinished (Url As String)
   ProgressDialogHide
End Sub
 
Upvote 0

codeit707

Member
Thanks!

eGreetings,
THANK YOU FOR YOUR GREAT SUPPORT!

I installed everything on a different system (after you confirmed it was not the code but rather SOMETHING to do with SOMETHING with how the dev system is configured (still have not figured it out;-( and everything works as expected.

Your software product is GREAT but what has sold me is your support - THANKS again.

mikeB
code-it.com
 
Upvote 0
Top