[mono-android] The GenerateJavaStubs task failed unexpectedly.

2012-06-06 Thread Terry151151
I'm trying to create a JavaScript interface for use with a WebView. I created the class below and used it as shown. I have also added a reference to Mono.Android.Export to the project. When I compile I get the error Shown further below. using Java.Interop; namespace Common { public class

[mono-android] GetAccessoryList?

2012-06-06 Thread theshadow124
I am a long time vb.net coder and some C++ just so you know my background. I need to create an app for communication with a accessory device(In this case its a Microchip Android SDK) I have created an app to display the data from the device, but I really dont know where to start for the USB stuff

Re: [mono-android] DateTime .ToString(.....)

2012-06-06 Thread Wally McClure
thanks Jon. I took the code over to another machine, and it all just worked as intended. Wally > From: j...@xamarin.com > Date: Wed, 6 Jun 2012 16:29:47 -0400 > To: monodroid@lists.ximian.com > Subject: Re: [mono-android] DateTime .ToString(.) > > On Jun 6, 2012, at 3:33 PM, Wally McClure

Re: [mono-android] Problem with binding of Google analytics tracker library

2012-06-06 Thread Petr Slováček
My app is based on Google MapView MapActivity and it downloads the data through a web service so it has to have the internet permission otherwise it wouldn't show a thing. Kyle -Original Message- From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Be

Re: [mono-android] Renaming EventHandlers and Properties in JavaBindling projects (Rules and recommendations)

2012-06-06 Thread Jonathan Pryor
On Jun 6, 2012, at 4:57 PM, Emiel Metselaar wrote: > Done, but failed for GoogleAnalytics Easytracker ( > http://code.google.com/p/analytics-api-samples/downloads/list ). > > The javadoc gets picked up from the output: > C:\Program Files\Java\jdk1.6.0_24\bin\java.exe -jar "C:\Program > Files\MSB

Re: [mono-android] Renaming EventHandlers and Properties in JavaBindling projects (Rules and recommendations)

2012-06-06 Thread Emiel Metselaar
Done, but failed for GoogleAnalytics Easytracker ( http://code.google.com/p/analytics-api-samples/downloads/list ). The javadoc gets picked up from the output: C:\Program Files\Java\jdk1.6.0_24\bin\java.exe -jar "C:\Program Files\MSBuild\Novell\jar2xml.jar" --jar=C:\Users\Azure\Projects\MCCollega\

Re: [mono-android] DateTime .ToString(.....)

2012-06-06 Thread Jonathan Pryor
On Jun 6, 2012, at 3:33 PM, Wally McClure wrote: > I'm trying to send it in the format like "05/24/2012" Unfortunately, this > doesn't seem to be happening. I am always getting the time portion sent > across as well. I'm unfortunately unable to reproduce; the following code: Console.W

Re: [mono-android] Renaming EventHandlers and Properties in JavaBindling projects (Rules and recommendations)

2012-06-06 Thread Jonathan Pryor
On Jun 6, 2012, at 3:53 PM, Emiel Metselaar wrote: > Could you give an example to rename the method parameters, when I am > consuming a "bound library" the p0, p1 are not helping. How does Xamarin > implement the intellisense, are you writing the xml file by hand? The problem is getting the

Re: [mono-android] Renaming EventHandlers and Properties in JavaBindling projects (Rules and recommendations)

2012-06-06 Thread Emiel Metselaar
John, Could you give an example to rename the method parameters, when I am consuming a "bound library" the p0, p1 are not helping. How does Xamarin implement the intellisense, are you writing the xml file by hand? Thanks Regards On Wed, Jun 6, 2012 at 8:17 PM, Jonathan Pryor wrote: > On J

[mono-android] DateTime .ToString(.....)

2012-06-06 Thread Wally McClure
I've got the code below. Basically, I am trying to send a date across to a REST based service. I'm trying to send it in the format like "05/24/2012" Unfortunately, this doesn't seem to be happening. I am always getting the time portion sent across as well. I literally don't want the tim

Re: [mono-android] Java Bindings Library - error MSB6006: "generator.exe" exited with code -532462766

2012-06-06 Thread Jonathan Pryor
On May 30, 2012, at 1:26 PM, Narayan Sainaney wrote: > Hi Jon, > Thanks for the English translation. Here's all I've done thus far: > > 1) Pulled the code from the git repository > 2) Built it > 3) Created a new Java Bindings Library project > 4) Copied the generated touchdb-android.jar into the J

