For myself, I will put a series of these debug statements in code as
it executes, reporting in near real time what is happening as the code
executes.
If the code crashes, Android displays its error messages in the LogCat
also so I can watch what is happening at the point I'm interested in.

Wes


On Oct 29, 5:32 am, Jakob Sachse <[EMAIL PROTECTED]> wrote:
> Hi,
>
> thanks for the answer. Though I didn't get your point.
> myserviceprocess is expected to be some string, concluding the
> content is the name of the process: What would be the adavantage
> over the DDMS Device view, that lists all the running processes?
>
> I do see the process that i want to debug, only i can't turn it on.
> It has the same name as the activity (that is in debug mode) but
> ends with :remote
>
> On 29 Okt., 11:50, wescorp <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Try putting some code like this
>
> > String LOG_TAG = "my service process =";
> > Log.d(LOG_TAG, myserviceprocess);
>
> > in your code to monitor whats happening.
>
> > The results are displayed in Debug> LogCat.
>
> > Cheers,
> > Wes
>
> > On Oct 29, 4:00 am, Jakob Sachse <[EMAIL PROTECTED]> wrote:
>
> > > Hallo,
>
> > > I am trying to write a Service thats runs in a seperate process.
> > > I am willing to use the Service through IPC from an Activity.
>
> > > thats how my section of the AndroidManifest looks like:
> > > #######
> > > <service android:name="MyService" android:process=":remote">
> > >         <intent-filter>
> > >                 <action android:name="com.smth.IRemoteService" />
> > >         </intent-filter>
> > > </service>
>
> > > <activity android:name=".UTI" android:label="@string/app_name">
> > >         <intent-filter>
> > >                 <action android:name="android.intent.action.MAIN" />
> > >                 <category android:name="android.intent.category.LAUNCHER" 
> > > />
> > >         </intent-filter>
> > > </activity>
> > > #######
>
> > > Yet when I start the App (using eclipse: debug as -> android app), i
> > > can debug the Activity but not the Service. Switching to DDMS gives me
> > > an overview of running processes, using the "green bug" for enabeling
> > > debug for the services process results in:
>
> > > "no open project fround for com.smth:remote, Debug Session failed".
>
> > > Anyway the project is open.
>
> > > Have i forgotten do declare something in the debug configuration
> > > dialog? Any hint is appreciated
--~--~---------~--~----~------------~-------~--~----~
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