Hi, MS.

Check the following document for resource management.

How Android finds the best matching directory

http://d.android.com/guide/topics/resources/resources-i18n.html

flinger-named resource folders are for touchscreen devices.

On 3月23日, 午後10:23, Manish Sharma <manishsharm...@gmail.com> wrote:
> Hi.
>
> You are right touchscreen is not present in my setup.
> Unfortunately I cannot make it up so soln 1 is not possible at present.
> Please give me some pointers on how to add resource for no touchscreen?
>
> Regards,
> MS
>
> On 3/23/09, nagamatu <nagam...@gmail.com> wrote:
>
>
>
> > Because your target device has no touchscreen configuration, the
> > necessary resource can not be found.
>
> > Solution 1: Add touchscreen :)
> > Solution 2: Add resources for no touchscreen device
> > Solution 3: Ignore touchscreen configuration for loading resources
>
> > On 3月23日, 午後4:17, Manish Sharma <manishsharm...@gmail.com> wrote:
> > > Hi All,
>
> > > All the applications are working fine in my android setup. But when I
> > launch
> > > Music player it gives an error on screen "The application Music
> > > (process.com.android.music) has stopped unexpectedly. Please try again".
> > And
> > > one option of "Force Close".
>
> > > With logcat the following error is observed:
>
> > > I/ActivityManager( 1502): Start proc com.android.music for activity
> > > com.android.music/.MusicBrowserA
> > > ctivity: pid=1624 uid=10013 gids={3003}
> > > D/dalvikvm( 1487): GC freed 267 objects / 10032 bytes in 154ms
> > > D/dalvikvm( 1487): GC freed 45 objects / 1912 bytes in 161ms
> > > D/dalvikvm( 1487): GC freed 2 objects / 48 bytes in 134ms
> > > W/ResourceType( 1624): Failure getting entry for 0x7f02002c (t=1 e=44) in
> > > package 0: 0xffffffb5
> > > D/AndroidRuntime( 1624): Shutting down VM
> > > W/dalvikvm( 1624): threadid=3: thread exiting with uncaught exception
> > > (group=0x4000fe68)
> > > E/AndroidRuntime( 1624): Uncaught handler: thread main exiting due to
> > > uncaught exception
> > > E/AndroidRuntime( 1624): java.lang.RuntimeException: Unable to start
> > > activity ComponentInfo{com.andr
> > > oid.music/com.android.music.MusicBrowserActivity}:
> > > android.view.InflateException: Binary XML file li
> > > ne #39: Error inflating class java.lang.reflect.Constructor
> > > E/AndroidRuntime( 1624):        at
> > > android.app.ActivityThread.performLaunchActivity(ActivityThread.j
> > > ava:2156)
> > > E/AndroidRuntime( 1624):        at
> > > android.app.ActivityThread.handleLaunchActivity(ActivityThread.ja
> > > va:2172)
> > > E/AndroidRuntime( 1624):        at
> > > android.app.ActivityThread.access$1800(ActivityThread.java:112)
> > > E/AndroidRuntime( 1624):        at
> > > android.app.ActivityThread$H.handleMessage(ActivityThread.java:15
> > > 86)
> > > E/AndroidRuntime( 1624):        at
> > > android.os.Handler.dispatchMessage(Handler.java:99)
> > > E/AndroidRuntime( 1624):        at
> > android.os.Looper.loop(Looper.java:123)
> > > E/AndroidRuntime( 1624):        at
> > > android.app.ActivityThread.main(ActivityThread.java:3790)
> > > E/AndroidRuntime( 1624):        at
> > > java.lang.reflect.Method.invokeNative(Native Method)
> > > E/AndroidRuntime( 1624):        at
> > > java.lang.reflect.Method.invoke(Method.java:521)
> > > E/AndroidRuntime( 1624):        at
> > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(Zygote
> > > Init.java:745)
> > > E/AndroidRuntime( 1624):        at
> > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:503)
> > > E/AndroidRuntime( 1624):        at dalvik.system.NativeStart.main(Native
> > > Method)
> > > E/AndroidRuntime( 1624): Caused by: android.view.InflateException: Binary
> > > XML file line #39: Error i
> > > nflating class java.lang.reflect.Constructor
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.createView(LayoutInflater.java:512)
> > > E/AndroidRuntime( 1624):        at
> > > com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView
> > > (PhoneLayoutInflater.java:56)
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java
> > > :562)
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.inflate(LayoutInflater.java:407)
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> > > E/AndroidRuntime( 1624):        at
> > > com.android.internal.policy.impl.PhoneWindow.setContentView(Phone
> > > Window.java:226)
> > > E/AndroidRuntime( 1624):        at
> > > android.app.Activity.setContentView(Activity.java:1614)
> > > E/AndroidRuntime( 1624):        at
> > > com.android.music.MusicBrowserActivity.init(MusicBrowserActivity.
> > > java:85)
> > > E/AndroidRuntime( 1624):        at
> > > com.android.music.MusicBrowserActivity.onCreate(MusicBrowserActiv
> > > ity.java:74)
> > > E/AndroidRuntime( 1624):        at
> > > android.app.Instrumentation.callActivityOnCreate(Instrumentation.
> > > java:1123)
> > > E/AndroidRuntime( 1624):        at
> > > android.app.ActivityThread.performLaunchActivity(ActivityThread.j
> > > ava:2119)
> > > E/AndroidRuntime( 1624):        ... 11 more
> > > E/AndroidRuntime( 1624): Caused by:
> > > java.lang.reflect.InvocationTargetException
> > > E/AndroidRuntime( 1624):        at
> > > android.widget.ImageButton.<init>(ImageButton.java:47)
> > > E/AndroidRuntime( 1624):        at
> > > java.lang.reflect.Constructor.constructNative(Native Method)
> > > E/AndroidRuntime( 1624):        at
> > > java.lang.reflect.Constructor.newInstance(Constructor.java:451)
> > > E/AndroidRuntime( 1624):        at
> > > android.view.LayoutInflater.createView(LayoutInflater.java:499)
> > > E/AndroidRuntime( 1624):        ... 25 more
> > > E/AndroidRuntime( 1624): Caused by:
> > > android.content.res.Resources$NotFoundException: Resource is not
> > >  a Drawable (color or path): TypedValue{t=0x1/d=0x7f02002c a=-1
> > > r=0x7f02002c}
> > > E/AndroidRuntime( 1624):        at
> > > android.content.res.Resources.loadDrawable(Resources.java:1563)
> > > E/AndroidRuntime( 1624):        at
> > > android.content.res.TypedArray.getDrawable(TypedArray.java:520)
> > > E/AndroidRuntime( 1624):        at
> > android.view.View.<init>(View.java:1688)
> > > E/AndroidRuntime( 1624):        at
> > > android.widget.ImageView.<init>(ImageView.java:106)
> > > E/AndroidRuntime( 1624):        at
> > > android.widget.ImageButton.<init>(ImageButton.java:51)
> > > E/AndroidRuntime( 1624):        ... 29 more
> > > I/Process ( 1502): Sending signal. PID: 1624 SIG: 3
> > > I/dalvikvm( 1624): threadid=7: reacting to signal 3
> > > I/dalvikvm( 1624): Wrote stack trace to '/data/anr/traces.txt'
> > > W/InputManagerService( 1502): Starting input on non-focused client
> > > android.view.inputmethod.InputMet
> > > hodmanage...@437b80c8 (uid=1000 pid=1502)
> > > W/InputManagerService( 1502): Ignoring focus gain of:
> > > android.view.inputmethod.InputMethodManager$1@
> > > 437b80c8
> > > I/ARMAssembler( 1502): generated
> > > scanline__00000077:03515104_00000001_00000000 [ 46 ipp] (65 ins) at
> > >  [0x1f5720:0x1f5824] in 10000000 ns
> > > I/ARMAssembler( 1502): generated
> > > scanline__00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at
> > >  [0x1f5878:0x1f591c] in 0 ns
> > > W/ActivityManager( 1502): Launch timeout has expired, giving up wake
> > lock!
> > > W/ActivityManager( 1502): Activity idle timeout for
> > HistoryRecord{437f9e80
> > > {com.android.music/com.an
> > > droid.music.MusicBrowserActivity}}
>
> > > Please provide some pointers.
>
> > > Regards,
> > > M.S
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to