Am working on android app on which am inserting data to the database.if i get the result "Ok" from server then i want to redirect it to the playstore url .but when am hitting the url on browser its working fine but when am working with android device its not redirecting to the specified url. here is my server code :
frmRefer.insertReferId(refer);
responseStr.setStatus(ServerResponse.STATUS.OK);
responseStr.setData(refer);
String serialId=responseStr.getData().getSerialId();
response.sendRedirect("https://play.google.com/store/apps/details?id=PACKAGE NAME&referrer=utm_source=admob&utm_medium=cpc&utm_term="+referId+"&utm_campaign=""&anid=admob");
session.commit();