Questions tagged [navigation]

Navigation refers to the process of navigating a network of resources, and the user interface that is used to do so.

Navigation refers to the process of navigating a network of resources and the user interface that is used to do so.

A navigation system is a (usually electronic) system that aids is navigation.

Navigation systems may be capable of:

  • containing maps, which may be displayed in human readable format via text or in a graphical format
  • determining a vehicle or vessel's location via sensors, maps or information from external sources
  • providing suggested directions to a human in charge of a vehicle or vessel via text or speech
  • providing directions directly to an autonomous vehicle such as a robotic probe or guided missile
  • providing information on nearby vehicles or vessels, or other hazards or obstacles
  • providing information on traffic conditions and suggesting alternative directions

Types of navigation systems

14678 questions
1172
votes
3 answers

How to get the browser to navigate to URL in JavaScript

What is the best (correct, modern, cross-browser, safe) way to get a web browser to navigate to a URL of your choice using JavaScript?
jjujuma
  • 22,055
  • 12
  • 44
  • 46
327
votes
15 answers

How to hide 'Back' button on navigation bar on iPhone?

I added a navigation control to switch between views in my app. But some of the views shouldn't have 'Back' (the previous title) button. Any ideas about how to hide the back button?
Chilly Zhong
  • 16,763
  • 23
  • 77
  • 103
285
votes
16 answers

flutter remove back button on appbar

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page. The reason I do not want it on this resulting page is that it is coming from the…
Robert
  • 5,347
  • 13
  • 40
  • 57
267
votes
3 answers

How to navigate through the source code by parts in CamelCase (instead of whole words)?

I remember when I was using Eclipse that when holding CTRL and using left or right arrows Eclipse would navigate over the LongCamelCaseWrittenWord in several steps. One camel case word at time. So it will go like follows (pipe | represents the…
Jan Zyka
  • 17,460
  • 16
  • 70
  • 118
232
votes
24 answers

Force Flutter navigator to reload state when popping

I have one StatefulWidget in Flutter with button, which navigates me to another StatefulWidget using Navigator.push(). On second widget I'm changing global state (some user preferences). When I get back from second widget to first, using…
bartektartanus
  • 15,284
  • 6
  • 74
  • 102
217
votes
6 answers

disable the swipe gesture that opens the navigation drawer in android

I've been following the navigation drawer guide by Google and I'd like to add it to an Activity with tabs and gestures. I'd like to disable the gesture to open the navigation drawer, does anyone have any idea how to do this?
user1627990
  • 2,587
  • 2
  • 16
  • 18
212
votes
13 answers

Same Navigation Drawer in different Activities

I made a working navigation drawer like it's shown in the tutorial on the developer.android.com website. But now, I want to use one Navigation Drawer, i created in the NavigationDrawer.class for multiple Activities in my Application. My question is,…
MEX
  • 2,664
  • 5
  • 22
  • 28
203
votes
11 answers

Should I use window.navigate or document.location in JavaScript?

What's the preferred method to use to change the location of the current web page using JavaScript? I've seen both window.navigate and document.location used. Are there any differences in behavior? Are there differences in browser implementations?
dthrasher
  • 40,656
  • 34
  • 113
  • 139
174
votes
8 answers

How to navigate back to the last cursor position in Visual Studio?

What is the keyboard shortcut navigate back to the last cursor position in Visual Studio?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
169
votes
4 answers

Custom navigation with Navigator component in React-Native

I’m exploring possibilities of React Native while developing a demo app with custom navigation between views with the help of Navigator component. The main app class renders navigator and inside renderScene returns passed component: class App…
Kosmetika
  • 20,774
  • 37
  • 108
  • 172
151
votes
32 answers

Handling back button in Android Navigation Component

I'd like to know how properly handle system back button action using Navigation Controller. In my app I have two fragments (for ex. fragment1 and fragment2) and I have an action in fragment1 with destination to fragment2. Everything works well…
Kiryl Tkach
  • 3,118
  • 5
  • 20
  • 36
141
votes
11 answers

Is there a way to keep fragment alive when using BottomNavigationView with new NavController?

I'm trying to use the new navigation component. I use a BottomNavigationView with the navController : NavigationUI.setupWithNavController(bottomNavigation, navController) But when I'm switching fragments, they are each time destroy/create even if…
IdAndro
  • 1,433
  • 2
  • 8
  • 7
128
votes
8 answers

IntelliJ 13 - Add Navigate Back/Forward to toolbar?

Jetbrains changed the toolbars in IntelliJ 13. The Navigate Back & Forward arrows, shown here, used to be in the top toolbar and easily clickable. Now the only way I can find to access these fields is to go to Navigate -> Back or Navigate ->…
CrimsonX
  • 9,048
  • 9
  • 41
  • 52
126
votes
18 answers

onBackPressed() is deprecated. What is the alternative?

I have upgraded targetSdkVersion and compileSdkVersion to 33. I am now getting a warning telling me that onBackPressed is deprecated. I see suggestions to use android.window.OnBackInvokedCallback or androidx.activity.OnBackPressedCallback to handle…
Rumit Patel
  • 8,830
  • 18
  • 51
  • 70
125
votes
24 answers

Bootstrap 3 collapsed menu doesn't close on click

I have a more or less standard navigation from bootstrap 3
1
2 3
99 100