Android Question Floating Button keeps pausing other apps

Discussion in 'Android Questions' started by Shivito1, Mar 13, 2018.

  1. Shivito1

    Shivito1 Active Member Licensed User

    My app keeps pausing videos when I try to use the fly menu of the bubble. I attached a picture showing the menu and the paused video. Star-Dust mentioned "force it to go in the background by opening a transparent activity from your app" I do use transparency but my question is how do I force it to the background.
     

    Attached Files:

  2. Star-Dust

    Star-Dust Expert Licensed User

    If you need to use the floating button only to pause and restart the crunchyroll video, this code can help you.

    But if you have to do more I must have more information about the crunchyroll API (if any)

    The operation is as follows:
    When you click the pause button, a transparent activity opens. Crunch loses the foreground and pauses the video.

    If you click the play button, the transparent task closes and returns the foreground to the one that continues with the video.
     

    Attached Files:

    Shivito1 likes this.
  3. Shivito1

    Shivito1 Active Member Licensed User


    specialPermission library?
    I searched for it but did not find. Is this included with newer version of B4X?
     
  4. Shivito1

    Shivito1 Active Member Licensed User

    I don't want it to pause the video because it will cause the subtitles to not sync properly.
     
  5. Star-Dust

    Star-Dust Expert Licensed User

    So you do not want to click the button and pause the video, but do you want to open a full menu and let the video continue?

    If you want to have a complete menu, as in the example n.2 of my library, but without pausing the video, the menu should be opened without starting any activity.
    In the example number 2 the menu is linked to a transparent activity that pauses the video of the app under.

    Actually, it is possible to have a complete floating menu without opening the activity, but I limited it to a single floating button.

    At the moment I do not plan to change it, it would take time that I do not have available. But there are other libraries that you can find that do similar things, @JordiCP and others I think of @Informatix that are right for you. Search the forum for the word StandOut
     
    Last edited: Mar 14, 2018
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice