Hi,

When I do to DDMS->Device Menu and try to select the service process
by clicking the green bug, I get error as "No open project found for
com.example.testservice:remote. Debug session failed".
Actually both the service and activity process is part of same
project  and both source files are present in same folder.

I can see  following port numbers

Activity -> com.example.testservice            , port number as 8611
Service -> com.example.testservice:remote , port number as 8614/8700


Few more info if it helps -  I have an an AIDL file and in service
class I'm implementing the AIDL interface functions in Interface stub
class.

Note: I'm trying to run the service in different process for 2
reasons :
1) For general understanding and how to debug multiprocess activity/
service
2) If activty is closed I still need to run service in background say
running music in background. Activity will allow user to select the
music. Service in different process would run the music in background
if user is doing other things on phone.

Regards,
Manoj


On Tue, Dec 16, 2008 at 10:58 PM, Dianne Hackborn <[email protected]>wrote:

> It can be pretty awkward -- you need to manually connect to the process you
> want to debug (ddms will tell you the port number to connect to), and then
> you can pause threads and have your breakpoints for code running there be
> hit.
>
> Why are you having your service run in a separate process?  This is not
> generally something people should be doing, since it require a lot more
> overhead.
>
> On Mon, Dec 15, 2008 at 11:17 PM, mnj <[email protected]> wrote:
>
>>
>> Hi,
>>
>> I have a activity and service which are running as a seperate process.
>> I'm able to see the logs of activity(process1) and service(process2)
>> in logcat.
>>
>> But when I keep breakpoint in service process its not hitting there.
>> Breakpoint works only in activity process.
>>
>> Can someone tell me how can I debug multi process in eclipse.
>> Currently, for debugging purpose I'm making service and activity to
>> run as same process.
>>
>> Regards,
>> Manoj
>>
>>
>>
>>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to