activity

  1. practicalsoft

    B4X FEED Webview -How to include the Font information in HTML file?

    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...
  2. practicalsoft

    B4X FEED ba.activity problem

    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 =...
  3. practicalsoft

    B4X FEED Different examples with 2 layouts

    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...
  4. practicalsoft

    B4X FEED Strange Activity_KeyPress & if statement

    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...
  5. practicalsoft

    B4X FEED [JRDC] SocketTimeoutException: failed to connect to

    Hello! The following error occurs during testing: Spoiler: ResponseError --------- beginning of main *** Service (starter) Create *** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** *** Service (httputils2service) Create *** ** Service...
  6. practicalsoft

    B4X FEED Scroll View Inside Scroll View

    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...
  7. practicalsoft

    B4X FEED httputils2service_hc_responsesuccess (B4A line: 74) problem

    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)...
  8. practicalsoft

    B4X FEED I need help to exit an application In B4XPages application

    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...
  9. practicalsoft

    B4X FEED Amir_Fragment

    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...
  10. practicalsoft

    B4X FEED Missing permission for GPIO (Android Things)

    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...
  11. practicalsoft

    B4X FEED HttpJob : wait for the end of downloading

    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)...
  12. practicalsoft

    B4X FEED ** Activity (main) Pause event (activity is not paused). **

    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...
  13. practicalsoft

    B4X FEED B4XPages and B4XLoadingIndicator

    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...
  14. practicalsoft

    B4X FEED [B4X] B4XPages - Converting to B4XPages

    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...
  15. practicalsoft

    B4X FEED B4A OCR Problem on b4a 10

    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...
  16. practicalsoft

    B4X FEED Activity WindowFocusChanged event.

    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...
  17. practicalsoft

    B4X FEED Scrollview con b4xdrawer

    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...
  18. practicalsoft

    B4X FEED [B4X] [XUI] DateTimePicker View

    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...
  19. practicalsoft

    B4X FEED What is the best technique to return variables between activities

    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...
  20. practicalsoft

    B4X FEED [B4X] B4XGifView - Cross platform animated gif view

    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...
عقب
بالا