I am novice android developer & i am learning android from this 开发者_高级运维book http://www.informit.com/store/product.aspx?isbn=9780321673350
I am on chapter 10.
Everything is working fine but when i click on "settings" tab than the following error flashes - Unable to open stack trace file '/data/anr/traces.txt/: Permission denied
& after this all i see is a blank screen.
Please guide me
Thanks
Make sure adb is in you system path or cd to it first.
Then try the following:
adb shell
cd \data
chmod 777 anr
Then try again.
Don't ask me why the permissions go wonky, but I've had this too.
Try getting rid of the trailing slash; this is a file, not a directory.
I solved this error by passing the correct context to the Traces class method call.
精彩评论