0
// I use this method to determine the change screen orientation    
Activity.isChangingConfiguration()

and

ColorDrawable.getColor() // I use this method to get activity background color

These methods were added in api version 11. Now I have to use minimum version of api - 8.

Sorry for my English.

Thanks

leonidandand
  • 115
  • 1
  • 11

1 Answers1

0

This work for color

getResources().getColor(R.color.gray_light);

For orientation: old post. Try using google, or this website search engine :) Good luck

Community
  • 1
  • 1
Vasil Valchev
  • 5,701
  • 2
  • 34
  • 39