我想在android中获取whatsapp的uid,我知道Whatsapp的包名.我怎样才能做到这一点?谢谢.
我用以下代码找到了WhatsApp的uid
int uid = 0; try { uid = this.getPackageManager().getApplicationInfo("com.whatsapp", 0).uid; } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); }