Reputation: 1610
I've seriously tried everything.
I've tried both setLogo()
and setIcon()
.
I've tried adding android:logo=""
in manifest.
I've made sure to try both supportActionBar and regular ActionBar. (I'm running sdk 21 with a min sdk of 15.)
The funny thing is if I try to use the regular ActionBar I get null pointers but when I use the support ActionBar it at least works.
Is there anything else I can try...? Here's where I try and change it.
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ActionBar ab = getSupportActionBar();
ab.setLogo(R.drawable.logo);
Upvotes: 0
Views: 200
Reputation: 44178
If your min sdk is 15, i'm not sure why you're using the support package at all.
You class should instead extend Activity
, and use getActionBar()
.
Upvotes: 1