B4A How to popup a message box on top of non-related apps - basic4android

I need to run a service that notifies an android phone user with a button/messagebox that there is a message waiting for them in a background app. I have a scheduler program that does this very thing. Can someone help me with the code or point out some code that will do this?
Thanks

Related

Move flutter (dart) function to foreground service ANDROID

Im working on the app sends list of data to server one by one in foreground with progress indication via push notification to user. I need to send the data to server even the app is killed with the progress indication using the android service.
Is this possible? If not please suggest me any other solutions or techniques.

Can a google chrome app be prevented from closing?

I can see nothing in google's documentation to indicate how to prevent a user from closing a chrome app. Has anyone come up with a way to accomplish this? I think there is clue in the documentation about the onSuspend event. It says - After receiving onSuspend no further events will be delivered to the app, unless the suspension is aborted for some reason.
How can the suspension be aborted?
Some events can trigger an onSuspendCancel. I found that making a new XMLHttpRequest to any URL will do the trick. You could also call chrome.runtime.reload and make the app start anew.
In general there should be no need to prevent the background page from suspending, because it can be woken up with either a persistent listening socket, or runtime message, or google cloud message, etc.
If you just want to prevent the user from closing an app window, there is no way to do this, apart from implementing your own custom app window frame and intercepting for example control-w. You need to just save your work or app state outside the window context (should not be too hard to do this) so that you can still have it even when the window is closed unexpectedly.

Alerting the user (Tracking) when call gets connected - Win8 metro style

I have just started using Win 8 Metro style Apps development.
Is there a way exist to track when the out going call is connected?
I want to alert the user (may be phone vibration), once connection is established.
Please give me some hint to accomplish the same.
Thanks in advance
If you are talking about simple phone calls, then no. All call-related activity is handled by the system, and your app has no control over it and therefore no need to be notified about it. If you initiate a call task from your app, the app is put into the background, and the system takes over to handle the call. This is the same behaviour as in previous Windows Phone versions.

Application which work in background only iPhone

I have requirement for an application which work in background only.
When first time application install on device then after installation that will be go to background. And after two minutes a view will popup on screen.
Now problem is that after installation how to redirect application into background?
i get answer for this that if we want to send our app into background then we have to open another app like as safari. so i get this solution.
Now problem is that how show a view after two minutes from background. I have to create as a demo not for app store. So if anyone have any solution then suggest me.
Thanks
It is not possible to do so in iOS. You can't send an app into the background
If you want your app to get displayed, the only way to do so is through push (from server) or local (from phone) notifications, and the user has to explicitly accept it.
Unfortunately, you can't make it open automatically.
iOS is not designed to run code in the background. There are a few exceptions, for example a music streaming app, or a GPS navigation app, but in general it cannot be done.
Instead, you should run your app on a server in the cloud, and send a push notification to the phone when you want something to happen on the phone. You may also be able to achieve this with "local notifications", depending on what you're trying to do.

iOS 4 Location Service Prompt Dialog Doesn't Show Up

I'm experiencing an issue with how iOS 4 manage Location Service. Previously, when the location service is disabled, any application that uses location service will prompt the user to turn it on. However, in iOS 4, it didn't prompt that dialog box and just stays quiet. Is there a way to call the default dialog box which ask the user to turn on the location service, or did they remove that and requires the developers to create their own dialog box?
If the user doesn't want any apps to know their location, you shouldn't nag them. The user can also disable location services for specific apps.
There is a way to detect this behavior with Javascript in the browser - the error returned has a different code and message - so I imagine that there's a way to do this with an actual app as well.
Not an Obj-C coder, though, so can't actually help out with details. :)