[android-developers] Marker - Show Info Window (showinfowindow)

2013-10-18 Thread Carlos Calvo
*Miscellaneous questions about markers*

Is there any way to view several marker at the same time?

Is there some library that implements unofficial?


I can prevent window disappears when clicking on the map?


thx

-- 
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/groups/opt_out.


[android-developers] Positioning objects in Google Maps

2013-07-18 Thread Carlos Calvo
Hello,

I have a problem when drawing objects on Google Maps.

I have an object that drawing on your geolocation.

And I have a second object that want to draw on this, subject to see the 
same distance regardless of having the zoom map.

If we shift frame + - X for example 50 depending zoom this is very far / 
near (though offset always the same)

 


Painthttp://www.google.com/search?hl=enq=allinurl%3APaint+java.sun.combtnI=I%27m%20Feeling%20Lucky
 p 
= new 
Painthttp://www.google.com/search?hl=enq=allinurl%3APaint+java.sun.combtnI=I%27m%20Feeling%20Lucky
();

p.setColor(Colorhttp://www.google.com/search?hl=enq=allinurl%3AColor+java.sun.combtnI=I%27m%20Feeling%20Lucky
.BLUE);


Pointhttp://www.google.com/search?hl=enq=allinurl%3APoint+java.sun.combtnI=I%27m%20Feeling%20Lucky
 centro 
= new 
Pointhttp://www.google.com/search?hl=enq=allinurl%3APoint+java.sun.combtnI=I%27m%20Feeling%20Lucky
();
projection.toPixels(geoObject, centro);
(draw object)
canvas.drawBitmap(bitmap,centro.x - bitmap.getWidth(),
 centro.y - bitmap.getHeight(), p);

 offset en x zoom always dependent on??  

  ¿
 canvas.drawBitmap(bitmapRelated,  ?? ,  ??  , p);
 

-- 
-- 
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/groups/opt_out.




[android-developers] Google Api Route

2013-06-11 Thread Carlos Calvo


One question for google api route


I wanted to know if it is possible to make a request to the google just getting 
the timing and duration of the full path without receiving each of the 
intermediate steps


thanks


http://maps.googleapis.com/maps/api/directions/json?origin=Torontodestination=Montrealsensor=false


 routes : [
  {
 bounds : {
northeast : {
   lat : 45.51014580,
   lng : -73.5525248999
},
southwest : {
   lat : 43.65331030,
   lng : -79.3837331999
}
 },
 copyrights : Datos de mapa ©2013 Google,
 legs : [
{
   distance : {
  text : 542 km,
  value : 542385
   },
   duration : {
  text : 5h 14 min,
  value : 18834
   },
   end_address : Montreal, Quebec, Canadá,
   end_location : {
  lat : 45.50857120,
  lng : -73.55376740
   },
   start_address : Toronto, Ontario, Canadá,
   start_location : {
  lat : 43.65331030,
  lng : -79.38276750
   },

-- 
-- 
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/groups/opt_out.




[android-developers] Re: exception when create new AlertDialog

2013-04-15 Thread Carlos Calvo
Thanks, works perfectly

Very thanks I spent hours working on this problem

El domingo, 14 de abril de 2013 20:50:18 UTC+2, Jonathan S escribió:

 on new AlertDialog.Builder(getApplication());, replaces getApplication() 
 to MainActivity.this


 On Sunday, April 14, 2013 10:55:42 AM UTC-4, Carlos Calvo wrote:

 Hello,

 I have a ProgressDialog running. Execute method .dismiss for destroy 
 them.

 But when i create a new AlertDialog i take a exception because the 
 progessdialog yet still show

 *Exception *Unable to add window -- token null is not for an 
 application

 *The code:*

if (pd.isShowing()){
 pd.dismiss();
 }
  MainActivity.this.runOnUiThread(new Runnable() {

 public void run() {
   
  AlertDialog.Builder builder = new 
 AlertDialog.Builder(getApplication());
 builder.setTitle(Lo sentimos por el Fallo)
 .setMessage(Resolveremos el fallo lo antes posible)
 .setCancelable(false)
 .setIcon(R.drawable.ic_exception)
 .setPositiveButton(Enviar Fallo,
 new DialogInterface.OnClickListener() {
 public void onClick(DialogInterface dialog, int id) {
 //enviar por mail traza exception
 mDamageReport.submit( new Exception() );
 finish();
 }
 })
 .setNegativeButton(Cerrar,
 new DialogInterface.OnClickListener() {
 public void onClick(DialogInterface dialog,
 int id) {
 finish();
 }
 });

 builder.create().show();

 }
 });



-- 
-- 
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/groups/opt_out.




[android-developers] exception when create new AlertDialog

2013-04-14 Thread Carlos Calvo
Hello,

I have a ProgressDialog running. Execute method .dismiss for destroy them.

But when i create a new AlertDialog i take a exception because the 
progessdialog yet still show

*Exception *Unable to add window -- token null is not for an application

*The code:*

   if (pd.isShowing()){
pd.dismiss();
}
 MainActivity.this.runOnUiThread(new Runnable() {

public void run() {
  
 AlertDialog.Builder builder = new 
AlertDialog.Builder(getApplication());
builder.setTitle(Lo sentimos por el Fallo)
.setMessage(Resolveremos el fallo lo antes posible)
.setCancelable(false)
.setIcon(R.drawable.ic_exception)
.setPositiveButton(Enviar Fallo,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
//enviar por mail traza exception
mDamageReport.submit( new Exception() );
finish();
}
})
.setNegativeButton(Cerrar,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int id) {
finish();
}
});

builder.create().show();

}
});

