Is it possible to detect if iphone/ipo/ipad is activating(user is using them) [duplicate] - iphone

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Is it possible to detect if my app is running and displaying on screen?
Hello everyone
My app is running in background.
Is it possible to detect if iphone/ipo/ipad is activating(user is using them) rath than is sleeping or locked screen ?
Welcome any comment

Not when it's in the background. You only receive messages from the OS when your application is involved in the event.

Related

How can I restart application by clicking a button? [duplicate]

This question already has answers here:
How to force a Flutter application restart (in production mode)?
(11 answers)
Closed 3 years ago.
I want to restart my application by clicking a button.
How can I do like that when click a button?
In Flutter, AFAIK it is not available. But you can implement by platform channel.
In Android, You can do this with this answer.
In iOS it is not possible natively also.

xCode Profile: there are errors when profiling, but there is none when running [duplicate]

This question already exists:
Closed 10 years ago.
Possible Duplicate:
Errors Of GData occurs when profiling my app
The issue is told in the title. I am wondering whether it is ok for my app submission to app store as some files only linked dynamically. Can anyone give me some advice?

How to make a floating app using BASIC4Android [duplicate]

This question already exists:
Closed 11 years ago.
Possible Duplicate:
How to make an app that floats
Is it possible to make apps that float in front of other apps (like the mini apps on Samsung's Galaxy tab) using BASIC4Android? If so, how?
You can create a an activity with a transparent background. See this link.

How to programmatically minimize an iPad application? [duplicate]

This question already has answers here:
Proper way to exit iPhone application?
(24 answers)
Closed 8 years ago.
How do I programmatically minimize an iPad/iPhone UIApplication?
Actually there no such method for minimize iPhone app.
You can try with "exit(0)" to close the app.
Cheers.
You can't. You can only switch to another app. I don't think apple has a public API for doing this.

how to create a dice iphone application [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I detect when someone shakes an iPhone?
i know there was many dice application in the store but i just want to know how to start to create a application ,when shake the phone the 3D model will roll,thanks if can give any pointer on how to start
There are samples with the SDK from Apple.