back-button

Xamarin forms navigation back button

我只是一个虾纸丫 提交于 2020-06-09 04:13:08
问题 I am a newbie in xamarin forms app development, currently, I am facing an issue in overriding the toolbar back button onclick. In ios, I am able to achieve but in android its not working can anyone help me out on how to achieve this in my project. 回答1: By default it works on iOS and on Android physical back button only. If you want to also support the navigation bar button, you need to use custom platform logic. Take a look on this blog post: Let’s Override Navigation Bar back button click in

What's the best way to deal with cache and the browser back button?

与世无争的帅哥 提交于 2020-02-18 05:04:10
问题 What's the best way to handle a user going back to a page that had cached items in an asp.net app? Is there a good way to capture the back button (event?) and handle the cache that way? 回答1: You can try using the HttpResponse.Cache property if that would help: Response.Cache.SetExpires(DateTime.Now.AddSeconds(60)); Response.Cache.SetCacheability(HttpCacheability.Public); Response.Cache.SetValidUntilExpires(false); Response.Cache.VaryByParams["Category"] = true; if (Response.Cache.VaryByParams

use [UINavigationBar appearance] to change back button image

折月煮酒 提交于 2020-01-23 11:52:04
问题 I'd like to change the back button of my UINavigationBar I can do it using this code: // Set the custom back button UIImage *buttonImage = [UIImage imageNamed:@"backag.png"]; //create the button and assign the image UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setImage:buttonImage forState:UIControlStateNormal]; [button setImage:[UIImage imageNamed:@"selback.png"] forState:UIControlStateHighlighted]; button.adjustsImageWhenDisabled = NO; //set the frame of the

Android - Stop AsyncTask when back button is pressed and return to previous Activity

╄→гoц情女王★ 提交于 2020-01-12 05:31:08
问题 I've an AsyncTask and I want it to stip execution when back button is pressed. I also want the app to return to the previous displayed Activity. It seems I've managed in stop the Task but the app doesn't return to the previous activity. Any ideas? This is an extract from my code private class MyTask extends AsyncTask<Void, Void, Void> implements OnDismissListener{ private boolean exception= false; @Override protected void onPreExecute(){ pd = ProgressDialog.show( IscrizioniActivity.this,

Chrome doesn't cache hidden form field values for use in browser history

允我心安 提交于 2020-01-10 17:59:28
问题 I have a ASP.Net web form that contains both text box fields and hidden fields. The hidden field values are modified dynamically using client side JavaScript. Posting the form, inspecting the values and redirecting to another page is all working as expected. However, when I use the browser back button to display the previous page then I expect so see that ALL form fields are still populated with the values that were posted. In IE and Firefox this is the case for both text and hidden input

ASP.NET browser shows “web page has expired” for back button (after a post back)

折月煮酒 提交于 2020-01-10 02:05:16
问题 I'm having trouble with a simple ASP.NET application and the back button after a post back. The page in question has a simple form on it, some text fields etc, and a dropdown that does a postback (autopostback). The "normal" flow is the user fills out the form and perhaps changes the dropdown. Based on the dropdown value the page content might change. The problem I'm having is that after the user has changed the dropdown and the postback has completed then the user clicks the back button.

How can I detect long pressed volume and power button when app is in background on Android P using service

空扰寡人 提交于 2020-01-06 05:47:15
问题 I want to detect volume button press when app is in background and even if device is locked I am working on android P, I was able to get long pressed volume button when app is in background but screen not locked using service and by getting Allow over other apps permission but it caused problem , when app is in background back button and keyboard are not working , I am able to open other apps like whatsapp but I can not type a message and can not back , Here is my code any please help .

Overriding Back Button Action in Activity

只愿长相守 提交于 2020-01-06 02:23:08
问题 I have just overide my back button in my code like this @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { return true; } return super.onKeyDown(keyCode, event); } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { { startActivity(new Intent(context, MainDialog.class)); finish(); return true; } return super.onKeyUp(keyCode, event); } Now I am facing a weird problem, I have a edit text on the current Activity. At the time of

Difference between jsf actionListener(param) and propertyListener when using back button on keyboard

半世苍凉 提交于 2020-01-05 20:21:46
问题 I encountered a problem that I fixed but I can't understand why the fix works and the original code doesn't work. It's the easiest to explain it with code: I've got the following method in my entityBackingBean (entityBB): public void standardLetterInit(Letter entity) { setEntity(entity); } And the following in my xhtml page: <h:commandLink actionListener="#{entityBB.standardLetterInit(varEntity)}"/> This commandLink is situated in a datatable that contains varEntity as var. The above code

Difference between jsf actionListener(param) and propertyListener when using back button on keyboard

早过忘川 提交于 2020-01-05 20:21:42
问题 I encountered a problem that I fixed but I can't understand why the fix works and the original code doesn't work. It's the easiest to explain it with code: I've got the following method in my entityBackingBean (entityBB): public void standardLetterInit(Letter entity) { setEntity(entity); } And the following in my xhtml page: <h:commandLink actionListener="#{entityBB.standardLetterInit(varEntity)}"/> This commandLink is situated in a datatable that contains varEntity as var. The above code