سلام دوستان میشه یکی بگه intialize یعنی چی؟؟؟ اصلا چرا استفاده میشه؟
این کد من چی کم داره که اجرا نمیشه؟
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: false
#End Region
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 variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim tabhost1 As TabHost
Private WebView2 As WebView
Private WebView1 As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
WebView1.Initialize("web1")
WebView2.Initialize("web2")
Activity.LoadLayout("layout1")
WebView1.LoadUrl("http://www.software-developer.blog.ir")
WebView2.LoadUrl("http://www.google.com")
tabhost1.AddTabWithIcon("صفحه اصلی",LoadBitmap(File.DirAssets,"1.png"),LoadBitmap(File.DirAssets,"1326809954_camaro_100.png"),"l1")
tabhost1.AddTabWithIcon("سورس کد",LoadBitmap(File.DirAssets,"1326810553_childhood_dream_128.png"),LoadBitmap(File.DirAssets,"3floppy_mount.png"),"l2")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
WebView1.back
Return True
End If
End Sub
Sub web1
End Sub
Sub web2
End Sub
سوال
amirsafari 116
سلام دوستان میشه یکی بگه intialize یعنی چی؟؟؟ اصلا چرا استفاده میشه؟
این کد من چی کم داره که اجرا نمیشه؟
#Region Project Attributes #ApplicationLabel: B4A Example #VersionCode: 1 #VersionName: 'SupportedOrientations possible values: unspecified, landscape or portrait. #SupportedOrientations: unspecified #CanInstallToExternalStorage: False #End Region #Region Activity Attributes #FullScreen: False #IncludeTitle: false #End Region 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 variables will be redeclared each time the activity is created. 'These variables can only be accessed from this module. Dim tabhost1 As TabHost Private WebView2 As WebView Private WebView1 As WebView End Sub Sub Activity_Create(FirstTime As Boolean) 'Do not forget to load the layout file created with the visual designer. For example: WebView1.Initialize("web1") WebView2.Initialize("web2") Activity.LoadLayout("layout1") WebView1.LoadUrl("http://www.software-developer.blog.ir") WebView2.LoadUrl("http://www.google.com") tabhost1.AddTabWithIcon("صفحه اصلی",LoadBitmap(File.DirAssets,"1.png"),LoadBitmap(File.DirAssets,"1326809954_camaro_100.png"),"l1") tabhost1.AddTabWithIcon("سورس کد",LoadBitmap(File.DirAssets,"1326810553_childhood_dream_128.png"),LoadBitmap(File.DirAssets,"3floppy_mount.png"),"l2") End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub Sub Activity_KeyPress (KeyCode As Int) As Boolean If KeyCode = KeyCodes.KEYCODE_BACK Then WebView1.back Return True End If End Sub Sub web1 End Sub Sub web2 End Subلینک ارسال
به اشتراک گذاری در سایت های دیگر
2 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.