B basicall Member Licensed User Longtime User Nov 15, 2012 #1 Hi, I could not find which LIB I should include in my project to control LED of my android phone. I am a newbie.:sign0104: Anyone could give me a little hint ?
Hi, I could not find which LIB I should include in my project to control LED of my android phone. I am a newbie.:sign0104: Anyone could give me a little hint ?
Z ZJP Active Member Licensed User Longtime User Nov 15, 2012 #2 Camera1.FlashOn() http://www.b4x.com/forum/additional...tes/9383-advanced-camera-library-v1-00-a.html Upvote 0
Camera1.FlashOn() http://www.b4x.com/forum/additional...tes/9383-advanced-camera-library-v1-00-a.html
B basicall Member Licensed User Longtime User Nov 15, 2012 #3 ZJP said: Camera1.FlashOn() http://www.b4x.com/forum/additional...tes/9383-advanced-camera-library-v1-00-a.html Click to expand... Hi ZJP, Thanks for your prompt reply and warm help. I have a question here: 1, The LED I mentioned is a indication light for example when the battery is low it will on/off with red color when I got missed call it will on/off with blue color. 2, I checked that url you posted and I could find "Flashlight" in that camera library. But I think indication LED is not the same thing as Flashlight. So, I think indication LED could not be controled by that camera library. Upvote 0
ZJP said: Camera1.FlashOn() http://www.b4x.com/forum/additional...tes/9383-advanced-camera-library-v1-00-a.html Click to expand... Hi ZJP, Thanks for your prompt reply and warm help. I have a question here: 1, The LED I mentioned is a indication light for example when the battery is low it will on/off with red color when I got missed call it will on/off with blue color. 2, I checked that url you posted and I could find "Flashlight" in that camera library. But I think indication LED is not the same thing as Flashlight. So, I think indication LED could not be controled by that camera library.
B basicall Member Licensed User Longtime User Nov 15, 2012 #4 In my opinion this should be the most basic feature of basic2adroid yet I could not find answer from online document :sign0163: Upvote 0
In my opinion this should be the most basic feature of basic2adroid yet I could not find answer from online document :sign0163:
moster67 Expert Licensed User Longtime User Nov 15, 2012 #5 Perhaps using notifications? Barx' Custom-Notification-library might help you (not tested): http://www.b4x.com/forum/additional-libraries-classes-official-updates/16950-custom-notification-library-barx.html#post96888 Upvote 0
Perhaps using notifications? Barx' Custom-Notification-library might help you (not tested): http://www.b4x.com/forum/additional-libraries-classes-official-updates/16950-custom-notification-library-barx.html#post96888
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2012 #6 You can use a regular notification object for that. Basic4android - Core Upvote 0
B basicall Member Licensed User Longtime User Nov 15, 2012 #7 Erel said: You can use a regular notification object for that. Basic4android - Core Click to expand... The testing result is that, it could make sound and vibrate but could not make LED indicator work. Upvote 0
Erel said: You can use a regular notification object for that. Basic4android - Core Click to expand... The testing result is that, it could make sound and vibrate but could not make LED indicator work.
B basicall Member Licensed User Longtime User Nov 15, 2012 #8 moster67 said: Perhaps using notifications? Barx' Custom-Notification-library might help you (not tested): http://www.b4x.com/forum/additional-libraries-classes-official-updates/16950-custom-notification-library-barx.html#post96888 Click to expand... Thanks. Will update you after I test it. Upvote 0
moster67 said: Perhaps using notifications? Barx' Custom-Notification-library might help you (not tested): http://www.b4x.com/forum/additional-libraries-classes-official-updates/16950-custom-notification-library-barx.html#post96888 Click to expand... Thanks. Will update you after I test it.
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2012 #9 Have you set: Code: Copy n.Light = True Upvote 0
B basicall Member Licensed User Longtime User Nov 16, 2012 #10 Erel said: Have you set: Code: Copy n.Light = True Click to expand... Sure. I tested with the following codes: Code: Copy Sub Button1_Click Dim n As Notification n.Initialize n.Light = True n.Notify(1) End Sub Upvote 0
Erel said: Have you set: Code: Copy n.Light = True Click to expand... Sure. I tested with the following codes: Code: Copy Sub Button1_Click Dim n As Notification n.Initialize n.Light = True n.Notify(1) End Sub
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2012 #11 You must set the Icon property and call SetInfo. See the example in the link I posted. Upvote 0
B basicall Member Licensed User Longtime User Nov 17, 2012 #12 Erel said: You must set the Icon property and call SetInfo. See the example in the link I posted. Click to expand... ok. I updated code based on your instruction: Code: Copy Sub Button1_Click Dim n As Notification n.Initialize n.Light = True n.Icon = "icon" n.SetInfo("This is the title", "and this is the body.", Main) 'Change Main to "" if this code is in the main module. n.Notify(1) End Sub But, it still could not make the phone LED indicator work. :signOops: I tested it on both Moto and Sony Ericsson. Upvote 0
Erel said: You must set the Icon property and call SetInfo. See the example in the link I posted. Click to expand... ok. I updated code based on your instruction: Code: Copy Sub Button1_Click Dim n As Notification n.Initialize n.Light = True n.Icon = "icon" n.SetInfo("This is the title", "and this is the body.", Main) 'Change Main to "" if this code is in the main module. n.Notify(1) End Sub But, it still could not make the phone LED indicator work. :signOops: I tested it on both Moto and Sony Ericsson.
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2012 #13 The standard notification object uses the device default light settings. Seems like there are some devices that will not show any light in that case. You can use this library to force the LED to flash: http://www.b4x.com/forum/additional...stom-notification-library-barx.html#post96888 Upvote 0
The standard notification object uses the device default light settings. Seems like there are some devices that will not show any light in that case. You can use this library to force the LED to flash: http://www.b4x.com/forum/additional...stom-notification-library-barx.html#post96888
B basicall Member Licensed User Longtime User Nov 20, 2012 #14 Erel said: You can use this library to force the LED to flash: http://www.b4x.com/forum/additional...stom-notification-library-barx.html#post96888 Click to expand... Hi Erel. I have tested the barx lib. It could work well with my moto phone. Thanks Upvote 0
Erel said: You can use this library to force the LED to flash: http://www.b4x.com/forum/additional...stom-notification-library-barx.html#post96888 Click to expand... Hi Erel. I have tested the barx lib. It could work well with my moto phone. Thanks
B basicall Member Licensed User Longtime User Nov 20, 2012 #15 moster67 said: Perhaps using notifications? Barx' Custom-Notification-library might help you (not tested): http://www.b4x.com/forum/additional-libraries-classes-official-updates/16950-custom-notification-library-barx.html#post96888 Click to expand... Hi moster67. My testing result is that the barx lib could work well with my moto phone. Thanks Upvote 0
moster67 said: Perhaps using notifications? Barx' Custom-Notification-library might help you (not tested): http://www.b4x.com/forum/additional-libraries-classes-official-updates/16950-custom-notification-library-barx.html#post96888 Click to expand... Hi moster67. My testing result is that the barx lib could work well with my moto phone. Thanks
W webkumanda Member Licensed User Longtime User May 6, 2015 #16 Hii I want a turn on/off usb keyboard leds. CAPSLOCK, NUMLOCK, SCROLLLOCK Leds. How can I do? Thanks Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 6, 2015 #17 Please do not make duplicate posts. This thread is not related to your question. Upvote 0