I am working on Messages and issue which i am facing here is default messenger app is not opening in Lenovo K8 Note (7.1.1) on tapping the button and this issue occurs only in this device.I analysed forums but i didnt get a proper solution.Suggest me how to resolve this issue.
chat.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
try {
Intent sms = new Intent(Intent.ACTION_VIEW);
sms.setType("vnd.android-dir/mms-sms");
sms.putExtra("sms_body_popup",
getResources()
.getString(R.string.custom_refer_message_chat)
+ "\n" + str_url);
startActivity(sms);
} catch (Exception e) {
Toast.makeText(
getApplicationContext(),
getResources()
.getString(R.string.no_default_apps),
Toast.LENGTH_LONG).show();
}
}
});