callsubdelayed

  1. N

    Android Question CallSubDelayed to service with no result

    Hello to all! I am a big fan of "Wait For" thing. I like asynchronous events so I use them most of the times, but I have a question. I know by a variable, "CurrentActivity", in Starter (service) which activity is active (yes, I do not write in B4XPages, I can not move my project, as it is huge)...
  2. rtek1000

    B4J Question DoEvents alternative

    I saw a recommendation not to use DoEvents: Source: https://www.b4x.com/android/forum/threads/doevents-alternative.68918/#post-437288 But the window freezes if you don't use something to wait a while. And Windows O.S. notifies you that the window is not responding. I managed to read...
  3. N

    Android Question CallSubDelayed doesn't start activity

    As far as I know CallSubDelayed should start the target module. In my case it doesn't. Does using callsubdelayed behaves differently when used inside a service? If IsPaused(activity)=true Then CallSubDelayed2(activity, "param", "value") End If
  4. fbritop

    Other Cancel CallSubUtils B4I/B4X

    I did some modifications, when callSubUtils was not an internal library. I wanted to use this procedure, but I had to dig out in an older project with what I modified. I did found a thread that was asking this. What I actualy did, was that callSubPlus(2), would return a timer instead of a...
  5. rleiman

    Android Question [SOLVED] - Blocked messages in queue when using CallSubDelayed

    Greetings, I made an app that plays songs based on a user set song start and ending period. That part works perfectly as long as the app is displayed on the phone screen. The app also runs quite well in the background and is not easily killed by Android because it's using the technique used in...
  6. A

    Android Question Wait For with OkHTTPUtils2 and CallSubDelayed

    Hi, I have a question. I created a small project (see the attachment) where I tried to learn how to work with a subject. I created a class where I put all the logic -the main procedure in this class calls a private sub that sends request to the server Sub Class_Globals Public FacilityID...
  7. avalle

    B4J Question How to call CallSubDelayed from a different Class Module

    Hi all, I have a B4J Server application implementing a REST API service with multiple Handler Class Modules. In one of these class modules I need to use CallSubDelayed to raise a callback event which is used in a Wait For in a different class module. Is this possible? If so, how do I reference...
  8. LucaMs

    Wish Unlimited number of arguments when using CallSub/CallSubDelayed

    I hope to explain the problem well enough by exposing a concrete example that happened to me just yesterday. I have a routine in an Activity that receives two parameters. When I invoke it from within the Activity itself, I simply use: RoutineName(Param1, Param2). I also called it from a...
  9. C

    Android Question Invoking multiple activities back-to-back w/o an event

    Newbie question. I modified the Two Activities example to see if I could learn how to call multiple activities without an event. I copied Activity2, modified it slightly and named it Activity3. I was able to call multiple activities by using the click event of multiple buttons. But how do you...
  10. LucaMs

    Android Question CallSubDelayed to open an Activity

    I was convinced that by calling from a service a routine of an Activity currently not in Foreground, this Activity would be open. This happen-works only when a different Activity of the app is in Foreground (the app itself is in Foreground); if the app is paused, the call is added to a queue...
  11. Jeffrey Cameron

    Bug? CallsubDelayed in compiled library generating error

    This started happening after I upgraded to v7.80, and was working fine in my last version. When including a compiled B4A library (Project, compile to library) I am getting a java.lang.ClassCastException in the compiled library. This same library works fine when ran in the test program I create...
Top