Re: [android-developers] EditText selectAll() does not work in ICS

2012-02-02 Thread dmon
Hmmm i just saw there's a 
selectAllOnFocusattribute.
 I've never tried it though. 

-- 
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

[android-developers] Ice Cream Sandwich and high memory usage on launch

2012-02-01 Thread dmon
I was doing some memory profiling recently for another issue, and I found 
that, on my phone running ICS, 
as soon as I launch the app the memory is already at about 7 MB, when it 
was usually about 4 MB in others.
I looked at the HPROF file and it seems like the app is keeping a bunch 
(all?) of my app's drawables in memory. 

Is there some pre-fetching going on? Why was this changed? Is there any way 
to disable this? How does
this affect calls to recycle() (see this stackoverflow 
question)?
 
Is there some official documentation for the 
change?

Or maybe there's something else going on...

-- 
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

[android-developers] Re: Edittext Scrolling

2012-01-31 Thread dmon
Hmm I'm not 100% clear, but I think that you will get the behavior that you 
want if you extend the EditText class and override the onTouchEvent() 
method:

  public boolean onTouchEvent(MotionEvent ev) {
boolean canScroll = !this.isFocusable() || !this.isEnabled() ||
  (this.isFocused() && this.isFocusable() && 
this.isEnabled() );
if (ev.getAction() == MotionEvent.ACTION_DOWN && canScroll) {
  this.getParent().requestDisallowInterceptTouchEvent(true);
}
if (ev.getAction() == MotionEvent.ACTION_UP) {
  this.getParent().requestDisallowInterceptTouchEvent(false);
}

return super.onTouchEvent(ev);
  }

-- 
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

[android-developers] Re: Robotium Solo getCurrentActivity returns previous activity not current.

2011-10-12 Thread dmon
I guess I should note that this still works fine when "going forward" in the 
stack. That is, if I open an activity and check that it's the expected one, 
it works. However, if I do solo.goBack(), and *then *try to test for the one 
that is visible, it fails.

-- 
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

[android-developers] Re: Robotium Solo getCurrentActivity returns previous activity not current.

2011-10-12 Thread dmon
We just hit this as well when running our matrix tests in Honeycomb. I tried 
to debug it a little, and it seems as if activityMonitor.getLastActivity() 
is returning the wrong thing now. Something must have changed in the 
ActivityMonitor code, but since Honeycomb's source is not available, I'm not 
sure how much we can so about this.

-- 
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

Re: [android-developers] Translation handling

2011-08-17 Thread dmon
I *think* you can use getResources().getValue("my_cart", aTypedValue, false)

-- 
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