Error while Lauching Music player

by Manish Sharma » Mon, 23 Mar 2009 07:18:24 GMT


Sponsored Links
 i 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



Error while Lauching Music player

by nagamatu » Mon, 23 Mar 2009 08:57:55 GMT


 ecause 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 33 4:17, Manish Sharma <manishsharm...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---


Sponsored Links


Error while Lauching Music player

by Manish Sharma » Mon, 23 Mar 2009 13:31:46 GMT


 i.

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:

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Error while Lauching Music player

by nagamatu » Mon, 23 Mar 2009 14:04:25 GMT


 i, 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 33 10:23, Manish Sharma <manishsharm...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Error while Lauching Music player

by Manish Sharma » Mon, 23 Mar 2009 15:35:21 GMT


 hanks a lot,
I just renamed the "-finger" to "-notouch" for all the folders in "res" and
it start working.
Regards,
MS

2009/3/23 nagamatu <nagam...@gmail.com>


--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Fwd: build launcher

hi everybody ,who can tell me how to recompiling source code of Launcher
from eclipse ,or tell me why i get some error like can't import package,and
how to know which package aren't import ,i mean which .jar ,where can i find
it ,how to make it .so my question is how can i recompile Launcher in
eclipse and can't get error infomation .

€ do this work like this .
I.i am compile android source code use default config .
II.i import  some *.jar file from /out directory.
III.but i get this:
Dxwarning: Ignoring InnerClasses attribute for an anonymous inner class
(antlr.
TokenStreamRewri{*filter*}gine$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

€ tryed other things:
i download  apktool ,but i get some error.
so how to do it on eclipse enviroment.  or how to build this project from
Netbeans java develop enviroment.
i know this question already on google groups ,but some question is that i
can't browse some google webs nomal.
so i hope some people can send it to me .i am very gratitude .
or some good people could teach me some means browse
groups.google.com.beacause i can't get it also through proxy web.
thanks ! very.

-- 

2. Does

I want know which devices can froyo support through USB.
Now, I konow the froyo support usb-mass-storage(USB flash disk, SD-
card and so on ), mouse, keyboard.
I want know any other devices supported in froyo through USB.

-- 

3. How do I implement "3G usb serial" in android?

4. Programmatically specifying a particular APN to be used in my application

5. how to print name of parent in ExpandableList

6. SmsManager.sendDataMessage application port addressing and carrier SMSC support

7. Global Plugin.