-- 
-- 
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/groups/opt_out.




[android-developers] Re: exception when create new AlertDialog

2013-04-14 Thread Carlos Calvo
The logcat

04-14 18:06:42.043: E/AndroidRuntime(26483): FATAL EXCEPTION: main
04-14 18:06:42.043: E/AndroidRuntime(26483): 
android.view.WindowManager$BadTokenException: Unable to add window -- token 
null is not for an application
04-14 18:06:42.043: E/AndroidRuntime(26483): at 
android.view.ViewRootImpl.setView(ViewRootImpl.java:571)
04-14 18:06:42.043: E/AndroidRuntime(26483): at 
android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:246)
04-14 18:06:42.043: E/AndroidRuntime(26483): at 
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)

thx


El domingo, 14 de abril de 2013 17:18:00 UTC+2, RichardC escribió:

 Show us the Logcat

 On Sunday, April 14, 2013 3:55:42 PM UTC+1, Carlos Calvo wrote:

 Hello,

 I have a ProgressDialog running. Execute method .dismiss for destroy 
 them.

 But when i create a new AlertDialog i take a exception because the 
 progessdialog yet still show

 *Exception *Unable to add window -- token null is not for an 
 application

 *The code:*

if (pd.isShowing()){
 pd.dismiss();
 }
  MainActivity.this.runOnUiThread(new Runnable() {

 public void run() {
   
  AlertDialog.Builder builder = new 
 AlertDialog.Builder(getApplication());
 builder.setTitle(Lo sentimos por el Fallo)
 .setMessage(Resolveremos el fallo lo antes posible)
 .setCancelable(false)
 .setIcon(R.drawable.ic_exception)
 .setPositiveButton(Enviar Fallo,
 new DialogInterface.OnClickListener() {
 public void onClick(DialogInterface dialog, int id) {
 //enviar por mail traza exception
 mDamageReport.submit( new Exception() );
 finish();
 }
 })
 .setNegativeButton(Cerrar,
 new DialogInterface.OnClickListener() {
 public void onClick(DialogInterface dialog,
 int id) {
 finish();
 }
 });

 builder.create().show();

 }
 });



-- 
-- 
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/groups/opt_out.




[android-developers] Re: exception when create new AlertDialog

2013-04-14 Thread Carlos Calvo
 on its main thread.
