Re: [mono-android] WebView Javascript Interface and exposing methods through JNI

2012-01-09 Thread Jonathan Pryor
On Jan 9, 2012, at 6:42 PM, Tomasz Cielecki wrote: > Would it be enough just to copy it into the main project? Yes, or Link the file into your main project. The key point is that if you want it in the .apk and it's not C# code, it needs to be in the main project. This includes resources, Java so

Re: [mono-android] adding a contact

2012-01-09 Thread Jonathan Pryor
On Jan 9, 2012, at 8:50 PM, Wally McClure wrote: > I'm trying to add a new contact based on adding a record: > http://developer.android.com/guide/topics/providers/content-providers.html ... > Java.Lang.UnsupportedOperationException: Aggregate contacts are created > automatically Googling for tha

[mono-android] adding a contact

2012-01-09 Thread Wally McClure
I'm trying to add a new contact based on adding a record: http://developer.android.com/guide/topics/providers/content-providers.html My code is: ContentValues values = new ContentValues(); // Add Abraham Lincoln to contacts and make him a favorite. values.Put

Re: [mono-android] Robotium

2012-01-09 Thread Tom Opgenorth
Good question. I'd like to know what you find out. I've dabbled with Robotium, but haven't tried on on M4A at all. On Mon, Jan 9, 2012 at 16:56, Robert Ferguson wrote: > Hi, > > Has anyone had success using Robotium ( > http://code.google.com/p/robotium/ ) or any other integration testing > wit

[mono-android] Robotium

2012-01-09 Thread Robert Ferguson
Hi, Has anyone had success using Robotium ( http://code.google.com/p/robotium/ ) or any other integration testing with Monodroid? I saw this note: http://code.google.com/p/robotium/issues/detail?id=175 and not too much else out there. I'm really trying to identify any method for automatic testin

Re: [mono-android] My next big project for Android - advice please on if this can be done using Mono for Android

2012-01-09 Thread Paul F. Johnson
Hi, > I think your biggest challenge is going to be to find out how to model > all the roads, junctions and so on and how to tie them together (maybe > you already have thought of this?) My biggest challenge is going to be the listeners more than anything ;) > I think as a whole the Mono for And

Re: [mono-android] My next big project for Android - advice please on if this can be done using Mono for Android

2012-01-09 Thread Tomasz Cielecki
Drawing lines on a canvas is possible along with drag and drop as you are able to register listeners to Touch Events on Views and you can easily override the Draw method on a View. I have done a similar think with a View to create my own graphs which I draw manually with lines and paths. Though wi

Re: [mono-android] WebView Javascript Interface and exposing methods through JNI

2012-01-09 Thread Tomasz Cielecki
I tried first with having the java file in the library project, which fails. So that is exactly as you describe that the build system does not include files located in library projects when marked as AndroidJavaSource. Would it be enough just to copy it into the main project? Thanks, I will try i

Re: [mono-android] Multiplayer game using WCF WSDualHttpBinding

2012-01-09 Thread BlackCheetah
http://code.google.com/p/lidgren-network-gen3/ Lidgren.Networking networking library -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Multiplayer-game-using-WCF-WSDualHttpBinding-tp5130021p5131610.html Sent from the Mono for Android mailing list archive at Nabble.co

Re: [mono-android] WebView Javascript Interface and exposing methods through JNI

2012-01-09 Thread Jonathan Pryor
On Jan 9, 2012, at 4:57 AM, Tomasz Cielecki wrote: > Seems to me that it cannot find the java file I created even though I have > set the build action to AndroidJavaSource, can it have anything to do with > that I am doing this in a Mono for Android Class Library? Is the AndroidJavaSource item i

[mono-android] My next big project for Android - advice please on if this can be done using Mono for Android

