[mono-android] Setting Configuration activity for Widget

tweaver60 tweaver60 at comcast.net
Wed Feb 22 21:01:15 UTC 2012


I'm creating an app widget configuration activity - mIConfig (file is
mIConfig.cs). Here are my custom attributes:

    *[Activity]
    [IntentFilter(new string[] {
"android.appwidget.action.APPWIDGET_CONFIGURE" })]
    public class mIConfig : Activity
    {...}*

My VS2010 project name is *mTest*.  I set my application name to *mTest*, my
package name to *net.develop.mTest*.   I'm adding the following line to
declare the configuration activity in the AppWidgetProviderInfo XML file: 

*android:configure="net.develop.mTest.mIConfig" *

When I attempt to run, I immediately get on the emulator: *The application
mTest (process bet.develop.mTest) has stopped unexpectedly.  Please Try
again.  [Force Close]*

Am I doing something wrong try to declare mIConfig.cs as the config activity
for the widget?

--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Setting-Configuration-activity-for-Widget-tp5506245p5506245.html
Sent from the Mono for Android mailing list archive at Nabble.com.


More information about the Monodroid mailing list