[mono-android] System.NullReferenceException at OnStart() in Background service.

smartamrit carryonamrit at hotmail.com
Thu Oct 11 06:51:57 UTC 2012


Hi Max,

I have solved the problem for the gps but i am stuck with the maintaining log in status of user.

Please follow this link to find details of my problem.

http://stackoverflow.com/questions/12825779/saving-user-login-state


Send By Amrit Subedi


Date: Sun, 7 Oct 2012 11:28:08 -0700
From: ml-node+s1047100n5712130h83 at n5.nabble.com
To: carryonamrit at hotmail.com
Subject: Re: System.NullReferenceException at OnStart() in Background service.



	On Sun, Oct 7, 2012 at 12:40 AM, smartamrit <[hidden email]> wrote:

I am trying to update the the user location every defined time but when ever

i implement requestLocationUpdates function to my application, it crash.



Please find the code and logcat log in the url below and help me solve this

problem.



My code and logcat

<http://stackoverflow.com/questions/12762624/application-crashed-if-requestlocationupdates-is-called-to-get-new-location-of-u>


Amrit,

I tried to troubleshoot this, but I couldn't get a repro. I commented back in the line that causes your crash (RequestLocationUpdates) and threw it into OnCreate of a Main activity, but it ran fine for me. (Note that I didn't include NorthStarBackgroundService because it won't compile without more code like the ConnectToSever class.)


I'm attaching my repro attempt. If you could modify it so that it crashes and send it back maybe I can help debug it. (If I were a guru maybe I wouldn't need a repro to spot your problem but I'm still a novice.)


-Max 
-- 
Hahahahaaaa!!! That is ME laughing at YOU, cruel world.    -Jordan Rixon

I could not love thee, dear, so much,Loved I not Honour more.



_______________________________________________

Monodroid mailing list

[hidden email]


UNSUBSCRIBE INFORMATION:

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

 Northstar.zip (26K) Download Attachment

	
	
	
	

	

	
	
		If you reply to this email, your message will be added to the discussion below:
		http://mono-for-android.1047100.n5.nabble.com/System-NullReferenceException-at-OnStart-in-Background-service-tp5712129p5712130.html
	
	
		
		To unsubscribe from System.NullReferenceException at OnStart() in Background service., click here.

		NAML
	 		 	   		  



--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/System-NullReferenceException-at-OnStart-in-Background-service-tp5712129p5712152.html
Sent from the Mono for Android mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20121010/62ed3b3b/attachment-0001.html>


More information about the Monodroid mailing list