By Quentin Fottrell

- iStockphoto
Store sales are up. The job market is improving. Oddly, analysts say, retailers aren’t hiring.
Jobs growth slowed significantly in March, according to the latest data released by the Labor Department Friday. Jobs excluding agriculture grew by 120,000 last month — half the growth in February — the first time since November 2011 that job growth came in below 200,000. And, while store sales appear encouraging partly due to a warm winter and Easter falling two weeks earlier than last year, according to results released this week, jobs growth last month slowed significantly in that sector. The Gap and Target showed improvements, while CostCo and teen fashion outlet Buckle fared less well. Meanwhile, jobless claims data released Thursday showed numbers fell to the lowest level in nearly four years last week.
So why aren’t retailers hiring?
Big box and department stores have been employing stricter control of inventories instead of new workers, economists say. They’re also demanding higher productivity from existing workers. This shift “has long term implications for employment: fewer retail workers and less square footage,” says Patrick O’Keefe, director of economic research at J.H. Cohn consultants in Roseland, N.J. They’re also centralizing checkouts and introducing self-service machines, says independent retail consultant Jeff Green, which means a longer walk for shoppers in search of a till and less floor personnel.
Retail-sector job opportunities keep shrinking. In the five years prior to the recession (2003-2007), stores accounted for 13.6% of all private sector jobs, according to the Bureau of Labor Statistics; but during the jobs recovery – which began in earnest in March 2010 — the retail sector has only provided 9% of the total private sector gains. While auto and gasoline sales have shown some momentum in recent months, “recovery in the rest of the retail sector has been rather tepid,” O’Keefe says.
Also See:
- Best Buy Seeks Apple’s Magic
- Employment Is Up, Why Isn’t Spending
- Retail Sales Get Boost From Mother Nature
Department stores also appear to be experiencing a choppy recovery. During February, retail trade lost 33,800 jobs in March after losing 7,400 jobs in February — on a seasonally adjusted basis or taking into account the holiday sales. Jobs plummeted by 32,300 at general merchandise stores and by 21,000 at department stores, after falling by 35,400 and 25,000 respectively in February. But sporting, book and music stores added 1,200 jobs last month after adding 12,400 jobs in February. Investment blogger Andy Nyquist says warm weather has encouraged people to bulk up on their outdoor equipment and sports goods. “It’s one of the many benefits of an early spring,” he says.
Still, with tentative signs of a jobs recovery underway, others say it’s too soon to know if the retail sector will under-perform the overall jobs market throughout 2012. If department stores shed more jobs in the months ahead, it may reflect more seismic changes in how people shop, says Betsey Stevenson, assistant professor of business and public policy in The Wharton School at the University of Pennsylvania. “For instance, I rarely shop in department stores anymore because I almost exclusively at discount retailers, Amazon, and boutiques.”
By WebOsPublisher
Disable the search button in Android – Stack Overflow
Stack Exchange
log in
|
careers 2.0
|
chat
|
meta
|
about
|
faq
Stack Overflow
Questions
Tags
Users
Badges
Unanswered
Ask Question
Disable the search button in Android
up vote
2
down vote
favorite
1
I have a dialog in an Android app that I don’t want the user to be able to cancel. Using .setCancelable(false) disables the back button, but pressing the search button still cancels the dialog. I saw this question which told me that I should include
public boolean onSearchRequested()
return false;
But I’m still able to cancel the dialog with the search button. Here’s my code:
public class TestActivity extends Activity
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
showDialog(0);
public boolean onSearchRequested()
return false;
protected Dialog onCreateDialog(int id)
final AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(“Message”)
.setCancelable(false)
.setPositiveButton(“Ok”, new DialogInterface.OnClickListener()
public void onClick(DialogInterface dialog, int id)
// nothing
);
return builder.create();
android
share|improve this question
asked
Mar 23 at 0:06
BenH
936312
93% accept rate
This question appears to have been answered: stackoverflow.com/questions/2502443/… – mah Mar 23 at 0:09
feedback
4 Answers
active
oldest
votes
up vote
3
down vote
accepted
@Benh You need this code to set for your Key Listener for Dialog
builder.setOnKeyListener(keylistener);
Add Below code in your Activity Class
OnKeyListener keylistener=new DialogInterface.OnKeyListener()
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event)
if (keyCode == KeyEvent.KEYCODE_SEARCH $$ event.getRepeatCount() == 0)
return true; //we stop begin cancel of dialog or Progressbar
return false;
;
try this above thing in your dialog hope that will work for you.
share|improve this answer
answered
Mar 23 at 6:06
Herry
1,7741425
feedback
up vote
1
down vote
I disable search button by overriding progress dialog. I create unnamed class and override method onSearchRequest() . And this is working for me.
I use this:
progressDialog = new ProgressDialog(Activity.this)
@Override
public boolean onSearchRequested()
return true;
;
instead code:
progressDialog = new ProgressDialog(Activity.this);
share|improve this answer
answered
Jul 23 at 13:35
mattoke
111
feedback
up vote
0
down vote
You simply need to listen for search button presses and do nothing when they are hit.
public boolean onKeyDown(int keycode, KeyEvent e)
switch(keycode)
case KeyEvent.KEYCODE_SEARCH:
return true;
break;
return super.onKeyDown(keycode, e);
If this doesn’t work for your Activity class then you’ll probably need to create a subclass of Dialog and implement the onKeyDown method for your dialog class.
share|improve this answer
edited
Mar 23 at 0:21
answered
Mar 23 at 0:09
slayton
8,64821038
Thanks, but this isn’t working for me. I replaced the onSearchRequested function in my code with this code, except that I removed the break; statement because Eclipse gave me an unreachable code error. My dialog can still be dismissed by pressing the search button. – BenH Mar 23 at 0:17
Hmm.. ok then you probably need to create a subclass of Dialog and override its onKeyDown method – slayton Mar 23 at 0:21
feedback
up vote
0
down vote
public boolean onKeyDown(int keyCode, KeyEvent event)
if(event.ACTION_DOWN==KeyEvent.KEYCODE_SEARCH)
return false;
else
return super.onKeyDown(keyCode, event);
share|improve this answer
answered
Mar 23 at 5:21
Harsh Dev Chandel
37815
feedback
Your Answer
draft saved
draft discarded
log in
or
Name
Email
required, but never shown
Home Page
discard
By posting your answer, you agree to the
privacy policy and
terms of service.
Not the answer you’re looking for?
Browse other questions tagged android
or ask your own question.
Hello World!
This is a collaboratively edited question and answer site for professional and enthusiast programmers. It’s 100% free, no registration required.
about » faq »
tagged
android × 261474
asked
8 months ago
viewed
691 times
active
4 months ago
Community Bulletin
blog
Meet the new additions to the Stack Exchange clan
Linked
Prevent ProgressDialog from being dismissed when I click the search button (Android)
Disable the Search Button (Quick Search Box) in Android
Android – How to disable Search button, how to implement onSearchRequested()?
Related
android app search button
Android – how to disable long press on Search button (Nexus One)
Reading text of an EditText in android
how to disable back button in android
Quick Search Button in Android
How to avoid a DialogFragment being dismissed when the Search button is pressed – Android
how to disable toggle button in android?
Disable the Search Button (Quick Search Box) in Android
how to disable Search Button- Android
Android: show white background when search button pressed
Android:Disable Button in listview
Disable home button in android
Search button is bad
the application stopped unexpectedly while search the area in map error occur in android
Disable Uninstall button in android manageapplication
why dialog box disapear when search button pressed
Android Home Button disable back
Disable search button press during ProgressDialog
Search Button – onSearchRequested() in Android 4.1.1
Android: Disable button’s transparency
android – geocoder.getfromlocationname returns Service Not Available
Android – How to disable Search button, how to implement onSearchRequested()?
Disable back button in Android(Not working)
How to use onSearchRequested() to disable Search button globally?
question feed
default
about |
faq |
blog |
chat |
data |
legal |
privacy policy |
jobs |
advertising info |
mobile |
contact us
| feedback
■ stackoverflow.com
■ api/apps
■ careers 2.0
■ serverfault.com
■ superuser.com
■ meta
■ area 51
■ webapps
■ gaming
■ ubuntu
■ webmasters
■ cooking
■ game development
■ math
■ photography
■ stats
■ tex
■ english
■ theoretical cs
■ programmers
■ unix
■ apple
■ wordpress
■ physics
■ home improvement
■ gis
■ electrical engineering
■ android
■ security
■ bicycles
■ dba
■ drupal
■ sharepoint
■ scifi $ fantasy
■ user experience
■ skeptics
■ rpg
■ judaism
■ mathematica
rev 2012.12.7.545
site design / logo © 2012 stack exchange inc;
user contributions licensed under cc-wiki with attribution required
Stack Overflow works best with JavaScript enabled
By WebOsPublisher
Free icons in ico format. Desktop icons – aquarium,cats,birds,nature,blanks,computer,flags,road signs,chips,christmas,erotic,sexy icons
Free Windows icons, desktop icons, clip art
Your name:
Your e-mail:
Stock Icons
Toolbar Icons
Business Icons
Toolbar Icons
Windows 7 Icons
Free Icon Editor
Medical Icons
Icon Editor
Find Icons
Toons
Icons for Children – collected by Icon News
Hercules Icon Pack – collected by Iconok.Net
Simpson’s Pack 1 – collected by Spring Field
Simpson’s Pack 2 – collected by Spring Field
Home | Products | Download | Order | Icons | Support
Copyright © 2005-2012 Icon Empire. All rights reserved.
Tweet
Icon Craft is our pick. This icon maker allows you to design and edit all kinds of graphics required in the software development cycle, including icons, static and animated cursors and interface elements – all these kinds of graphics can now be designed in a single application.
More info
Icon Processor is an icon converter. It creates icons from your images. It is possible to convert 256-color icons into True Color icons and XP icons.
More info
ICL-Icon Extractor will scan your files, archives, folders and all local disks for icons. It can download icons from the Internet and customize Windows icons.
More info
Perfect Icon creates icons from any graphic file (PNG, JPEG, BMP, TIFF, WMF and more) in just seconds. Create stylish icons for Windows XP. Easily replace, colorize and save icons that Windows uses to display standard objects, folders and files.
More info
Pixel Editor is a program to create and edit images for websites or mobile devices. An array of tools to work with pictures and simplicity of use make this product ideal for newbies and graphic design professionals alike.
More info
All above told the truth. Let’s discuss this question.
retail employers are a scourge. they suck!!!