Hello all,
I have an HTML file which uses a certain font.
When I load this in Webview, the Font information is not considered.
B4A:
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified...
Hi
I am wrapping this library
this library has these functions
Java:
MaryPopup(Activity activity) {
this.activity = activity;
this.activityView = (ViewGroup) activity.findViewById(android.R.id.content);
this.actionBarView =...
As an answer to the thread Forms alike, I thought that the examples below would be of general interest.
Attached there are 4 examples with two same layouts but with different managements:
- TwoPanelActivity
One Activity with 1 Layout with 2 Panels and all views on the panels.
All the code is...
Hi guys,
I have 2 codes,
Code A
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK then
If Info.IsShow then
Info.Close
Return True
End If
End If
Return False
End Sub
Code B
B4X:
Sub Activity_KeyPress (KeyCode As...
Hi,
In my activity there is a scroll view and a scrollview2d. As activity is quite long i put it inside a scroll view.The problem is scrollview2d is scrolling but the scroll view is not.when I put the scroll view directly on the activity it scrolls.
Is there any way to use scrollview inside...
Hi!!
I am developing an application that queries the database. Until today, everything worked fine, but now the following error appears:
B4X:
Registro conectado a: samsung SM-N970F
--------- beginning of crash
--------- beginning of main
*** Service (starter) Create ***
** Service (starter)...
I made an B4XPages application which is working fine and i need to exit application (not running in background) when i click a button.
Please help me. I used this code in B4XMainPage:
B4X:
Sub Button7_Click
Main.pw.ReleaseKeepAlive
' Activity.Finish
ExitApplication
End...
Amir Fragment
Android - Fragments
A Fragment is a piece of an activity which enable more modular activity design. It will not be wrong if we say, a fragment is a kind of sub-activity.
Following are important points about fragment −
A fragment has its own layout and its own behaviour with its...
I created a new project keeping this code:
GPIO example based on Things library:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private ToggleButton1 As ToggleButton
End Sub
Sub...
Hello,
I would like to stay on the "init" screen as long as the download is not complete and then display the "end" screen. With this code, there is no waiting. Thanks for your help.
B4X:
Activity.LoadLayout("init")
Dim job As HttpJob
job.Initialize("j", Me)...
Hi,
I am new to B4A
I make an app with 2 activities,
1. First activity starts, then press a button to start second activity;
after that, app is exit with "pause event(activity is not paused)" when press a back key
2. I open the app again,
First activity starts and app go crash when start...
Hi all,
I'm new in B4XPages and I wish to use the B4XLoadingIndicator as @Erel Tutorial (https://bit.ly/39tXhIA).
Within this tutorial there is a piece of code that should defined within the "Sub Activity_Resume".
B4X:
Sub Activity_Resume
For Each v As View In Activity.GetAllViewsRecursive...
I'm opening this thread to collect tricks and caveats I'm coming across while converting my projects to B4XPages
CallSub from Service
Looks like a service that is started at boot may execute before the Main activity is created.
This was not a problem with CallSub, since it just won't be...
Hello i trying to create little app that reads automobile plate number...
I make some research into this forum but find only 3 links...And nothing work with b4A 10
I get this link https://www.b4x.com/android/forum/t...th-google-play-services-android-vision.70417/
and download every lib and file...
Hi,
I'm trying to figure out the Activity WindowFocusChanged event but there doesn't seem to be much in either the B4X or Android documentation.
When you create an Activity, you add Views to it, or load a Layout. Which part of the Activity is the Window? Is it the entire screen that contains...
Salve a tutti, sono nuovo in questo forum e nel mondo di b4a (da un mesetto ci sono). prima di chiedere, ho cercato per vedere se risolvevo da solo ma nada ...
sto facendo un'app e vorrei nel layout principale dell'app, mettere lo scorrimento in giù.
[CODE = b4x] Sub Activity_Create (FirstTime...
DateTimePicker view is based on the CustomListView with a design similar to the ios datetime picker. This view has only been tested in B4A, it is not very useful in B4i since for ios the built-in picker is better.
Add the module and layout to your project (attached files). You should not...
Attach a demo for my question.
I need return a user definied data from one activity to previous actity.
If the data is primitive (string, int, and other), all is ok, but if my var is definid for me, the value are missing when do a initialize. (i do this for clear var for future calls in other...
I was missing a cross platform, animated gif view, so created one.
Usage is simple:
Add with the visual designer and call SetGif to set the gif file.
Note that in B4A you also need to make a call from Activity_Resume:
B4X:
Sub Activity_Resume
B4XGifView1.Activity_Resume...