Default behaviour of the Back button

by Dexter's Brain » Fri, 18 Sep 2009 02:08:17 GMT

Sponsored Links

I am confused, as to what the default behaviour of the back button is,
as far as the Android platform is concerned.

For example, in the Contacts Application, if I am creating a contact,
I just key in a name, and the press back button, the contact is saved
with only the name. Fair enough. But, I then edit this contact to
include a phone number and press back button. This contact is updated
which now includes the phone number. I again edit this contact. This
time I remove the name, as well as the phone number and press the back
button. I get a message saying, "Contact doesn't exist".  In this
case, it deletes the contact. :(

In the mail appllication, while composing, when I press back, it goes
to the drafts folder. Thats good. But, if I just have to cancel this,
and I don't want this to go to drafts folder. For this, I have to open
the menu, and select "Cancel".

Is there any guideline for the back button, as to how should it

Waiting for your comments and suggestions.

Thanks and Regards,

Default behaviour of the Back button

by niko20 » Fri, 18 Sep 2009 04:05:41 GMT


The back button is really not meant to be "cancel" usually, but only
to exit the current screen you are working on.


Sponsored Links

Default behaviour of the Back button

by Dianne Hackborn » Fri, 18 Sep 2009 07:12:57 GMT

 The other key point is that generally our model is for data to be
edit-in-place, so pressing back from something like contacts will close the
screen but retain your edits (since the edits were performed as you did

There will always be exceptions -- I think gmail confirming you want to
cancel your message if you haven't yet saved it as a draft is a good one
because otherwise you unintentionally end up with a lot of drafts -- but
what you see in contacts is the general model.

We do need to get UI guidelines out that describe all of this in much more
detail.  I know this has been an issue for a while.

Btw, the scenario of editing a contact and removing all data then pressing
back is an edge case that to me is consistent with the model -- the contact
has no more data, so it no longer exists.  When you press back you have
already made the edits that make it empty so it is now gone.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


Default behaviour of the Back button

by Dexter's Brain » Fri, 18 Sep 2009 18:27:47 GMT

 Thanks for your answers.


Other Threads

1. SAS Workplan Resource @ NY



Send the resume with contact information o



Title: SAS Workplan Resource

Location:  Long Island, NY

Duration: 3 Months





*         Work with HP team to develop a workplan for the development and
delivery of customer segmentation capability using SAS.  Segmentation model
will be based on advanced statistical analysis of a customer's viewing


*         Resource will also provide as part of the workplan, estimates of
time and resources (including role definitions) required to complete the


*         Resource will need to come up to speed quickly on the project and
the data environment in order to gauge level of effort and approach




Building the segmented viewer profile (the work that this resource will be
estimating) will involve:


1)    Examining / analyzing existing dimensional data, including demographic
and sociographic data associated with the viewer profile.


1)    Examining / analyzing of Set-Top Box (STB) tuning event data with the
viewer profile to derive patterns of viewing behavior.


2)    Derivation of additional dimensional attributes for a given viewer
profile based on observed and analyzed patterns of behavior. This may
include, but is not limited to, derived measures, components, etc.


3)    Creating the associated models that will be used to score the
appropriate viewer profiles in the Audience Measurement Data Warehouse for
each identified segment.



We want the person doing the estimation to actually have done this sort of
work before.  Potentially, this resource will be retained to actually
perform the delivery of these services (ie. as the lead SAS resource).


Resource Requirements:


*         Hands-on experience in creating customer segmentation models using
SAS (Statistics and Enterprise Miner) in an extremely large relational
database environment to support marketing and/or advertising business
objectives, preferably in media, communications, financial services


*         Proven ability to


o    define the business objective


o    evaluate and obtain data


o    perform exploratory data analysis


o    create segmentation models


o    test segmentation models


o    implement segmentation models


o    document and present results to senior-level business and technical


o    create plans to execute the above


*         In depth knowledge of utilizing behavi{*filter*}data, attitudinal data,
and customer value data in creating distinct customer segments for marketing


*         In depth knowledge of "best-in class" modeling techniques for
customer segmentation, e.g.


o    Exploratory Data Analysis


o    Cluster Analysis


o    C&RT


o    CHAID


o    Factor Analysis and Principle Components Analysis


o    Discriminant Function Analysis


o    Neural Nets and other genetic algorithms


o    Others


*         Similar experience in creating customer behavior predictive models


*         Graduate degree in statistics, mathematics, operations research a


*         Industry association (e.g., Direct Marketing Association,
Marketing Science Institute)  affiliation and activity a plus


*         Peer reviewed publication a plus







Soni Kanth

Technical Recruiter| Clear Thought Solutions LLC.

Email:  <>

Direct : 919-290-7580 , 

919-300-5521 X 37

Yahoo IM:

Gmail: psoni...@gmail.com1

Fax 347.296.3797 

1135 Kildaire Farm Rd, Suite 311-10, Cary, NC 27511



P please consider the environment before printing




2. Impossible to write someting on a field


I have build a sort of split view for one of my android applications.
I have made an activity which is a container of a listview and a
framelayout. I use the listview for a menu and in my framelayout, I
load views of different activities. I have read the source code of the
TabHost for building this system.

TabHost source code :;a=blob;f=core/java/android/widget/

Activities that I load in my framelayout could contain a webview.

The system work pretty well but I have a big issue. When I click on a
field in a webview, the soft keyboard doesn't appear and typing on the
physical keyboard has no affect.

I have made many many researches and I found nothing :'( I really
appreciate if somebody could give me an idea for solving this issue.


3. VERY URGENT..!! Looking For Android developer - GA

4. Hiring Experienced Android Developers - SF Bay Area / NYC

5. Gallery view problems - external memory

6. X Axis Sensor Correction - Flipped Sensor Detection - Froyo

7. How to programatically Pan one image over another using a seekbar to control Pan?