assinging ring tone from a application in android

by ragu » Sat, 14 Mar 2009 02:11:12 GMT


Sponsored Links
 Hi all i am getting errors in the lines of code given below :

public class RecordController extends Activity implements
MusicUtils.Defs {
        final int STATE_START = 2;
    final int STATE_STOP = 1;
    final int STATE_IDLE = 0;
    public IMediaPlaybackService mService = null;


The error message is :


    IMediaPlaybackService cannot be resolved to a type
    IMediaPlaybackService cannot be resolved to a type
    IMediaPlaybackService cannot be resolved to a type
    IMediaPlaybackService cannot be resolved to a type
    MusicUtils cannot be resolved

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



Other Threads

1. Multi-process applications and Android Market

The Android Market appears to only support "applications" that are a
single APK.
I've asked over there if this is not the case and Google says making
it a single
APK is the answer.

We have an application that has a long-lived background service and a
user interface
application, in two distinct processes.  Development is done with
Eclipse as two
distinct project/packages yeilding two APKs that are installed.  This
works just fine,
except that the Market doesn't support it.

I've mushed the two projects together into one which yeilds one APK
with the
service marked as run in a separate process.  This functions properly
and the service
remains running without the UI.  However I am unable to debug in the
service since
the process is not visible to me.

Not being able to debug the major part of the code is not condusive to
producing
substantive applications.  Having to develop the code as distinct
projects and then
when complete mush it together and hope for the best is not good
engineering.

Flipping the "remote" switch in the manifest for the service is not
very viable since a
lot of code that will run correctly as a single process will fault
when split and without
being able to debug into both process finding these is going to be
very painful.

Am I missing something?

tia,
  mike

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

2. HttpGet problem with Chunked encoding

Hi Guys

I am having issues retrieving the contents of a chunk encoded web
page. all pages that I try to retrieve throw:
  org.apache.http.MalformedChunkCodingException: Chunked stream ended
unexpectedly

If I retrieve a page with no chunk encoding, the code works fine.


HttpClient httpClient=new DefaultHttpClient();
HttpGet httpGet=new HttpGet(url);
ResponseHandler<String> rh=new BasicResponseHandler();
String response=httpClient.execute(httpGet,rh);

This will work with www.nds.com (no chunk encoding)
but fail with www.google.co.uk (chunk encoding)

Now, I am assuming this is a problem with the apache httpclient
library, but wanted to know if anyone else has seen this problem and
if there is a way of working around it in the current release.

I am using android-sdk-linux_x86-1.1_r1

Regards

Matt

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

3. Failed to execute the Launcher built by myself

4. Cant view images

5. add tab cause exception

6. Debug - Tracing

7. How to see image and media files in SDCard from emulator