MitchBu Well-Known Member Licensed User Longtime User Jan 26, 2022 #1 When the user puts the device to sleep with the button, apps stop executing. Is there any way to keep an app running when the device sleeps ? TIA
When the user puts the device to sleep with the button, apps stop executing. Is there any way to keep an app running when the device sleeps ? TIA
JohnC Expert Licensed User Longtime User Jan 26, 2022 #2 Not really. But depending on what your app needs to do, we might be able to figure out a work-around to solve your situation. For example, you can setup specific times to wake the device and run your app for a short period of time before the device goes back to sleep. So, what exactly does your app do and how often does it need to do that? Upvote 0
Not really. But depending on what your app needs to do, we might be able to figure out a work-around to solve your situation. For example, you can setup specific times to wake the device and run your app for a short period of time before the device goes back to sleep. So, what exactly does your app do and how often does it need to do that?
Sandman Expert Licensed User Longtime User Jan 26, 2022 #3 None that are reliable across different models and OS versions. A niche device, or perhaps if it's rooted, might have a different situation. Upvote 0
None that are reliable across different models and OS versions. A niche device, or perhaps if it's rooted, might have a different situation.
Erel B4X founder Staff member Licensed User Longtime User Jan 27, 2022 #4 Check this example: Background location tracking As written above, it will not work reliably on all devices. Upvote 0
Check this example: Background location tracking As written above, it will not work reliably on all devices.
MitchBu Well-Known Member Licensed User Longtime User Jan 28, 2022 #6 Oops. Something is missing: Linking resources Error c:\android\tools\..\extras\b4a_remote\androidx\core\core\1.7.0\unpacked-core-1.7.0\res\values\values.xml:113: error: resource android:attr/lStar not found. error: failed linking references. Upvote 0
Oops. Something is missing: Linking resources Error c:\android\tools\..\extras\b4a_remote\androidx\core\core\1.7.0\unpacked-core-1.7.0\res\values\values.xml:113: error: resource android:attr/lStar not found. error: failed linking references.
S Spavlyuk Active Member Licensed User Jan 28, 2022 #7 What's the value for targetSdkVersion in your manifest? androidx.core:core:1.5.0 and above require targetSdkVersion=30. Upvote 0
What's the value for targetSdkVersion in your manifest? androidx.core:core:1.5.0 and above require targetSdkVersion=30.
MitchBu Well-Known Member Licensed User Longtime User Jan 28, 2022 #8 Spavlyuk said: What's the value for targetSdkVersion in your manifest? androidx.core:core:1.5.0 and above require targetSdkVersion=30. Click to expand... No, its not that. I set targetSDKVersion to 30 and I get exactly the same error message. Seems some resource is missing. Upvote 0
Spavlyuk said: What's the value for targetSdkVersion in your manifest? androidx.core:core:1.5.0 and above require targetSdkVersion=30. Click to expand... No, its not that. I set targetSDKVersion to 30 and I get exactly the same error message. Seems some resource is missing.
MitchBu Well-Known Member Licensed User Longtime User Jan 28, 2022 #9 I have downloaded and reinstalled the Android folder, following scrupulously the guidelines at https://www.b4x.com/b4a.html No joy. It is really frustrating. Feels like giving up altogether :/ Upvote 0
I have downloaded and reinstalled the Android folder, following scrupulously the guidelines at https://www.b4x.com/b4a.html No joy. It is really frustrating. Feels like giving up altogether :/
Erel B4X founder Staff member Licensed User Longtime User Jan 30, 2022 #10 Make sure to use 7zip to unzip the two packages. They include everything needed and you don't need to start B4A SdkManager at all. Upvote 0
Make sure to use 7zip to unzip the two packages. They include everything needed and you don't need to start B4A SdkManager at all.
MitchBu Well-Known Member Licensed User Longtime User Jan 30, 2022 #11 Erel said: Make sure to use 7zip to unzip the two packages. They include everything needed and you don't need to start B4A SdkManager at all. Click to expand... I am sorry, Erel, I have done what you recommend 4 or 5 times, used 7zip to extract. Still no luck. Upvote 0
Erel said: Make sure to use 7zip to unzip the two packages. They include everything needed and you don't need to start B4A SdkManager at all. Click to expand... I am sorry, Erel, I have done what you recommend 4 or 5 times, used 7zip to extract. Still no luck.
Erel B4X founder Staff member Licensed User Longtime User Jan 30, 2022 #12 Can you upload the project? Upvote 0
MitchBu Well-Known Member Licensed User Longtime User Jan 31, 2022 #13 Erel said: Can you upload the project? Click to expand... It is the sample project I downloaded from the Background location tracking link you posted. Attachments MyLocation.zip 8.9 KB · Views: 76 Upvote 0
Erel said: Can you upload the project? Click to expand... It is the sample project I downloaded from the Background location tracking link you posted.
Erel B4X founder Staff member Licensed User Longtime User Jan 31, 2022 #14 It of course compiles fine here. Can you post a screenshot with the Paths Configuration dialog? Upvote 0