On Apr 24, 7:26 am, Disconnect <dc.disconn...@gmail.com> wrote:
> Now lets look at the new way. Instead of going to one app that has a list
> (or no apps, in the case of locale) you have to open settings (click 1),
> scroll down to the bottom (drag), open display (click 2), scroll down to the
> bottom (2 drags basically) and click 'brightness' (click three) and then
> select the slider position (click 4). then hold home (click five, plus a
> long delay) and select the app you were using (click six).
>
> Wow. That sure is convenient when all i want to do is make a phone call in
> the sun. The good news is, by the time I do that, make my call, and do it
> again to set the brightness back down, its probably nighttime.


It's only half as bad as you guys make it out to be. I agree with
Google's change so that device settings are made in one location only
to emphasize it as a conscious step. You can jump straight into the
relevany settings from an app with the user returning to your app via
the "Back" button. Here's a snippet how I handle this even now in
1.0/1.1 (haven't had the time to try 1.5; I do this on the side),
using an alert dialog to directly jump to the location settings:

<---------------- snip -------------------->

boolean okToFinishApp = true;
string bestProvider;
LocationListener locListener;
LocatioManager locMan;

                class DummyListener implements OnClickListener {
                        public void onClick(DialogInterface dialog, int 
whichButton)
{
                        okToFinishApp = false; //  starting Intent sends a stop
to myApp; do not respond if this is just opening the browser or some
else
                        Intent myIntent = new Intent
(Settings.ACTION_SECURITY_SETTINGS );
                        startActivity(myIntent);
                        } ;
                };

                if (locListener == null)
                     locListener = new LocListener(this);
                bestProvider = locMan.getBestProvider(providerCriteria, true);
                if (bestProvider == null) {
                     AlertDialog noProviderDialog = new
AlertDialog.Builder(this)
                     .setIcon(R.drawable.menudetour)
                     .setTitle("Where I am")
                     .setPositiveButton("Turn on", new DummyListener())
                     .setMessage("No provider for location tracking
available.\n\nYou must turn on a location provider.") // lazy...
string not transferred to resources yet
                     .setNeutralButton("Cancel", null)
                     .create();

                noProviderDialog.show();
                return true;
                }

    @Override
    protected void onStop() {

        super.onStop();

        if (okToFinishApp)
                this.finish();

        okToFinishApp = false;
     }


<-------------------------- snip -------------------->

Diane H. critizised the override of onStop() (on another occasion) but
this may not necessary when jumping to settings. It is needed however
when opening the browser from within an app, which I do, so I need
this anyway and I just run with it throughout.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to