2012-01-09 Thread Paul F. Johnson
Hi, Following the release of my Time Of Death app (which has had >1500 downloads and isn't even on the Market), my boss has given me free reign over my next forensic science Android app. I already have the basis of one as a winform app - it is a speed of collision/skid length analysis application

Re: [mono-android] Parse error: There is a problem parsing the package.

2012-01-09 Thread Jonathan Pobst
Is it possible to get the full error from them? Jonathan On 1/9/2012 1:17 PM, Steve Sharrock wrote: > One of our clients just got a Samsung Galaxy Tab 10.1 (OS 3.1). When > they try to install our package (minimum version 2.2), they get the > Parse error. I made a one-time minimum/target version

[mono-android] Parse error: There is a problem parsing the package.

2012-01-09 Thread Steve Sharrock
One of our clients just got a Samsung Galaxy Tab 10.1 (OS 3.1). When they try to install our package (minimum version 2.2), they get the Parse error. I made a one-time minimum/target version 3.1; but, they get the same error occurs. Any thoughts? Steve Sharrock Architecture/Design/Programming w

Re: [mono-android] VisualStudio and AndroidManifest

2012-01-09 Thread Miljenko Cvjetko
Hi Jonathan On 2012.01.09 16:57, Jonathan Pobst wrote: > Sounds like the install failed somehow. Reinstalling like you did > should be the fix. I'm suspecting on installation of Mango update for WP7. After Mono Mobile API was announced I took few days to test it and add WP7 support for GeoLoc.

Re: [mono-android] corruption on dates

2012-01-09 Thread Jonathan Pobst
Indeed, that does seem very similar. I would try getting the values out and using Console.WriteLine or something to view the ToString of the dates, as well as checking the Month, Day, Year, etc, values to see if the values are correct. Jonathan On 1/9/2012 6:28 AM, devbuzz wrote: > Hi Jonathan

Re: [mono-android] VisualStudio and AndroidManifest

2012-01-09 Thread Jonathan Pobst
Sounds like the install failed somehow. Reinstalling like you did should be the fix. Glad you got it working again, and thanks for sharing! Jonathan On 1/9/2012 4:41 AM, Miljenko Cvjetko wrote: > Hi > > Got back after a while and have some problems with M4A in VS. > Dunno if anybody had simila

Re: [mono-android] Implementing TabChangeListener

2012-01-09 Thread John Murray
Dave I have an app which has Tabs and views I implemented a tabchanged method thus this.TabHost.TabChanged += (IntentSender, e) => Tchanged(TabHost.CurrentTabView); with public void Tchanged(View currentview) { imm.HideSoftInputFromWindow(TabHost.Applica

Re: [mono-android] permissions in the AndroidManifest.xml file

2012-01-09 Thread Tomasz Cielecki
You can find a complete list of Android Permissions here: http://developer.android.com/reference/android/Manifest.permission.html I think you only need the Camera permission to be allowed to record video. On Mon, Jan 9, 2012 at 3:28 PM, Wally McClure wrote: > I was adding some permissions to an

[mono-android] permissions in the AndroidManifest.xml file

2012-01-09 Thread Wally McClure
I was adding some permissions to an example. I was looking at the AndroidManifest.xml file. Specifically, there is a record_video permission that I am reading about. I don't see that in the permissions listed in the VS.NET editor for permissions in the project properties. Questions: Does re

[mono-android] 01/09/2012 - Our Most Recent Tutorials

2012-01-09 Thread Monodroyd Blog
Good Days, We would like to inform you about our most recent tutorials at Monodroyd : *- Using Web Services to Build Your Own Weather Application* Web services allow different applications from different sources to communicate with each other with

Re: [mono-android] Implementing TabChangeListener

2012-01-09 Thread devbuzz
Thanks Greg! For anyone else looking for this here are the pertinent steps: 1) implement the interface on your activity public class MainActivity2 : TabActivity, Android.Widget.TabHost.IOnTabChangeListener 2) important: set the OnTabChangeListener TabHost.SetOnTabChangedListene

Re: [mono-android] Implementing TabChangeListener

2012-01-09 Thread Greg Shackles
Your method signature and protection level are wrong for OnTabChanged. It should look like: public void OnTabChanged(string tabId) { } http://docs.mono-android.net/?link=M%3aAndroid.Widget.TabHost.IOnTabChangeListener.OnTabChanged(System.String) ___ Mo

Re: [mono-android] corruption on dates

2012-01-09 Thread devbuzz
Hi Jonathan, Are you 100% sure this issue only affect the debugger displa? I ask because if you read my post here: http://mono-for-android.1047100.n5.nabble.com/quot-Invalid-format-string-quot-error-using-rs-GetValue-td5120916.html You can see the image with the corrupt datetime values in my sql

[mono-android] Implementing TabChangeListener

2012-01-09 Thread devbuzz
How can I implement IOnTabChangeListener? I have a Tab where the setcontent references views not activities. I have added the interface in the class declaration like this: public class MainActivity2 : TabActivity, Android.Widget.TabHost.IOnTabChangeListener set the following: TabHost.SetOnTabC

Re: [mono-android] WebView Javascript Interface and exposing methods through JNI

2012-01-09 Thread Tomasz Cielecki
Hi again, I think I have narrowed it down to occur when trying to do this in a Mono for Android Class Library project. If I put the code in a normal project it compiles the Java code fine. Any reason to why it won't work with a Class Library project? On Mon, Jan 9, 2012 at 10:57 AM, Tomasz Cielec

[mono-android] VisualStudio and AndroidManifest

2012-01-09 Thread Miljenko Cvjetko
Hi Got back after a while and have some problems with M4A in VS. Dunno if anybody had similar problems, but this might help someone... Symptoms * Added new-clean MonoForAndroid project to existing VS solution o Run/Debug button is disabled. o Right click on project gives me no opport

Re: [mono-android] corruption on dates

2012-01-09 Thread John Murray
Yes I've come across it before and it has indeed been just a debugger irritation But the issue on this occasion is that my conversions Myclass.indepdate.ToString("-MM-dd") Are delivering an empty string I have changed the code to place the month year and day into int variables then constructed

Re: [mono-android] WebView Javascript Interface and exposing methods through JNI

2012-01-09 Thread Tomasz Cielecki
Ok, I have been messing around a bit with this JNI stuff and can't seem to get it to work. The C# code compiles fine, so it must be the Java code that fails somehow as I get two errors: "C:\Users\tcielecki\Desktop\MonoDroid.WAToolkit\MonoDroid.WAToolkit\MonoDroid.WAToolkit.Sample.csproj" (SignAndr