[android-developers] wakeup my app from bluetooth

2015-06-18 Thread Jags
my current application is about reading data from a bluetooth device. when 
my application is in background, my application wakes up and receives data 
properly. But when the application is stopped by me from list of background 
apps, or the app has not run at all, the application does not wake up.

Request experts to guide me to a solution approach. I want my application 
to wake up from stopped state when bluetooth pair happens or data is pushed 
from bluetooth.

thanks and regards
jags

-- 
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
--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Pintar mapa al vuelo

2015-06-18 Thread Jefferson Delgado P.
Buenos días,

Llevo ya un par de días peleándome e intentando mostrar un mapa de google 
al vuelo, es decir, en base a lo que me venga del servidor, tengo que 
pintar un mapa, un select o lo que toque, y con el mapa no lo he 
conseguido. He estado mirando varias opciones y la que he visto más 
factible, ha sido la siguiente:

 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LayoutParams.MATCH_PARENT,
 LayoutParams.WRAP_CONTENT);
 LinearLayout B = new LinearLayout(mContext);
 B.setOrientation(LinearLayout.VERTICAL);


 GoogleMapOptions options = new GoogleMapOptions();
 options.camera(new CameraPosition(new LatLng(0, 0), 1, 0, 0));
 MapView mMapFragment = new MapView(mContext, options);
 params = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 200);
 mMapFragment.setLayoutParams(params);
 
 B.addView(mMapFragment);


He probado con distintas variantes y no consigo que el mapa se vea, ni en 
gris, ni amago ni nada de nada, aunque eso si, el espacio de 200px me lo 
respeta y se ve un gran cuadro en blanco.

Lo intenté con un SupportMapFragment en lugar de MapView pero nunca llegué 
a poder siquiera ejecutarlo.

Si alguno me puede arrojar algo de luz, se lo agradecería.

Muchas gracias.


Un saludo

-- 
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
--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.