[mono-android] SQLite - mono for android

2011-09-14 Thread Mittchel Van Vliet
Hello everyone, I'm new in the mono platform and I really need some help figuring some stuff out.. I'd like to make one application useable for both MonoTouch and Mono for android.. but how do I connect to SQLite from scratch? I need a method that works both on Touch as on Android.. I hope someo

[mono-android] Treten Sie meinem Netzwerk auf LinkedIn bei

2011-09-14 Thread M . David Peterson über LinkedIn
LinkedIn M. David Peterson möchte Sie als Kontakt auf LinkedIn hinzufügen: -- Ich möchte Sie gerne zu meinem beruflichen Netzwerk auf LinkedIn hinzufügen. Einladung von M. David Peterson annehmen http://www.linkedin.com/e/a3o0bx-gskb

[mono-android] OnActivityResult not being called

2011-09-14 Thread mcgear
I am trying to develop a simple activity that will allow the user to select a ringtone. I can successfully get the Ringtone spinner to pop up but when i select ok or cancel, the OnActivityResult is never called. Any thoughts? Following is my code (I just open the selector and then for now am wri

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
Wow! I ran into this myself not 20 minutes ago, to make it work, you have to do this, I had left off the SingleTop and the OnActivityResult was being called immediately. // I found this fix from: http://lblasa.wordpress.com/2011/06/16/android-onactivityresult-after-startactivityforresult-getting-c

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
Also, I used this version: i.SetClass(this, typeof(Activity2)); This passes the parent of the Activity in, which you aren't doing, which is probably why it isnt working for you. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/OnActivityResult-not-being-called-tp4

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread mcgear
While this does make sense to me, my question is how to do this with an android native intent. As you can see i am using the constructor which takes a string value to launch one of the Android native activities for selecting a ringtone. How do i set the parent and still use the Android native Rin

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
I just copied and pasted your code, and it works for me, OnActivityResult is being called for for Activity 40. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/OnActivityResult-not-being-called-tp4802915p4803160.html Sent from the Mono for Android mailing list archi

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread mcgear
Alright, so i figured what this issue is i think... I was originally launching the Intent from an Activity that was loaded as a sub activity in the tab of a TabActivity. When i moved the code to the tab activity itself, the code works. Can anyone think of a reason why this would not work for an

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
The Real question is, how do you get the "picked" ringtone inside OnActivityResult I tried string extra = data.GetStringExtra(Android.Media.RingtoneManager.ExtraRingtonePickedUri); where data is the Intent passed into OnActivityResult, I get back null? How do you retrieve the selected t

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread mcgear
That i was able to do without problem: Android.Net.Uri uri = (Android.Net.Uri)data.Extras.Get(Android.Media.RingtoneManager.ExtraRingtonePickedUri); -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/OnActivityResult-not-being-called-tp4802915p4

Re: [mono-android] OnActivityResult not being called

2011-09-14 Thread efontana
// Interesting, this works: Android.Net.Uri uri = (Android.Net.Uri)data.Extras.Get(Android.Media.RingtoneManager.ExtraRingtonePickedUri); // This returns null string uriString = data.Extras.GetString(Android.Media.RingtoneManager.ExtraRingtonePickedUri); -- View this message in context: ht

[mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread mcgear
So I am trying to get a simple BroadcastReceiver going for handling SMS messages. I have coded this out however when I deploy the app to my phone and then send an SMS, nothing happens. Can someone help me spot what i am missing? And is there a way to check the phone itself to see if my receiver

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread Wally McClure
I haven't tried SMS, but isn't there a permission that needs to be set in the AndroidManifest? Wally > Date: Wed, 14 Sep 2011 10:33:58 -0700 > From: michael.gearha...@zed.com > To: monodroid@lists.ximian.com > Subject: [mono-android] Now a Question about BroadcastReceivers not working > > So I

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread mcgear
Now i feel stupid... Set the "RECEIVE_SMS" permission and it works! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Now-a-Question-about-BroadcastReceivers-not-working-tp4803684p4803699.html Sent from the Mono for Android mailing list archive at Nabble.com. ___

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread Wally McClure
There are no dumb questions. Glad it helped. Wally > Date: Wed, 14 Sep 2011 10:37:16 -0700 > From: michael.gearha...@zed.com > To: monodroid@lists.ximian.com > Subject: Re: [mono-android] Now a Question about BroadcastReceivers not > working > > Now i feel stupid... Set the "RECEIVE_S

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread mcgear
Alright, so now i am getting the messages correctly to my receiver. However, now when i try to get the SmsMessages from the intent i am at a roadblock: In the Java code base there is a helper function here: Telephony.Sms.Intents.getMessagesFromIntent(intent) It will parse out the SmsMessage obje

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread Wally McClure
One of the things that I do when I have to hunt for a specific namespace/class is to hunt through the Mono 4 Android xml file. It may seem clunky, but it is really helpful. This xml file is a hidden gem when you need to find something. Wally > Date: Wed, 14 Sep 2011 10:41:51 -0700 > From: mic

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread mcgear
And where is that XML file located? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Now-a-Question-about-BroadcastReceivers-not-working-tp4803684p4803792.html Sent from the Mono for Android mailing list archive at Nabble.com. ___

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread Wally McClure
on my 32 bit system, its in \Program Files\Reference Assemblies\Microsoft\Framework\MonoAndroid Once in that folder, there are various versions in the directories underneath this location. I think the versions are for the versions that are available on the device targeted. Wally > Date: Wed,

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread Mittchel Van Vliet
Guys, a bit offtopic but do you guys have any good example for me connection to SQLite for like making login system? I'm new in monodroid but tried alot, can't get it to work :( 2011/9/14 Wally McClure > on my 32 bit system, its in \Program Files\Reference > Assemblies\Microsoft\Framework\MonoA

Re: [mono-android] Now a Question about BroadcastReceivers not working

2011-09-14 Thread Jonathan Pryor
On Sep 14, 2011, at 1:41 PM, mcgear wrote: > In the Java code base there is a helper function here: > Telephony.Sms.Intents.getMessagesFromIntent(intent) I'm not sure what that is. Cursory googling suggests that it's not part of the Android SDK, but a separate framework: http://stackover

Re: [mono-android] SQLite - mono for android

2011-09-14 Thread Jonathan Pryor
On Sep 14, 2011, at 8:22 AM, Mittchel Van Vliet wrote: > I'd like to make one application useable for both MonoTouch and Mono for > android.. but how do I connect to SQLite from scratch? Use Mono.Data.Sqlite, e.g.: https://github.com/xamarin/monotouch-samples/blob/master/MonoCatalog-Mon

Re: [mono-android] How to deploy App To Market

2011-09-14 Thread Jonathan Pryor
On Sep 13, 2011, at 12:24 PM, mcgear wrote: > Thank you for pointing that out, however I never actually call that method > from within my code base. Which would lead me to believe that this bug > exists inside the actual Mono Implementation. Unless I am missing > something. Look at the stack tra

Re: [mono-android] Extending TextView

2011-09-14 Thread Jonathan Pryor
On Sep 13, 2011, at 6:32 AM, Martyn Wendon wrote: > I’m probably doing something silly, but I can’t seem to get the following > code to work. Could you please file a bug and attach a full sample (something I can easily build)? Thanks, - Jon ___ Mono

Re: [mono-android] SQLite - mono for android

2011-09-14 Thread Mittchel
Thanks jon for the response, I habr to admit that I am new with Mono. I tryed to establish a connection with Sqlite in monodroid. I am still having trouble with the database. If i put the file in the root of the project would my conn string be this: Data Source=myfile.db? How do I for example

Re: [mono-android] SQLite - mono for android

2011-09-14 Thread Jonathan Pryor
On Sep 14, 2011, at 4:45 PM, Mittchel wrote: > I habr to admit that I am new with Mono. I tryed to establish a connection > with Sqlite in monodroid. I am still having trouble with the database. If i > put the file in the root of the project would my conn string be this: Data > Source=myfile.db?

Re: [mono-android] SQLite - mono for android

2011-09-14 Thread Mittchel
Why would you want to bundle it with your app? What are the pros and cons? Could you maybe illustrate me a method that executes a simple select query and returns the amount of rows? For say like a login method.. I tryed to find methods for that in sqlite but didnt succeed.. I really appreciate

[mono-android] API - Level 10

2011-09-14 Thread Brian Graham
Hi All, Can anybody tell me how to target API Level 10 (2.3.3) using Visual Studio 2010 and Mono for Android 1.0.1. It doesn't appear in any of the drop down boxes in project properties. The highest level I can see is Level 9 (2.3). Regards Brian Russell McVeagh OFFICIAL LAW FIRM OF RUGBY WORLD

Re: [mono-android] API - Level 10

2011-09-14 Thread Jonathan Pobst
At this time, you cannot target API Level 10. 9 is the highest MonoDroid supports. Jonathan On 9/14/2011 4:07 PM, Brian Graham wrote: > Hi All, > > Can anybody tell me how to target API Level 10 (2.3.3) using Visual Studio > 2010 and Mono for Android 1.0.1. It doesn't appear in any of the dro

Re: [mono-android] API - Level 10

2011-09-14 Thread Brian Graham
Thanks Jonathan, at least I know I haven't done something stupid (again!). -Original Message- From: Jonathan Pobst [mailto:mon...@jpobst.com] Sent: Thursday, 15 September 2011 9:19 a.m. To: Discussions related to Mono for Android Cc: Brian Graham Subject: Re: [mono-android] API - Level 1

Re: [mono-android] SQLite - mono for android

2011-09-14 Thread Jonathan Pryor
On Sep 14, 2011, at 5:05 PM, Mittchel wrote: > Why would you want to bundle it with your app? What are the pros and cons? It would certainly be easier to ship a "pre-canned" version than to do it in code (less/no duplication, etc.). It just has additional startup overhead (do it in a separate th

[mono-android] How to send a custom Data Class to next Activity?

2011-09-14 Thread moelski
Hi @all, I try to send a data class to another activity. First this is my (at the moment really simple) data class: [Serializable] class BaseData { public string test { get; set; } } In Activity 1 I tried this: var intent = new Intent(this.BaseCo