Re: [mono-android] NameResolutionFailure exception

2012-06-06 Thread Jonathan Pryor
On Jun 4, 2012, at 4:01 AM, vkMahesh wrote: > I am also facing the same problem. can anyone help me on this? Is this a Debug app or a Release app? On hardware or an emulator? Sanity test: on your target device, open the Browser app and try to go to the URL that is generating a NameResolutionFail

Re: [mono-android] Facebook Connect bindings for MonoDroid

2012-06-06 Thread Jonathan Pryor
On Jun 4, 2012, at 5:50 AM, S.J. Visschers wrote: > I've tried to implement the code you have posted. But when I run the app, I > get a NoClassDefException in the facebook.cs on the following line. > > private static IntPtr _class_ref = > JNIEnv.FindClass("myapp/facebook/FacebookHelper"); Where

Re: [mono-android] JavaBindingLibrary generator.exe crash

2012-06-06 Thread Jonathan Pryor
On Jun 6, 2012, at 4:04 AM, Miljenko Cvjetko wrote: > Just to report (let me know if bug report is needed). Please file a bug at bugzilla.xamarin.com. Thanks! - Jon ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http:/

Re: [mono-android] Get a notification after a new photo / video was shot?

2012-06-06 Thread Jonathan Pryor
On Jun 6, 2012, at 5:17 AM, moelski wrote: > If i start the app all works fine. But if I click the Start button the > service creats, the "mover" instance is created, the service starts, the > OnHandle Event is fored and the service will be *destroyed*. > > Can anyone give me a hint why this ha

Re: [mono-android] Renaming EventHandlers and Properties in JavaBindling projects (Rules and recommendations)

2012-06-06 Thread Jonathan Pryor
On Jun 6, 2012, at 5:52 AM, Miljenko Cvjetko wrote: > So ran into: > Error1 > 'Pan': member names cannot be the same as their enclosing type > HolisticWare_AChartEngine\HolisticWare.AChartEngine.JavaBindingLibrary\obj\Debug\generated\src\Android.AChartEngine.Tools.Pan.cs > > 134

Re: [mono-android] Problem with binding of Google analytics tracker library

2012-06-06 Thread Jonathan Pryor
On Jun 6, 2012, at 11:03 AM, Petr Slováček wrote: > This is what I get in application output window each time it tries to send > the data: Less useful than I hoped. HttpResponseParser.parseHead(): https://github.com/android/platform_external_apache-http/blob/master/src/org/apache/http/i

Re: [mono-android] jar binding with 4.2 package name issue

2012-06-06 Thread Jens Bjarke Pedersen
Hi thank you for the answer. That was exactly the issue. It is all working now as expected:) Regards On 06/06/2012, at 19.03, "Jonathan Pryor" wrote: > The problem is that you didn't add the .jar as an AndroidJavaLibrary to your > Application project: > >http://stackoverflow.com/a/1091

Re: [mono-android] jar binding with 4.2 package name issue

2012-06-06 Thread Jonathan Pryor
The problem is that you didn't add the .jar as an AndroidJavaLibrary to your Application project: http://stackoverflow.com/a/10914223/83444 - Jon On Jun 6, 2012, at 5:54 AM, bjarke wrote: > Hey Guys. > > I am trying to bind a jar(zubhium sdk jar) file to my mono droid project. I > ha

[mono-android] Problem with binding of Google analytics tracker library

2012-06-06 Thread Kyle
Hello everyone, I have a problem with java library binding. I successfully created a binding project for Google analytics tracker library but I'm getting "org.apache.http.NoHttpResponseException: The target server failed to respond" when it tries to send the data to Google servers. The application

[mono-android] Context Menu on Listview

2012-06-06 Thread Nosh
Hi I have managed to get an idea about how the ContextMenu stuff works but i need some guidance on the following. I have a listview with a 5 items eg: ITEM 1 ITEM 2 ITEM 3 ITEM 4 ITEM 5 I have managed to attach a contextmenu to the listview. What i need is to be able to tap and hold on an Item

