Hi,

We are porting Android 2.1 to an sh4 based settop box platform. It
boots, and many of the applications run, but I am getting an exception
thrown when trying to type into the calendar's day view. :
E/AndroidRuntime(  974): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  974): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.android.calendar/
com.android.calendar.EditEvent}: android.view.InflateException: Binary
XML file line #327: Error inflating class android.widget.ImageButton
E/AndroidRuntime(  974):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2496)
E/AndroidRuntime(  974):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
E/AndroidRuntime(  974):        at android.app.ActivityThread.access
$2200(ActivityThread.java:119)
E/AndroidRuntime(  974):        at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime(  974):        at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  974):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  974):        at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(  974):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  974):        at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  974):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(  974):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(  974):        at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime(  974): Caused by: android.view.InflateException:
Binary XML file line #327: Error inflating class
android.widget.ImageButton
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.createView(LayoutInflater.java:513)
E/AndroidRuntime(  974):        at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
56)
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime(  974):        at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
198)
E/AndroidRuntime(  974):        at
android.app.Activity.setContentView(Activity.java:1622)
E/AndroidRuntime(  974):        at
com.android.calendar.EditEvent.onCreate(EditEvent.java:606)
E/AndroidRuntime(  974):        at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
E/AndroidRuntime(  974):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
E/AndroidRuntime(  974):        ... 11 more
E/AndroidRuntime(  974): Caused by:
java.lang.reflect.InvocationTargetException
E/AndroidRuntime(  974):        at
android.widget.ImageButton.<init>(ImageButton.java:78)
E/AndroidRuntime(  974):        at
java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime(  974):        at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
E/AndroidRuntime(  974):        at
android.view.LayoutInflater.createView(LayoutInflater.java:500)
E/AndroidRuntime(  974):        ... 24 more
E/AndroidRuntime(  974): Caused by: android.content.res.Resources
$NotFoundException: File res/color/secondary_text_light.xml from
drawable resource ID #0x7f020006
E/AndroidRuntime(  974):        at
android.content.res.Resources.loadDrawable(Resources.java:1693)
E/AndroidRuntime(  974):        at
android.content.res.TypedArray.getDrawable(TypedArray.java:548)
E/AndroidRuntime(  974):        at android.view.View.<init>(View.java:1850)
E/AndroidRuntime(  974):        at
android.widget.ImageView.<init>(ImageView.java:109)
E/AndroidRuntime(  974):        at
android.widget.ImageButton.<init>(ImageButton.java:82)
E/AndroidRuntime(  974):        ... 28 more
E/AndroidRuntime(  974): Caused by: android.content.res.Resources
$NotFoundException: File res/color/secondary_text_light.xml from xml
type drawable resource ID #0x7f020006
E/AndroidRuntime(  974):        at
android.content.res.Resources.loadXmlResourceParser(Resources.java:
1912)
E/AndroidRuntime(  974):        at
android.content.res.Resources.loadDrawable(Resources.java:1688)
E/AndroidRuntime(  974):        ... 32 more
E/AndroidRuntime(  974): Caused by: java.io.FileNotFoundException: res/
color/secondary_text_light.xml
E/AndroidRuntime(  974):        at
android.content.res.AssetManager.openXmlAssetNative(Native Method)
E/AndroidRuntime(  974):        at
android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:
469)
E/AndroidRuntime(  974):        at
android.content.res.Resources.loadXmlResourceParser(Resources.java:
1894)
E/AndroidRuntime(  974):        ... 33 more
I/Process (  875): Sending signal. PID: 974 SIG: 3
I/dalvikvm(  974): threadid=7: reacting to signal 3

The core of the problem seems to be that it can't find res/color/
secondary_text_light.xml. Then it goes on to get a Binder error when
trying to set the widget to active, because the calendar has quit..  I
am new to Android and Java, so I am not sure where this file is
supposed to be. The string appears in 2 files in the filesystem (data/
dalvik-cache/sys...@framework@[email protected] and system/
framework/framework-res.apk). This is the same as a filesystem that
was built for an ARM based device that works, so the problem appears
to be platform specific. Can anyone suggest a place to start looking
for what is going wrong?

Thanks,
Steve

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

To unsubscribe, reply using "remove me" as the subject.

Reply via email to