In my android app i need implement a functionality that allow ask the user if he wish rate this app, if the response is \"yes\" i am going to redirect to androidmarket app,
There is no official way to know this. There shouldn't be.
The step from an application being able to determine what my rating for it is, to an application that attempt to retaliate because of a bad review is very small.
The fact that some of this information is exposed for 3rd party APIs like android-market-api worries me a lot. I will certainly not be leaving any comments for any application. In fact, I will not even rate applications, and I would be recommending to any of my friends to avoid doing so as well.
Now back to your particular problem:
you shouldn't rely on knowing if the user has rated/reviewed your application. The best you can do is ask the user with a dialog that offers Review, and Later buttons. If the user clicks on Review you never ask him again. if the user clicks on Later, you ping him in couple of days again. if the user clicked Later two times, chances that he will leave a review are slim. In fact, the more you bug the user, the more likely they will leave a negative rating, so I'd say showing the dialog twice is probably the best approach.
Well google have introduces API for getting the review of your app.
The Google Play Developer Reply to Reviews API allows you to view user feedback for your app and reply to this feedback. You can use this API to interact with users directly within your existing customer support toolkit, such as a CRM system.
The Reply to Reviews API allows you to access feedback only for production versions of your app. If you want to see feedback on alpha or beta versions of your app, use the Google Play Developer Console instead. Also, note that the API shows only the reviews that include comments. If a user rates your app but does not provide a comment, their feedback is not accessible from the API.
Source From