How to navigate up to the same parent state

The “standard” behaviour for an android activity is, that a new instance of the activity is created, every time there is a new intent for this activity (see launchMode-docu here). Because of this your extras seem to be gone, if you call navigateUpTo. In your case, I would advise to use android:launchMode=”singleTop” for your parent … Read more

Using actionbar home as up button, home activity saveInstanceState is always null

In the onCreate() enable the home button. @Override public void onCreate(Bundle savedInstanceState) { … getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayShowHomeEnabled(true); } In the onOptionItemSelected() method do this. @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { // Respond to the action bar’s Up/Home button case android.R.id.home: NavUtils.navigateUpFromSameTask(this); return true; } return super.onOptionsItemSelected(item); } This should enable Up navigation. If … Read more

How to change action bar size

Use height attribute, actionBarSize if for something else. <item name=”android:height”>@dimen/bar_height</item> Explanantion: From source code of ActionBar: mContentHeight = a.getLayoutDimension(R.styleable.ActionBar_height, 0); We can see that R.styleable.ActionBar_height is being used for height. Stylable property names are generated as component_attribute (If you have ever used a custom stylable view, you’d have notice this). Hence, Actionbar is the name … Read more

InflateException: Couldn’t resolve menu item onClick handler

I found a solution that worked for me. Usually the onClick attribute in a layout has the following method public void methodname(View view) { // actions } On a menu item (in this case Sherlock menu) it should follow the following signature: public boolean methodname(MenuItem item) { // actions } So, your problem was that … Read more

Android up navigation for an Activity with multiple parents

I will stick with my comment on Paul’s answer: The idea is to have a Stack of the last Parent Activities traversed. Example: public static Stack<Class<?>> parents = new Stack<Class<?>>(); Now in all your parent activities (the activities that are considered parents -e.g. in your case: List and Home), you add this to their onCreate: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)