debugging - Breakpoints not working with a service in Android -


i'm trying debug service i'm unable since breakpoints not work. yes, have used android.os.debug.waitfordebugger(), doesn't matter use (before line, in onstartcommand, in method) doesn't work. have breakpoints set, service not stop @ them. have tried them on normal activity, work fine there.

in androidmanifest.xml add property android:process=":sync" service entry:

<service         android:name=".syncservice"         android:exported="true"         android:process=":sync" >         <intent-filter>             <action android:name="android.content.syncadapter"/>         </intent-filter>         <meta-data             android:name="android.content.syncadapter"             android:resource="@xml/syncadapter"/> </service> 

after start application in debug mode , when it's loaded click "attach process" button. in list should see 2 processes:

com.yourpackage com.yourpackage:sync 

select :sync 1 , in business.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -