Questions tagged [states]

218 questions
139
votes
13 answers

onSaveInstanceState () and onRestoreInstanceState ()

I'm trying to save and restore the state of an Activity using the methods onSaveInstanceState() and onRestoreInstanceState(). The problem is that it never enters the onRestoreInstanceState() method. Can anyone explain to me why this is?
BlaBRA
  • 2,121
  • 4
  • 17
  • 13
93
votes
8 answers

Linux Process States

In Linux, what happens to the state of a process when it needs to read blocks from a disk? Is it blocked? If so, how is another process chosen to execute?
Blair
  • 3,646
  • 4
  • 27
  • 39
21
votes
2 answers

What are the possible states for a docker container?

Are there states other than "running", "paused" and "stopped" or are these the only states available?
10
votes
2 answers

List of world countries, states and their counties / districts / regions

Please suggest sites for downloading list of world countries, states and their counties / districts / regions. No need for cities.
Rose
  • 197
  • 1
  • 3
  • 8
10
votes
6 answers

State list of world with country-code

Where can I found the list of all the states of world with their country code (ISO2 or ISO3). I have to insert all these states in my database. If the list is available in the .sql will be great. I need state list of world with country-code not the…
Daric
  • 14,231
  • 10
  • 38
  • 56
9
votes
6 answers

How to inherit states with mxml?

I have the following panel component called AdvancedPanel with controlBarContent:
Treur
  • 763
  • 4
  • 13
7
votes
4 answers

How do you model application states?

I'm writing a game, and I want to model its different states (the Game Maker analogy would be frames, I guess) in a clean, object-oriented way. Previously, I've done it in the following way: class Game { enum AppStates { APP_STARTING, …
zyndor
  • 1,338
  • 2
  • 17
  • 36
6
votes
3 answers

UI Router: redirect to child state when navigating to abstract parent state

In my music app, I have an ng-repeat on the top-level states of my app to create navigation links. One of the top-level states, called library, is abstract and has child states (which are navigable using tabs). Since I am using an ng-repeat, the…
Alex Wohlbruck
  • 1,118
  • 2
  • 18
  • 36
5
votes
3 answers

Automatically alter button background and text appearance when pressed (like iOS)?

In iOS, if I set a button's background to an image, when I press the button, the whole content of the button (including the text) will be shadowed. Can I achieve the same effect in Android, or do I have to use different images for different states?…
hzxu
  • 4,295
  • 7
  • 47
  • 82
5
votes
2 answers

How to understand the state type in Haskell's ST monad

Jones and Launchbury described in their paper "Lazy Functional State Threads" the ST monad. To ensure that mutable variables can't be used outside the context (or "thread") they have been created in, they use special types, including one of higher…
user2292040
  • 185
  • 7
5
votes
2 answers

Unable to use states with ApplicationWindow

Let's consider this code snippet: ApplicationWindow { /**/ states: State {} /**/ } When running the application, I get Cannot assign to non-existent property "states" When using ApplicationWindow { /**/ Item { states: State {}…
marmistrz
  • 5,296
  • 9
  • 31
  • 84
5
votes
1 answer

HTML States Dropdown - Display Selected Value Rather than Text

I am creating an HTML select-option dropdown menu that displays the 50 states in their full spelling with the abbreviations as their underlying value. When the dropdown is expanded, I want the user to see the full spelling of the states, but to…
Isaac
  • 247
  • 4
  • 15
5
votes
1 answer

Controller on nested state not getting executed

I have nested states, with the parent and child state having a separate controller. But only the parent state is getting executed. I have the url structure: #/restaurant/2/our-food So, I want it to load the restaurant with the ID 2 and then the…
Ben Southall
  • 496
  • 1
  • 8
  • 14
4
votes
6 answers

Tiger/Lines or shapefiles of USA states and cities?

i've been asked to generate some demographic reports (crime rates, birth/deaths, etc) based on state and cities for the USA. I have all the demographic data (provided by our client) but can't seem to find any places which have the boundaries (read:…
Pure.Krome
  • 78,923
  • 102
  • 356
  • 586
4
votes
2 answers

ui-router does not run a parent state's resolve promise when using $state.go()

I have an abstract parent state with a resolve promise which returns information about the current user. This information is injected into controllers of all the child states. However when I use $state.go('parent.child') the resolve promise function…
n4cer500
  • 733
  • 7
  • 21
1
2 3
14 15