Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Ws rápido no browser lento no android

Bom mudei com citei acima e agora chamo por post (li que corro menos risco devido ao limite de tamanho do get)
   e ficou bem rapido.

Agora um outro "gargalo", este menor, é no Gson, faço assim:
      Type listType = new TypeToken<List<Produto>> {}.getType();
      List<Produto> produtos = new Gson().fromJson(stringJson, listType);

Li algo sobre ter um metodo dele que é tipo o StringBuilder, li +/- posso estar falando besteira.

Enfim minha duvida é, isto procede há uma maneira melhor (mais rapida) de fazer esta conversão?


Obrigado novamente


On Wed, May 22, 2013 at 10:59 AM, Tiago Grillo <tijgrillo@gmail.com> wrote:
Sim, mas o browser do celular é mais rapido, mas pelo que li, é algo com o ksoap mesmo..

https://www.google.com.br/search?q=ksoap2+very+slow&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=fflb


On Wed, May 22, 2013 at 10:05 AM, Lucas Xavier <lucasxas@gmail.com> wrote:
Vale lembrar que o browser conta com a ajuda do desktop que deve ser mais potente que o celular, correto? :)

--
Atenciosamente,

Lucas Xavier


2013/5/22 Tiago Grillo <tijgrillo@gmail.com>
Sim baixei ela também, mas não mudou o resultado.

Estava lendo a respeito e vi que usar por get é bem mais rapido.

usei assim:
HttpClient client = new DefaultHttpClient();  HttpGet request = new HttpGet("http://www.vogella.com");  HttpResponse response = client.execute(request);    // Get the response  BufferedReader rd = new BufferedReader    (new InputStreamReader(response.getEntity().getContent()));        String line = "";  while ((line = rd.readLine()) != null) {    textView.append(line);  } 


mas ainda estou fazendo testes



On Wed, May 22, 2013 at 9:04 AM, Felipe Aron <felipearon@gmail.com> wrote:
Tiago aqui estou usando a versão:

ksoap2-android-assembly-3.0.0-RC.4-jar-with-dependencies


2013/5/22 Tiago Grillo <tijgrillo@gmail.com>
Felipe meu metodo é exatamente assim.
Sim estou na mesma rede.
André li vou um teste aqui (e atualizei meu .jar)

vlw


On Tue, May 21, 2013 at 7:42 PM, Felipe Aron <felipearon@gmail.com> wrote:

Tô na mesma rede,  usando ksoap2.

Pela Internet a mesma consulta demora até 3 minutos,  lembrando que no meu caso é 40 mil registros.

---
Enviado pelo Nexus 7

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Analista-Programador

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário