Removing the default selection of EditText in Froyo 2.2

by Archana » Thu, 09 Sep 2010 14:49:37 GMT


Sponsored Links
 Hi

How can we remove the default selection of editText.while I am
switching over to another page(which contain edit text) EdiText is
getting focussed and keyboard is pop up.. I want to remove this
behaviour .. for that I created Empty textview and set focus for
that..  below is code which i used.

View emptyView = (View) findViewById(R.id.emptyView);
emptyView.setFocusableInTouchMode(true);
emptyView.requestFocus();

Its working fine in all the device except froyo.Am I doing anything
wrong.. how can we fix it? please help..

--



Other Threads

1. Storing data on the SD card in Froyo - files deleted when upgrading

So this bug appears to still exist on the 2.2 devices that we work
with on the market (Motorola Droid with the latest 2.2 OTA) and even
on the Google API 2.2 SDK emulator. I think that it is wildly
unreasonable that this bug is not reflected in the main documentation
at

http://developer.android.com/guide/topics/data/data-storage.html

or developer docs at

http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir%28java.lang.String%29

Would it be possible for the documentation to be updated to reflect
the fact that you should only "write your data in the following
directory: /Android/data/<package_name>/files/ " if you are building
for an android environment which has the bug fixed (not sure if any
such environments currently exist...)

We started using the appropriate directory path (.../Android/data/
packagename/) before 2.2 was rolled out in anticipation of taking
advantage of it, meaning that we can no longer upgrade our application
(from the 2.1 installed version) without completely wrecking the
install, and I feel that it is unfortunate that despite the bug being
identified in July the documentation was not updated to reflect this
problem.

-Clayton Sims











> > > > > 

2. Persisting preference data from onDialogClose in DialogPreference doesn't work

In the API reference for the method onDialogClosed of DialogPreference
it says "Called when the dialog is dismissed and should be used to
save data to the SharedPreferences."

My problem is that nothing gets persisted when I call persistString
from onDialogClose. I can listen to changes to my component and
persist data then, but of course the right way is to do it in
onDialogClose. But for some reason this doesn't work.

I'm using the emulator, API level for 2.1 update 2 in Ubuntu.

Any ideas?

-- 

3. images in android

4. Streaming audio from windows c++ music studio application to android java application

5. Commands available for View Server class

6. Android 2.2 and SIM Toolkit

7. Crash report for ActivityThread.createThumbnailBitmap