isnt' there any method to control the android default music player other
than using the IMediaPlaybackService?
Do comment if any...
I tired with it and the functions in the IMediaPlaybackService like
prev()/seek() etc were not working( both in Froyo2.2 and ICS 4.0.3).
Then tried with a custom built ICS whose service access to the public has
been changed from
<service android:name="com.android.music.MediaPlaybackService"
android:exported="false" /> to
<service android:name="com.android.music.MediaPlaybackService"
android:exported="true" />
Successfully worked....
But i need to work my application in all android OS and so I am searching
for an alternative method to control the android default music player.
On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote:
>
> I'm trying to setup a service connection to control the stock android
> media player. This works great under 2.1 and 2.2. However, when I
> tried to run my application on the 2.3 emulator my application crashes
> and I get the following error:
>
> ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not
> allowed to bind to service Intent
> {cmp=com.android.music/.MediaPlaybackService }
>
> Have the permissions to bind to the IMediaServiceConnetion been
> revoked for gingerbread?
>
> Here is the code I'm running from my class that is a child of
> ServiceConnection
>
> Intent i = new Intent();
> i.setClassName("com.android.music",
> "com.android.music.MediaPlaybackService");
> a.bindService(i, (ServiceConnection) this, 0);
On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote:
>
> I'm trying to setup a service connection to control the stock android
> media player. This works great under 2.1 and 2.2. However, when I
> tried to run my application on the 2.3 emulator my application crashes
> and I get the following error:
>
> ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not
> allowed to bind to service Intent
> {cmp=com.android.music/.MediaPlaybackService }
>
> Have the permissions to bind to the IMediaServiceConnetion been
> revoked for gingerbread?
>
> Here is the code I'm running from my class that is a child of
> ServiceConnection
>
> Intent i = new Intent();
> i.setClassName("com.android.music",
> "com.android.music.MediaPlaybackService");
> a.bindService(i, (ServiceConnection) this, 0);
On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote:
>
> I'm trying to setup a service connection to control the stock android
> media player. This works great under 2.1 and 2.2. However, when I
> tried to run my application on the 2.3 emulator my application crashes
> and I get the following error:
>
> ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not
> allowed to bind to service Intent
> {cmp=com.android.music/.MediaPlaybackService }
>
> Have the permissions to bind to the IMediaServiceConnetion been
> revoked for gingerbread?
>
> Here is the code I'm running from my class that is a child of
> ServiceConnection
>
> Intent i = new Intent();
> i.setClassName("com.android.music",
> "com.android.music.MediaPlaybackService");
> a.bindService(i, (ServiceConnection) this, 0);
On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote:
>
> I'm trying to setup a service connection to control the stock android
> media player. This works great under 2.1 and 2.2. However, when I
> tried to run my application on the 2.3 emulator my application crashes
> and I get the following error:
>
> ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not
> allowed to bind to service Intent
> {cmp=com.android.music/.MediaPlaybackService }
>
> Have the permissions to bind to the IMediaServiceConnetion been
> revoked for gingerbread?
>
> Here is the code I'm running from my class that is a child of
> ServiceConnection
>
> Intent i = new Intent();
> i.setClassName("com.android.music",
> "com.android.music.MediaPlaybackService");
> a.bindService(i, (ServiceConnection) this, 0);
On Tuesday, 21 December 2010 02:13:43 UTC+5:30, neuromit wrote:
>
> I'm trying to setup a service connection to control the stock android
> media player. This works great under 2.1 and 2.2. However, when I
> tried to run my application on the 2.3 emulator my application crashes
> and I get the following error:
>
> ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not
> allowed to bind to service Intent
> {cmp=com.android.music/.MediaPlaybackService }
>
> Have the permissions to bind to the IMediaServiceConnetion been
> revoked for gingerbread?
>
> Here is the code I'm running from my class that is a child of
> ServiceConnection
>
> Intent i = new Intent();
> i.setClassName("com.android.music",
> "com.android.music.MediaPlaybackService");
> a.bindService(i, (ServiceConnection) this, 0);
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en