Ok, I got it coded and it starts, but crashes.  It looks like it calls
[BroadcastReceiver]

 

But, the emulator says it stopped.  I tried to put some logging in to
see where it dies.  However, it  never gets there. It seems to crash
before.  Is this an issue with MonDroid?  I have the same application
written in Java and it starts just fine.  Not sure why the MonoDroid
crashes.  In the [BroadcastReceiver] I commented out the service start
and it still crashes.  I coded a simple hello world app and it too
crashes, anyone have it working on power up?

 

Thanks,

 

 

________________________________

From: monodroid-boun...@lists.ximian.com
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Wally McClure
Sent: Thursday, July 28, 2011 1:12 PM
To: monodroid@lists.ximian.com
Subject: Re: [mono-android] Auto start

 

I went back to my code and posted the info to my blog.  You can check it
at:
http://morewally.com/cs/blogs/wallym/archive/2011/07/28/start-an-applica
tion-on-boot-with-mono-for-android-android-monodroid.aspx
 
Thanks to Jon Pryor for helping me out with this back in the winter.
Smile<http://gfx1.hotmail.com/mail/w4/pr04/ltr/emo/smile.gif> 
 
Wally

________________________________

Date: Thu, 28 Jul 2011 10:31:07 -0500
From: ja...@awbrey.net
To: monodroid@lists.ximian.com
Subject: Re: [mono-android] Auto start

"If I Remember Correctly"

On Thu, Jul 28, 2011 at 10:30 AM, Tim Kelly <tim.ke...@designerware.com>
wrote:

What is iirc????

-----Original Message-----
From: monodroid-boun...@lists.ximian.com
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor
Sent: Tuesday, July 26, 2011 11:04 AM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Auto start


On Jul 26, 2011, at 10:46 AM, Tim Kelly wrote:
> Does anyone have an example of starting an application automatically?
I've built an application that has a service but I need to start it
automatically when the device starts.  Can this be done using the Mono
environment?

Yes, this can be done. You need to create and register a
BroadcastReceiver which listens for the Intent.ActionBootCompleted
broadcast. You also need to have the
Android.Manifest.Permission.ReceiveBootCompleted permission.

Wally has a sample on this, iirc.

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid



_______________________________________________ Monodroid mailing list
Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to