Skip to content

Commit 71f8962

Browse files
committed
version 2.00
1 parent a7a7a19 commit 71f8962

31 files changed

+966
-0
lines changed

Web API Client 2/B4A/$APPNAME$.b4a

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
Build1=Default,b4a.webapi.client
2+
File1=CategoryItem.bal
3+
File2=MainPage.bal
4+
File3=ProductItem.bal
5+
File4=template_category.json
6+
File5=template_product.json
7+
FileGroup1=Default Group
8+
FileGroup2=Default Group
9+
FileGroup3=Default Group
10+
FileGroup4=Default Group
11+
FileGroup5=Default Group
12+
Group=Default Group
13+
Library1=b4xpages
14+
Library2=b4xpreferencesdialog
15+
Library3=core
16+
Library4=ime
17+
Library5=okhttputils2
18+
Library6=xui views
19+
ManifestCode='This code will be applied to the manifest file during compilation.~\n~'You do not need to modify it in most cases.~\n~'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136~\n~AddManifestText(~\n~<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="33"/>~\n~<supports-screens android:largeScreens="true" ~\n~ android:normalScreens="true" ~\n~ android:smallScreens="true" ~\n~ android:anyDensity="true"/>)~\n~SetApplicationAttribute(android:icon, "@drawable/icon")~\n~SetApplicationAttribute(android:label, "$LABEL$")~\n~CreateResourceFromFile(Macro, Themes.LightTheme)~\n~'End of default text.~\n~SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)~\n~CreateResourceFromFile(Macro, Core.NetworkClearText) ' Comment this if using https protocol
20+
Module1=|relative|..\B4XMainPage
21+
Module2=Starter
22+
NumberOfFiles=5
23+
NumberOfLibraries=6
24+
NumberOfModules=2
25+
Version=12.8
26+
@EndOfDesignText@
27+
#Region Project Attributes
28+
#ApplicationLabel: WebAPI Client
29+
#VersionCode: 7
30+
#VersionName: 2.00
31+
'SupportedOrientations possible values: unspecified, landscape or portrait.
32+
#SupportedOrientations: portrait
33+
#CanInstallToExternalStorage: False
34+
#End Region
35+
36+
#Region Activity Attributes
37+
#FullScreen: False
38+
#IncludeTitle: True
39+
#End Region
40+
41+
'#BridgeLogger: True
42+
43+
Sub Process_Globals
44+
Public ActionBarHomeClicked As Boolean
45+
End Sub
46+
47+
Sub Globals
48+
Private ime As IME
49+
End Sub
50+
51+
Sub Activity_Create(FirstTime As Boolean)
52+
ime.Initialize("IME")
53+
ime.AddHeightChangedEvent
54+
Dim pm As B4XPagesManager
55+
pm.Initialize(Activity)
56+
End Sub
57+
58+
Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
59+
B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "IME_HeightChanged", Array(NewHeight, OldHeight))
60+
End Sub
61+
62+
'Template version: B4A-1.01
63+
#Region Delegates
64+
65+
Sub Activity_ActionBarHomeClick
66+
ActionBarHomeClicked = True
67+
B4XPages.Delegate.Activity_ActionBarHomeClick
68+
ActionBarHomeClicked = False
69+
End Sub
70+
71+
Sub Activity_KeyPress (KeyCode As Int) As Boolean
72+
Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
73+
End Sub
74+
75+
Sub Activity_Resume
76+
B4XPages.Delegate.Activity_Resume
77+
End Sub
78+
79+
Sub Activity_Pause (UserClosed As Boolean)
80+
B4XPages.Delegate.Activity_Pause
81+
End Sub
82+
83+
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
84+
B4XPages.Delegate.Activity_PermissionResult(Permission, Result)
85+
End Sub
86+
87+
Sub Create_Menu (Menu As Object)
88+
B4XPages.Delegate.Create_Menu(Menu)
89+
End Sub
90+
91+
#if Java
92+
public boolean _onCreateOptionsMenu(android.view.Menu menu) {
93+
processBA.raiseEvent(null, "create_menu", menu);
94+
return true;
95+
}
96+
#End If
97+
#End Region
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ModuleBookmarks0=
2+
ModuleBookmarks1=11
3+
ModuleBookmarks2=
4+
ModuleBreakpoints0=
5+
ModuleBreakpoints1=
6+
ModuleBreakpoints2=
7+
ModuleClosedNodes0=
8+
ModuleClosedNodes1=
9+
ModuleClosedNodes2=
10+
NavigationStack=B4XMainPage,Class_Globals,10,0
11+
SelectedBuild=0
12+
VisibleModules=1

Web API Client 2/B4A/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ignore files
2+
*.zip
3+
4+
# ignore ALL files in these directories
5+
AutoBackups/
6+
7+
# Include icon.png inside drawable
8+
Objects/*
9+
!Objects/res/
10+
Objects/res/*
11+
!Objects/res/drawable/
3.55 KB
Binary file not shown.
5.76 KB
Binary file not shown.
4.87 KB
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"Version": 1.1,
3+
"Theme": "Light Theme",
4+
"Items": [
5+
{
6+
"title": "Name",
7+
"type": "Text",
8+
"key": "Category Name",
9+
"required": true
10+
} ]
11+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"Version": 1.1,
3+
"Theme": "Light Theme",
4+
"Items": [
5+
{
6+
"title": "Category",
7+
"type": "Options",
8+
"key": "Category",
9+
"required": true
10+
},
11+
{
12+
"title": "Name",
13+
"type": "Text",
14+
"key": "Product Name",
15+
"required": true
16+
},
17+
{
18+
"title": "Code",
19+
"type": "Text",
20+
"key": "Product Code",
21+
"required": true
22+
},
23+
{
24+
"title": "Price",
25+
"type": "Text",
26+
"key": "Product Price",
27+
"required": true
28+
}
29+
]
30+
}
88.1 KB
Loading

Web API Client 2/B4A/Starter.bas

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
B4A=true
2+
Group=Default Group
3+
ModulesStructureVersion=1
4+
Type=Service
5+
Version=9.85
6+
@EndOfDesignText@
7+
#Region Service Attributes
8+
#StartAtBoot: False
9+
#ExcludeFromLibrary: True
10+
#End Region
11+
12+
Sub Process_Globals
13+
14+
End Sub
15+
16+
Sub Service_Create
17+
18+
End Sub
19+
20+
Sub Service_Start (StartingIntent As Intent)
21+
Service.StopAutomaticForeground
22+
End Sub
23+
24+
Sub Service_TaskRemoved
25+
26+
End Sub
27+
28+
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
29+
Return True
30+
End Sub
31+
32+
Sub Service_Destroy
33+
34+
End Sub

0 commit comments

Comments
 (0)