How to target BB Q10

Hi guys

I try to optimize my app for Blackberry Q10. My question is how do I detect the name of the device model?

I couldn't find any API function to treat.

I don't want to insert two different applications in App World, Z10, and Q10, but rather one that can be used for different layouts (I know, possible with css) and functions.

Thanks in advance

Apology. If you want to actuall insert different functions? No, we do not expose an API yet. You can use the window.screen.width and window.screen.height the to detect the size of the screen. Maybe create your own module that exposes the device model.

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Q10 controls how many times my Q10 synchronizes with my account Gmail

    I can't control how many times my Q10 synchronizes with my account Gmail. I have adjusted the settings of Gmail, calendar, and Contacts on several occasions, but it seems to pull emails frequently (less than an hour) regardless of the setting. I want to control the synchronization manually. What Miss me? The phone is brand new and unlocked, running on AT & T, and this happens regardless of whether I use WiFi or not.

    Thank you!

    Hello and welcome to the community!

    A few possible variables...

    (1) what have you set to "use push if available.

    (2) how exactly the GMail is integrated? EAS? IMAP? POP?

    If the answer to article 1 is Yes, AND you have integrated such as IMAP of GMail, the time interval setting is ignored. If integrated as EAS, it can also be ignored as well as the "use push...." "setting can also be ignored. If integrated as POP, then there is no Push, so your time interval settings would be used.

    Thus, depending on the combination of factors, it may or may not be doing exactly now what it should be.

    Good luck and let us know!

  • How to target a trigger to a nested symbol scene

    How to target a trigger to a nested symbol scene.

    Seems that your problem is on board animate. If so, please ask your question at http://forums.adobe.com/community/edge_animate

    Animated border CC This forum is specially for the edge questions inspect.

  • How to target the buttons that are nested by 2 levels and one more thing...

    OK I'm going.  The link below, this is what I deal with

    http://clienttestsite.X10.MX/beta/garage.swf

    The garage door has a chevrolet logo that is thrilling. I know not how to make buttons but I need the garage door to become a button when you click on the animation plays instead of playing automatically.

    The upper part of the chest of the tool will be a button that plays the animation backwards and the drawers are the buttons that open to an e-mail for each form.  But I do not know how to target those buttons because they are nested two levels below the main timeline.

    In the case where he changes the way to proceed, once completed this film will be imported in another.

    Help, please!

    Thanks in advance.

    As long as the object that you want to make clickable is an object with an instance name (movieclip, button, etc.) you can make it work like a button.  If you know how the code for the buttons, then this should be everything you need to know to make the garage door a clickable object.

    Target buttons that are nested you can use the point rating to target... Since you did not identify the details of nesting, here's how it goes mainly...

    Toolchest.Drawers.drawer1.addEventListener(...etc)

  • How to target multiple applications?

    I'll set up a document in indesign, and I have to scroll through images that are included, for some of them that I have to go to photoshop, perform some automated base image, editing then save and continue in indesign as usual. I have the scripts working separately for id and ps, and I #target indesign / photoshop #target in separate files, but when I run the script the application extendscript id, it is still by default in photoshop.

    so, how to target both apps?

    Using BridgeTalk (do not confuse with Bridge application). You can find examples on this forum, or on my site.

    Kas

  • Flash for html5 canvas - how to target instances "cloned".

    I have a Penguin object that I duplicate several times throughout a quiz of canvas, html5, with code like this (Simplified):

    function newPenguin() {}

    var clonedBlock = new lib.peng ();

    root.addChild (clonedBlock);

    clonedBlock.x = 100;

    clonedBlock.y = 100;

    clonedBlock.name = "Penguin" + count;

    slideAbout (clonedBlock);

    }

    Whenever a new issue is reached a new Penguin is added to the screen and the 'slideAbout' function it allows to drag around independently on the screen. So at the time wherever you get to q10 there are ten penguns all independently sliding on the ice. Everything works well.

    What I want is, if a question is answered correctly, all these penguins jump up and down both on occasion.

    I can do the jumping animation, but I can not understand, the main script, how target these dynamically added penguins.

    If I had added them manually, I could just have targeted the with the name that you add in the Panel of the label, one as the name for AS3 "instance".

    But when they are added using the "new"lib"above method I can't find a way to get them to hold them. The "name you can add with '.name' doesn't seem to work as the 'instance' name - I just get a js error if I try to use it."

    I hope someone can help me - thanks in advance!

    There are a few methods to achieve this.  It would be to add the penguins to a parent who has children of Penguin and another would be to use an array to store the references of Penguin.

    the last submission:

    this.penguinA = [];

    function newPenguin() {}

    var clonedBlock = new lib.peng ();

    this.penguinA.push (clonedBlock);

    root.addChild (clonedBlock);

    clonedBlock.x = 100;

    clonedBlock.y = 100;

    clonedBlock.name = "Penguin" + count;

    slideAbout (clonedBlock);

    }

    so you want to reference your penguins, loop in your table

    function jumpF() {}

    for (var i = 0; i)<>

    do whateve with this.penguinA [i];

    }

    }

  • How to target another element via Javascript (hand rendered control ID ID)

    Hello

    My version of jDeveloper is 11.1.1.9.0


    I am aware of target an item via the clientListener tag. But who will give me a reference to the only element in which it was declared. What happens if I want to target another element on the page function is declared in jDeveloper ID? For example:

    <af:inputText label="Label 1" clientComponent="true" id="it15"> /* what's declared in jDeveloper     */
    

    Render in HTML as:

    <input type="text" class="x25" name="r1:0:it15" id="r1:0:it15::content">
    

    Notice how it15 converted to r1:0:it15. In doing so the following fails to get a reference to the element:

    document.getElementById("it15"); // returns null
    AdfPage.PAGE.findComponent("it15"); // returns undefined
    

    This brings me to the following questions:

    1. Why ID does not change when the HTML is rendered?
    2. How I would apply the element if its ID gets ed precede by a random string?
    3. Is there a way of extraction and random string instead of hard-coding it with control ID?

    Well, I found a solution that works for now. That's what I did:

    document.querySelector("[id$='it15::content']");
    

    which means basically select the item whose ID ends with it15::content

  • How to target the element of the main stage of in a symbol

    I have a symbol where I want to put an action click here to do something to another item on the main stage, how can I do this?

    Check out my tutorial here:

    Targeting of the symbols: discovering the mystery l EdgeHero

    This was made with a previous version of Animatebut the principles still apply.

    In addition, if you use the snippet window, it will give you good scope.

  • How to target elements of class within a symbol within a symbol?

    HI, no idea how I would change the code to the elements of the target with individual classes within a symbol within a symbol below?

    var country = $(".UK,.) Ireland. Hongkong. Switzerland. USA. India. Japan. Netherlands. Spain. AUS");
    var country = sym.getSymbol("Countries").$("UK");
    var graphics = sym.getSymbol("Piecharts").$(".UK_Chart,.) Ireland_Chart. Hongkong_Chart. Switzerland_Chart. USA_Chart. India_Chart. Japan_Chart. Netherlands_Chart. Spain_Chart. AUS_Chart");
    var chartstext is sym.getSymbol("Piechart").getSymbol ("PiechartText"). $(".UK_pietext,.) USA_pietext. AUS_piet, Hongkong_pietext, ext. Swizterland_pietext. Ireland_pietext. India_pietext. Japan_pietext. Netherlands_pietext. Spain_pietext");
    var textwindows = sym.getSymbol("Textwindows").$(".UK_text,.) Ireland_text. Hongkong_text. Switzerland_text. USA_text,. India_text. Japan_text. Netherlands_text. Spain_text. AUS_text");
    var stanbuttons = sym.getSymbol("Stanbuttons").$(".UK_Stan,.) USA_Stan");
    AdobeEdge.reset = function() {}
    {countries.each (Function ()}
    $(this) .fadeOut ();
    $(this).css({'display':'none'});)
    });

    {Charts.each (Function ()}
    $(this) .fadeOut ();
    });
    {chartstext.each (Function ()}
    $(this) .fadeOut ();
    });
    {stanbuttons.each (Function ()}
    $(this) .fadeOut ();
    });
    {textwindows.each (Function ()}
    $(this) .fadeOut ();
    });

    }

    function n (myObject, str) {}
    var obj = $(myObject) [0] .classList
    for (var i = 0; i < obj.length; i ++) {}
    {if(obj[i]==Str)}
    Returns true;
    }
    }
    Returns false;
    }

    Here the answer

    Can someone help me put this code in a table?

  • How to target mc on a certain slice within an another mc?

    Hello

    I have a clip on my scene that has its own scenario with 7 images, each image a key with a different content. How would a clip that appears only on one of these frameworks within the parent element target?

    I'm used to use syntax to point to target clips in the clips (for example, parentClip.myClip.onRelease = function() {...), but when I try this with a clip that appears on one of the frames of the parent element it does not work. Do I need to process this image specifically? How can I do this?

    I use AS2 in CS3 on Mac. I am still fairly new to Flash, so a simple explanation would be great!

    Thank you

    To target content in a specific image, you must be in this context... otherwise all what you're trying to target does not exist in the eyes of the code.

  • How to target button in movieclip on the main timeline

    Hello!

    I have a few buttons of submenu in a movieclip in the mainline. My first level of navigation in the main timeline. The submenus are grouped into movieclips on the main timeline. I basically used the same code on the main navigation for the navigation sub except the code for the submenus is located in this movie clip. My instruction trace bed button is clicked (which was a quantum leap for me) but I know that I need some kind of code _parent in there so that he knows to go to the label back on the main timeline. Can anyone help? I feel like I'm so close.

    Also is this a correct way to set-up? I couldn't figure out how do it in an image. Any help would be so appreciated. I didn't know that this basic framework would be so difficult.

    Here is the link:

    http://www.sandraschmitt.com/Coclico/index2.html

    Thank you!!
    Sandra

    Here is my code which is on the movieclip submenu:

    Code:
    stop();

    fall.addEventListener(MouseEvent.CLICK, clickSection);
    spring.addEventListener(MouseEvent.CLICK, clickSection);

    function clickSection(evtObj:MouseEvent){
         //trace shows what's happening... in the output window
         trace ("The "+evtObj.target.name+" button was clicked!")
         //go to the section clicked on...
         gotoAndStop(evtObj.target.name);
    }

    One of the reasons that I never won any price for my vision of the design are because I am often... If it works, use it.  There are many ways to approach a design and yours is very good if you understand.  If she was going to smash something, it would have happened now.  Some people don't go to the extreme of having absolutely no code in a file, some even no content library, he wrote everything in files and class not by necessity, but to simply believe that it is the best way, or a challenge to prove their skills...  They have the it.  He participates a practicality with design that allows to make Judgment calls and if you feel that your approach to design is convenient for what you understand or which meets the needs of the project, then you have the right to follow your own path.

    That said... in the case where a person must inherit from your work somewhere down the road, that's when your approach can be victim of judgment... If someone can not follow, either found it difficult to put all the pieces together, or find them, then you become the contact person for the moans fall that follows.  But you're not likely to have to hear about it.  Yet, one day, if you are in a position where you inherit a person guestroom... and start whining about how they did it, you will come to appreciate the reasons to consider how approach you your designs.

  • External SWF dynamic text box.  How to target the area of text in AS3?

    Hello... I am loading an external file in a master file. Load the external file into an empty clip that is located on the stage of the main file. This external file that is loaded has a dynamic text box that I am trying to target using AS3.


    The way he did in AS2 has emptyMovieClipName.textBoxName.text = "whatever" "


    I tried to focus my text box using this same code, but it does not work in AS3 environment.

    Clues how proceed in AS3 would be appreciated!

    Thank you...
    Brenda

    you load not in a vacuum. you are attaching a child magazine empty and property content loader is the main timeline of your external swf.

    Here's how you need to reference your textfield in your external swf file:

  • AS3: How to target sub-MC of the loaded clip?

    Hey everybody. I am new to AS3 and very... very lost (the last time I did a lot with flash was Flash 5).

    Short version: I am trying to load external .swf from a URL and add event handlers for the video clips (or his film clips sub - MCs) on its stage. I can't find SOMETHING online about how to do it.

    Details:

    I have been instructed by my employer to build a control interface simple in flash with just a few buttons to make things like display some info or pictures or maybe a MP3 player. I wrote small test apps to do all of these individual things and managed to fake my way through.

    But the sticking point, is now trying to put all the user interface controls in an external .swf, which I then load into the canvas by a URL. The goal is to be able to load it into a variable named, say, "private _ui:MovieClip" and then add event handlers to programme clips in this name as:

    _ui.someButton1.addEventListener (MouseEvent.MOUSE_UP, handlerFunction1);
    _ui.controlStrip.someButton2.addEventListener (MouseEvent.MOUSE_UP, handlerFunction2);

    The goal is that if we want to Exchange on the user interface for a particular client, we just export a new .swf with all instances of correctly named MC & use the new URL to load the user interface.

    I seem to be able to load the .swf OK and trace the film clips "Chronology of the hand" as follows:

    _ui2.contentLoaderInfo.addEventListener (Event.COMPLETE, uiDidLoad);
    function uiDidLoad(evt:Event) {}
    trace ("UI2 LOAD");
    {if (_ui2. Content)}
    addChild (_ui2);
    trace (_ui2. Content); -> [object MovieClip]
    Target the "ControlStrip" named instance on the main timeline of the loaded .swf
    trace (_ui2. Content.controlStrip); -> ERROR
    }
    }

    Can someone point me in the right direction here? I spent hours don't make any progress on it. I think I've read half of the website of adobe so far. :-(

    -Cliff

    Quote:
    Posted by: kglad
    You must then mount this object like a MovieClip or the flash compiler is concerned.

    I discovered this yesterday after a * lot * of trial and error. Everything seems to work correctly when you use:

    LDR. Content as MovieClip;

    I'm a little surprised that has not documented a little clear, but I guess it could be something that is obvious, if you ALSO know well enough. I'm trying to learn as much as I can because I go but you do not have my calendar does not really some time a lot of time for learning from the ground up.

    Thank you.

  • How to target My Documents of flash?

    Guys,
    I inherited a project that shows how to save a data file in the root of the current user's My Documents folder.
    I need to load this data into another flash drive but can't seemt o find a way to flash targeting the said folder.

    I can't use: C:\Documents and Settings\ [user name] \My Documents as I don't know how or if flash can access this info
    I can't just target My Documents directly - that is, whatever one is currently active. and if so HOW?

    Bravo guys and shout if you need more info.

    PS. Windows, flash 2004 pro, player 7

    with regard to the rich

    My ezalife of condolence, you were put in a very difficult situation.

    Unfortunately, Flash cannot scan, read or write files on the desktop of users if it is exported out of swf shape. (I believe that Macromedia had this capability far in Flash 6) If you export the Flash projector (.exe) file, the Flash file will have limited rights to the user's desktop using fscommands.

    When it comes to more powerful operations, such as finding the name of the user account to locate the "My Documents" folder, I had to rely on Macromedia Director and an extension called Buddy API.

    Note: Macromedia Director Spotlight export to .exe files.

  • BlackBerry 10 How can I Downgrade Q10 7.1

    I don't like firmware 10.x I want to downgrade my unit to 7.1

    Can you please instruct how I can get it.

    Thank you very much

    You can not.

Maybe you are looking for