Android Question Executing app code after device orientation change

Discussion in 'Android Questions' started by MoraviaVenus, Mar 14, 2015.

  1. MoraviaVenus

    MoraviaVenus Member Licensed User

    Hi all,

    I am developing an app, which allows user to create and edit wallpapers. One of the features should be the possibility to set different wallpapers based on the device orientation (portrait vs. landscape). Although not only when the application runs, but also when the app is closed.

    I need to call a code of my app, which runs everytime the device orientation changes.

    Please, how is it possible to call part of my app, which handles setting wallpaper (either portrait or landscape)?

    Thank you for help.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The SizeChanged event should be raised when the orientation changes.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice