android-developers
[Arriba] [Todas las Listas]

Re: [android-developers] Re: Impidiendo aplicación redraw en rotación

To: android-developers@xxxxxxxxxxxxxxxx
Subject: Re: [android-developers] Re: Impidiendo aplicación redraw en rotación
From: John Goche <johngoche99@xxxxxxxxxxxxxx>
Date: Sun, 30 Oct 2011 23:47:07 +0100
Delivery-date: Sun, 30 Oct 2011 18:47:29 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=kktYN8jmJVO74lRmMSOTQocpzNYowJXdxVWd8vLUlzQ=; b=usBSpsYFzAtCSto9LOAX56d+/0j115KUFvUKIe+n18eUzVw+Vyc0OCJaBVllw0aOBH 4r6w7XEsKZlpQOZldDMeTdHpfY23i+k+zgiXVzIJ/VcOmk3TMBoaeuo9HOByU+TzKYw6 D912jALW7UAtcQFFwCUQ44m8V38U2qTdAYrYA=
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <13470200.4264.1319986961206.JavaMail.geo-discussion-forums@yqbl36>
List-archive: <http://groups.google.com/group/android-developers?hl=en_US>
List-help: <http://groups.google.com/support/?hl=en_US>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <http://groups.google.com/group/android-developers/post?hl=en_US>, <mailto:android-developers@googlegroups.com>
List-subscribe: <http://groups.google.com/group/android-developers/subscribe?hl=en_US>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/android-developers/subscribe?hl=en_US>, <mailto:android-developers+unsubscribe@googlegroups.com>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
References: <CAA_CB1LRRfuHjVe_b=8hNhbW2WbhZG0AzKBh63DNa56efKz-ig@mail.gmail.com> <13470200.4264.1319986961206.JavaMail.geo-discussion-forums@yqbl36>
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
Hola,

Vuestra sugerencia no trabajó para mí (especialmente desde entonces no supe qué
para hacer dentro de *onConfigurationChanged, ni por qué yo  también necesidad
*launchMode="*singleTask"
y *android:*alwaysRetainTaskState="cierto").

Qué trabajó para mí era dentro de *onCreate:

    *setRequestedOrientation(*ActivityInfo.RETRATO_de ORIENTACIÓN_de la PANTALLA);

más Lejano *clarification *welcome,

Consideraciones,

John *Goche

En Sol, *Oct 30, 2011 en 4:02 PM, *lbendlin <lutz@xxxxxxxxxx> escribió:

> primero, decir el manifestar que quieres manejar rotación tú
>
> <actividad *android:nombre=".*MainScreen" *android:Cadena="@de etiqueta/*app_nombre"
>             *android:*configChanges="orientación"
> *android:*launchMode="*singleTask"
>             *android:*alwaysRetainTaskState="cierto">...
>
> Entonces manejar la rotación tú (o ignorar él)
>
> @*Override
> público *void *onConfigurationChanged(Configuración *newConfig)#punt..}
>
>
>  --
> Recibiste este mensaje porque eres *subscribed al *Google
> Grupos "*Android *Developers" grupo.
> A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx
> A *unsubscribe de este grupo, envía *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx
> 
> Puesto que más opciones, visita este grupo en
> *http://grupos.*google.*com/Grupo/*android-*developers?*hl=*en

-- 
Recibiste este mensaje porque eres *subscribed al *Google
Grupos "*Android *Developers" grupo.
A correo a este grupo, envía *email a *android-developers@xxxxxxxxxxxxxxxx
A *unsubscribe de este grupo, envía *email a *android-*developers+unsubscribe@xxxxxxxxxxxxxxxx

Puesto que más opciones, visita este grupo en
*http://grupos.*google.*com/Grupo/*android-*developers?*hl=*en
Hello,

Your suggestion did not work for me (especially since I did not know what
to do inside onConfigurationChanged, nor why I would also need
launchMode="singleTask"
and android:alwaysRetainTaskState="true").

What did work for me was inside onCreate:

    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

Further clarification welcome,

Regards,

John Goche

On Sun, Oct 30, 2011 at 4:02 PM, lbendlin <lutz@xxxxxxxxxx> wrote:

> first, tell the manifest that you want to handle rotation yourself
>
> <activity android:name=".MainScreen" android:label="@string/app_name"
>             android:configChanges="orientation"
> android:launchMode="singleTask"
>             android:alwaysRetainTaskState="true">...
>
> then handle the rotation yourself (or ignore it)
>
> @Override
> public void onConfigurationChanged(Configuration newConfig)
> {...}
>
>
>  --
> 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@xxxxxxxxxxxxxxxx
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@xxxxxxxxxxxxxxxx
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
<Anterior por Tema] Tema Actual [Siguiente por Tema>