notification of bb10 helmet

Hi I was wondering if there is any support for notifications of headphones... I want to say do we receive any notification when we plug our headphones and also when we remove the helmet... or any event fires. If there is an event that fires at the moment so can us programatically access it...

``````````````````````````````````````````EDIT`````````````````````````````````````````

Through QAnywhere for Adobe Air, I found a code and tried

My code

addEventListener (qnx.events.AudioManagerEvent.CONNECTED_INPUT_CHANGED, outputchanged);
addEventListener (qnx.events.AudioManagerEvent.CONNECTED_OUTPUT_CHANGED, outputchanged);

private void outputchanged (event:qnx.events.AudioManagerEvent): void
{
trace ("output is ' + event");
}

It does not work. I have not any trace output...? Any idea... ??

Any advice/help is appreciated

Thanks in advance

Resolved, he changed the code of

var audioManager:AudioManager = AudioManager.audioManager;
audioManager.addEventListener (AudioManagerEvent.CONNECTED_OUTPUT_CHANGED, outputchanged);

Tags: BlackBerry Developers

Similar Questions

  • Notification in BB10 Server

    Is there a mechanism of BB10 notification, when the application registers itself with the notification server (held by RIM) and an event related to the app is notified to the application on the device and the app is called... ?

    You are probably wondering just what's called the Push Service: https://developer.blackberry.com/cascades/documentation/device_comm/push/developing_a_push_enabled_a...

  • How to configure the push notification in BB10?

    Hi all

    I want to do an application based on the concept of send and receive push notification. I'm having difficulties in your Setup. can anyone describe the steps to configure.

    Thanks in advance.

    Have you watched this...

    http://developer.BlackBerry.com/native/documentation/Cascades/device_comm/push/developing_a_push_ena...

    There are also some examples of applications that illustrate push them...

    http://developer.BlackBerry.com/native/sampleapps/

    After that if you're still stuck, it is better to ask questions of Push in this dedicated forum...

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/BD-p/Applications_using_Push_Tech...

  • Icon of the Red Star (sparkle) of unexpected notification (native BB10)

    I have a headless application that uses the classes NotificationMode, NotificationGlobalSettings and NotificationPolicy.

    Not so long ago I was using the Notification class to publish notifications of hub. It was a temporary solution, for logging / debugging only, and it has been deleted completely, when there was no more need in there.

    The question is, when I recharge my camera (Z10, 10.2.1), red sparke notification appears on my icon of the application, but there is no sign of all the messages involved in the hub. As the part of the user interface is not yet launched, I guess that something is wrong with the game without head. This issue takes place only upon reboot. When I install set bar or run the application in debug mode, everything is fine.

    I can't even imagine, what could cause this. Notification icon is right there without any particular reason.

    There may be a known issue/bug? Some cached, parameters, or errors in application, who could publish this red spark?

    Thanks in advance!

    Solved myself.
    Posted the notification of hub, deleted manually, then rebooted the device and called deleteAllFromHub and clearEffectsForAll. Deletion of unnecessary imported classes and functions, again rebooted the device and sparkle red had disappeared.

  • BB10 Push notification: PushPayLoad

    I'm developing a c# application that can send a push notification to BB10 devices using Blackberry Internet Service, I found a code it works well, however I don't know how to add custom to the push, data data that can be access with the push as pushPayLoad and used that is when user click on the push notification , it will run my native application bb10 then navigate to the user window or any other open window as required bussiness

    Here are my c# code:

    HttpWebResponse HttpWRes = null;
                HttpWebRequest HttpWReq = null;
    
                string pin = "push_all";
                string applicationID = "ApplicationID";
                string BOUNDARY = "ASDFaslkdfjasfaSfdasfhpoiurwqrwm";
                string msg = "Good morning"; // the message to send
    
                string userName = "ApplicationID";//"YOUR_APPLICATION_ID";
                string userPW = "YourPassword";//"YOUR_PASSWORD";
    
                string url = "https://pushapi.eval.blackberry.com/mss/PD_pushRequest";
    
                HttpWReq = (HttpWebRequest)WebRequest.Create(url);
    
                //SetProxy(HttpWReq); //if proxy needed, use this
    
                HttpWReq.Method = ("POST");
                HttpWReq.Accept = "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2";
                HttpWReq.KeepAlive = true;
                //HttpWReq.Credentials = new NetworkCredential(userName, userPW);
    
                HttpWReq.PreAuthenticate = true;
                HttpWReq.ContentType = "multipart/related; boundary=" + BOUNDARY + "; type=application/xml";
    
                SetBasicAuthHeader(HttpWReq, userName, userPW);
                StringBuilder dataToSend = new StringBuilder();
    
                dataToSend.AppendLine("--" + BOUNDARY);
                dataToSend.AppendLine("Content-Type: application/xml; charset=UTF-8");
    
                dataToSend.AppendLine("");
                dataToSend.AppendLine("http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd\">");
                dataToSend.AppendLine("");
                string myPushId = DateTime.Now.ToFileTime().ToString();
                string deliverBefore = DateTime.UtcNow.AddMinutes(5).ToString("s", System.Globalization.CultureInfo.InvariantCulture) + "Z";
                dataToSend.AppendLine("");
    
                dataToSend.AppendLine("
    "); dataToSend.AppendLine(""); dataToSend.AppendLine(""); dataToSend.AppendLine(""); dataToSend.AppendLine("--" + BOUNDARY); dataToSend.AppendLine("Content-Type: text/plain"); dataToSend.AppendLine("Push-Message-ID: " + myPushId); dataToSend.AppendLine(""); dataToSend.AppendLine(msg); dataToSend.AppendLine("--" + BOUNDARY + "--"); dataToSend.AppendLine(""); Stream requestStream = null; string pushResult = ""; try { requestStream = HttpWReq.GetRequestStream(); } catch (Exception ex) { pushResult = "Push failed! " + ex.ToString(); } byte[] outStr = new UTF8Encoding().GetBytes(dataToSend.ToString()); requestStream.Write(outStr, 0, outStr.Length); requestStream.Close(); try { HttpWRes = (HttpWebResponse)HttpWReq.GetResponse(); } catch (Exception ex) { //push failed } if (HttpWRes != null) { HttpWRes.Close(); }

    What are the changes that I must code to send data as well as the thrust as profileId = 123?

    After much trial and error, I finally found the answer: adding "msg" I can add all payload elements I want:

    MyStringBuilder.AppendLine ("profileId"+":" + "AAB123");

    MyStringBuilder.AppendLine ("postId"+":" + "4567");

    MyStringBuilder.AppendLine (msg);

  • iOS 10 Bluetooth issues with Visual Voicemail

    I just updated my iPhone 6 more for iOS 10 and use a Plantronics Voyager Edge bluetooth headset. After update I removed the unit and reset the network settings and then paired the headset to my phone.

    I had a few problems with the audio. First of all, no incoming call notification and audio number are routed to the headset. Before the update registered contacts would be announced. If the call was not associated with a registered contact, he would announce the incoming number.

    Second, when access to Visual Voicemail with the headphones plugged voicemail audio output is not routed the headset. If I use it to play music or other audio he paused but always delivers voicemail audio to the phone.

    Has anyone seen elsewhere this behavior or had similar problems?

    On the voicemail, I tried several different bluetooth headphones and I can not listen at all if the headphone is plugged. First, it tries to connect to the bluetooth, but then it just stops. If my headset supports the end of the notice of appeal, I will do a notification on the helmet, which indicates the end of the message before it happens even 5 seconds in the message.

    If I disconnect all the of bluetooth headsets, then I can listen to either on the phone or on the speaker.

  • HP SLATE 7 2800 - SHOW SOUND

    Hello

    I got my Tablet for a few months now it works fine except the sound. in order for me to hear anything of the unit, that I have my headphones plugged in. In the upper right corner of the notification bar th 'Helmet' symbol is lit constantly. I entered all options and played with them a little. I tried a reboot, factory reset and swearing to it.

    I had a micro SD card in but I removed it. The device has not been abused somehow, none falls hard or rough bumps. However, I have quite a few apps installed on my device. I can list out if necessary.

    Thank you in advance.

    Hi @TwoPointOh

    Thank you for your response. Fortunately, the port is not damaged; It was only ditry! I just cleaned the helmet and fixed it.

    Thank you

    Mehdi56r

  • Android.cfg file not created - BB10 Push Notification

    I'm enbaling push notification in my android app BB10 runtime. I'm following this doc to implement the push. I developed the Android using Novell project. I tried different ways to create the file cfg under bar.

    1. Before you create the apk, added the cfg file in the root of the project name of the application (tried naming as android.cfg also).
    2. Using this apk, I generated the .bar file, but Android folder, res folder and apk file do not exist, cfg file is not exist.
    3. Then I tried to add file cfg under bar file after you have created the apk but before signing bar leader, but I started getting the following error:
    Error: No manifest.
    Exception in thread "main" java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at net.rim.tools.signing.SigningMain.main(SigningMain.java:72)
    Caused by: java.lang.Exception: java.lang.RuntimeException: No manifest.
            at net.rim.device.codesigning.barsigner.BarSigner.if(Unknown Source)
            at net.rim.device.codesigning.barsigner.BarSigner.main(Unknown Source)
            ... 5 more
    Caused by: java.lang.RuntimeException: No manifest.
            at net.rim.device.codesigning.barsigner.BarSigner.try(Unknown Source)
            ... 7 more
    

    I see a lot of post where push is activated with success in app Android Runtime BB10. What I'm doing wrong here?

    Hey Subha_Murali,

    Follow the instructions on this page or complie the sample application. It always works for me flawlessly!

  • Can we synchronize permission selected with the settings of operating system Notifications BB10 for our Application.

    Steps to follow:
    BB10 device--> settings--> Notifications--> Applications--> [name of your application]--> all alerts [Toggle button]

    I have an obligation to check whether or not 'All alerts' is allowed through settings when the application is running. To check if we can synchronize permission selected with the settings of operating system Notifications BB10 for my application. How to get javascript code if alerts permission is on / off, while the application is running.

    I tried adding the blackberry.system function and tried to hasPermission (blackberry.push) also, I can't determine if permission is allow / prohibit... Please suggest how to get that.

    I don't see a WebWorks API for this. If I expected to be anywhere, it's here:
    https://developer.BlackBerry.com/HTML5/APIs/beta/BlackBerry.notification.html#jbo1385148829097

    But it seems that this API has not been fully implemented; It may be useful to connect a developer Issue Tracker JIRA to get this feature added.

    At the same time, there is this API of Cascades that looks like what you're looking for:
    https://developer.BlackBerry.com/native/reference/Cascades/bb__platform__notificationapplicationsett...

    Write an extension for this feature should allow you to access this feature:
    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/template

    At the same time, a colleague is currently working on an extension that should open many features of Qt, and I think that the API above should be accessible through this extension. He must be released over the next week or two, so you can wait for that as well.

    EDIT: On this last point, see this extension which provides a mechanism for attaching in the majority of the Qt APIs.

    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/QtBridge

  • Is BlackBerry Z30 Aliendalvik signalling to bb10, good? (Notifications android on BB10?)

    Hi all

    I currently own a phone of la Jolla, as well as a potential to replace it with a device (probably Z30) BB10.

    Let me explain my problem.

    On the features of la Jolla, there is a problem with alert (sound/event) to run applications Android Jolla messaging system.

    For example,.

    Jolla doesn't have a native Skype client. So, we use one Android. Drink whenever there is an event (call, message), it is silent - not only by sound but there is no trace of it in our events. I don't see an Android application event when I actually open Skype.

    Is it not better to BB10?

    I know that BB has a native Skype client, so this probably isn't a problem, but it's more a question of a general nature. I am Freelancer, using various native clients freelance (so not only a matter of Skype) are available only for Android and a few other platform which is (for my reasoning) not worth mentioning, but I need to be alerted when a message or event occurs.

    I hope I did my clear inquty.

    I am an old user of Nokia (before WP), and I think that, at this moment, BB has the best support of productivity with is the hub.

    I hope you can help me.

    Best regards

    István

    Short answer, yes - Android notifications are working properly on BlackBerry 10.

    The BlackBerry Hub separates the notifications in a separate signal from the main for your email, messaging apps etc. Currently, BB10 does not differentiate between different types of Android applications and thus all notifications are simply put into notifications of power on the hub. This isn't a perfect solution (I wish that the differentiation between apps, and better integration of notifications - for example, display notifications in instant messaging applications in a similar way to BBM), but it does not work and you will not fail to notifications.

    With regard to the Skype application - it is not a native BlackBerry application. I don't know if it's just door Android version on as a BlackBerry app or if it is simply provided via world of BB Android apk, but either way it is certainly not a pure BlackBerry app - it is also outdated compared with Android, making it preferable to use the latest version of Android if possible.

    I hope this helps.

  • His past of the helmet speaker for Skype/incoming call notification

    I've listen to music in my headphones, using the regular audio jack or plug input audio communications. I get the same results with either decision.

    When a Skype call comes in, the music will go to play through my headhphones playing through the speakers of the laptop.

    When the call is completed, the sound stops playing on the pc speakers and returns to my helmet.

    I don't want this behavior.

    Thank you for your help.

    Hello

    Try the solution recommended below - 3rd post from the bottom.

    http://community.Skype.com/T5/Windows/Skype-auto-switching-speaker-away-from-headset/TD-p/47194/page/2

    Kind regards

    DP - K

  • notifications of type push (bb10) has not received

    Hello!

    After having my job to push service, he stopped.

    I can save the user, create the chanel and everything works fine, but when sending notifications, he said everything is ok, but nothing is received the alpha device.

    It worked, maybe it crashes after the latest OS update, not sure.

    Any idea on what is happening?

    This is the answer to push:

    http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">http://pushapi.eval.blackberry.com/mss/PD_pushRequest" sender-name="RIM Push-Data Service" reply-time="2013-01-16T20:44:24Z">
    

    For the slog2, you will need to install the Momentics IDE which is installed with the native SDK 10 BlackBerry. Install this IDE will give you the tools you need to access the device.

    http://developer.BlackBerry.com/native/download/

    1. in the QNX Momentics IDE, based on the target browser, right click on the target of the device. ClickLaunch SSH Session.

    2. in the terminal that appears, do one of the following:

    a. to view logs of current slogger2, type slog2info.

    b. to display the output in real time for the processes that are being debugged (for applications that are running in development mode), type slog2info - w.

    c. to display help on slogger2, type slog2info h

    SSH to the machine and run it:

    slog2info >/tmp/slog2.txt, and then send the slog2.txt

    We are able to determine the root cause of the problem in this thread that was the bar needed to be updated to have XML descriptor:

    
          APPLICATION
           
               bb.action.PUSH
               application/vnd.push
           
    
    

    However, when the BAR file was generated META-INF/MANIFEST. MF was lacking the entrances to invoke target which led to the discovery of the root cause of the problem which was the SDK of AIR PlayBook instead of the SDK software BlackBerry 10. Once the correct SDK has been used push starts happening on the device.

  • BB10 - personalization of Push Notification

    Hi all. Recently, we test an app with our client. The application will receive push notification when there is new claim being created so that the user can be notified and then they can approve/reject the claim.

    When comes the push, there is asterisk on the app, reduced app icon and also a message will be sent to the hub. But the feedback from users during the tests, they prefer to be

    1. have the asterisk on the app icon / minimized app but do not have the message sent to the Hub

    2. If a user clicks on a message to display in the hub, it will remove the message current and later in the hub

    Is it possible to do?

    For no 1, I tried not to call Notification in app.textConversionCallback, so there is no message in the hub, but that stop the asterisk appears on the application icon.

    app.parsePayload = function (){
        try{
            if (app.pushService !== null){
                var pushPayload = app.pushService.extractPushPayload(app.onInvokedInfo);
                app.blobToText(pushPayload.data, "UTF-8", app.textConversionCallback);
                app.onInvokedInfo = null;
            }
        } catch (err) {
         alert("Was unable to parse the invoke request.");
      }
    };
    
    app.blobToText = function (blob, encoding, callback) {
        var reader = new FileReader();
        reader.onload = function(evt) {
            // No errors, get the result and call the callback
            callback(evt.target.result);
        };
    
        reader.onerror = function(evt) {
            app.debug("Error converting Blob to string: " + evt.target.error);
        };
        reader.readAsText(blob, encoding);
    };
    
    app.textConversionCallback = function(str) {
        //try to disable this but push is not working
        //notify.hub(str);
    };
    
    var notify = {};
    
    // Add a notification in the Hub
    notify.hub = function(str) {
      var mclaim = JSON.parse(str)
      {
        if(mclaim.empno)
        {
          var pushCount = parseInt(mclaim.workqcnt);
          if((pushCount > 0) && (pushCount > 1))
          {
            var title = "Pending Claims Notification";
            var isAre = "are";
            var claim = "claims";
          }
          if((pushCount > 0) && (pushCount == 1))
          {
            var title = "Pending Claim Notification";
            var isAre = "is";
            var claim = "claim";
          }
          var content = "There "+isAre+" "+parseInt(pushCount)+" "+claim+" pending for approval.";
          new Notification(title, {body: content});
        }
      }
    };
    

    Regarding No 2, is there a function perform the delete action?

    All advice or suggestion will be greatly appreciated.

    Update on the app icon is directly related to the Notification of the HTML5; It is impossible to trigger the icon unless you use the Notification of HTML5.

    You may write an extension to access the following Native API to set the badge (i.e. the Update icon) to the application:
    https://developer.BlackBerry.com/native/reference/core/com.QNX.doc.bps.lib_ref/com.QNX.doc.bps.lib_r...

    To remove the notifications in the Hub, you can either:
    (1) create all HTML5 Notifications with the same tag; This will force a notification never exist in the hub, with the most recent notification overwriting previous reviews; or
    (2) keep track of all active notification tags and delete is used to remove unwanted notifications.
    https://developer.BlackBerry.com/HTML5/APIs/notification.html#.Remove

  • BB10 - customization BB Hub and Push Notification Messages

    Hi all.

    The push notification are push to the notification in the hub of BlackBerry. Is it possible for example to create a new label to a custom in the hub application and have the notification being pushed in the custom label?

    No, it is not possible for third-party applications.  Only some apps approved (such as FaceBook, Twitter and LinkedIn) have had access to their own 'space' in the hub.

  • Android.cfg BB10 push notification problem

    Hello, I have a real problem to make this android.cfg to put in the app.bar file is created but in white and when I try to put it manually with a zip or rar to change, I got an error like the .bar is broken, can someone tell me the correct form for this archive works and not to put it manually?

    PS: I'm in Eclipse, a porting android with MCG. I just want to make the archive to create with the server info I put in root next to the manifesto and alaso tried to put next to the apk in the bin folder.

    Thank you for your response rincethomas33, I couldn't find your way, but I found the tool that you sign the .bar you can put the 'myapp.cfg' configuration settings in advance

    Thanks again for your response.

    Ricardo Marquez

Maybe you are looking for

  • Windows live messenger connection does not

    I can't sign into Windows Messenger.  I had intermittent problems with messenger shuttin down and so I'm not able to use outlook Microssft. Ther problem would fix itself if I rebotted. Now it won't let me log on and when I try to shhot disorder I get

  • This copy of windows vista is not genuine / build 6002

    Woke up this morning, turned on my computer and wham it appears on my screen - cannot find my disk - can anyone help? Thank you Kate

  • I received a message unable to load the user profile. Another user could connect.

    * Original title: sign in While I was working at my computer closed down to make an update.  When I went to reconnect I had a message user profile cannot be loaded.  Another user has managed to open a session, and it is the only way that this compute

  • Import and merge catlogs

    Hi, I have a Windows PC 5.7 Lightroom Catalog (all images are on 2 external drive on 200 000 photos) and a new catalog on my MacBook Pro (all images on an another external drive only 4 000 images).  I want to merge the catalog PC on my MacBook.  Does

  • 8.3 EPPM Service Pack 2?

    http://docs.Oracle.com/CD/E29618_01/index.htm saidJanuary 31, 2014This library is revised to version 8.3 Service Pack 2 supportCheck what are the latest Service Packs (SP) for version 8.3 of the Primavera P6 (both PPM and releases EPPM)? (Doc ID 1542