problem or bug with blackberry.system.hasPermission ('location.maps')

Hey all.  Can someone help me understand why this feature (see code below) does not work as it should?

Copy the following code returns false on my 9900... Even if the card is activated (I have the icon on my home screen) and applications like foursquare and Poynt can use / make calls to BB Maps.  I can even call BBMaps within my own app if I ignore the result of this function

function checkIfBBMaps(){

    var rslt = blackberry.system.hasPermission('location.maps'); 

    console.error("checkIfBBMaps:  rslt is:"+ rslt);

    if(rslt === true){
        return true;
    } else {
        console.error("checkIfBBMaps:  WE DONT HAVE MAPS");
        return false;
    }

}

Thoughts?

I'm a * beep *!

hasPermission()! = hasCapability().

Oh wow.

Time for me to get more coffee, I think!

Edit: really?  the word'd i t i 0' is censored!  Wow.

Tags: BlackBerry Developers

Similar Questions

  • blackberry.system.hasPermission () in WebWorks 2.0?

    Hello

    I use Webworks 2.0 and I need to check if my application has permission to access shared files, 1.0 blackberry.system.hasPermission ('access_shared'), but this feature has been removed from 2.0.

    Is there a function to replace this check? I can't find it.

    The native API is only checked if you had given a function-specific URL access.

    IE: If you put the following in your config file:

    https://somedomain.com" subdomains="true">
      
      
    
    

    It's not a way to verify permissions on the way to code. You must catch the error and respond within your application.

  • Suggestions to overcome this problem: a bug with the HTTP PATCH request with data on the body

    Hello guys,.

    I'm really stuck with a problem and I'm looking for suggestions for solutions and help implementingit.

    In summary:

    (1) the third REST API that I use use HTTP PATCH with the JSON data.

    2) there is a bug in Qt 4.8 that prevents me from using the http verb.

    (3) one of the main features of my new app is severely compromised because of this.

    (4) I found an independent patch to the bug in question.

    What are my options now?

    (A) should I patch Qt reconpile and 1980s, me with my application? I have no experience with these procedures.

    (B) is it possible that I can only implement the elements of fastening of the patch in my application code? I don't see how.

    (C) request and wait for BlackBerry for the patch and release it on the next update? That imensily would limit my clients, only running 10.3.3 and I was 10.3.0.

    (D) any other alternative!

    As I said, I'm really stuck now. I was able to realease my app without this big news, but it would be a great disappointment.

    Any help is appreciated.

    Thanks in advance.

    Here's the code in a Stackoverflow thread on the same topic, I can't try it myself, but let us know if it works and mark @oniongarlic response as a solution if it works.

    Thread: http://stackoverflow.com/questions/34065735/qnetworkaccessmanager-how-to-send-patch-request

    Code:
    QString destination ="";
    currentNode.replace(QString("/").append(latestNode),""); "
    destination
    . Append (Host)
    . Append (CurrentNode)
    . Append(".) JSON");
    QString jsonString=QString(QString("{").append("\"").append(latestNode).append("\"").append(":").append("\"").append(str).append("\"").append(QString("}")));)
    QNetworkRequest request (destination);
    request.setHeader (QNetworkRequest::ContentTypeHeader,
    "application/x-www-formulaires-urlencoded");
    qDebug()<>
    QBuffer * buffer = new QBuffer();
    buffer-> open ((QBuffer::ReadWrite));))
    buffer-> write (jsonString.toUtf8 ());
    buffer-> seek (0);
    Manager-> sendCustomRequest (request, "PATCH", buffer);
    qDebug()<>

  • Problem of Smartphones with BlackBerry Presenter Torch blackBerry 9810

    I'm trying to set up my Torch 9810 to work with a BlackBerry Presenter.  According to presenter page ( www.blackberry.com/presenter/ ), the Torch 9810 is supported, but when I try to install the software on my phone I get a message that says that my phone is not supported.  (This happens regardless of whether if I try to install the software OTA or via BlackBerry Desktop).

    I don't know if the ' Torch 9810 is supported / Oops, no it is not "is just another example of the occasional schizophrenia of RIM, or if there is a problem with my phone.  (According to BlackBerry Desktop, it runs the latest version of the operating system 7.)

    Any help or constructive suggestion would be greatly appreciated.


  • Business PC HP Elite 8100 SFF: Problem upgrade memory with operating system to 64 b.

    I have a small form Factor Business PC HP Compaq 8100 Elite, with 2 GB RAM and Intel Core i5-650 3.2GHz (n ° 2 x 1 GB 240pin DDR3 SDRAM Unbuffered DIMM DDR3-1333 - hynix HMT112U6TFR8C-H9 https://www.skhynix.com/products/computing/view.jsp?info.ramKind=20 & info.serialNo = HMT112U6TFR8C & posM... ) The operating system is Windows 10 to 32 b.

    In the reference Guide of hardware for PC installation additional memory is reported:

    Additional memory installation

    The computer comes with a double speed 3 vivid dynamic synchronous memory (DDR3 - SDRAM) dual inline memory modules (DIMMS).

    DIMMs of memory on the system card holders can be filled with up to four standard DIMM in the industry.

    These media memory are filled with at least one DIMM preinstalled. To obtain the maximum memory support, you can fill out the card system with up to 16 GB of memory. DIMM DDR3-SDRAM

    For the proper functioning of the system, the DDR3-SDRAM DIMM modules must be:

    • ● standard 240 pins of the industry without buffer non-DDR3-1066 MHz compatible or PC3 - 10600 DDR3 - 1333 MHzcompliant
    • Unbuffered ECC PC3-10600 DDR3-1333 MHz-compatible (Z200 SFF only) ● 1.5 volt DDR3-SDRAM DIMM DDR3-SDRAM DIMMS must also:
    • support the latency CASE 7 DDR3 1066 MHz (7-7-7 calendar) and latency CASE 9 DDR3 1333 MHz (9-9-9 calendar) ● JEDEC SPD mandatory information in addition, the computer supports:
    • front and double-sided DIMMs
    • DIMMs built with devices DDR x 8 and x 16; Built with x 4 SDRAM DIMMs are not supported

    NOTE: The MFS 8100 supports 512Mbit, 1Gbit and technology memory non - ECC 2 GB.

    NOTE: The system will not work properly if you install unsupported DIMM

    I replaced the ram 2 with 4 memory 4GB PC3 - 10600 CL9 DIMM 240-PIN - Kingston KVR13N9S8 / 4 http://www.kingston.com/us/memory/search/?partid=kvr13n9s8/4.

    The BIOS recognizes correctly the installed memory (16 GB) and in the OS installed memory is 16 GB (3.49 used).

    To take full advantage of the installed memory has wanted to update the Windows 10 operating system to 64 b, but the PC goes into continuous reboot.

    I've updated the BIOS but the problem remains.

    To make full use of the installed memory wanted to update the Windows 10 operating system to 64 b, but the PC goes into continuous reboot.

    I've updated the BIOS but the problem remains.

    I also tried to install Windows 7 64B, but after loading the files to start the pc freezes

    Reinstall the original memory, 10 to 64 b windows installs without problem.

    I want to know that is not compatible with the installed memory.

    And if it is possible to avoid having to replace.

    Thank you and best regards.

    @Peppe_Valenza

    I'm not surprised by the response of Kingston.  The issue of density memory was mentioned message #2.

    Try a few other manufacturers of memory and see if you can get the own memory DIMMs.

    Thanks for posting on the forum.

  • Problem of multithreading with Mac system task class

    I have a class that extends the thread

    public class Convert extends Task
    
    
    

    Inside the class, I have a need to interrogate a file every 5 seconds to see if the new file has been added to it or not.

    So that's what I did, is that I did a while loop inside of which I kept the logic and I did the sleep of thread for 5 seconds.

    @Override
        protected Object call() throws Exception {
            // TODO Auto-generated method stub
            try{
                while(!Thread.currentThread().interrupted())
                {
                      //my logic to query the folder
                        Thread.sleep(5000);
                 }
                  catch (Exception e) {
                        e.printStackTrace();
                }
              return null;
        }
    
    
    

    I call this thread via an ExecutorService

    ExecutorService exec = Executors.newCachedThreadPool(new ThreadFactory() {
            @Override
            public Thread newThread(Runnable r) {
                Thread thread = new Thread(r);
                thread.setDaemon(true);
                return thread;
            }
        });
    
    
    

    and then

    exec.execute(convert123); //where convert123 is an reference of Convert class
    
    
    

    This exec.execute is called on the press of a button.

    Now, the problem is that it seems to work fine on my windows machine, but blocks the scene just when clicking the same button on a MAC system. (It works for 1 or 2 out of 10 times, IE 8 times out of 10 times, the scene just gets hanged and unresponsive)

    I have never created a thread running forever, so there might be a problem with my design, but I have no idea about it.

    I don't see anything inherently wrong with that. You get all exceptions?

    Note that there is an built-in API (not very high level) to watch directories for changes. You still need the wire without end (that you can implement a task if you want to cancel easily), but it should make your code easier (no need to survey and waiting for a fixed amount of time, at least on operating with os level file systems I look).

    The following example can run several tasks ending not quite happily on my Mac.

    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.ThreadFactory;
    
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.binding.Bindings;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.concurrent.Task;
    import javafx.concurrent.WorkerStateEvent;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Insets;
    import javafx.geometry.Pos;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.control.ScrollPane;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    
    public class NonTerminatingTaskTest extends Application {
    
        private static class CounterTask extends Task {
            private final IntegerProperty counter;
    
            private CounterTask(IntegerProperty counter) {
                this.counter = counter;
            }
    
            @Override
            public Void call() {
                while (!isCancelled()) {
                    try {
                        Thread.sleep(1000);
                        Platform.runLater(new Runnable() {
                            @Override
                            public void run() {
                                counter.set(counter.get() + 1);
                            }
                        });
                    } catch (InterruptedException exc) {
                        // allow to cancel
                    }
                }
                return null;
            }
        }
    
        @Override
        public void start(Stage primaryStage) {
            final ExecutorService exec = Executors.newCachedThreadPool(new ThreadFactory() {
                @Override
                public Thread newThread(Runnable r) {
                    Thread thread = new Thread(r);
                    thread.setDaemon(true);
                    return thread;
                }
            });
    
            final BorderPane root = new BorderPane();
            final VBox counterContainer = new VBox(5);
            counterContainer.setPadding(new Insets(10));
            final ScrollPane scroller = new ScrollPane();
            scroller.setContent(counterContainer);
            root.setCenter(scroller);
    
            final Button startCounterButton = new Button("Start new counter");
            startCounterButton.setOnAction(new EventHandler() {
                @Override
                public void handle(ActionEvent event) {
                    final Label label = new Label();
                    final IntegerProperty counter = new SimpleIntegerProperty();
                    label.textProperty().bind(Bindings.format("Count: %s", counter));
                    final Task counterTask = new CounterTask(counter);
                    counterTask.setOnCancelled(new EventHandler() {
                        @Override
                        public void handle(WorkerStateEvent event) {
                            counterContainer.getChildren().remove(label);
                        }
                    });
                    label.setOnMouseClicked(new EventHandler() {
                        @Override
                        public void handle(MouseEvent event) {
                            counterTask.cancel(true);
                        }
                    });
                    counterContainer.getChildren().add(label);
                    exec.submit(counterTask);
                }
            });
    
            startCounterButton.setAlignment(Pos.CENTER);
            root.setBottom(startCounterButton);
    
            Scene scene = new Scene(root, 200, 450);
            primaryStage.setScene(scene);
            primaryStage.show();
        }
    
        public static void main(String[] args) {
            launch(args);
        }
    }
    
  • Problems of model with the system pages

    Hi I worked on a mobile version of a site using visitorDeviceClass BC to redirect to the mobile version.

    As the site contains a securezone I found only a few pages system (Secure area Logout, Secure area access denied, Secure area not allowed, etc.) must be used, it is good except for a small problem...

    I created a separate template for these pages which has a desktop and phone content but pages are not displayed the phone model. I tested with an alert and they tell me that visitorDeviceClass = phone yet they use the model desktop view?

    Also interesting to note that I use JQuery Mobile I guess.

    Is this a known issue? I guess I can always create a mobile version for each of these system pages and add a redirect in them, but this is obviously not ideal, I would rather just the template system works properly.

    I'm afraid at the moment it is a known problem, as you mentioned, even though the output of the system_visitordeviceclass tag is correct (in this case phone) used tamplate is the 'Bureau '.

    I've added the link of this thread for the ticket of development in order to increase its priority.

  • hasCapability - location.maps

    My application makes the following call:

    blackberry.system.hasCapability ('location.maps')

    I thought that this could tell me if BlackBerry Maps were available on the device. In other words, if I could call it "blackberry.invoke.MapsArguments" without seeing a java.lang.RuntimeException.

    However, on all devices that I tested (OS 5 and 6 OS), the hasCapability call returns false - even if I can then invoke the maps app. Is there another way to know if the maps are available before attempting to invoke?

    Hi bryfox,

    It seems that you have discovered a bug that we have set since.  The fix to this API will be available probably around the middle of the month of March.

  • Satellite C40D-C - problems with the system

    I recently bought an a toshiba satellite C40D-C Series notebook PC as my old satellite - essentially - is dying. After you connect to the internet, I tried to download AVG Antivirus on my computer that I don't have - and never - trust McAfee anti-virus that comes with the computer. Every time downloaded AVG then restart my computer, the computer goes directly into the automatic repair system and doesn't let me do anything but to reset or restore. This has happened even with completely removed McAfee. I've been on AVG directly today (January 15), and they have to do remote set-up for me - with the same results. Yes, I'm aware that McAfee is a selfish cry of a system and refuses to acknowledge any other antivirus, but that this issue happens even with completely removed McAfee shows clearly that it is something that Toshiba has worked in the system. I can't even disable the automatic repair tool. I have to be stuck with a McAfee antivirus which, moreover, does not yet or is Toshiba will make an effort to help solve a problem they caused?

    Why this computer isn't allowing AVG Antivirus work? And why, after each attempt to download AVG, the computer goes to auto repair whenever I shut down or restart? Is this a problem with the system or something, Toshiba has done on purpose?

  • What is the problem with my system restore?

    I tried to restore using various available dates and the message is failed to restore.

    [Transferred from Internet Explorer]

    I tried to restore using various available dates and the message is failed to restore.

    [Transferred from Internet Explorer]

    ====================================
    Sometimes other programs installed on your
    system can interfere with the system restore... usually
    a virus scanner.

    Do a restore of the system in Mode safe for a time
    before the problem started, may be worth a try.

    See the following articles:

    (315222) a Description of the Safe Mode
    Boot into Windows XP options
    http://support.Microsoft.com/?kbid=315222

    Safe Mode boot can be tricky... try tapping
    F8 repeated as the computer starts.

    The following article offers another way to start
    in safe mode:

    How to start Windows in Mode safe
    http://www.pchell.com/support/SafeMode.shtml
    (scroll down for: Windows XP / using the system)
    Method of the configuration utility)

    The following article offers instructions in the use
    The system restore.

    (306084) how to restore Windows XP to a
    previous state
    http://support.Microsoft.com/?kbid=306084

  • OfficeJet pro 8620: officejet pro 8620, error: problem with ink system

    During the initialization of the printer, after that I inserted the ink cartridges, I get the error: "X-problem with ink system... I followed the directions: "lift the latch on the print carriage, reinstall the print head and then remove the cartridges and inspect leaks." Do not use cartridges that leaks. If the cartridges are OK, re - install. After you have reinstalled, turn the printer off and then back on. »

    Well it don't turn off the printer... I get another message: "the printer initialization and the ongoing calibration.» Do not put off the printer or turn off the power during this process. »

    I repeated this process on 6 or 7 times with the same result.

    I use "cartridges Setup" he claims.

    Help, please!

    Thanks in advance...!

    Johnny

    Hi @JohnnyLee,

    Welcome to the HP Forums!

    I understand that you found the error, the problem with ink on your HP Officejet pro 8620 system. I'm sorry to hear that, but happy to help!

    I recommend going through this guide, printers HP - "Problem with print head", "Printer failure", "Ink system failure", or "0 x." r "C2."... "Displays Message error.

    If the guide does not help, please call our hotline at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. Language-country selector.

    Good luck!

  • Protect the Q10 blackBerry with Blackberry problems

    Hello Blackberry community,
    Recently, I've had my Blackberry "BOLD" stolen so I said 'no problem, Blackberry protect will take care of all my stuff. "Sound in the cloud." But today, when I got the blackberry protect recovery in my brand new Q10 I realized that I don't have that 31 contact now! Almost all my contacts are GONE! Anyone know what could have happened with the rest of my contacts? I do not understand how the Blackberry protect weekly backups I had put up only ended up saving a small part of my contact list. According to the Blacberry protect the site, the last backup was August 5, 2014. My cell phone was stolen on 12 August, the backup should be updated. But it's not. Is there a problem with Blackberry protect migrate Blackberry 7-10 of Blackberry? No indication as to what is happening with my contacts is greatly appreciated.

    Concerning

    Hello there, 31 contacts most likely are from a very old backup, and all your contacts are now synchronized wirelessly with your email. Which is why you don't have them in a BlackBerry protects back upward.
    Haven't you set up your email yet? What are the prospects it, Gmail?

  • Problem blackBerry with Blackberry World Q10 Q10

    Need URGENT help... I have used Q10 BB from last year and the other half or maybe more, but have recently begun to tackle problem with Blackberry world. Whenever I try to open the Blackberry world, it is said... "" Year error has occurred and BlackBerry World needs to close. " Try to wait a few minutes and then reopen BlackBerry World. » »... Now it's more so in 10 days and I have waited long enough and have almost restarted my phone even after the withdrawal of the SIM card and the battery more than 20 times. Nothing has worked. Help, please...

    Hello and welcome to the community!

    Please try this KB for additional information.
    Upgrade required prompt opening of BlackBerry App World on a smartphone BlackBerry 10 running BlackBerry 10 OS version 10.1 and later
    http://www.BlackBerry.com/BTSC/KB35754

    If it helped you, click on like
    If my answer helped you, please click "Options" next to my post and mark it as resolved. By clicking the "thumbs up" icon near the bottom of my answer would be appreciated also.

    Good luck and let us know!

  • Problem with 'Blackberry Protect' blackBerry Smartphones

    Hello

    I have a problem with 'Blackberry Protect', I got a message telling me
    "Your mobile pass does not include Blackberry Protect."

    I called my provider and they told me to contact you

    I need your help please

    They are wrong. Your carrier decides what data packages they offer and what is included in their packages. You will need to just talk & text or perhaps 500 MB of data without BBM, etc.. If your monthly subscription does not BlackBerry Protect, you obviously don't have the data package, you need.

    Call them to fix it.

  • BlackBerry Smartphones Cust is having problems with Blackberry App world. BB App...

    Cust is having problems with Blackberry App world. BB App World says it has changed its device pin code too many times (exceeded pin code changes) and leaves him not download applications more

    Hello!

    Your request should be sent as follows. Go to this address:

    and complete the form. Use, in the "Please select a component:"on the ground, AppWorld billing/payment selection. " Don't forget to also include the reason why you have exceeded your maximum eligible PIN associations to AppWorld (for example, several RMA, warranty replacement, etc..).

    If this does not work, then please come back on these forums (http://supportforums.blackberry.com/rim/) and create an account so that we can provide direct assistance.

    See you soon!

Maybe you are looking for

  • Three weeks ago, I can't receive anything not yet junk or spam, but I can send emails

    original title: not receiving emailsI get my normal mail for many years, but as three weeks ago, I can't receive whatever it is not junk or spam, but I can send emails, does anyone know what could be wrong

  • Question of UPS for an expert

    Grandson recently bought a machine of cooled water (non-Dell) Windows 10 game. The PSU is an 850 Watt EVGA SuperNova G2 (APR). According to me, the system is overclocked to 4.2 to 4.8 with 3 GPU. The monitor is a unit of 4 k-compatible. Say 200 watts

  • Error trying to solve. + http + wifi

    Hi all up to now, am unable to establish a connection on the device. I have few things to understand before I go into details... (1) if the user has the APN settings, my application will connect to the Internet. (2) am using curve 8520 device, is not

  • Calculation fail with (impossible to rename the outbound log file)

    HelloI am running a calculation script that breaks down after running for some time. I see that the problem comes from the entity dimension that has something of 4,000 members. My calc calculation script only a subset of this dimension.   I do see me

  • Prevent validation when the page navigation

    I use Jdev 11.1.1.7.0.I have a jspx page that has an empty form.But when I want to leave the page without entering anything, I get the form validation error messages.How can I prevent the validation error without worrying if the form has input values