Thoughts on this LenientPolicy implementation of an LVL Policy?

by mot12 » Fri, 13 Aug 2010 23:31:29 GMT


Sponsored Links
 Mark, would you be willing to share your updated code? I find your
policy more sensible during the toddler phase of LVL. Until maturity
of ServerManagedPolicy is proven, I need to play it safe for an
existing app with many users that I don't want to alienate.

--



Thoughts on this LenientPolicy implementation of an LVL Policy?

by mot12 » Sat, 14 Aug 2010 00:29:45 GMT


 Mark, would you be willing to share your updated code? I find your
policy more sensible during the toddler phase of LVL. Until maturity
of ServerManagedPolicy is proven, I need to play it safe for an
existing app with many users that I don't want to alienate.

--


Sponsored Links


Other Threads

1. Dialog management by Activities

Hello all,

I'm looking for a little more information about dialogs managed by
activities than is provided here:

http://developer.android.com/guide/topics/ui/dialogs.html

and havn't found any good web resources. In particular, I'm having a
problem where a dialog must be updated in onPrepareDialog() with
Activity member variables that change after onCreateDialog() is
initially called.  During an orientation change, version 1.5 will only
call onCreateDialog() and not onPrepareDialog() for dialogs previously
used (and not dismissed).  An example problem scenario's
onPrepareDialog() steps are listed here:

           final Spinner spinner2 = (Spinner) ((AlertDialog)
dialog).findViewById(R.id.spinner2);
           ArrayAdapter<myItem> spinnerAdapter = new ArrayAdapter<myItem>(
                   context, android.R.layout.simple_spinner_item, myList);

           spinnerAdapter.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);
           spinner2.setAdapter(spinnerAdapter);
           // setting button here, as it needs update for every spinner
update
           ((AlertDialog) dialog).setButton(AlertDialog.BUTTON_POSITIVE,
                   "Add", new DialogInterface.OnClickListener() {
               public void onClick(DialogInterface d, int i1) {
                   int id = ((myItem spinner2.getSelectedItem()).id;
                   doSomething();
               }
           });

The result of not calling onPrepareDialog() during orientation change,
if the dialog is currently being displayed, is an empty spinner.

In 1.6, onPrepareDialog() is also called and so this problem is not
seen.

As a workaround for 1.5 I simply remove the dialog in onResume(), but
obviously if the dialog is showing on orientation change the user
experience is not ideal.

I don't expect this is a 1.5 bug so much as a lack of my understanding
regarding what the "right thing to do" is in such a situation, where
information is not known at dialog creation time.

Thank you,
Steve Abrams

-- 

2. adwords. adobe flash

hello all

is there posibility to watch you campaing in adwords account?
and, I cant see flash on my t-mobile touch, android 1.5
and finnaly, can I update, when comes; to 2.0 android os?
thx

-- 

3. Basic Socket

4. How to start activity with long press of search key?

5. ActivityInstrumentationTestCase2 - Button click with internal thread

6. Mediaplayer error PVMFErrCorrupt

7. launch calendar app with generic intent