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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Contributor
saroy
Posts: 10
Registered: ‎12-27-2011
My Carrier: IAM
Accepted Solution

exit and back button

hi all

 

with my webworks application i have a many problemes

 

1- backbutton dont back on history

2- red button dont close application just run it in background

3 -and when i close the application with option and close i cant rerun application (application close on startup image)

 

here is my config file

 

 

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="2.0.0.0">

  <name> CAM mobile</name>

  <description>
   CAM Mobile banking application
  </description>
  <author rim:copyright="Copyright 2012">Loubaris Rachid</author>

  <icon src="iui-logo-touch-icon.png"/>

<rim:loadingScreen backgroundImage="startup.png"
            onFirstLaunch="true" />
<rim:navigation mode="focus" />

  <content src="http://162.251.193.118/webapp/default.aspx"/>

<access uri="http://162.251.193.118/webapp" subdomains="true">
  <feature id="blackberry.app.event" required="true"/>
 <feature id="blackberry.app" required="true"/>
</access>


</widget>

 

how can i solve probleme of rerun application

 

thanks in advance

Please use plain text.
BlackBerry Development Advisor
jeffheifetz
Posts: 514
Registered: ‎07-18-2011
My Carrier: Rogers

Re: exit and back button

Hi saroy,

 

I will try to address your issues as I best understand them.

 

  1. There is a known bug that the browserfield doesn't properly trap certain history changes (ie #anchor links). THe solution is to trap the back button and simply call history.back()
  2. I assume by red button you mean the end call button, in which case this is exactly working as designed. Thats how blackberry apps work.
  3. Here I assume you mean that after closing the app (this should be the same as pressing the back button) you can no longer start the app? What exactly happens? From your config.xml you shouldn't even be seeing the startup image since its first page load only...

How are you testing this (simulator or on device)? 

What OS are you testing (5.0, 6.0, 7.0)?



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Please use plain text.
Contributor
saroy
Posts: 10
Registered: ‎12-27-2011
My Carrier: IAM

Re: exit and back button

Im runing simulator torch 9800
Please use plain text.
Contributor
saroy
Posts: 10
Registered: ‎12-27-2011
My Carrier: IAM

Re: exit and back button

solved by disabling cach and override back button to exit

 

thanks

Please use plain text.