<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Android - binding to the Music app service to find currently playing song</title>
	<atom:link href="http://www.alexc.me/android-music-app-service-currently-playing-song/231/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/</link>
	<description>Fun things about web development, Facebook, iPhone, and whatever else I happen to be working on.</description>
	<pubDate>Thu, 11 Mar 2010 23:29:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jorge Rivera</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-583</link>
		<dc:creator>Jorge Rivera</dc:creator>
		<pubDate>Thu, 10 Dec 2009 19:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-583</guid>
		<description>Hi,

Thanks a lot for the post, it was really helpful!

Has anyone tried to enqueue a list of songs using the .enqueue method?  I have a little problem with it: I send a bunch of songs and only the first HALF of the songs get added to the list. I tried using the NOW, NEXT and LAST position options, and various sizes of lists of songs. For an odd number of songs, it adds half of (list+1).

Any ideas?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks a lot for the post, it was really helpful!</p>
<p>Has anyone tried to enqueue a list of songs using the .enqueue method?  I have a little problem with it: I send a bunch of songs and only the first HALF of the songs get added to the list. I tried using the NOW, NEXT and LAST position options, and various sizes of lists of songs. For an odd number of songs, it adds half of (list+1).</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NPS</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-581</link>
		<dc:creator>NPS</dc:creator>
		<pubDate>Sat, 05 Dec 2009 21:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-581</guid>
		<description>Hi can you pls give us a working example ,
What we are trying to do is tag the currently playing song so for that we need to get the info like the actual path to the song and also the artist info and all some how i cannot find the IMediaPlaybackService.aidl file in my android sdk 

could you direct me towards that</description>
		<content:encoded><![CDATA[<p>Hi can you pls give us a working example ,<br />
What we are trying to do is tag the currently playing song so for that we need to get the info like the actual path to the song and also the artist info and all some how i cannot find the IMediaPlaybackService.aidl file in my android sdk </p>
<p>could you direct me towards that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathya</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-571</link>
		<dc:creator>Sathya</dc:creator>
		<pubDate>Mon, 30 Nov 2009 14:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-571</guid>
		<description>Hi MarGau,

Thanks for the reply. It worked.. :-)</description>
		<content:encoded><![CDATA[<p>Hi MarGau,</p>
<p>Thanks for the reply. It worked.. <img src='http://www.alexc.me/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarGau</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-549</link>
		<dc:creator>MarGau</dc:creator>
		<pubDate>Fri, 20 Nov 2009 14:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-549</guid>
		<description>The problem is that the IMediaPlaybackService needs to be defined within package com.android.music you cannot change this as you then experience the security exception.
The exception basically says that the expected interface is "com.android.music.IMediaPlaybackService" whereas you defined something else.

In order to fix this you need to have in your source tree:
  src\com\android\music\IMediaPlaybackService.aidl
parallel to your code. Then you don't have to rename the package and everything works fine.</description>
		<content:encoded><![CDATA[<p>The problem is that the IMediaPlaybackService needs to be defined within package com.android.music you cannot change this as you then experience the security exception.<br />
The exception basically says that the expected interface is &#8220;com.android.music.IMediaPlaybackService&#8221; whereas you defined something else.</p>
<p>In order to fix this you need to have in your source tree:<br />
  src\com\android\music\IMediaPlaybackService.aidl<br />
parallel to your code. Then you don&#8217;t have to rename the package and everything works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathya</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-547</link>
		<dc:creator>Sathya</dc:creator>
		<pubDate>Fri, 20 Nov 2009 06:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-547</guid>
		<description>Hi,

Thanks for the article..It really helped us to start the application. But when I tried the example in emulator I am getting an exception on trying to use the interface functions…It throws the exception “Binder invocation to an incorrect interface”

The following are the steps followed
1) Copied the AIDL file (IMediaPlayBackService.aidl) to my package folder
2) Renamed the package in teh aidl file to my application(As it shown error when include to the package folder)
3) Bind a service.
4) And tried to use the service in the onServiceCOnnected callback function after getting the interface using the code
mService = IMediaPlaybackService.Stub.asInterface((IBinder)service);

But exception is thrown on trying to use the interface functions.

Could you please let me know what might be the problem?

Thanks in advance for the reply.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the article..It really helped us to start the application. But when I tried the example in emulator I am getting an exception on trying to use the interface functions…It throws the exception “Binder invocation to an incorrect interface”</p>
<p>The following are the steps followed<br />
1) Copied the AIDL file (IMediaPlayBackService.aidl) to my package folder<br />
2) Renamed the package in teh aidl file to my application(As it shown error when include to the package folder)<br />
3) Bind a service.<br />
4) And tried to use the service in the onServiceCOnnected callback function after getting the interface using the code<br />
mService = IMediaPlaybackService.Stub.asInterface((IBinder)service);</p>
<p>But exception is thrown on trying to use the interface functions.</p>
<p>Could you please let me know what might be the problem?</p>
<p>Thanks in advance for the reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sathya</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-546</link>
		<dc:creator>Sathya</dc:creator>
		<pubDate>Fri, 20 Nov 2009 06:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-546</guid>
		<description>Hi,

