My microphone is not being detected by JXBrowser.
Is any way is available to enable microphone in JXBrowser?
Browser browser = new Browser();
BrowserView view = new BrowserView(browser);
JFrame frame = new JFrame();
frame.add(view, BorderLayout.CENTER);
frame.setSize(700, 500);
frame.setVisible(true);
browser.loadURL("https://www.google.com");
When try to access Google voice, below message are coming in jxbrowser, but this voice recognition working with Google chrome which installed in my PC:
The reason of this behavior is that Voice recognition functionality hasn't been enabled in JxBrowser library yet. We reproduced this behavior and created appropriate task in our issue tracking system (#751). In one of the next version it will be fixed.
UPD: The Voice recognition functionality has been enabled in JxBrowser 6.8. You can read about how to configure JxBrowser to use voice search in the article at https://jxbrowser.support.teamdev.com/support/solutions/articles/9000099117-voice-recognition
Related
error message as below
[getToken] Error/Exception: {"nativeStackAndroid":[],"userInfo":null,"message":"907122036: no
right","code":"907122045","line":2568,"column":45,"sourceURL":"http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.huaweipush.letsapp&modulesOnly=false&runModule=true"}
[getToken] Error/Exception: {"nativeStackAndroid":[],"userInfo":null,"message":"907122036: no right","code":"907122045","line":2568,"column":45,"sourceURL":"http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.huaweipush.letsapp&modulesOnly=false&runModule=true"}
The error code indicates that the Push Kit are not enabled. As a result, have no permission to obtain the token. How to enable the Push Kit, pls refer to the this docs.
Sign in to AppGallery Connect and click My projects.
Find and click the desired project in the project list, and click the app for which you need to set Push Kit parameters.
Go to Project settings > Manage APIs and enable Push Kit.
Go to Grow > Push Kit and click Enable now. In the dialog box that is displayed, click OK.
Enable the precise messaging function.
Here below is some checkpoints for the above issue.
First ensure you have enabled the push kit in AppGallery Console
Please check whether you are providing correct app id or not:
String appId = AGConnectServicesConfig.fromContext(MainActivity.this).getString("client/app_id");
pushtoken = HmsInstanceId.getInstance(MainActivity.this).getToken(appId, "HCM");
It is recommended that the getToken method be called in the onCreate method of the first Activity class after app startup. Implement the corresponding listeners for getToken API and observe the logs.
Device: Non-Huawei phones must have HMS Core (APK) installed (which can be downloaded from HUAWEI AppGallery). There is no restriction on Huawei phones.
Network: The phone is connected to the network and the connection is stable.
EMUI version: EMUI 4.0 and EMUI 4.1 (for some devices), and EMUI 5.0 or later It is recommended that you use a device running EMUI 5.0 or later.
New Xbox gamepads have a new "share" button and I can't find a way to check if it's pressed.
It is possible?
Yes, Xbox Wireless Controller Model 1914 (aka "Xbox Series X|S Controller") sends the Share button as the first bit of the last byte of the controller data report. Over Bluetooth HID the button uses the Record usage from the Consumer usage page.
Most platform gamepad APIs don't support the Share button. That includes XInput and Windows.Gaming.Input on Windows and joydev on Linux. Also on Linux, the xpad module (the driver for USB-connected Xbox controllers) doesn't support the Share button over USB. You'd need to install xpad-neo, which maps it to the KEY_RECORD input event code. (This is the same event code that the Consumer Record HID usage is normally mapped to.) macOS supposedly supports the Share button through the Game Controller framework but I haven't seen this working yet. Recent versions of Android include a keylayout file to map the button to MEDIA_RECORD.
I have gone through the link which explains getting SSID without private library. This works for devices below iOS 12.0.1. From iOS 12.0.1 onwards, the same library is not beneficial anymore. My code snippet is:
CFArrayRef myArray = CNCopySupportedInterfaces();
CFDictionaryRef myDict = CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(myArray, 0));
NSString *networkName = CFDictionaryGetValue(myDict, kCNNetworkInfoKeySSID);
These lines crash in Xcode 10 and above. myDict is returned nil. Is the library changed? Any other way to achieve this task?
Additional settings are reqiured in iOS12 for getting Wifi SSID.
Summary is that Apple qoutes:
To use this function in iOS 12 and later, enable the Access WiFi Information capability for your app in Xcode. When you enable this capability, Xcode automatically adds the Access WiFi Information entitlement to your entitlements file and App ID.
Thus, Enable Access WiFi Information for the Bundle ID in developer account. Reenable the associated provisional profiles.
In Xcode, under Targets -> Capabilities -> Access WiFi Information -> Enable it to ON.
I am trying to create a QT based application that scan and connect WiFi networks. I am using this example as a reference code.
Is it possible to assign static IP for the WiFi connection using QNetworkConfiguration or any related class ?
How to authenticate the networks that are password protected ?
thanks in advance......
I have created a net work session using the below code set..
void BearerMonitor::createNewSessionFromQml(QString ssid)
{
QList<QNetworkConfiguration> allConfigurations = manager.allConfigurations();
while (!allConfigurations.isEmpty()) {
QNetworkConfiguration config = allConfigurations.takeFirst();
if(config.name()==ssid)
createSessionFor(config);
}
}
SessionWidget::SessionWidget(const QNetworkConfiguration &config, QObject *parent):QObject(parent)
{
session = new QNetworkSession(config, this);
session->open();
}
No you can't. At least not with just Qt APIs.
Please read this and in particular this. QNetworkConfiguration is just a facility to manage network configurations. Editing such configurations is demanded to native code / OS interactions. From the second link:
Note that the QNetworkConfiguration object only provides limited information about the configuration details themselves. It's main purpose is to act as a configuration identifier through which link layer connections can be created, destroyed and monitored.
Even the "start/stop network interfaces" claim is not entirely true since such a feature is available only in certain OSs (not the mobile ones). See the "Platform capabilities" section of the second link for more details about that.
The same reasoning applies to the password question. Once a network is registed in the OS with the corresponding password (because of native code or the user physically registering it) a new configuration is available to the NetworkConfigurationManager, granted that the list of configurations is updated via updateConfigurations(). The new configuration contains the password but you can't edit it from Qt APIs.
Native code is the only solution, as said. Still, Apple does not want you to mess up with WiFi programatically since private APIs for that cannot be used in iOS > 5.1 (the oldest version supported by Qt as for Qt 5.4).
Is it possible to access phone data like (Contact,Message) in android,Iphone using Flash Builder Mobile Development app .... If It's Possible using Adobe air so tell me ..
thanks
If the underlying operating system exposes that data, you can access it using a Native Extension. You may have to write your own Native Extension to do that, though.
You can call these API's -
Accelerometer
GPS
Camera
Microphone
To store data-
Sql Lite Datebases
OS Interactions-
Text Message
Email
Call
Example-
protected function sendMessage(event:MouseEvent):void {
var message:String = "";
message +="sms:";
message+ = sendTo.text;
navigateToURL ( new URLRequest (message));
}
This should open your messaging app. However the data you to want to read is mostly going to be protected. You can write a Native Extension though and plug Flex into it.