Re: [mono-android] SetRequestedOrientation stopped working after upgrade of SDK

2012-06-06 Thread Nosh
Many thanks worked a treat. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/SetRequestedOrientation-stopped-working-after-upgrade-of-SDK-tp5710121p5710175.html Sent from the Mono for Android mailing list archive at Nabble.com. _

[mono-android] jar binding with 4.2 package name issue

2012-06-06 Thread bjarke
Hey Guys. I am trying to bind a jar(zubhium sdk jar) file to my mono droid project. I have followed the guide on xamarins website and created a new binding project which I reference I my mono droid project. I am having some issues with package names. I get the following error: Error 3packag

[mono-android] SurfaceView keeps disappearing when I try to get the colour that is on it (creating a colorpicker)

2012-06-06 Thread Paul Johnson
Hi, I'm creating a colorpicker for an art app but have hit a problem. I've created a view that is consists of a linearview (horizontal) with a pile of surfaceviews. Each surfaceview has an gradient fill set as the background. Under that is an imageview that displays the colour I've clicked on. Th

Re: [mono-android] View ScaleX/Y and PivotX/Y

2012-06-06 Thread Jonathan Pryor
On Jun 5, 2012, at 11:10 AM, johnHolmes wrote: > http://developer.android.com/reference/android/view/View.html#setScaleX(float) This is bound as the View.ScaleX property http://androidapi.xamarin.com/monodoc.ashx?link=P%3aAndroid.Views.View.ScaleX > http://developer.android.com/referenc

[mono-android] how to open android gallery application in wallpaper mode

2012-06-06 Thread michelw
Hello, When i've download a pic into the SDCARD, i want to tell android gallery application with this pic to set a new wallpaper, but i've no idea how to do this anyone have a track, or keywords, to open the application with the image, the user can make his wallpaper i search / try with a

Re: [mono-android] Problem with binding of Google analytics tracker library

