Remove a parent activity link, Android -


i removed parent activity setting in android manifest of app, when run app on android device, in action bar still shown simbol on right (even if doesn't work if touch on it). how can remove that?

here manifest's section activity:

<activity         android:name=".activities.allsitesactivity"         android:label="@string/app_name"         android:theme="@style/apptheme">         <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.launcher" />         </intent-filter>         <intent-filter>             <action android:name="android.intent.action.send" />             <category android:name="android.intent.category.default" />             <data android:mimetype="text/plain" />         </intent-filter>      </activity> 

and here menu of activity:

<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.example.alessandroc.mynews.activities.allsitesactivity"> <item     android:id="@+id/action_settings"     android:orderincategory="103"     android:title="@string/action_settings"     app:showasaction="never" />  <item     android:id="@+id/action_new_folder"     android:orderincategory="102"     android:title="@string/action_new_folder"     app:showasaction="never" />  <item     android:id="@+id/action_new"     android:orderincategory="100"     android:title="@string/action_new"     android:icon="@drawable/ic_action_new"     app:showasaction="ifroom"     /> 

try setting in oncreate() method of activity :

getactionbar().setdisplayhomeasupenabled(false)


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -