-
AutorEntradas
-
27 noviembre, 2017 a las 11:33 am #7072
Luis PrietoParticipanteBuenos dias Juan,
Lo primero de todo, agradecerte el curso, es el único que he encontrado que realmente me esta ayudando cara a hacer un proyecto. Eso si, necesitaria un soporte adicional y personalizado. Es posible?
Por otro lado, es posible comprar el curso? No siempre tengo acceso a Internet.
Saludos
28 noviembre, 2017 a las 6:25 pm #7078
Juan DíazParticipanteHola Luis:
El cursod e Android está aún en elaboración y en breve seguiré subiendo vídeos. Por este motivo su compra aún no se posible. En cuanto al soporte para aplicaciones personales/proyectos personales, siento decirte que no ofrezco ese servicio. Un saludo!
28 noviembre, 2017 a las 7:43 pm #7079
Luis PrietoParticipanteOk Gracias, si tengo alguna duda lo preguntare en el foro. Estoy haciendo un proyecto de la universidad relativo circulo de Morh en Android. Ya has subido clases para cálculos matemáticos, unidades de medida y gráficos. Creo que mas o menos lo tengo medio claro, a ver si estoy fino…
Saludos
16 febrero, 2018 a las 11:48 am #7559
Luis PrietoParticipanteHola Juan,
Lo primero. Finalmente con tu curso, especialmente la parte de paso de datos entre actividades ( bundle), la parte grafica ( Canvas, Paint etc) y la de Math de tu curso de JAVA, tengo el proyecto bastante encaminado. Te doy mis mas sinceras gracias.
Por otro lado, me siguen quedando algunas dudas, alguna quizás algo básica:
– No hay forma de guardar como en Android studio? como en office. Solo se generar apk. pero siempre se guardan con el mismo nombre de archivo. El problema que estoy encontrando es que cuando cometo errores, pierdo mucho tiempo para remediarlos. En el caso de guardar con diferentes nombres, siempre te permite irte a la versión anterior.
– Para Canvas.scale, necesitas siempre utilizar primero el Canvas.translate ?
– Dado que necesito dibujar en un eje de abscisas, estoy utilizando:
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><span style=”color: #000080; font-weight: bold;”>int </span>ancho = canvas.getWidth();
<span style=”color: #000080; font-weight: bold;”>int </span>alto= canvas.getHeight();y luego referencio las variable ancho y alto para dibujar los ejes:
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”>canvas.drawLine(ejex_in,puntoY_medio,ejex_fin,puntoY_medio,pincel_EjeXY);
canvas.drawLine(puntoX_medio,ejey_in,puntoX_medio,ejey_fin,pincel_EjeXY);Sin embargo no me da errores pasar de entero a float, en este caso no hace falta hacer un casting verdad?
– Intento generar puntos de manera automática en los <span style=”display: inline !important; float: none; background-color: transparent; color: #333333; font-family: Georgia,’Times New Roman’,’Bitstream Charter’,Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 24px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;”>ejes de abscisas</span>:
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><span style=”color: #000080; font-weight: bold;”>for</span>(ejex_in=<span style=”color: #0000ff;”>1</span>; ejex_in<ejex_fin;ejex_in++) {canvas.drawPoint(ejex_in, puntoY_medio, pincel_Punto);
}
Y aquí me quedo pillado, échame una mano por favor
Muchas gracias de antemano y disculpa mis carencias.
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”>
16 febrero, 2018 a las 11:52 am #7560
Luis PrietoParticipanteNo se que ha pasado que se han copiado propiades de texto, cuando he escrito el mensaje no estaban. Han salido una vez le he dado a enviar. <span style=”display: inline !important; float: none; background-color: transparent; color: #8c8c8c; font-family: ‘Lato’; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;”><pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”></span><b></b><i></i><u></u>
29 marzo, 2018 a las 2:57 pm #7944
Luis PrietoParticipanteHola, ya tengo la aplicación completa, tan solo tengo que resolver un problema que surge con la excepción:
Se me sigue cayendo el programa si no meto datos en la entrada
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><span style=”color: #000080; font-weight: bold;”>public void </span>calculo_radio (View vista) {EditText entrada1 = (EditText) findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Sx</span>);
EditText entrada2 = (EditText) findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Sy</span>);
EditText entrada3 = (EditText) findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Tangencial</span>);
<b></b><i></i><u></u>
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><span style=”color: #000080; font-weight: bold;”>try </span>{<span style=”color: #000080; font-weight: bold;”>double </span>n1 = Double.<span style=”font-style: italic;”>parseDouble</span>(entrada1.getText().toString());
<span style=”color: #000080; font-weight: bold;”>double </span>n2 = Double.<span style=”font-style: italic;”>parseDouble</span>(entrada2.getText().toString());
<span style=”color: #000080; font-weight: bold;”>double </span>n3 = Double.<span style=”font-style: italic;”>parseDouble</span>(entrada3.getText().toString());
Intent radio = <span style=”color: #000080; font-weight: bold;”>new </span>Intent(<span style=”color: #000080; font-weight: bold;”>this</span>, Dibujar_Circulo.<span style=”color: #000080; font-weight: bold;”>class</span>);radio.putExtra(<span style=”color: #008000; font-weight: bold;”>”numero1″</span>, n1);
radio.putExtra(<span style=”color: #008000; font-weight: bold;”>”numero2″</span>, n2);
radio.putExtra(<span style=”color: #008000; font-weight: bold;”>”numero3″</span>, n3);startActivity(radio);//va otra actividad
}<span style=”color: #000080; font-weight: bold;”>catch </span>(Exception e){
EditText numero_resetSx= (EditText)findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Sy</span>);
EditText numero_resetSy= (EditText)findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Sx</span>);
EditText numero_resetTag= (EditText)findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Tangencial</span>);
numero_resetSx.setText(<span style=”color: #008000; font-weight: bold;”>”0″</span>);
numero_resetSy.setText(<span style=”color: #008000; font-weight: bold;”>”0″</span>);
numero_resetTag.setText(<span style=”color: #008000; font-weight: bold;”>”0″</span>);}
También he intentado:
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><span style=”color: #000080; font-weight: bold;”>public void </span>calculo_radio (View vista) {
EditText entrada1 = (EditText) findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Sx</span>);
EditText entrada2 = (EditText) findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Sy</span>);
EditText entrada3 = (EditText) findViewById(R.id.<span style=”color: #660e7a; font-weight: bold; font-style: italic;”>Tangencial</span>);
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><span style=”display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”> radio.putExtra(</span><span style=”background-color: transparent; color: #008000; font-family: " courier new"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”>”numero1″</span><span style=”display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”>, n1);</span><br style=”background-color: transparent; color: #000000; font-family: " courier new"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;” /><span style=”display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”> radio.putExtra(</span><span style=”background-color: transparent; color: #008000; font-family: " courier new"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”>”numero2″</span><span style=”display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”>, n2);</span><br style=”background-color: transparent; color: #000000; font-family: " courier new"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;” /><span style=”display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”> radio.putExtra(</span><span style=”background-color: transparent; color: #008000; font-family: " courier new"; font-size: 16px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”>”numero3″</span><span style=”display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;”>, n3);</span>
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><span style=”color: #000080; font-weight: bold;”>if </span>(entrada1!=<span style=”color: #000080; font-weight: bold;”>null</span>||entrada2!=<span style=”color: #000080; font-weight: bold;”>null</span>||entrada3!=<span style=”color: #000080; font-weight: bold;”>null</span>) {n1=<span style=”color: #0000ff;”>0</span>;
n2=<span style=”color: #0000ff;”>0</span>;
n3=<span style=”color: #0000ff;”>0</span>;
}
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><span style=”color: #000080; font-weight: bold;”>else if</span>(entrada1!=<span style=”color: #000080; font-weight: bold;”>null</span>||entrada2!=<span style=”color: #000080; font-weight: bold;”>null</span>||entrada3!=<span style=”color: #000080; font-weight: bold;”>null</span>){Intent radio = <span style=”color: #000080; font-weight: bold;”>new </span>Intent(<span style=”color: #000080; font-weight: bold;”>this</span>, Dibujar_Circulo.<span style=”color: #000080; font-weight: bold;”>class</span>);
radio.putExtra(<span style=”color: #008000; font-weight: bold;”>”numero1″</span>, n1);
radio.putExtra(<span style=”color: #008000; font-weight: bold;”>”numero2″</span>, n2);
radio.putExtra(<span style=”color: #008000; font-weight: bold;”>”numero3″</span>, n3);startActivity(radio);
}
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”>Pero se me cae de todas manera, por favor, mirad a ver si me podeis echar una mano.Gracias
<pre style=”background-color: #ffffff; color: #000000; font-family: ‘Courier New’; font-size: 9,0pt;”><b></b><i></i><u></u>29 marzo, 2018 a las 2:59 pm #7945
Luis PrietoParticipanteNo me deja mandar el código…Juan, te puedo enviar la apk ?
-
AutorEntradas
- Debes estar registrado para responder a este debate.