2012-06-06 Thread Petr Slováček
Jon, This is what I get in application output window each time it tries to send the data: W/GoogleAnalyticsTracker(32723): Problem with socket or streams. W/GoogleAnalyticsTracker(32723): org.apache.http.NoHttpResponseException: The target server failed to respond W/GoogleAnalyticsTracker(32723

Re: [mono-android] Problem with binding of Google analytics tracker library

2012-06-06 Thread Jonathan Pryor
On Jun 6, 2012, at 10:42 AM, Kyle wrote: > Is it possible that embedded java library does not share internet access > rights from the application? Not that I know of. Is there a stack trace? Line numbers? org.apache.http.NoHttpResponseException is part of AOSP, so it might be possible to dig in

Re: [mono-android] Problem with binding of Google analytics tracker library

2012-06-06 Thread Emiel Metselaar
I have bound the easy tracker library (googles wrapper around google analytics, which takes care that the communication occurs from the calling thread) and if your app has internet access rights it works. On Wed, Jun 6, 2012 at 4:42 PM, Kyle wrote: > Hello everyone, > > I have a problem with ja

[mono-android] Problem with binding of Google analytics tracker library

2012-06-06 Thread Kyle
Hello everyone, I have a problem with java library binding. I successfully created a binding project for Google analytics tracker library but I'm getting "org.apache.http.NoHttpResponseException: The target server failed to respond" when it tries to send the data to Google servers. The application

Re: [mono-android] Error where deploying to device

2012-06-06 Thread Wally McClure
This is good to know. I have been getting these errors as well. Thanks Jonathan for the info. Wally > Date: Wed, 6 Jun 2012 09:17:00 -0500 > From: mon...@jpobst.com > To: monodroid@lists.ximian.com > Subject: Re: [mono-android] Error where deploying to device > > Hey, > > Both of these shoul

Re: [mono-android] Error where deploying to device

2012-06-06 Thread yair
Jonathan Pobst wrote > > Hey, > > Both of these should be fixed in 4.2.3, which we expect to release later > this week. > > Jonathan > > Ok, thanks! I there anyway I can workaround these errors in the meantime? Yair -- View this message in context: http://mono-for-android.1047100.n5.nab

Re: [mono-android] Error where deploying to device

2012-06-06 Thread Jonathan Pobst
Hey, Both of these should be fixed in 4.2.3, which we expect to release later this week. Jonathan On 6/6/2012 8:00 AM, yair wrote: Hi, I activated mfa yesterday and have a problem I can't seem to overcome. I got the emulator up and running and deploying and debugging work ok in the VS 2010

Re: [mono-android] Running devices list not updated when debugging in Visual Studio 2010

2012-06-06 Thread Wally McClure
I should have added what I found helps as well. Apologies. From a cold boot, I find that if I start an emulator session in MonoDevelop, then switch over to VS, that VS will see all emulator sessions from that point forward. Yeah, its a complete guess as to what works properly all the time.

[mono-android] Error where deploying to device

2012-06-06 Thread yair
Hi, I activated mfa yesterday and have a problem I can't seem to overcome. I got the emulator up and running and deploying and debugging work ok in the VS 2010 plugin. My device appears in the device list but after building (any of the template projects) I get popups with errors: one with a depl

Re: [mono-android] Dirs and files not visible to Windows Explorer

2012-06-06 Thread MihaMarkic
Looks like this is by design in Android. Here is the solution I've ported from java from a stackoverflow thread. http://blog.rthand.com/post/2012/06/06/Writing-to-SD-card-and-notifying-outside-world-of-changes.aspx http://blog.rthand.com/post/2012/06/06/Writing-to-SD-card-and-notifying-outside-worl

Re: [mono-android] Deploying to 2.3.3 x86 emulator = "Installation failed due to container error"

2012-06-06 Thread Miljenko Cvjetko
Hi On 2012.06.04 10:48, JasonBSteele wrote: Has anyone successfully managed to deploy to the x86 Emulator for the 2.3.3 (API Level 10)? I had problems with first project I tried to deploy to x86... Stupid me was trying to deploy project referencing GoogleMaps... Check logcat - that is where I f

[mono-android] Renaming EventHandlers and Properties in JavaBindling projects (Rules and recommendations)

2012-06-06 Thread Miljenko Cvjetko
Hi I'm learning about JavaBinding project and started with binding AChartLibrary. So ran into: Error1 'Pan': member names cannot be the same as their enclosing type HolisticWare_AChartEngine\HolisticWare.AChartEngine.JavaBindingLibrary\obj\Debug\generated\src\Android.AChartEngine.Tools.Pan.

Re: [mono-android] Get a notification after a new photo / video was shot?

2012-06-06 Thread moelski
Hi ! @Jon: i know that. I thought it would be possible to place any additional event handler - anywhere Anyway ... I started using the FileObserver which works pretty well for this purpose. This is my actual code: It is not really spectacular right now. But I have a problem with the service.

[mono-android] Soft keyboard keeps hiding.

2012-06-06 Thread Terry151151
I'm developing a hybrid Monodroid app using the WebView with Html5 pages with Javascript. Whenever the Monodroid app runs the java script callback, and the soft keyboard is visible, it forces the keyboard to hide. In this case I'm trying to enable/disable and Ok button on the html page as the user

Re: [mono-android] Convert .net type to Java.Lang.Object - how?

2012-06-06 Thread Matthew Leibowitz
I also use a method almost exactly like this. It works very well. We should make it standard - maybe include it in the core libraries. Is something similar used in MonoTouch? If so then how do those guys do something like this? On Jun 6, 2012 3:01 AM, "johnHolmes" wrote: _

[mono-android] JavaBindingLibrary generator.exe crash

2012-06-06 Thread Miljenko Cvjetko
Hi Just to report (let me know if bug report is needed). Working with JavaBinding project and accidentaly got newline in Metadata.xml: Android.AChartEngine.Tools instead of (ok code - there is whitespace but no crash) Android.AChartEngine.Tools Error is: Error1"generator.

Re: [mono-android] Running devices list not updated when debugging in Visual Studio 2010

2012-06-06 Thread Miljenko Cvjetko
Just to add workaround Restarting VS help (at least in my case) cheers mel On 2012.06.06 04:14, Wally McClure wrote: Deployment from the VS eval version through to the emulator seems to be problematic in 4.2.2. I have filed a bug on this. It seems to be a known issue that they are working o