Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Widget not working properly when changing orientation

Widget not working properly when changing orientation

Put your problem here if it does not fit any of the other categories.

Widget not working properly when changing orientation

Postby bhushan.kasturiwale » Mon Aug 17, 2009 7:11 am

Hello ,

I am working on the Android AppWidgetProvider . The widget is working properly.
But if change the orientation of the emulator then the onUpdate() method is not called.
I am not able to launch the memo when I change the potrait mode.
I am not able to call it manually as I am not getting any event for the Orientation change.
Please let me know what can be done for it.

Hello plusminus I am great fan of yours.
The answers which you give help us a lot.
Thanks plusminus for that.
bhushan.kasturiwale
Freshman
Freshman
 
Posts: 4
Joined: Mon May 25, 2009 12:35 pm

Top

Postby shialesh » Mon Aug 17, 2009 1:20 pm

int orientation = getWindowManager().getDefaultDisplay().getOrientation();

this will give 1 or 0 according to the orientation and you can manage your code according to that value.
shialesh
Freshman
Freshman
 
Posts: 9
Joined: Thu Jul 30, 2009 11:11 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 14 guests