Re: [mono-android] Enhancement code for Spinner

2013-03-05 Thread Paul Johnson

Hi,


ha,yes...i have to populate the spinner with the contents of the
dictionary(ex: courses shud populate in the spinner for the user
selection)...


adapter.AddAll(myDictionary.Keys);

This *should* do it, but there seems to be a bug in monodroid 4.6 which 
is stopping it (looks like something is missing on the bindings)


foreach string k in myDictionary.Keys
  adapter.Add(k)

may do the trick

Is this for course work or are you just learning and developing?

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


[mono-android] Breakpoint being ignored Xamarin 4.6, VS 2012

2013-03-05 Thread Jeremy A. Kolb - ARA/NED
Since upgrading to the latest Xamarin I haven't been able to hit any 
breakpoints.  They show up dark red but the debugger simply ignores them.  I've 
done numerous rebuilds, deleted obj/bin directories and completely reinstalled 
the APKs for my app and Mono on the device.

Jeremy
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


[mono-android] grabbing the message from smsBroadcastreceiver

2013-03-05 Thread Sait
how can i grab incoming message from my activity ,please help?
i want to grab the message  variable



  [BroadcastReceiver(Enabled = true, Label = "SMS Receiver")]
[IntentFilter(new[] { "android.provider.Telephony.SMS_RECEIVED" })]
public class SMSBroadcastReceiver : BroadcastReceiver
{
private const string Tag = "SMSBroadcastReceiver";
private const string IntentAction
="android.provider.Telephony.SMS_RECEIVED";
public bool Received = false;
public String message = "";
  
public override void OnReceive(Context context, Intent intent)
{
Log.Info(Tag, "Intent received: " + intent.Action);

if (intent.Action != IntentAction) return;


var bundle = intent.Extras;

if (bundle == null) return;

var pdus = bundle.Get("pdus");
var castedPdus = JNIEnv.GetArray(pdus.Handle);

var msgs = new SmsMessage[castedPdus.Length];

var sb = new StringBuilder();

for (var i = 0; i < msgs.Length; i++)
{
var bytes = new
byte[JNIEnv.GetArrayLength(castedPdus[i].Handle)];
JNIEnv.CopyArray(castedPdus[i].Handle, bytes);

msgs[i] = SmsMessage.CreateFromPdu(bytes);

sb.Append(string.Format("SMS From: {0}{1}Body:{2}{1}",
msgs[i].OriginatingAddress,Environment.NewLine,msgs[i].MessageBody));
}
message = sb.ToString();
Received = true;
//SmsManager.Default.SendTextMessage("05383665034", null,
sb.ToString(), null, null);


   Toast.MakeText(context, "aa:"+sb.ToString(),
ToastLength.Long).Show();
}
}



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/grabbing-the-message-from-smsBroadcastreceiver-tp5712977.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] Handle incoming SMS

2013-03-05 Thread Sait
sorniels you dont have to add anything  i tried it it fires but  how do you
get message from an activity?



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Handle-incoming-SMS-tp5711524p5712978.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] Handle incoming SMS

2013-03-05 Thread Sait
i want to get messages from broadcastreceiver into my activity .any thing i
run thread or a function doesn't fire like you said ,there are other
examples in java but doesnt work in mono.



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Handle-incoming-SMS-tp5711524p5712979.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] Services and Broadcast Receivers

2013-03-05 Thread Sait
sir , is there a method called register? there is registerreceiver  i don see
register method or maybe be i dont no it



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Services-and-Broadcast-Receivers-tp5712394p5712981.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] Breakpoint being ignored Xamarin 4.6, VS 2012

2013-03-05 Thread Jeremy A. Kolb - ARA/NED
It looks like my issue is this but on 4.6:

https://bugzilla.xamarin.com/show_bug.cgi?id=10678

Jeremy

From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jeremy A. Kolb - 
ARA/NED
Sent: Tuesday, March 05, 2013 7:29 AM
To: monodroid@lists.ximian.com
Subject: [mono-android] Breakpoint being ignored Xamarin 4.6, VS 2012

Since upgrading to the latest Xamarin I haven't been able to hit any 
breakpoints.  They show up dark red but the debugger simply ignores them.  I've 
done numerous rebuilds, deleted obj/bin directories and completely reinstalled 
the APKs for my app and Mono on the device.

Jeremy
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] Visual Studio 2010 - Mono For Android Error when login to computer as a different user

2013-03-05 Thread blorecrafter
Hi Jon
I do not get by what you mean: Are you using different Xamarin logins for
each of your accounts? 

I wish to uninstall MonoForAndroid under windows login account1 and then
install under windows login account2.

Will that be possible?
Thanks



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Visual-Studio-2010-Mono-For-Android-Error-when-login-to-computer-as-a-different-user-tp5712907p5712995.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

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