Kivy: Send Notification at certain time - android

I would like to send a notification at a certain time (That I can specify) that can send even when the app is not in use. I have seen a few examples of this, but not in kivy. If anyone could give me some example code of this (in python and kivy) that would be great! Thanks in advance!

You'll want to look into making a background service for Android and the equivalent in ios. I've given a rough breakdown on how to do this in this thread here https://www.reddit.com/r/kivy/comments/asojmg/examples_of_kivy_with_service_backend/
If you want to do this on linux\pc\macos I'm not sure about that but I'm sure there's similar background services for them too.

Related

How to make apps stay in the background without being killed?

Hi so I got a new phone but the apps I need to stay in the background keep on being killed. I have turned off battery optimization and used the don'tkillmyapp said it was 100% not much help. I looked around and someone mentioned that you can make apps stay in the background using adb. Can you please link a website on how to do that since I'm a beginner or you can just tell me how. Please and thank you.
Use Worker. You can use workers for a specific task or to run others periodically. Here I leave the link for more information.
https://www.google.com/url?sa=t&source=web&rct=j&url=https://developer.android.com/reference/androidx/work/Worker&ved=2ahUKEwiQjZyz6JbuAhUm2FkKHQheAnIQFjABegQIARAB&usg=AOvVaw3RUYn3s9t_S_Mks1x4p8H0

Tracking screen time in android

for a university project I have to track the screen time of an android smartphone. It's hard to find proper search results, because my search engines do only suggest apps, that already do this for you. I am interested in how these apps do this. I assume, there is a native API on android which supports you with this. Unfortunately, I can't find anything that already does this.
The app is supposed to run a little service which tracks the time of the screen activity and other stuff (like location). It would be great, if someone of you can help me out on where to look for examples and where to find information about the android API.
Edit:
To be a bit more precise: It's about the overall screen time, not about the screen time a specific app has.
Broadcast Actions might be a solution for this,
ACTION_SCREEN_ON
ACTION_SCREEN_OFF
https://developer.android.com/reference/android/content/Intent.html#ACTION_SCREEN_ON
https://developer.android.com/reference/android/content/Intent.html#ACTION_SCREEN_OFF

Is there any simple way to create background task in NativeScript/Angluar for IOS and Android?

I' am looking for solution to running custom process indefinetly in background, even if user quit from application. It would fetching data from the server and generate local notification. I' am working with Nativescript/Angular and I heard about Workers but as far as I know, they can't keep the process if the app is not in foreground. It would be greatful if the solution will be suitable for IOS and Android. Have you any ideas to do this? Thanks in advance for your involvement
iOS can not run something on background continuously. It's the OS which decides when your background execution can run. Refer BackgroundExecution docs for more info and samples.
On Android you are free to run it continuously at least until the user blocks it on his choice, sample implementation can be found here.

Seek for help about Android Programming

I want to know how to control system resources and services like bluetooth, SMS, phone contacts etc.
Honestly, i want to know how or what to do to control sms usage based on user behavior, block incoming call or change it to auto vibrate mode without user noticed like that.
Actually, I want it for my assignment about context aware access control paper.
I choose Android for implementation but i am afraid i
couldn't submit my paper in time if i study android from the beginning and all by myself.
No offense but I want to avoid errors.
I feel my head becomes swollen whenever "force close error" show as I need it urgent.
As Willytete said developer site is the best one for you
There you can find
Application Fundamentals
Download the Android SDK and start programing
The first program tutorial where you can start Hello World
Notepad Tutorial where it give you a lot of ideas
List of Sample Apps, where there is a lot of codes
Getting the Samples, it explain how to use this.
You will get all the information from developer site that you needed, while move from beginner to an expert

Good sample application for android service

Is there a good sample application or tutorial for creating android Service that run in the background?
The Android API Demos include a Remote Service sample. I think we used it as the starting point for our background service. There is also example code right in the documentation for the Service class.
Well, I don't know any apart from my own application. But that is real applications with all the extra code that comes with it and not sample as such.
If you still want to have a go you I suggest you look for Service_Intend and Service_Connection in Calculator_Activity.java and for Calculator_Thread and Binder in Calculator_Service.java. That should give you some idea.

Categories

Resources