rfresh Well-Known Member Licensed User Longtime User May 14, 2019 #1 I'm running a Clock and need to bring my app to the foreground when the time is up. I found this code below (from Erel) but I am getting a msg asking if I am missing a library reference. I don't see these in the list of libraries. Code: Copy Dim Intent1 As Intent Dim pm As PackageManager Intent1 = pm.GetApplicationIntent (myapps.package.name) StartActivity (Intent1)
I'm running a Clock and need to bring my app to the foreground when the time is up. I found this code below (from Erel) but I am getting a msg asking if I am missing a library reference. I don't see these in the list of libraries. Code: Copy Dim Intent1 As Intent Dim pm As PackageManager Intent1 = pm.GetApplicationIntent (myapps.package.name) StartActivity (Intent1)
klaus Expert Licensed User Longtime User May 14, 2019 #2 Are you sure that the code is for B4i? For me it's B4A code. PackageManager is part of the B4A Phone library. StartActivity (Intent1) doesn't exist in B4i. Sorry, but I have no answer to your question. Upvote 0
Are you sure that the code is for B4i? For me it's B4A code. PackageManager is part of the B4A Phone library. StartActivity (Intent1) doesn't exist in B4i. Sorry, but I have no answer to your question.
rfresh Well-Known Member Licensed User Longtime User May 14, 2019 #3 You are right Klaus and I made the mistake when I was reading that post where I got the code. I thought it was an iOS post but I'm sure you are correct. Maybe someone can jump in and answer my question: in iOS how to bring an app to the foreground. Last edited: May 15, 2019 Upvote 0
You are right Klaus and I made the mistake when I was reading that post where I got the code. I thought it was an iOS post but I'm sure you are correct. Maybe someone can jump in and answer my question: in iOS how to bring an app to the foreground.
Erel B4X founder Staff member Licensed User Longtime User May 15, 2019 #4 rfresh said: in iOS how to bring an app to the foreground Click to expand... It is impossible. The best you can do is to show a notification. Upvote 0
rfresh said: in iOS how to bring an app to the foreground Click to expand... It is impossible. The best you can do is to show a notification.