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

Testing and Deployment

Reply
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Timer Class Torch 9800

I'm able to reproduce this behaviour.  To display your dialog on the BlackBerry 9800 running 6.0 you'll need to pop the screen displaying the viewfinder and push a screen prompting the user if they want to continue or not.  

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Trusted Contributor
lakshmanan
Posts: 144
Registered: ‎05-04-2011
My Device: blackberry mobiles
My Carrier: app development

Re: Timer Class Torch 9800

Mark,

 

Thanks for your reply,

 

My another question is how to find whether QR scanning is going on or not in blackberry OS 6... Because based on that only i want to start timer...

 

 

Regards,

Lakshmanan

Please use plain text.
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Timer Class Torch 9800

There is no equivalent method for pre 7.0 versions.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Contributor
gbgas001
Posts: 7
Registered: ‎01-10-2012
My Device: 9500
My Carrier: Vodaphone

Re: Timer Class Torch 9800

Hi Sorry been away for a while.

 

As I said the code works with other phones, the code i used to instigate the timer is 

 

//starttimer
public void startTimer() {


TimerTask tt = new TimerTask() {
long currentTime;
long startTime = System.currentTimeMillis();
public void run() {



// TODO Auto-generated method stub

currentTime = System.currentTimeMillis();
long diff = currentTime - startTime;

long min = diff / 60000;
long sec = (diff % 60000) / 1000;

String minStr = new Long(min).toString();
String secStr = new Long(sec).toString();

String timinsecs =new Long ((min * 60) + sec).toString();
imperialtime.setText(timinsecs);

if (min < 10)
minStr = "0" + minStr;
if (sec < 10)
secStr = "0" + secStr;

synchronized (UiApplication.getEventLock()) {
timermin.setText(String.valueOf(minStr + ":" + secStr));

}
}
};
t.scheduleAtFixedRate(tt, 1000, 1000);

}

 

 

 

is there something else i should be doing for the 9800

 

thanks

Gbgas

Please use plain text.
New Contributor
gbgas001
Posts: 7
Registered: ‎01-10-2012
My Device: 9500
My Carrier: Vodaphone

Re: Timer Class Torch 9800

please ignore my last reply, the fault is not in the timer code ... I have started a new thread

 

Thank you

Please use plain text.