[android-developers] How to disable certain dex warning in Gradle

2014-11-26 Thread Leith Bade
I have a bunch of dex warning generated by an Apache Commons dependency like this: warning: Ignoring InnerClasses attribute for an anonymous inner class (org.apache.commons.beanutils.BeanMap$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a

[android-developers] ADB over TCP/IP keeps timing out

2013-10-26 Thread Leith Bade
I am trying to develop an app on my Nexus 7 that uses the USB Host function. In the USB documentation it provides a tip that you can debug with ADB over TCP/IP so that you don't need to connect the USB to the computer for debugging. However I am having trouble with the connection constantly

[android-developers] canvas.drawCircle broken with hardware acceleration on 4.1?

2013-06-21 Thread Leith Bade
I have been banging my head for a while trying to figure out why my custom view was not drawing properly until I tried turning off hardware acceleration. It is to do with canvas.drawCircle. It is drawn in solid blue at about 300px radius. I also use canvas.drawText and that works fine under

[android-developers] Re: canvas.drawCircle broken with hardware acceleration on 4.1?

2013-06-21 Thread Leith Bade
UTC+10, RichardC wrote: See this thread: https://groups.google.com/d/msg/android-developers/2DT6JaPszR0/-Q2g6ZLRM5sJ On Friday, June 21, 2013 5:32:51 PM UTC+1, Leith Bade wrote: I have been banging my head for a while trying to figure out why my custom view was not drawing properly until I

[android-developers] How to implement Scroller-like fling using ObjectAnimator?

2013-06-20 Thread Leith Bade
I am working on a map application and have been implementing all the common gestures. However I have got stuck on the fling gesture for scrolling the map. I initially used the android.widget.Scroller class as reccomended in the SDK to implement the fling animation, however I found that it was

[android-developers] TelephonyManager NETWORK_TYPE_ for HSPA+?

2010-12-28 Thread Leith Bade
What NETWORK_TYPE_ does TelephonyManager use for HSPA+ (Enhanced HSPA not the older HSPA)? For UMTS there is only: NETWORK_TYPE_UMTS NETWORK_TYPE_HSDPA NETWORK_TYPE_HSUPA NETWORK_TYPE_HSPA Is it NETWORK_TYPE_HSPA? I assume HNETWORK_TYPE_HSUPA is HSDPA + HSUPA, which would make NETWORK_TYPE_HSPA