I want to retrieve all posts of a blog without username & password

XML-RPC is what you need. Enable it on your site and use WordPress XML-RPC API to get information which you need.

Related thread on stackoverflow: Android XML-RPC library?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)