Re: [mono-android] Get Bitmap from QRCodeWriter using Zxing Library

2012-07-26 Thread DFX
I figured it out... Here is the updated code: var height = 100; var width = 100; var writer = new QRCodeWriter(); var matrix = writer.encode("http//www.google.com", com.google.zxing.BarcodeFormat.QR_CO

[mono-android] Get Bitmap from QRCodeWriter using Zxing Library

2012-07-26 Thread DFX
I'm using the MonoDroid port of Zxing, found here: https://github.com/JohnACarruthers/zxing.MonoDroid I'm trying to create a QR Code and display it in an ImageView, but I apparently I have no idea what I'm doing ;-) QRCodeWriter has an encode method that returns a ByteMatrix. I'm trying to use Bi

Re: [mono-android] Window.DecorView.Visibility and TabActivity

2012-07-26 Thread Jonathan Pryor
On Jul 26, 2012, at 7:12 AM, "Breyer, Christian" wrote: > Acitivty B (TabActivity) is launched by an intent resulting from an action > performed in A. Whenever A hid the bar, B stays black and an exception is > thrown. Please provide the full stack trace as obtained from the Android Debug Log:

Re: [mono-android] Async and the UI

2012-07-26 Thread Jonathan Pryor
On Jul 24, 2012, at 7:28 AM, Nosh wrote: > I am using async to get message back from web service and in the methos > dealing with the returned msg from the web service i need to show a message. > I realise due to thread i cannot update UI. As JLee mentioned, you can use Activity.RunOnUiThread(

Re: [mono-android] MonoDroid binding build fails

2012-07-26 Thread Jonathan Pryor
On Jul 26, 2012, at 12:22 PM, kovacsd wrote: > We're trying to create a binding for Zooz. We've created the project, set the > jar to InputJar but when trying to compile > There are a lot of unknown types but for example after I've added > com.apache.http.client as ReferenceJar the build still g

Re: [mono-android] Automatic crash reporting

2012-07-26 Thread grupatnt
Hi Paul BugSense looks nice, might give it a try. Don't know about your app but mine doesn't need access to logcat except for error reporting. So I've created thin wrapper around Log which holds last X number of entries in circular list and provides aggregated report when crash occurs. This way I

Re: [mono-android] 4.2.4 : VS2012 Professionnal can't stop debugging

2012-07-26 Thread Matthew Leibowitz
I have this problem too. Just terminate the app from the device side. I use easy app killer or something. On Jul 27, 2012 12:08 AM, "Alphapage" wrote: > Hello, > I was using 4.2.3 without any problem in VS2012, but when I want to stop > the > debugger the only way is to kill the VS2012 process. >

Re: [mono-android] Truncate long label with ellipsis in a custom list view

2012-07-26 Thread Pattt
Ok, I finally found that in a custom list view, textview.ellipsize works only with android:shrinkColumns="1" android:stretchColumns="1" Patrick. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Truncate-long-label-with-ellipsis-in-a-custom-list-view-tp5711010p571

[mono-android] MonoDroid binding build fails

2012-07-26 Thread kovacsd
Hi! We're trying to create a binding for Zooz. We've created the project, set the jar to InputJar but when trying to compile, we got this: What could be the problem here? There are a lot of unknown types but for example after I've added com.apache.http.client as ReferenceJar the build still gives

[mono-android] Window.DecorView.Visibility and TabActivity

2012-07-26 Thread Breyer, Christian
Hi there, has anyone ever tried to hide the android 4 bar with that three-dot-button (e.g. HTC ONE S)? >From what I read and what mono offers, I tried this: Window.DecorView.Visibility = ViewStates.Invisible; It seems to work for some activities but not for all. Whenever I start an act

[mono-android] Random access on Android Assets

2012-07-26 Thread Matthieu Laban
Hello Guys, I'm trying to read a file where I need the position in the file stream and occasionally seek in the file. The size of that file can vary from some KB to a few MB. I've tried using Assets.Open but accessing the Length or Position property throws an exception. Tried setting the access f

Re: [mono-android] dynamic listview item expansion using ViewStub - selectively not working

2012-07-26 Thread Sayed Arian Kooshesh
haven't looked at your code but I thought it'd nice to mention that listview "reuses" views so if it's the last view on the screen but not the last view in the series it could be something to do with that. It could also have nothing at all to do with that. I've got a dozen things going on, where sp

[mono-android] Exception creating instance of a generated type

2012-07-26 Thread Renato Degelo
Hail, my code generates a proxy class using reflection emit. Everything works fine, but when i try to create the instance of the proxy i get an exception. My proxy generator works fine in other project types. Any idea? Thanks Activator.CreateInstance(generatedType, obj, interceptor); Exception:

[mono-android] Connection to the layout renderer failed [designer]

2012-07-26 Thread andi_p
Hi, yesterday I updated to the new version of monodroid. Since that I get an error when trying to open designer for every layout file in Visual Studio. Error message "Connection to the layout renderer failed. This may be caused by a misconfiguration of Java. Please close an open the file again."

[mono-android] Async and the UI

2012-07-26 Thread Nosh
Hi I am using async to get message back from web service and in the methos dealing with the returned msg from the web service i need to show a message. I realise due to thread i cannot update UI. I am new to this in c# so any advice would be helpful here is my method private void ServerReturn

[mono-android] Different drawable resources are selected

2012-07-26 Thread al23883
I am trying to create a series of different image resources for an app I am writing. I have created five folders in the resource folder... Drawable Drawable-hdpi Drawable-mdpi Drawable-ldpi and this is my AndroidManifest.xml file... http://schemas.android.com/apk/res/android"; android:installL

[mono-android] Offline Documentation

2012-07-26 Thread Tsofatse Emmanuel
Hello i'm wondering if there's any documentation offline for mono for android..the mobile network puts me on edge in my area which isn't always suitable for smooth browsing of the documentation..Any info on this would help a lot..I hope there is though..I just can't deal with browsing the docs with

[mono-android] 4.2.4 : VS2012 Professionnal can't stop debugging

2012-07-26 Thread Alphapage
Hello, I was using 4.2.3 without any problem in VS2012, but when I want to stop the debugger the only way is to kill the VS2012 process. It works great in Monodevelop which I don't use because I can't get the same environment as VS2012 (problem with keys for example I use Alt + RightArrow to run au

[mono-android] Open Positions for Mono for Android Developers

2012-07-26 Thread Andrew Taylor
** URGENT OPEN POSITION - MONO FOR ANDROID DEVELOPER ** Are you a highly experienced Mono for Android Developer? Do you love to create cutting edge applications in a variety of

Re: [mono-android] Adding ZTE Light Tab 2 to running devices

2012-07-26 Thread Nosh
Please ignore my last post. The Samsung is working after i reinstalled drivers. I think this is the issue with the ZTE Tab 2 i.e. i need to install device drivers for this..when connected to the PC it's just a USB stick. anyone know where to find these . Thanks -- View this message in contex

Re: [mono-android] Adding ZTE Light Tab 2 to running devices

2012-07-26 Thread Nosh
Thanks Tried that but no luck.. I tried reconnecting my Smasung II which worked i.e would come up in the display for devices connected but that has stopped appearing now. Any Ideas -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Adding-ZTE-Light-Tab-2-to-runni

[mono-android] Mono for Android 4.2.5 Alpha Release Available

2012-07-26 Thread Jonathan Pryor
We are pleased to announce an Alpha release of Mono or Android 4.2.5. This will allow all you intrepid developers with a Nexus 7 or API16 Galaxy Nexus to finally deploy onto your APi16 hardware devices. ;-) Release notes: http://docs.xamarin.com/android/Releases/Mono_For_Android_4/Mono

Re: [mono-android] Exception creating instance of generated type.

2012-07-26 Thread Renato Degelo
Hey Jon... Found the problem... I have 2 orverloaded methods to create proxy, and the one i use in M4A project was broken. The problem is that M4A aren't giving me any exception in the TypeBuilder, for some reason the type was created successfully and when i tryied to instantiate the broken type i

[mono-android] InApp Billing on Mono for Android

2012-07-26 Thread nino
Hello, is there some good example on how to use in app billing in Mono Android. Which approach to take? how to use aidl file? Regards, Nino -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/InApp-Billing-on-Mono-for-Android-tp5711040.html Sent from the Mono for An

Re: [mono-android] Exception creating instance of generated type.

2012-07-26 Thread Renato Degelo
Hey Jon! You're right, its working with no crash. But if i move the proxy generator to a M4A Library i got the crash. I've modified your project a little, moved the generator to a library and i hope you can see the exception now. http://www.crocko.com/3684F132561B4B8FB6ADAA50219FD2A6/Scratch.Sr

Re: [mono-android] Exception creating instance of generated type.

2012-07-26 Thread Jonathan Pryor
On Jul 26, 2012, at 10:46 AM, Renato Degelo wrote: > I've uplaoded a console application sample that shows it running and you can > test it in M4A and see the exception. Thanks. Unfortunately when I run my test project it doesn't crash; perhaps this is fixed in the forthcoming 4.2.5? h

Re: [mono-android] Contact woes

2012-07-26 Thread Eric Maupin
Hi Stephan, On Android, there are two types of contact ID: the individual contact ID, and the lookup key. Android gives you the option of looking at aggregated contacts (that is, merged contact details from multiple accounts), or individual contacts. The ID that you are using in your original exam

Re: [mono-android] Exception creating instance of generated type.

2012-07-26 Thread Renato Degelo
Hi Jonathan.. I've tested in Mono and it works fine. I've uplaoded a console application sample that shows it running and you can test it in M4A and see the exception. http://www.crocko.com/C7830248DB6B45088C497C91D5BE173F/ProxyTestXamarin.rar Sample Thanks for your help. -- View this messa

[mono-android] Best way to determine if LocationManager exists?

2012-07-26 Thread Neal Culiner
Hello, Kindle Fire and NOOK do not have LocationManager available so I need to test for that just in case some other device also doesn't have it. I'm using the code below but it appears it is not returning null on KindleFire or NOOK: var lm = GetSystemService(LocationService) as Android.Lo

Re: [mono-android] Exception creating instance of generated type.

2012-07-26 Thread Jonathan Pryor
On Jul 26, 2012, at 8:27 AM, Renato Degelo wrote: > My proxy generator works fine in other project types. Does it work in desktop mono? :-) It's possible that this is a bug in Mono or elsewhere. If you're interested, you could install Mono [0] on your machine and see if the project works within

[mono-android] Exception creating instance of generated type.

2012-07-26 Thread Renato Degelo
Hail, my code generates a proxy class using reflection emit. Everything works fine, but when i try to create the instance of the proxy i get an exception. My proxy generator works fine in other project types. Any idea? Thanks Activator.CreateInstance(generatedType, obj, interceptor); Exception:

Re: [mono-android] Automatic crash reporting

2012-07-26 Thread psryland
Hi again all, Thanks for the replies. Cheers Greg, I'll give this a shot, although in the meantime I've managed to get crash reporting working using the BugSense library which is fine for the scope of the testing we're doing at the moment. I've also implemented an in-app 'Create a bug report' opt