[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Did you ever get the callback for connect() to work? Doesnt work here, this 
library seems very flakey..

On Wednesday, August 28, 2019 at 8:21:48 PM UTC+1, Gareth Murfin wrote:
>
> Still more issues, connecting I always get "Device previously connected, 
> reconnect or close for new device". There is no way to get the address it 
> thinks its connected to in order to call disconnect/reconnect. And it 
> erroneously thinks that I have connected, which I havent.
>
> On Wednesday, August 28, 2019 at 6:33:54 PM UTC+1, Gareth Murfin wrote:
>>
>> Oh I see! Yes it seems to work, location is a weird permission to need, 
>> and I wonder why it doesnt prompt for it when it requests permission. 
>> Thanks again.
>>
>> On Wednesday, August 28, 2019 at 6:07:53 PM UTC+1, Kandy Bitxenio wrote:
>>>
>>> Hi Garet, you need to activate the location on Android, se the library 
>>> documentation, the bluetooth library works fine on IOS and Android.
>>>
>>> Best Regards Kandy
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/f318c734-2865-47c7-86ff-a9d2f192ddc9%40googlegroups.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Still more issues, connecting I always get "Device previously connected, 
reconnect or close for new device". There is no way to get the address it 
thinks its connected to in order to call disconnect/reconnect. And it 
erroneously thinks that I have connected, which I havent.

On Wednesday, August 28, 2019 at 6:33:54 PM UTC+1, Gareth Murfin wrote:
>
> Oh I see! Yes it seems to work, location is a weird permission to need, 
> and I wonder why it doesnt prompt for it when it requests permission. 
> Thanks again.
>
> On Wednesday, August 28, 2019 at 6:07:53 PM UTC+1, Kandy Bitxenio wrote:
>>
>> Hi Garet, you need to activate the location on Android, se the library 
>> documentation, the bluetooth library works fine on IOS and Android.
>>
>> Best Regards Kandy
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6300f5c7-0d5c-41a3-bbd2-15e7f5dd4f26%40googlegroups.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Oh I see! Yes it seems to work, location is a weird permission to need, and 
I wonder why it doesnt prompt for it when it requests permission. Thanks 
again.

On Wednesday, August 28, 2019 at 6:07:53 PM UTC+1, Kandy Bitxenio wrote:
>
> Hi Garet, you need to activate the location on Android, se the library 
> documentation, the bluetooth library works fine on IOS and Android.
>
> Best Regards Kandy
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/87836208-c190-4a18-8ac6-88abca0617ba%40googlegroups.com.


Re: [codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
who knows whats going on this bluetooth library is terrible.
issue described here.
https://github.com/chen-fishbein/bluetoothle-codenameone/issues/11

On Wed, 28 Aug 2019 at 16:54, Gareth Murfin  wrote:

> hmmm now im getting android errors, im presuming these need to be set as
> build hints.. BluetoothLeScanner: fail to start le scan - SecurityException
> thrown: java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or
> ACCESS_FINE_LOCATION permission to get scan results
>
> On Wednesday, August 28, 2019 at 12:25:12 AM UTC+1, Gareth Murfin wrote:
>>
>> Getting this error with the bluetooth lib on Android (samsung s7 -
>> Android 8.0)
>>
>> W/System.err: java.io.IOException: Bluetooth not initialized
>> W/System.err: at
>> com.codename1.cordova.Cordova.execute(Cordova.java:33)
>> W/System.err: at
>> com.codename1.bluetoothle.Bluetooth.enable(Bluetooth.java:85)
>> W/System.err: at userclasses.MainForm.startBluetooth(MainForm.java:55)
>> W/System.err: at
>> com.pippa.hobmonitor.MyApplication.start(MyApplication.java:41)
>> W/System.err: at
>> com.pippa.hobmonitor.MyApplicationStub.run(MyApplicationStub.java:163)
>> W/System.err: at
>> com.pippa.hobmonitor.MyApplicationStub$1.run(MyApplicationStub.java:107)
>> W/System.err: at
>> com.codename1.ui.Display.processSerialCalls(Display.java:1298)
>> W/System.err: at
>> com.codename1.ui.Display.mainEDTLoop(Display.java:1093)
>> W/System.err: at
>> com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
>> W/System.err: at
>> com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
>> W/System.err: at java.lang.Thread.run(Thread.java:764)
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/codenameone-discussions/BID1gcFOGqw/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/57d9d6f0-4002-4c34-987c-50d4e5379f42%40googlegroups.com
> 
> .
>


-- 
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CANOaY6m602_E_98Bdc_%3Dhe_A8Yji%2BMiCj24G8Dp45xedVjbZrA%40mail.gmail.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
hmmm now im getting android errors, im presuming these need to be set as 
build hints.. BluetoothLeScanner: fail to start le scan - SecurityException 
thrown: java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or 
ACCESS_FINE_LOCATION permission to get scan results

On Wednesday, August 28, 2019 at 12:25:12 AM UTC+1, Gareth Murfin wrote:
>
> Getting this error with the bluetooth lib on Android (samsung s7 -  
> Android 8.0)
>
> W/System.err: java.io.IOException: Bluetooth not initialized
> W/System.err: at com.codename1.cordova.Cordova.execute(Cordova.java:33)
> W/System.err: at 
> com.codename1.bluetoothle.Bluetooth.enable(Bluetooth.java:85)
> W/System.err: at userclasses.MainForm.startBluetooth(MainForm.java:55)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplication.start(MyApplication.java:41)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplicationStub.run(MyApplicationStub.java:163)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplicationStub$1.run(MyApplicationStub.java:107)
> W/System.err: at 
> com.codename1.ui.Display.processSerialCalls(Display.java:1298)
> W/System.err: at 
> com.codename1.ui.Display.mainEDTLoop(Display.java:1093)
> W/System.err: at 
> com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
> W/System.err: at 
> com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
> W/System.err: at java.lang.Thread.run(Thread.java:764)
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/57d9d6f0-4002-4c34-987c-50d4e5379f42%40googlegroups.com.


Re: [codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Thanks Kandy! Your libraries worked perfectly for me. Much appreciated! No
idea why mine didnt work!!.. Thanks again, let me know if you ever need any
help in return.

On Wed, 28 Aug 2019 at 15:30, Gareth Murfin  wrote:

> Thanks very much! Grabbing the libs now, but my internet is poor.. my
> email is gareth.mur...@gmail.com
>
> On Wednesday, August 28, 2019 at 2:56:30 PM UTC+1, Kandy Bitxenio wrote:
>>
>> Hi Gareth
>>
>> This are my libs, please give me your mail to send the project.
>>
>> https://www.dropbox.com/sh/d652hpn11bowq0s/AAA-jEVH3WRv-1sueCOReuQ5a?dl=0
>>
>> My project is copied from:
>>
>>
>> https://github.com/chen-fishbein/bluetoothle-codenameone/tree/master/BTDemo
>>
>> Best Regards
>>
>> El miércoles, 28 de agosto de 2019, 15:37:51 (UTC+2), Gareth Murfin
>> escribió:
>>>
>>> That would be great Kandy, a dummy project that you know works would
>>> help me greatly. I appreciate your help!
>>>
>>> On Wednesday, August 28, 2019 at 2:25:43 PM UTC+1, Kandy Bitxenio wrote:

 If you I can send you my libraries, or my dummy project.

 Best Regards.

>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "CodenameOne Discussions" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/codenameone-discussions/BID1gcFOGqw/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/fa6721df-38b4-420d-ac2d-f00f99bd4e50%40googlegroups.com
> 
> .
>


-- 
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CANOaY6moEbX4-H3dg1ZDLhN95qW5V-kaEo-PN--bWB7xjTZ3gg%40mail.gmail.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
Thanks very much! Grabbing the libs now, but my internet is poor.. my email 
is gareth.mur...@gmail.com

On Wednesday, August 28, 2019 at 2:56:30 PM UTC+1, Kandy Bitxenio wrote:
>
> Hi Gareth
>
> This are my libs, please give me your mail to send the project.
>
> https://www.dropbox.com/sh/d652hpn11bowq0s/AAA-jEVH3WRv-1sueCOReuQ5a?dl=0
>
> My project is copied from:
>
> https://github.com/chen-fishbein/bluetoothle-codenameone/tree/master/BTDemo
>
> Best Regards
>
> El miércoles, 28 de agosto de 2019, 15:37:51 (UTC+2), Gareth Murfin 
> escribió:
>>
>> That would be great Kandy, a dummy project that you know works would help 
>> me greatly. I appreciate your help!
>>
>> On Wednesday, August 28, 2019 at 2:25:43 PM UTC+1, Kandy Bitxenio wrote:
>>>
>>> If you I can send you my libraries, or my dummy project.
>>>
>>> Best Regards.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/fa6721df-38b4-420d-ac2d-f00f99bd4e50%40googlegroups.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Kandy Bitxenio
Hi Gareth

This are my libs, please give me your mail to send the project.

https://www.dropbox.com/sh/d652hpn11bowq0s/AAA-jEVH3WRv-1sueCOReuQ5a?dl=0

My project is copied from:

https://github.com/chen-fishbein/bluetoothle-codenameone/tree/master/BTDemo

Best Regards

El miércoles, 28 de agosto de 2019, 15:37:51 (UTC+2), Gareth Murfin 
escribió:
>
> That would be great Kandy, a dummy project that you know works would help 
> me greatly. I appreciate your help!
>
> On Wednesday, August 28, 2019 at 2:25:43 PM UTC+1, Kandy Bitxenio wrote:
>>
>> If you I can send you my libraries, or my dummy project.
>>
>> Best Regards.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7b8c7368-3f5a-41df-80d6-dbeb6149fe96%40googlegroups.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
That would be great Kandy, a dummy project that you know works would help 
me greatly. I appreciate your help!

On Wednesday, August 28, 2019 at 2:25:43 PM UTC+1, Kandy Bitxenio wrote:
>
> If you I can send you my libraries, or my dummy project.
>
> Best Regards.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e3d17e9a-ecb9-41da-ab00-86023d398688%40googlegroups.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Kandy Bitxenio
If you I can send you my libraries, or my dummy project.

Best Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/6249d532-5bb0-4da1-8c57-56541bfba27e%40googlegroups.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-28 Thread Gareth Murfin
well I think so.. my libs dir is shown below, anything else required?

ModeLastWriteTime Length Name
- -- 
d-   28/08/2019 14:03impl
-a   27/08/2019 20:462264815 CLDC11.jar
-a   27/08/2019 21:46  50396 CN1Bluethooth.cn1lib
-a   14/08/2017 10:44  30533 CN1JSON.cn1lib
-a   27/08/2019 21:196256001 CodenameOne.jar
-a   27/08/2019 21:19   1036 CodenameOne_SRC.zip

On Wednesday, August 28, 2019 at 6:11:01 AM UTC+1, Shai Almog wrote:
>
> Did you install the dependencies?
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/07fa319c-80ef-428d-99a9-4d1596f34fb3%40googlegroups.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-27 Thread Shai Almog
Did you install the dependencies?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/33e07b3e-a288-4800-8e93-73472349809c%40googlegroups.com.


[codenameone-discussions] Re: java.io.IOException: Bluetooth not initialized

2019-08-27 Thread Gareth Murfin
seems to be related to the json lib not working .. any ideas?

 Exception: java.lang.NoSuchMethodError - No direct method 
(Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
appears in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)
W/System.err: java.lang.NoSuchMethodError: No direct method 
(Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
appears in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)

On Wednesday, August 28, 2019 at 12:25:12 AM UTC+1, Gareth Murfin wrote:
>
> Getting this error with the bluetooth lib on Android (samsung s7 -  
> Android 8.0)
>
> W/System.err: java.io.IOException: Bluetooth not initialized
> W/System.err: at com.codename1.cordova.Cordova.execute(Cordova.java:33)
> W/System.err: at 
> com.codename1.bluetoothle.Bluetooth.enable(Bluetooth.java:85)
> W/System.err: at userclasses.MainForm.startBluetooth(MainForm.java:55)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplication.start(MyApplication.java:41)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplicationStub.run(MyApplicationStub.java:163)
> W/System.err: at 
> com.pippa.hobmonitor.MyApplicationStub$1.run(MyApplicationStub.java:107)
> W/System.err: at 
> com.codename1.ui.Display.processSerialCalls(Display.java:1298)
> W/System.err: at 
> com.codename1.ui.Display.mainEDTLoop(Display.java:1093)
> W/System.err: at 
> com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
> W/System.err: at 
> com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
> W/System.err: at java.lang.Thread.run(Thread.java:764)
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/029f7da2-f98c-49cc-9ff4-171af8c3b6f5%40googlegroups.com.