Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve System Default Android Contact Picture

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?

like image 616
Randy Avatar asked Dec 26 '22 18:12

Randy


2 Answers

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

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

like image 195
Aprian Avatar answered Jan 05 '23 04:01

Aprian


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

like image 37
nandeesh Avatar answered Jan 05 '23 06:01

nandeesh