04-14 19:16:03.951: I/aur.sss.UserOnServerActivity(32486): Conexion HTTP 
terminda
04-14 19:16:04.037: I/aur.sss.UserOnServerActivity(32486): strongDatabase 
could not connect/strong {code:-99,message:Can't connect to MySQL 
server on 'sql104.byetcluster.com' (4)}strongerror /strong, no 
connection !!!
04-14 19:16:04.037: E/aur.sss.UserOnServerActivity(32486): JSONException 
message =error;org.json.JSONException: Value strongDatabase of type 
java.lang.String cannot be converted to JSONObject
04-14 19:16:04.444: E/aur.sss.adapters.BoyaAdapter(32486): 
Exceptionorg.json.JSONException: Value null of type org.json.JSONObject$1 
cannot be converted to JSONArray
04-14 19:16:05.842: W/System.err(32486): java.io.EOFException
04-14 19:16:05.850: W/System.err(32486): at 
java.io.DataInputStream.readByte(DataInputStream.java:98)
04-14 19:16:05.850: W/System.err(32486): at 
java.io.ObjectInputStream.nextTC(ObjectInputStream.java:506)
04-14 19:16:05.858: W/System.err(32486): at 
java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:778)
04-14 19:16:05.858: W/System.err(32486): at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:2006)
04-14 19:16:05.858: W/System.err(32486): at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:1963)
04-14 19:16:05.858: W/System.err(32486): at 
aur.sss.managers.DataManager.ReadToFile(DataManager.java:124)
04-14 19:16:05.865: W/System.err(32486): at 
aur.sss.managers.TideManager.GetPrevisiones(TideManager.java:54)
04-14 19:16:05.865: W/System.err(32486): at 
aur.sss.managers.TideManager.GetPrevision(TideManager.java:99)
04-14 19:16:05.865: W/System.err(32486): at 
aur.sss.layouts.MainInfoLayout.paintMareasSolyLuna(MainInfoLayout.java:197)
04-14 19:16:05.865: W/System.err(32486): at 
aur.sss.layouts.MainInfoLayout.paint(MainInfoLayout.java:56)
04-14 19:16:05.873: W/System.err(32486): at 
aur.sss.MainActivity.pintar(MainActivity.java:335)
04-14 19:16:05.873: W/System.err(32486): at 
aur.sss.MainActivity.access$0(MainActivity.java:332)
04-14 19:16:05.873: W/System.err(32486): at 
aur.sss.MainActivity$1.handleMessage(MainActivity.java:312)
04-14 19:16:05.873: W/System.err(32486): at 
android.os.Handler.dispatchMessage(Handler.java:99)
04-14 19:16:05.881: W/System.err(32486): at 
android.os.Looper.loop(Looper.java:137)
04-14 19:16:05.881: W/System.err(32486): at 
android.app.ActivityThread.main(ActivityThread.java:5041)
04-14 19:16:05.881: W/System.err(32486): at 
java.lang.reflect.Method.invokeNative(Native Method)
04-14 19:16:05.881: W/System.err(32486): at 
java.lang.reflect.Method.invoke(Method.java:511)
04-14 19:16:05.889: W/System.err(32486): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-14 19:16:05.889: W/System.err(32486): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-14 19:16:05.889: W/System.err(32486): at 
dalvik.system.NativeStart.main(Native Method)
04-14 19:16:05.990: D/dalvikvm(32486): GC_CONCURRENT freed 388K, 4% free 
11532K/11940K, paused 3ms+10ms, total 44ms
04-14 19:16:06.647: D/dalvikvm(32486): GC_FOR_ALLOC freed 305K, 5% free 
11969K/12512K, paused 30ms, total 30ms
04-14 19:16:07.576: D/dalvikvm(32486): GC_CONCURRENT freed 367K, 4% free 
12602K/13056K, paused 3ms+24ms, total 72ms
04-14 19:16:08.608: D/dalvikvm(32486): GC_CONCURRENT freed 385K, 4% free 
13424K/13840K, paused 2ms+8ms, total 51ms
04-14 19:16:09.772: D/dalvikvm(32486): GC_CONCURRENT freed 471K, 4% free 
14412K/14912K, paused 12ms+38ms, total 87ms


