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

Java Development

Reply
Super Contributor
yogesh1984
Posts: 308
Registered: ‎05-31-2011
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

BB torch 9800 vs BB CURVE 9700 with OS 6

hello BB experts,

      i have developed small application in torch 9800 simulator. which is working fine....

  now i want to run the same application on 9700(OS 6).... 

                   now i got a problem in login page itself. As the curcer is not focusing on either editfield or submit button....

  can u send some link to find out the problem or anybody have idea,  help me out.

Please use plain text.
Developer
vandzi
Posts: 40
Registered: ‎07-21-2009
My Carrier: ...............

Re: BB torch 9800 vs BB CURVE 9700 with OS 6

Describe your problem more in detail. You have problem in login page in your app? 

Please use plain text.
Super Contributor
yogesh1984
Posts: 308
Registered: ‎05-31-2011
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

bitmapfield navigate click not working

hello,

  MyHorizontalFieldCalenderSearch SearchField= new MyHorizontalFieldCalenderSearch(leftAngleBitmapField,storeDate,rightAngleBitmapField,calenderBitmapField);   

leftBitmap = Bitmap.getBitmapResource("images.png");   

leftAngleBitmapField = new BitmapField(leftBitmap, BitmapField.FOCUSABLE)       

{                  

 protected boolean navigationClick(int status, int time)          

  {                   

 Date someDate1 = new Date(HttpDateParser.parse(storeDate.getText()));          

Date dayAfter = new Date(someDate1.getTime()-(24*60*60*1000));    

SimpleDateFormat dateFormat = new SimpleDateFormat(DateFormat.DATE_MEDIUM);

String strCustomDateTime = dateFormat.format(dayAfter);

storeDate.setText(strCustomDateTime);

Date passingDate = new Date(HttpDateParser.parse(storeDate.getText()));      

 SimpleDateFormat dateFormat1 = new SimpleDateFormat("yyyy-MM-dd");        

String strCustomDate = dateFormat1.format(passingDate);      

 Dialog.alert(strCustomDate);    

  getAllAppointmentsByDate1(strCustomDate);        

 

          return true;             

}           

};

SearchField.add(leftAngleBitmapField);

simillerly for storeDate,rightAngleBitmapField,calenderBitmapField.

 

 but i am not able to select the bitmap even.... so can any experts suggest me what is the mistake i have done in it...

Please use plain text.
Super Contributor
yogesh1984
Posts: 308
Registered: ‎05-31-2011
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

Re: bitmapfield navigate click not working

sorry i continued in same thread.... 

Please use plain text.
Developer
vandzi
Posts: 40
Registered: ‎07-21-2009
My Carrier: ...............

Re: bitmapfield navigate click not working

maybe because 9700 has not touchable display. try to run it no more simulators.

Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: bitmapfield navigate click not working

what is MyHorizontalFieldCalenderSearch? is it a manager? what fields are added in it?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Super Contributor
yogesh1984
Posts: 308
Registered: ‎05-31-2011
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

Re: bitmapfield navigate click not working

 

hello simon,

  MyHorizontalFieldCalenderSearch is custom MANAGER WHICH EXTENDS HORIZONTALFIELDMANAGER.

  Fields in it are,

1. BitmapField: leftAngleBitmapField

2 LabelField:storeDate

3  BitmapField: rightAngleBitmapField

4 BitmapField: calenderBitmapField.

  

i want to add click event to bitmapfield. can u plz help me

 

Please use plain text.
Super Contributor
yogesh1984
Posts: 308
Registered: ‎05-31-2011
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

Re: bitmapfield navigate click not working

hello vandiz,

   i know that  9700 has not touchable display... so i want to implement click event on it... actually i implemented touch event on BB 9800 torch. but for 9700(does not support touch event), 

        how can i implement click event on bitmap now.

Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: bitmapfield navigate click not working

a bitmapfield with the focusable flag should be focusable. unless you do something with it the focus will not be visible, maybe that is your problem?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Super Contributor
yogesh1984
Posts: 308
Registered: ‎05-31-2011
My Carrier: SimPakage 6.0.0.337_9800 asia.exe

Re: bitmapfield navigate click not working

should i extend buttonfield or is there any simple way to implement the same

Please use plain text.