Change startup icon and application name programmatically

I saw a lot of messages like How to change the icon and label of the application after installing it? , but any of these messages could give me the exact answer how to solve my problem.

I used this, but only changes the action bar icon:

Button appicon1; appicon1.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { getActionBar().setIcon(R.drawable.ic_launcher); } }); 

Acceptance of any examples would be greatly appreciated.

Thanks in advance:)

+3
source share
1 answer

see this answer: fooobar.com/questions/38703 / ... : The main idea is to change the Activity section in AndroidManifest .xml and then create <activity-aleas> for each of your icons and then set the inclusion attribute for the corresponding alias programmatic activity

+5
source

Source: https://habr.com/ru/post/1015036/


All Articles