El domingo, 14 de abril de 2013 18:57:40 UTC+2, RichardC escribió:

 Where is the rest of it, you have truncated it too soon.

 On Sunday, April 14, 2013 5:10:47 PM UTC+1, Carlos Calvo wrote:

 The logcat

 04-14 18:06:42.043: E/AndroidRuntime(26483): FATAL EXCEPTION: main
 04-14 18:06:42.043: E/AndroidRuntime(26483): 
 android.view.WindowManager$BadTokenException: Unable to add window -- token 
 null is not for an application
 04-14 18:06:42.043: E/AndroidRuntime(26483): at 
 android.view.ViewRootImpl.setView(ViewRootImpl.java:571)
 04-14 18:06:42.043: E/AndroidRuntime(26483): at 
 android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:246)
 04-14 18:06:42.043: E/AndroidRuntime(26483): at 
 android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)

 thx


 El domingo, 14 de abril de 2013 17:18:00 UTC+2, RichardC escribió:

 Show us the Logcat

 On Sunday, April 14, 2013 3:55:42 PM UTC+1, Carlos Calvo wrote:

 Hello,

 I have a ProgressDialog running. Execute method .dismiss for destroy 
 them.

 But when i create a new AlertDialog i take a exception because the 
 progessdialog yet still show

 *Exception *Unable to add window -- token null is not for an 
 application

 *The code:*

if (pd.isShowing()){
 pd.dismiss();
 }
  MainActivity.this.runOnUiThread(new Runnable() {

 public void run() {
   
  AlertDialog.Builder builder = new 
 AlertDialog.Builder

[android-developers] Integrate app with Pinterest, Instagram...

2013-03-13 Thread Carlos Calvo
Hello,

I want to integrate my application with a storage service of images in the 
cloud type Pinteres, Instagram, etc.

You know if any of these has API to manage the images from my application?

What is the best option?

thx

kLvin

-- 
-- 
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/groups/opt_out.




[android-developers] Management image size

2013-01-14 Thread Carlos Calvo
Hello,

In my app I'm managing images downloaded from the server, and the first 
problem I encounter is that of size.

As you this paste you manage them?

You have different sizes depending on the server and the device descargais 
which?

You only have one on the server and the app re-scale?

Any idea or approach will be analyzed and studied: D: D

  thanks

   bY kLvin


Hola,

En mi app estoy gestionando imágenes que descargo del servidor, y el primer 
problema que me encuentro es el del tamaño. 

Como gestionáis vosotros esta pega??

Tenéis varios tamaños en el servidor y dependiendo del dispositivo 
descargais una u otra?

Solo teneis una en el servidor y la reescalais desde la app?

Cualquier idea o planteamiento sera analizado y estudiado :D :D

 Gracias 

  bY kLvin

-- 
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

[android-developers] Circle seekbar

2012-10-09 Thread Carlos Calvo
My problem to see if you have any ideas to implement ...

I need to select a range within a circle .. This means that the user picks 
me for example ranges from -90 ° to 90 ° ...

And that is a bit of a visual ...

He had thought seekbar implement a circular ...

But I'm open to all kinds of ideas and suggestions ...

best rewards

-- 
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

[android-developers] Re: Des Serialize file in android

2012-09-21 Thread Carlos Calvo


I finally discovered the cause of failure.

It's a java bug when serializing Calendar with multithreading

Now I keep time with a variable type long Calendar.getTimeInMillis

Good Luck

bY kLvin

El viernes, 14 de septiembre de 2012 13:09:13 UTC+2, Carlos Calvo escribió:

 I have a fairly rare issue.

 I have a fext file to parse and generate a model android data (there are 
 three classes) and serialized to file. This is done in android application 
 project I have.

 With myself from my mobile application deserialized the file correctly.

 Instead try to do this in another mobile with the same apk file and it 
 fails.

 Any idea of what is the reason behind this???

 Regards and any ideas I can be useful .


-- 
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

[android-developers] Des Serialize file in android

2012-09-14 Thread Carlos Calvo


I have a fairly rare issue.

I have a fext file to parse and generate a model android data (there are 
three classes) and serialized to file. This is done in android application 
project I have.

With myself from my mobile application deserialized the file correctly.

Instead try to do this in another mobile with the same apk file and it 
fails.

Any idea of what is the reason behind this???

Regards and any ideas I can be useful .

-- 
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