Android Question EditText And RequestFocus

Cüneyt Gargin

Member
Licensed User
Longtime User
I have a motorola device with barcode scanner..
I have an editbox to scan barcodes..
it scans and sends enter automatically...
I insert barcode into a database table...
Later on I clean editText with anEditText.Text =""
I call
anEditText.RequestFocus
(which is very important because user will scan hunderds of barcodes immediately and i cannot tell the user to click editbox to gain focus...)
and it does not gain Focus...


Please tell me a method to overcome this and please don't tell me you do not guarantee editText to gain focus(i.e. i read articles here)
 

keirS

Well-Known Member
Licensed User
Longtime User
I Tried This Method. I adjusted device settings. But I could not write a service and call it.. Lets assume my packagename is scantest and SCAN is the method.
Can you please send me a sample code .. B.Regards...

I am on holiday at the moment and won't be able to dig out the code I have for a couple of weeks.
Have your read the user guide for Datawedge as this where I worked out how to do it. I don't have a TC55 to try any code on as mine was on loan from the client I wrote the app for.
 
Upvote 0
Top