Retrieve System Default Android Contact Picture

2019-02-24 06:17发布

I know this may sound strange, but I want to retrieve the system default contact picture. You know, that icon that's used when there is no picture for the contact. It differs between different versions of Android, but it's generally a blank face, or a grey android, or whatever.

Can I get that image from the system and use it in my app?

2条回答
Luminary・发光体
2楼-- · 2019-02-24 06:45

You can find them in the drawable folder of the resources that come with the emulator.

\android-sdk\platforms\android-v#\data\res\drawable\

查看更多
干净又极端
3楼-- · 2019-02-24 06:46

I dont think you can get the picture programmatically in app, because that image is private to Phone app of android.

If you want to copy the picture to your folder, it will be present at

/packages/apps/Phone/res/drawable-hdpi/picture_unknown.png

in AOSP code

查看更多
登录 后发表回答