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 - Problems starting Activity from AppWidgetProvider

I have a Widget that should launch an Activity I made (called MyActivity) when you click on it. It doesn't do that, however - when I click on it nothing happens. In an earlier version of this code I had the Widget launch the browser when you click on it, and that works fine. I just can't make it work with my own personal Activity.

I have a feeling that the problem has to do with me specifying actions and categories and such in the manifest (which is why I'm posting this question here), but I'm not certain.

Here are the relevant portions of my code. Also probably some irrelevant portions. =)

I've been doing some more troubleshooting but still without success. Here's the logcat output for when I click on the Widget. The first section is when the browser code is in (and it behaves as expected). The second section is when the MyActivity code is in (and it doesn't work).

It's not adapted to your problem but it should give you a hint what to do. In your case the action should be Intent.ACTION_VIEW and uri can also be sthg like market://, which will then call the Market-Application while http:// calls the Browser.
Guess your main mistake is the missing Flag "Intent.FLAG_ACTIVITY_NEW_TASK".

I am having the exact same problem. I built the code from the examples and my problem is that nothing I want to happen will happen with the pendingintent. I've tried setting it to activities I have, various broadcasts, and service (mainly I want the service because my widget just tries to toggle something when clicked and that's what the service start command does, but I had tried making it launch a broadcast that I declared in the manifest with no results).

I'll report back as I try a few workarounds and fixes

Last edited by i4nc4mp on Sat Jan 09, 2010 10:19 pm, edited 1 time in total.

To make this work, you also have to call the same thing in onUpdated. Reason is, that enabled isnt called when device is first booting, but updated is. as far as I've testing, the two redundant calls to it seems to cause no problems when all the code does is add the listener to the view. luckily onupdated already passes the reference to the manager in the params.