Thanks Roman,

unfortunately as soon as I resolve one item, another pops up :)

Seems when you do anything to the EditText using setEnabled/setFocusable 
etc. the view does not get properly restored and you have no cursor, or the 
cursor is off the screen and the length is somehow 0 to the 
keyboard/trackpad (but not the content or view).

I'd say the view is seriously broken, but i still need to handle it for all 
the people out there that can't update their phones.

I had to resolve my issue by using startActivity with the same activity i'm 
in, closing the one i was in behind me.
e.g. 

// do some stuff, save the data, then load it again in a new version of this 
view.
   
startActivity(new Intent(Intent.ACTION_EDIT, getIntent()

   .getData()));

finish();


So, inside my edit activity i'm calling another edit activity and finishing 
the one i was in. That seems to be the only way I can restore the EditView 
to the state it should be in.
All this so i can simply prevent the user from changing some content if the 
content is encrypted :)

- Brill Pappin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to