Thanks for the artcile..It really helped us to start the application. But when I tried the example in emulator I am getting an exception on trying to use the interface functions...It throws the exception "Binder invocation to an incorrect interface"

The following are the steps followed
1) Copied the AIDL file (IMediaPlayBackService.aidl) to my package folder
2) Renamed the package in teh aidl file to my application(As it shown error when include to the package folder)
3) Bind a service.
4) And tried to use the service in the onServiceCOnnected callback function after getting the interface using the code
mService = IMediaPlaybackService.Stub.asInterface((IBinder)service);

But exception is thrown on trying to use the interface functions.

Could you please let me know what might be the problem?

Thanks in advance for the reply.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the artcile..It really helped us to start the application. But when I tried the example in emulator I am getting an exception on trying to use the interface functions&#8230;It throws the exception &#8220;Binder invocation to an incorrect interface&#8221;</p>
<p>The following are the steps followed<br />
1) Copied the AIDL file (IMediaPlayBackService.aidl) to my package folder<br />
2) Renamed the package in teh aidl file to my application(As it shown error when include to the package folder)<br />
3) Bind a service.<br />
4) And tried to use the service in the onServiceCOnnected callback function after getting the interface using the code<br />
mService = IMediaPlaybackService.Stub.asInterface((IBinder)service);</p>
<p>But exception is thrown on trying to use the interface functions.</p>
<p>Could you please let me know what might be the problem?</p>
<p>Thanks in advance for the reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: music</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-545</link>
		<dc:creator>music</dc:creator>
		<pubDate>Tue, 17 Nov 2009 14:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-545</guid>
		<description>@ud

bindService is asynchronous. You can only use the service after onServiceConnected was called.</description>
		<content:encoded><![CDATA[<p>@ud</p>
<p>bindService is asynchronous. You can only use the service after onServiceConnected was called.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: music</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-544</link>
		<dc:creator>music</dc:creator>
		<pubDate>Tue, 17 Nov 2009 14:34:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-544</guid>
		<description>Thanks for this article! It describes just, what I am about to try. But I ran into a problem:
The catch clause catches a Security Exception "Binder invocation to an incorrect interface"

I copied the aidl file to my project and changed the package to my package. When I run my test app in the emulator it connects to the service, but when I try tu use it I get the mentioned exception.

Any idea what might be the problem? Am I using the wrong aidl file?</description>
		<content:encoded><![CDATA[<p>Thanks for this article! It describes just, what I am about to try. But I ran into a problem:<br />
The catch clause catches a Security Exception &#8220;Binder invocation to an incorrect interface&#8221;</p>
<p>I copied the aidl file to my project and changed the package to my package. When I run my test app in the emulator it connects to the service, but when I try tu use it I get the mentioned exception.</p>
<p>Any idea what might be the problem? Am I using the wrong aidl file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ud</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-532</link>
		<dc:creator>ud</dc:creator>
		<pubDate>Wed, 11 Nov 2009 13:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-532</guid>
		<description>@adam..
plz tell ur silly mistake.. i m getting the same NullPtrExp.  Im  calling bindService(xx) before using the methods in service. but still getting the exception. 
The main thing is that, when i call some methods on some button click, it works fine. But when I call the same methods in onStart() or onCreate() of Activity, I get NullptrExp. :(
any help???</description>
		<content:encoded><![CDATA[<p>@adam..<br />
plz tell ur silly mistake.. i m getting the same NullPtrExp.  Im  calling bindService(xx) before using the methods in service. but still getting the exception.<br />
The main thing is that, when i call some methods on some button click, it works fine. But when I call the same methods in onStart() or onCreate() of Activity, I get NullptrExp. <img src='http://www.alexc.me/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
any help???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dghgh</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/comment-page-1/#comment-515</link>
		<dc:creator>dghgh</dc:creator>
		<pubDate>Sun, 08 Nov 2009 04:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexc.me/?p=231#comment-515</guid>
		<description>what was the silly mistake?  I keep getting the NullPointerException when i call my services method and i prettymuch followed the tutorials.</description>
		<content:encoded><![CDATA[<p>what was the silly mistake?  I keep getting the NullPointerException when i call my services method and i prettymuch followed the tutorials.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
