Re: [mono-android] how to deploy mono for android app(.apk file) to android tablet

2013-04-20 Thread Paul Johnson

Hi,


k,nodoid ...i tried that i connect MTS MTAG7(Android ver 2.3) tablet to the
system and installed the drivers after i opened visual studio and run(F5) it
,it is not showing any device(tablet) it is just showing only emulator...can
u plz tell me the step by step process how to deploy ...plz its my need plz
reply asap...or is there any  necessity to build in release mode..if i did
it is not deploying it is giving error... how u installed ur apps into
nexus...m going to buy new SAMSUNG GALAXY Y DOUS LITE GT-S5302 OR SAMSUNG
GALAXY Y DUOS S6102...r they support to install my apps..both mobiles are
android version 2.3 ginger bread ...plz reply asap


Ok, couple of things spring to mind

1. Do you have the device to install apps from other locations? This is 
a setting on the device itself rather than in monodroid.


2. Have you got the device to allow debugging set? This can be a reason 
why you're getting the adb error (in your reply to Jon)


3. Which version of monodroid are you using? If it's not a newer 
version, then deploying in either Debug or Release isn't enabled. Newer 
versions have a timer so you can try for 30 days.


To install apps onto my Nexus, I have the following set

(on the device)
Security->Unknown sources ticked
Developer options -> USB Debugging (ticked)
Developer options -> Verify apps over USB (ticked)

plug it in, build and it just deploys directly over USB. I'm on a Mac so 
didn't need to mess with the drivers, but this is typically what I set 
to connect *any* device over USB on my Mac. Win7 usually picks up the 
correct drivers and installs them. I say usually, it got badly mixed up 
on my HTC wildfire. What a fun 3 hours of time wasted *that* was ;)


Try those settings and see if it will deploy. It could be that your 
install of the Android SDK is messed up as well. It may be worth 
removing it and reinstalling as a precaution.


Paul
--
"Space," it says, "is big. Really big. You just won't believe how 
vastly, hugely, mindbogglingly big it is. I mean, you may think it's a 
long way down the road to the chemist's, but that's just peanuts to 
space, listen..."

Hitch Hikers Guide to the Galaxy, a truly remarkable book!

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] HOW TO CALL WEB SERVICE IN BACKGROUND SERVICE?????

2013-04-20 Thread Paul Johnson

Hi,


how to call web service (asmx) periodically in background using android
service?


Easiest way I know of is this. As a global, set a timer with an interval 
of every couple of mins (or however long you need it to be). When the 
timer is done, so something like this would do


public void EnableMessageTimer()
{
  timer = new System.Timers.Timer();
  timer.Interval = 15000;
  timer.Elapsed += new 
System.Timers.ElapsedEventHandler(timer_Elapsed);

  timer.Start();
}

then in your timer_Elapsed call the webservice. Depending on what the 
webservice does depends then on how you handle it. For example, if it's 
an async service, when it returns if there is any UI output, you'll need 
to use RunOnUiThread to jump onto the UI thread.


If the service isn't Async, you can use something like 
System.Threading.Tasks or ThreadPool.QueueUserWorkItem and that will do 
what you need.


Paul

--
"Space," it says, "is big. Really big. You just won't believe how 
vastly, hugely, mindbogglingly big it is. I mean, you may think it's a 
long way down the road to the chemist's, but that's just peanuts to 
space, listen..."

Hitch Hikers Guide to the Galaxy, a truly remarkable book!

___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] HOW TO CALL WEB SERVICE IN BACKGROUND SERVICE?????

2013-04-20 Thread Paul Johnson

Hi,

Please also, don't use caps in a subject - it usually inclines people 
ignore you ;)


Paul
--
"Space," it says, "is big. Really big. You just won't believe how 
vastly, hugely, mindbogglingly big it is. I mean, you may think it's a 
long way down the road to the chemist's, but that's just peanuts to 
space, listen..."

Hitch Hikers Guide to the Galaxy, a truly remarkable book!

___
Monodroid mailing list
Monodroid@lists.ximian.com

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