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. Service lifecycle and in-memory caching

If I have a service that contains Map with some cached objects that
I'm serving "on demand" to the Activity, then how reliable that cache
is and what are the chances that server object (and my cache) may be
dropped?
The server runs in its own thread (AIDL) and Activity binds/unbinds
from it as needed. The server also is running  periodical updates
thread which refreshes the cache (can vary from every 15 min to once/
24h). Can I expect this cache to disappear at any moment?
Also - the cache (at it's fullest) is about 100K and consists of UTF-8
String data (generally HTML), what would be a good strategy to persist
it so it can be repopulated on service's onCreate?
--~--~---------~--~----~------------~-------~--~----~

2. problem loading opengl

logcat shows errors in loading GLS
and some other errors like sys\
and application terminates

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

3. ADC2 Submit vs Upload

4. How to build Uri to an image present at the APK ?

5. Device Chooser always picks Emulator (after upgrading Ubuntu to Jaunty)...

6. SDCard error

7. Suggestions on how to stop threads with long operations?