[mono-android] Bluetooth Connect NullPointerException

2012-10-16 Thread Steve Sharrock
I'm aware of the reflection required to get the Socket... IntPtr createRfcommSocket = JNIEnv.GetMethodID( device.Class.Handle, "createRfcommSocket", "(I)Landroid/bluetooth/BluetoothSocket;" ); IntPtr socketHandle = JNIEnv.CallObjectMethod( device.Handle, createRfcommSocket, new JValue( 1 ) ); s = J

Re: [mono-android] Bluetooth Connect NullPointerException

2012-10-16 Thread Jonathan Pryor
On Oct 16, 2012, at 9:38 AM, Steve Sharrock wrote: > I've been testing with different Barcode Scanners and RFID Readers and most > of them work fine, except one scanner paired with a Galaxy Tab 2. A Google > search revealed that the Galaxy Tab 2 does have some Bluetooth issues, and > the recomm

[mono-android] Bluetooth Sample program throws “Unhandled Exception” on MonoDev?

2012-10-16 Thread Superziyi
I am just starting to use Mono for Android Development environment. I use MonoDevelop as the IDE. I run one very basic HelloAndroid example and it is doing fine. Then I go ahead and run another bluetooth program in Chapter 8/BlueToothAdapter project. The code is downloaded from the following link:

Re: [mono-android] regarding GPS Location

2012-10-16 Thread tbamy
Hi, I am new in mono for android and i want to do just a simple (I think) thing. I want to have a button and when I press it, it will show my gps location (latitude and longitude). Nothing more. I found the Location Demo and I saw your code here but I'm very confused. And I think these are too muc

Re: [mono-android] regarding GPS Location

2012-10-16 Thread Tom Opgenorth
There is a quick recipe here: http://docs.xamarin.com/android/recipes/OS_and_Device_Resources/GPS/Get_Current_Device_Location Would that help you out? On Sun, Oct 14, 2012 at 11:23 PM, tbamy wrote: > Hi, > I am new in mono for android and i want to do just a simple (I think) thing. > I want to h

[mono-android] FW: Bluetooth Connect NullPointerException

2012-10-16 Thread Steve Sharrock
OK - I'm an idiot. I rebooted the Galaxy Tab 2 and re-paired the scanner and now all works fine with either the secure or insecure socket. Thanks for the reply. Steve Sharrock Architecture/Design/Programming www.sharkcode.com -Original Message- From: Jonathan Pryor [mailto:j...@xamar