Every ProgressBar instance getIndeterminateDrawable returns a singleton? how to clone this Drawable?

by Romain Guy » Wed, 16 Dec 2009 14:12:45 GMT


Other Threads

1. Hessian Web Service and Android App

I have build a simple tapestry web application and set up hessian web
service within the servlet and when I access it from pc client it
works fine.

I want to access this service using hessian on Android but I can't
find a proper way to include hessian library(and any other third party
jar) in eclipse project so that it works during runtime. I have
browsed the web for like 2 last weeks, and googled and googled but all
solutions that I found were just not working! :(

Please Help!

I know this is basic stuff, and 90% of you guys know how to do this,
so help please :)
So my basic question is:

How to properly include third party jar in my android application so
that it works not only during compile time but also during runtime :)
Awaiting response eagerly :)
--~--~---------~--~----~------------~-------~--~----~

2. Cupcake's bug ? Caused by: android.content.res.Resources

Hi,

My application works fine but in adb logcat, I see a bug in your lib.
Is it my fault ?

Thanks, bye.

I/ActivityManager(  568): Start proc com.orange.bagua for activity
com.example/.ExampleActivity: pid=884 uid=10019 gids={}
W/WindowManager(  568): Exception when adding starting window
W/WindowManager(  568): android.view.InflateException: Binary XML file
line #24: Error inflating class java.lang.reflect.Constructor
W/WindowManager(  568):         at
android.view.LayoutInflater.createView(LayoutInflater.java:512)
W/WindowManager(  568):         at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView
(PhoneLayoutInflater.java:56)
W/WindowManager(  568):         at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
W/WindowManager(  568):         at android.view.LayoutInflater.inflate
(LayoutInflater.java:385)
W/WindowManager(  568):         at android.view.LayoutInflater.inflate
(LayoutInflater.java:320)
W/WindowManager(  568):         at android.view.LayoutInflater.inflate
(LayoutInflater.java:276)
W/WindowManager(  568):         at
com.android.internal.policy.impl.PhoneWindow.generateLayoutPhoneWindow.jav
a:2149)
W/WindowManager(  568):         at
com.android.internal.policy.impl.PhoneWindow.installDecor
(PhoneWindow.java:2203)
W/WindowManager(  568):         at
com.android.internal.policy.impl.PhoneWindow.getDecorView
(PhoneWindow.java:1442)
W/WindowManager(  568):         at
com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow
(PhoneWindowManager.java:648)
W/WindowManager(  568):         at
com.android.server.WindowManagerService$H.handleMessage
(WindowManagerService.java:7092)
W/WindowManager(  568):         at android.os.Handler.dispatchMessage
(Handler.java:99)
W/WindowManager(  568):         at android.os.Looper.loop(Looper.java:
123)
W/WindowManager(  568):         at
com.android.server.WindowManagerService$WMThread.run
(WindowManagerService.java:440)
W/WindowManager(  568): Caused by:
java.lang.reflect.InvocationTargetException
W/WindowManager(  568):         at android.widget.FrameLayout.<init>
(FrameLayout.java:79)
W/WindowManager(  568):         at
java.lang.reflect.Constructor.constructNative(Native Method)
W/WindowManager(  568):         at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
W/WindowManager(  568):         at
android.view.LayoutInflater.createView(LayoutInflater.java:499)
W/WindowManager(  568):         ... 13 more
W/WindowManager(  568): Caused by: android.content.res.Resources
$NotFoundException: Resource is not a Drawable (color or path):
TypedValue{t=0x2/d=0x1010059 a=-1}
W/WindowManager(  568):         at
android.content.res.Resources.loadDrawable(Resources.java:1609)
W/WindowManager(  568):         at
android.content.res.TypedArray.getDrawable(TypedArray.java:548)
W/WindowManager(  568):         at android.widget.FrameLayout.<init>
(FrameLayout.java:91)
W/WindowManager(  568):         ... 17 more
D/AndroidRuntime(  877): Shutting down VM
D/dalvikvm(  877): DestroyJavaVM waiting for non-daemon threads to
exit
D/dalvikvm(  877): DestroyJavaVM shutting VM down
D/dalvikvm(  877): HeapWorker thread shutting down
D/dalvikvm(  877): HeapWorker thread has shut down
D/jdwp    (  877): JDWP shutting down net...
D/jdwp    (  877): +++ peer disconnected
I/dalvikvm(  877): De{*filter*} has detached; object registry had 1
entries
D/dalvikvm(  877): VM cleaning up
D/dalvikvm(  877): LinearAlloc 0x0 used 639228 of 4194304 (15%)
I/jdwp    (  884): received file descriptor 10 from ADB
W/InputManagerService(  568): Starting input on non-focused client
com.android.internal.view.IInputMethodClien
t$stub$pr...@436f1b98 (uid=10003 pid=611)
I/ActivityManager(  568): Displayed activity
com.example/.ExampleActivity: 815 ms
--~--~---------~--~----~------------~-------~--~----~

3. How the video display size making use of resize and rotation is set under Android

4. Updating cupcake Images to Android Developer Phone

5. using internal media provider

6. Basic HTTP authentication

7. how to implement tween animation with AppWidget using RemoteViews?