Reputation: 21
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
Upvotes: 2
Views: 16402
Reputation: 25547
I solved this error by passing the correct context to the Traces class method call.
Upvotes: 0
Reputation: 4078
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.
Upvotes: 5
Reputation: 91341
Try getting rid of the trailing slash; this is a file, not a directory.
Upvotes: 2