java,android,android-fragments,android-actionbaractivity
there are many questions about the topic but i can't figure out my problem. I have a menu declared in my MainActivity(ActionBarActivity). Now i want to work with MenuItem in onOptionsItemSelected of a Fragment class. Here is my MainActivity methods @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return super.onCreateOptionsMenu(menu);...

android,dependencies,deprecated,android-actionbaractivity,floating-action-button
I'm somewhat of a newbie so do excuse me if this is really basic. Anyway, in an attempt to add a Floating Action Button (FAB) to my layout, I decided to add a dependency to a library, like this: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2...

android,google-maps,android-studio,android-actionbaractivity
I am developing an app in Android Studio version 1.2.1.1. In which I use minsdk 15 and I what to use GoogleMap but When i am adding compile 'com.google.android.gms:play-services:7.3.0' or compile 'com.android.support:appcompat-v7:22.1.1' in build.gradle. Then ActionBarActivity shows an error android.support.v7.app.actionbaractivity is deprecated. I searched and found some suggestions to use...

android,android-activity,android-actionbar,android-actionbaractivity
My class extends ActionBarActivity from the android.support.v7.app package. I witnessed the following effect: The setTitle() method works fine all the time. But when the app was put in the background, removed from the processes (tested with developer settings -> restrict background processes) and recreated, the Activity is recreated fine but...

android,android-fragments,android-actionbaractivity
I have 3 Fragments, and in Fragment3 I want display an icon in my ActionBar, this is works fine but when I do back to other fragments like Fragment1 and Fragment2 the icon stay visible(true) I tried add item.setVisible(false) in onPause of Fragment, but doesn't works and the icon stay...

android,android-fragments,android-actionbar,android-actionbaractivity
I am extending the ActionBarActivity and use fragments in this activity. But the actionbar does not show any button. Here is my code (inside the fragment): @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { // TODO Auto-generated method stub inflater.inflate(R.menu.menu_for_edit_fragments, menu); super.onCreateOptionsMenu(menu, inflater); } And here is the menu_for_edit_fragments.xml: <?xml...

android,listview,android-actionbaractivity
My MainActivity, which extends ActionBarActivity, has a ListView, which I want to reload using notifyDataSetChanged(), but I do not know how to do this. My code so far: public class MainActivity extends ActionBarActivity { private JournalEntryDataSource datasource; private ListView listView = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);...

android,android-actionbar,android-support-library,android-toolbar,android-actionbaractivity
I'm Trying to add a toolbar to an activity. But I'm getting this error: java.lang.NoClassDefFoundError: android.support.v7.app.ActionBarActivityDelegateBase$2 at android.support.v7.app.ActionBarActivityDelegateBase.ensureSubDecor(ActionBarActivityDelegateBase.java:304) at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:225) at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102) at...

android,android-fragments,android-actionbaractivity
I have started creating fragments in my app which are inflated using a side menu. The problem is none of the fragments, 1 of which is as it was when it was automatically generated using the android studio template, appear to be executing any code. This is probably a case...

android,android-actionbar,android-actionbaractivity
I tried to add buttons with icons to the Action Bar so I followed the info on the android developer page. However despite having assigned icons, the buttons will only be displayed in the overflow and not on the bar itself. I want the buttons to appear on the bar...

java,android,android-actionbaractivity
This question already has an answer here: android.util.AndroidRuntimeException: requestFeature() must be called before adding content 5 answers how to hide title bar from Android ActionBarActivity I have tried everything but did not get success. getting that Exception : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dan.msdashboard/com.dan.msdashboard.FirstActivity}: android.util.AndroidRuntimeException: requestFeature() must be called...

android,toolbar,menuitem,android-toolbar,android-actionbaractivity
I simply want a back button in left side of toolbar.But when i added with following code ,appear in right side of toolbar.how can i change to it to left side? my code <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="com.me.myapp.activities.Timer"> <item android:id="@+id/backButton" android:title="Back Button" android:icon="@mipmap/back_icon" app:showAsAction="ifRoom"></item> </menu> ...

android,listview,android-actionbar,android-actionbaractivity
Here is my Activity:I am trying to call "onListItemClicked" But it is only supported by ListActivity? I want to use ActionBarActivity because I want a bar with "Logout" and "Update". With ListActivity it won't show. Any idea of what I'm doing wrong? package com.example.test.test; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.os.Bundle;...