android-developers
[Arriba] [Todas las Listas]

[no subject]

To: android-developers@xxxxxxxxxxxxxxxx
Subject:
From: gjs <garyjamessilva@xxxxxxxxx>
Date: Wed, 24 Sep 2014 00:37:25 -0700 (PDT)
Delivery-date: Wed, 24 Sep 2014 03:39:08 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=FxJBR+V8g+gmMUUX1Dtvy/JxJKxDyMpuh7xQmxisMvA=; b=W1UoM7P8k83m+jsgw3t1Wi53YmCzOSaR8BU/ZzGiU3sJcLkBia/KFMvWetfTX0r/8c T8JN7xFQmdqCzHGtSLKgJmeLbLalGyO5h2FvAEaUwzj9LhWC2v0zHI2dRnK5dVtaAqXl JIg5slZzCEAA2wh6Ds4K3lmROv1J8D76qsTjHMS+bWwBySXxHerSuGGz96v4iw5m3Y9g yvB/j8I0IdoeKL5KieWxXW2ufn5HFHzLft3k0MgypD3mbEYa5nwnfivQV9vTY9Wq8bq8 QwCxvqkGtTHhMB2BNiwn5e6DtIYk69+O4R9ejVBWF/VZEiV88f3Mvazej7KCfBRHGgFP mQzw==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=FxJBR+V8g+gmMUUX1Dtvy/JxJKxDyMpuh7xQmxisMvA=; b=PM+rta4S1QEialxkj73cwGswJPyZO/N74Vp9A2GGjkc5Q1hsBm84Ll6l/EdxsTNSMQ 2MW3A8yB1B4FNHEt3PfH4S+ci8otRfR6NXbkNkRoAyew5Mu+//58SBoSJtCpURUILGxx kenwAqgkzcV3+8CX+hCQ7fXhUhpdWM7fiMOTafz1D+Mt8nvklX6V3iEyWmO7DVq7D7Sa pAbF4TyABI0lq8oGgvKowgUBcLrcjzTsZBHt5DaT6q04VCAongDSq62w2pwv8u4NqHmp qgLrgKas7LLEbRTY5zbI1LWKwcHbEdMqhnDWdZmPlBLrOaCPdDN/4V4IC8aUFOFFXxwN C+Cw==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <32338d03-5fc6-463d-ae98-873f4a601afc@googlegroups.com>
List-archive: <http://groups.google.com/group/android-developer>
List-help: <http://groups.google.com/support/>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <http://groups.google.com/group/android-developers/post>, <mailto:android-developers@googlegroups.com>
List-subscribe: <http://groups.google.com/group/android-developers/subscribe>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <mailto:googlegroups-manage+364598216046+unsubscribe@googlegroups.com>, <http://groups.google.com/group/android-developers/subscribe>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
References: <32338d03-5fc6-463d-ae98-873f4a601afc@googlegroups.com>
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
Hi,

You seem to have map onPause / onResume mixed up -

@Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
        map.onResume();
    }
    
It should be -

@Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
        map.onPause();
    }
    
etc

Regards


On Tuesday, September 23, 2014 10:06:35 PM UTC+10, saex wrote:
>
> Welcome all
>
> The tiles of the map are not being updated, the only way to update them is 
> to block the device (onPause called) and to unblock the device (onResume 
> called). If i do that, the tiles become updated.... it is very strange
>
> i mean that if i move the finger doing zoom or moving the map, the map is 
> frozen, and it only reresh it's state when i block and unblock the device
>
> all the permissions are fine and the api key also is fine in the manifest
>
> this is my code:
>
> public class MainActivity extends Activity {
>     MapView map;
>
>     @Override
>     protected void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         LinearLayout main = new LinearLayout(this);
>         main.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT));
>
>         GoogleMapOptions options = new GoogleMapOptions();
>         options.mapType(GoogleMap.MAP_TYPE_SATELLITE)
>         .compassEnabled(false)
>         .rotateGesturesEnabled(false)
>         .tiltGesturesEnabled(false);
>
>         options.camera(new CameraPosition(new LatLng(0, 0), 1, 0, 0));  
>
>         map = new MapView(this, options);
>         map.onCreate(savedInstanceState);
>         main.addView(map);
>
>         setContentView(main);
>     }
>
>     @Override
>     protected void onPause() {
>         // TODO Auto-generated method stub
>         super.onPause();
>         map.onResume();
>     }
>
>     @Override
>     protected void onResume() {
>         // TODO Auto-generated method stub
>         super.onResume();
>         map.onPause();
>     }
>
> }
>
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@xxxxxxxxxxxxxxxx.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>