Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Android application running in background
QtWS25 Last Chance

Qt Android application running in background

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SebiSebi2
    wrote on last edited by
    #1

    Hello!

    I'm trying to make a clock alarm for Android. I've encountered the following problem: if the application is turned on, and the user set the time for alarm and press the "back" button on the phone, the processes is killed. How can I handle this situation? I want the application to continue running in background?

    A 1 Reply Last reply
    0
    • S SebiSebi2

      Hello!

      I'm trying to make a clock alarm for Android. I've encountered the following problem: if the application is turned on, and the user set the time for alarm and press the "back" button on the phone, the processes is killed. How can I handle this situation? I want the application to continue running in background?

      A Offline
      A Offline
      alexvplay
      wrote on last edited by
      #2

      @SebiSebi2 For this use case I guess it would be best to intercept the back button event in native Java Android code and put the activity in the background instead.

      Best,
      Alex from V-Play

      CoFounder of Felgo - https://felgo.com/qt

      Felgo simplifies Mobile App & Game Development with Qt
      What others say: Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SebiSebi2
        wrote on last edited by
        #3

        And how can I put the activity in the background? If I overwrite closeEvent(QCloseEvent *) what should I write inside in order to make the application run in the background?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved