Questions tagged [android-navigation]

For questions about navigation within and between Android apps. Examples include navigating between activities/fragments, up/back behavior, task stacks, and Intent flags that affect navigation behavior.

Consistent navigation is an essential component of the overall user experience. Few things frustrate users more than basic navigation that behaves in inconsistent and unexpected ways.

Android 3.0 introduced significant changes to the global navigation behavior. Thoughtfully following the guidelines for Back and Up will make your app's navigation predictable and reliable for your users.

Android 2.3 and earlier relied upon the system Back button for supporting navigation within an app. With the introduction of action bars in Android 3.0, a second navigation mechanism appeared: the Up button, consisting of the app icon and a left-point caret.

See also the official documentation about this topic.

1192 questions
0
votes
5 answers

Navigation drawer in all Activity

Hi all i want to put navigation drawer in all activity. Layout file:
rupesh
  • 2,865
  • 4
  • 24
  • 50
0
votes
1 answer

How do I make an app continue where it left off instead of opening the Main activity when the icon is clicked?

I'm working on my first app. If a user navigates from my main activity to another (Main > A) and then puts the app in the background and clicks the launcher, it launches into Main instead of resuming activity A. The user can then back to A, so the…
NSouth
  • 5,067
  • 7
  • 48
  • 83
0
votes
1 answer

Open navigation activity directly of deafault android map programmatically - Android

Hi I am using the following code to show the user direction between his current location and his car location. String uri = String.format(Locale.ENGLISH, "http://maps.google.com/maps?saddr=%f,%f(%s)&daddr=%f,%f (%s)", curLat, curLong, "Your…
0
votes
2 answers

Remove Action Button From Action Bar

I have implemented ActionBar Navigation using Fragment. In my App i have one Activity and rest is in Fragments. In my MainActivity i am implementing menu like this. @Override public boolean onCreateOptionsMenu(Menu menu) { …
0
votes
4 answers

Disabling home button Android

I have read a lot about how we cannot override or disable home button. And I too agree that its risky in many ways as some people might take wrong advantage of it. But unfortunately its a requirement in my app. I was able to hide them in my device…
ik024
  • 3,566
  • 7
  • 38
  • 61
0
votes
1 answer

Set intent when returning to parent activity

An application about which I previously asked requires an ID for a particular activity, which is used to make a database query. When the activity starts I get this ID from an intent, thus: @Override protected void onCreate(Bundle…
knirirr
  • 1,860
  • 4
  • 23
  • 37
0
votes
1 answer

Navigation Drawer freezing when adding Gridview to the activity

I am using a navigation drawer and a grid view on the same activity but once i did that, i am not able to scroll or click anything on the activity. Moreover, navigation drawer also refuses to open or respond to touch. I have checked my code at least…
0
votes
1 answer

Creating a Multi-pane layout using android actionbar and navigation drawer

I'm currently creating an app which can handle different screen support and multi-pane view using fragments. Now I used the default navigation drawer and actionbar using android studio and created two fragments to test for this and layouts for…
KaHeL
  • 4,301
  • 16
  • 54
  • 78
0
votes
2 answers

Android drawerlayout with custom actionbar

I have a drawerlayout in an app that works nicely, but I want to have things like buttons and textviews in the actionbar. This isn't possible with the default actionbar because you got menu items which have their limitations. Basically what I want…
Elger Mensonides
  • 6,930
  • 6
  • 46
  • 69
0
votes
2 answers

Fragment Navigation (BackStack)

My Application has one Activity with a layout (FrameLayout) for many fragments. At the start of the Application it displays a list of Places (PlacesFragment). When a Place is clicked, a Fragment that displays a list of cams (CamFragment) is…
0
votes
1 answer

Navigation Drawers with Action Bar Tabs

I have read something that "you shouldn't use Navigation Drawers with Action Bar Tabs" (Roman Nurik at https://plus.google.com/u/0/+DavidTaSmoochibi/posts/8dWEkFcbTFX). Is there any meaningful reason of this ? So if a team decided to create a big…
anL
  • 1,073
  • 1
  • 11
  • 31
0
votes
1 answer

Android: Button action close, opens previous activity

My menu has a game button and a close button the close button closes the app but if I run the game and proceed to the results activity, and return to the main menu via the back button. The close button the opens the results activity. Results…
Seatter
  • 408
  • 1
  • 9
  • 19
0
votes
1 answer

How to Handle Navigation between Dependent Activities

My question is how to update an activity based on its child while maintaining the context supplied by its parent. See the example hierarchy below. There is a flow up and down. Using the app would go something like this: Select Team 1 on the Home…
0
votes
1 answer

Android Navigation Drawer Implementation

Previously, I used ImageButtons to navigate through Activities. Now I am going to make a standard Left Navigation Drawer. But the Application need to Extend Activity where as the Default Navigation includes Extend NavigationDrawerActivity. How to…
tika
  • 7,135
  • 3
  • 51
  • 82
0
votes
2 answers

How do I persist an attribute in an activity that I'm navigating back up to?

I have some activities basically set up as shown below (clicks on are ListViews). Parent class method to go to MyChild1 public void onItemClick(int pos){ Intent i = new Intent(this, MyChild1.class); i.putExtra("KEY1",…
NSouth
  • 5,067
  • 7
  • 48
  • 83