Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting screen orientation change from service [duplicate]

A pretty simple and straightforward question... is it possible for a service to detect screen orientation changes? If so, how?

like image 312
Brian Avatar asked Aug 05 '11 05:08

Brian


1 Answers

This link will answer your question: How do I use a service to monitor Orientation change in Android

You can also create a BroadcastReceiver that listens for Intent.ACTION_CONFIGURATION_CHANGED ("android.intent.action.CONFIGURATION_CHANGED")

like image 67
Hussain Avatar answered Sep 30 '22 16:09

Hussain