Android how to open whatsapp in my app

Android how to open whatsapp in my app
ref‮al:ot re‬utturi.com
String url = "https://api.whatsapp.com/send?phone="+number;

Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));

startActivity(i);
Created Time:2017-09-12 11:01:42  Author:lautturi