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

Android™ Runtime Development

Reply
Regular Contributor
musmankhan90
Posts: 92
Registered: ‎03-09-2013
My Device: bold 9800
My Carrier: blackberry

Clikable EditField

Hello,

I am working on application,in which if i clicked on EditField then it should make some function. Please any one help me out.. I cant solve it...:robotsad:

Thanks.

public void byPhoneCall()
{
editPhoneNumber = new CustomEditField2 (" [To be provided by Bank]",FIELD_HCENTER);

editPhoneNumber.setBorder(nonEditableBorder);
add(editPhoneNumber);
}

I want to make clickable functionality on this.. Please help me out....

Please use plain text.
Developer
BBSJdev
Posts: 6,089
Registered: ‎07-05-2012
My Device: Playbook, Z10 LE, Dev Alpha C
My Carrier: Orange

Re: Clikable EditField

Please post your question in the appropriate forum for the platform you are using, this forum is about BlackBerry World Development.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
ndsmyter
Posts: 648
Registered: ‎09-26-2012
My Device: Limited Edition Z10, Playbook 16GB/32GB, Dev Alpha A/B/C
My Carrier: Mobile Vikings

Re: Clikable EditField

[ Edited ]

Is this code for Android ?

You will also need to give us some more information. Which is the super class of CustomEditField? In general, you will have to use some kind of listener (eg OnClickListener, OnFocusListener etc) to listen to your CustomEditField. Whenever a user clicks on your field, a listener can be triggered, which will do the appropriate actions. More information for Android here: http://developer.android.com/guide/topics/ui/ui-events.html



A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter
Please use plain text.
Regular Contributor
musmankhan90
Posts: 92
Registered: ‎03-09-2013
My Device: bold 9800
My Carrier: blackberry

Re: Clikable EditField

ndsmyter by mistake i have post this problem in Android Development forum, it is related to Blackberry coding...Please help me out if you know the solution... It will be very helpfull for me,kindly do this :-)

Thank You:Cowboy:

Please use plain text.