Questions tagged [up-button]

In Android 3.0 and above, the Up button is used to navigate within an app based on the hierarchical relationships between screens.

As of Android 3.0, the Up button was added. It works similarly to the back button, but it never lets a user exit an app.

For more information, please refer to Android Developers design patterns

48 questions
2
votes
1 answer

Navigation Up button not working in Preference Activity

I am using ActionBarSherlock and in my Preference Activity, as soon as I add the @Override onOptionsItemSelected function, I get an error. The error - The method onOptionsItemSelected(MenuItem) of type SettingsActivity must override or implement a…
1
vote
3 answers

Activity's Up button to navigate to different activities

I have an activity MyActivity with the standard Up button implemented in its toolbar (left arrow on top-left of screen). This activity is unique in that the user can navigate to it from multiple activities in my app. I need this Up button to direct…
1
vote
1 answer

Up button is not worrking

I have implemented basic activity template in my project.But up button is not working in app, I have also modified menifest file. I am shring code sninipet for suggestion. Edit: I am sharing the entire activity code in place of snippet public class…
AZIM MOHAMAD
  • 72
  • 11
1
vote
1 answer

Android up button isn't working

I have a simple application. It consists of Activity A and Activity B. When I start at Activity A (from the launcher icon) and then navigate to Activity B, and then hit the up button. I arrive at Activity A. Perfect. Yet when I start activity B from…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
1
vote
1 answer

Up navigation reloads loader but back navigation doesn't

I am using an AsyncTaskLoader to load data into an ArrayList coming from an HTTPRequest. Once loaded, data is displayed via recycler view as a list. When I click on an item of the list, an activity B gets triggered showing a detailed screen for that…
JaviMar
  • 375
  • 5
  • 18
1
vote
0 answers

Notify loop with up toolbar button android

first of all sorry for my horrible english, this is my problem: I have a MainActivity.class that set the alarmmanager, at the specific time my alarmReceiver check on database if there is a specific record. If the check result false, he start the…
BeginnerNub
  • 15
  • 1
  • 4
1
vote
0 answers

Using a slide transition (AP1 level 21) with up button?

I am trying to set a transition for returning to the parent activity when the up button is pressed in one of my activities. I want to use the slide transition introduced in API level 21, but that doesn't work with overridePendingTransition which is…
1
vote
1 answer

How do I set the activity of the Android Up-button dynamically?

The following two methods seem like they should do the trick, but I can't get them to work. Does anyone how to get these methods to work, or know of another…
abc32112
  • 2,457
  • 9
  • 37
  • 53
1
vote
0 answers

Actionbar up button shown in the wrong location

I'm running my application on 2 devices: Galaxy Nexus and Asus Transformer tf101. On the G-N (4.2.2), the up button is shown BUT on the Transformer(4.0.3) it isn't. Any idea why this happens and how to overcome it? Meaning, I'd like a consistant…
AlikElzin-kilaka
  • 34,335
  • 35
  • 194
  • 277
1
vote
3 answers

Want to run the up-button only after api level 11

I wants the up-button only on API level 11 and later, but my program need to run on all devices. How can i do this? ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); OR Can I add up-button to all API levels? Please…
Alex Chengalan
  • 8,211
  • 4
  • 42
  • 56
1
vote
1 answer

Up button in Android ActionBar Compatibility, it is possible?

I'm using the actionBar compatibility api for my app. I'm trying to show the up button at the left of the app icon. I know how to do that with the original ActionBar class, but I can't figure out how to do the same with the ActionBar Compat (I…
user1116714
  • 315
  • 2
  • 3
  • 12
0
votes
1 answer

Bottom Navigation with Drawer Layout in the same app - Up icon issue

I am a beginner developer for android and I find quite difficult to build the following app. I'd like to create an app that can use both Bottom Navigation View and Drawer Layout. I succeeded on doing it because both these items are working properly…
0
votes
0 answers

jQuery go up button stopped working after worked once

I have putted together some basic website features by applying jquery in a testing page and the features includes smooth scrolling, assign active class to focused section when scrolling up & down web page, shrinking navbar and go back to the top…
Sen123
  • 97
  • 1
  • 8
0
votes
3 answers

What differs Up Button to Back Button? And how to make Up Button work like Back Button?

In terms of how each button treat the activities? What are the differences? I have 3 activities (let's call them A, B, and C). A is B's parent and B is C's parent, and one intent take a extra to the the next activity. I go from A to B and then B to…
João Vítor
  • 11
  • 1
  • 7
0
votes
2 answers

How to handle up button in toolbar - Kotlin

I have manually/programmatically set up an up button in my toolbar for a fragment page with the following code in onCreateOptionsMenu in the fragment: (activity as AppCompatActivity).setSupportActionBar?.setDisplayHomeAsUpEnabled(true) Tapping the…