Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Carrier: Rogers

beta 4 and sim app locking up wont reopen

im on beta 4 and using the sim and when I launch my app the first time it loads once it close it greys out and locks up and wont reopen: error message below

 

Deployment Failed: Info: Sending request: Launch
Info: Action: Launch
Info: Debug native: on
Info: Launching com.example.abc.testDev_example_abc2adaacf1...
result::Invalid
Info: done

 

import bb.cascades 1.0
import bb.cascades.advertisement 1.0

TabbedPane {
    showTabsOnActionBar: true
    Tab {
        Page {
            id: tab1
            Container {
                layoutProperties: AbsoluteLayoutProperties {
                    positionY: 1190
                    positionX: 225
                }
                scaleX: 2.25
                scaleY: 2.25
                layout: StackLayout {}
                Banner {
                    zoneId: 117145
                    refreshRate: 60
                    preferredWidth: 320
                    preferredHeight: 50
                    transitionsEnabled: true
                    placeHolderURL: "asset:///placeholder_728x90.png"
                    backgroundColor: Color.Green
                    borderColor: Color.Gray
                    borderWidth: 2
                    horizontalAlignment: HorizontalAlignment.Center
                }
            }
        }
}
    Tab {
        title: qsTr("300x50")
        Page {
            id: tab2
            Container {
                Label {
                    text: qsTr("300x50 banner")
                    horizontalAlignment: HorizontalAlignment.Center
                    textStyle {
                        base: SystemDefaults.TextStyles.TitleText
                    }
                }
                Banner {
                    zoneId: 117145
                    refreshRate: 60
                    preferredWidth: 300
                    preferredHeight: 50
                    transitionsEnabled: true
                    placeHolderURL: "asset:///placeholder_728x90.png"
                    backgroundColor: Color.Green
                    borderColor: Color.Blue
                    borderWidth: 2
                    horizontalAlignment: HorizontalAlignment.Center
                }
            }
        }
    }
    Tab {
        title: qsTr("320x48")
        Page {
            id: tab3
            Container {
                Label {
                    text: qsTr("320x48 banner")
                    horizontalAlignment: HorizontalAlignment.Center
                    textStyle {
                        base: SystemDefaults.TextStyles.TitleText
                    }
                }
                Container {
                    layout: DockLayout {
                    }
                    layoutProperties: StackLayoutProperties {
                        spaceQuota: 1.0
                    }
                    Container {
                        layout: DockLayout {
                        }
                        layoutProperties: StackLayoutProperties {
                            spaceQuota: 1.0
                        }
                        verticalAlignment: VerticalAlignment.Fill
                        horizontalAlignment: HorizontalAlignment.Fill
                        Banner {
                            zoneId: 117145
                            refreshRate: 60
                            preferredWidth: 320
                            preferredHeight: 48
                            transitionsEnabled: true
                            placeHolderURL: "asset:///placeholder_728x90.png"
                            backgroundColor: Color.Green
                            borderColor: Color.Gray
                            borderWidth: 2
                            horizontalAlignment: HorizontalAlignment.Center
                        }
                    }
                }
            }
        }
    }
}

 im just trying to figure out the scaling of the ads but my app also has ads and webview in it with the same problem.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.
BlackBerry Development Advisor
daryl_martin
Posts: 118
Registered: ‎11-01-2011
My Carrier: Rogers

Re: beta 4 and sim app locking up wont reopen

It looks like the application is not getting installed properly on the simulator.  Can you confirm that you have the build targets in the IDE set correctly?  i.e. you're Debug-Simulator?  

 

If you can share your bar file with me via PM I can try to reproduce this locally and get you a better answer.  

Please use plain text.
Developer
Ebscer
Posts: 822
Registered: ‎08-31-2009
My Carrier: Verizon

Re: beta 4 and sim app locking up wont reopen

I have been unable to get the Banner item to display anything with the Beta4 OS. The exiting issue would seem to be related to this one as it also affects the Banner object.


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Carrier: Rogers

Re: beta 4 and sim app locking up wont reopen

ok so i did these actual steps in my other approved app - (built in beta 3) opend in (beta 4) and added and it runs ok 

 

but if i build it from scrtach it doesnt all 

    Container {
            layoutProperties: AbsoluteLayoutProperties {
                positionY: 1190
                positionX: 225
            }
            scaleX: 2.25
            scaleY: 2.25
            layout: DockLayout {
            }
            verticalAlignment: VerticalAlignment.Center
            horizontalAlignment: HorizontalAlignment.Center
            topPadding: 20.0
            Banner {
                zoneId: 146983
                refreshRate: 30
                preferredWidth: 320
                preferredHeight: 50
                transitionsEnabled: true
                placeHolderURL: "asset:///images/titlebanner.png"
                backgroundColor: Color.create("#36BAFC")
                borderColor: Color.Gray
                borderWidth: 2
                horizontalAlignment: HorizontalAlignment.Center
                verticalAlignment: VerticalAlignment.Center
            }
        }

 so as i said it works now but only in the app i already created from beta 3

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.
Developer
bbquincar
Posts: 304
Registered: ‎08-14-2012
My Carrier: Rogers

Re: beta 4 and sim app locking up wont reopen

[ Edited ]

@it was just a simple sample app that i was test out for my actual app. thanks for the help

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Please use plain text.