Dear both,

Many thanks for your help. I think it was an error on my part :-)

i needed to:

btn_Contact.setFocusableInTouchMode(true);

once that was set, the btn_Contact.requestFocus(); worked fine

Thanks Guys!

Regards

Roman

On Jan 3, 11:48 pm, Yousuf Faheem <[email protected]> wrote:
> Hi,
>
> try this.
>
> btn_Contact = (Button) findViewById(R.id.btn_Contact);
>
>
>
> >          editText_Message = (EditText) findViewById(R.id.messageText);
> >        btn_Save = (Button) findViewById(R.id.btn_Save);
>
>        btn_Contact.requestFocus();
>
> Thanks & Regards,
> Yousuf Syed
>
> On Sun, Jan 3, 2010 at 6:32 PM, Roman Romano
> <[email protected]>wrote:
>
> > No joy :-(
>
> > here's what i did:
>
> >        btn_Contact = (Button) findViewById(R.id.btn_Contact);
> >        btn_Contact.requestFocus();
> >        editText_Message = (EditText) findViewById(R.id.messageText);
> >        btn_Save = (Button) findViewById(R.id.btn_Save);
>
> > but the EditText remains the first thing that is active on launching
> > the intent.
>
> > Any other suggestions??
>
> > many thanks
>
> > Roman
>
> > On Jan 3, 6:28 pm, Roman Romano <[email protected]> wrote:
> > > Many thanks both, I will give it a go.
>
> > > kind regards
>
> > > Roman
>
> > > On Jan 3, 12:57 am, Caius 'kaio' Chance <[email protected]> wrote:
>
> > > > (2010年01月03日 08:56), Yousuf Faheem wrote:
>
> > > > > call
> > > > > btn.requestFocus();
>
> > > > BTW, create the btn with getViewById() first.
>
> > > > --
> > > > Caius 'kaio' Chance ☺ かいお
> > > >    Fedora Project Contributorhttp://fedoraproject.org/wiki/User:kaio
> > > >    kaio at fedoraproject.org, kaio on irc.freenode.net, GPG: 17BEFCFA
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > [email protected]<android-beginners%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to