Re: [android-developers] Parser

2013-02-14 Thread Kristopher Micinski
Ah, that makes sense, I've seen a similar thing in ORM-y things for
Java.  My arguments against static code bloat are also somewhat
invalidated by the fact that most JSON libraries will be small
footprint by design.

Kris

On Thu, Feb 14, 2013 at 12:09 AM, Kevin Duffey andjar...@gmail.com wrote:
 As long as you agree..that's all that matters.. ;). No I hear you.. for
 simple things I agree too.. although I always tend to try to eek every last
 bit of speed/memory save I can and would probably these days just use
 jackson for everything. Jackson has a nice json to pojo and pojo to json
 feature as well, which is nice to use your own model objects with json.


 On Tue, Feb 12, 2013 at 12:09 PM, Kristopher Micinski
 krismicin...@gmail.com wrote:

 I don't disagree, It's just that I'm typically processing a very minor
 amount of data (responses from web APIs, a small amount of the time).

 But like I said, it's a trade off, for any real use of JSON I'd also
 recommend something stream based, : )

 Kris

 On Tue, Feb 12, 2013 at 2:54 PM, Kevin Duffey andjar...@gmail.com wrote:
  The problem with the built in o e is it is similar to a DOM parser for
  xml
  in that it will load the entire json document into memory first. Jackson
  is
  a json stream processor so it uses a lot less memory and is typically
  much
  faster. I lean towards Jackson myself.
 
  On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
  wrote:
 
  JSON is so easy to use, I've never really had a problem with org.json.
   If you can get by using it I would do that, as it's already in the
  API (you won't have statically linked code sitting around clouding
  your app).
 
  kris
 
  On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K
  arunkuma...@npcompete.net
  wrote:
   Hi,
   I want to know which parser is best for android application..
   What is the different between json and jackson parser.
   which parser is best json or JACKSON
  
   --
   Thanks  Regards
   K.Arun Kumar
  
  
   --
   --
   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.
  
  
 
  --
  --
  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.
 
 
  --
  --
  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.
 
 

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



 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 

Re: [android-developers] Parser

2013-02-13 Thread Kevin Duffey
As long as you agree..that's all that matters.. ;). No I hear you.. for
simple things I agree too.. although I always tend to try to eek every last
bit of speed/memory save I can and would probably these days just use
jackson for everything. Jackson has a nice json to pojo and pojo to json
feature as well, which is nice to use your own model objects with json.


On Tue, Feb 12, 2013 at 12:09 PM, Kristopher Micinski 
krismicin...@gmail.com wrote:

 I don't disagree, It's just that I'm typically processing a very minor
 amount of data (responses from web APIs, a small amount of the time).

 But like I said, it's a trade off, for any real use of JSON I'd also
 recommend something stream based, : )

 Kris

 On Tue, Feb 12, 2013 at 2:54 PM, Kevin Duffey andjar...@gmail.com wrote:
  The problem with the built in o e is it is similar to a DOM parser for
 xml
  in that it will load the entire json document into memory first. Jackson
 is
  a json stream processor so it uses a lot less memory and is typically
 much
  faster. I lean towards Jackson myself.
 
  On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
  wrote:
 
  JSON is so easy to use, I've never really had a problem with org.json.
   If you can get by using it I would do that, as it's already in the
  API (you won't have statically linked code sitting around clouding
  your app).
 
  kris
 
  On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K 
 arunkuma...@npcompete.net
  wrote:
   Hi,
   I want to know which parser is best for android application..
   What is the different between json and jackson parser.
   which parser is best json or JACKSON
  
   --
   Thanks  Regards
   K.Arun Kumar
  
  
   --
   --
   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.
  
  
 
  --
  --
  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.
 
 
  --
  --
  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.
 
 

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




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

[android-developers] Parser

2013-02-12 Thread Arun Kumar K
Hi,
I want to know which parser is best for android application..
What is the different between json and jackson parser.
which parser is best json or JACKSON

-- 
*Thanks  Regards*
*K.Arun Kumar*

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




Re: [android-developers] Parser

2013-02-12 Thread Kristopher Micinski
JSON is so easy to use, I've never really had a problem with org.json.
 If you can get by using it I would do that, as it's already in the
API (you won't have statically linked code sitting around clouding
your app).

kris

On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K arunkuma...@npcompete.net wrote:
 Hi,
 I want to know which parser is best for android application..
 What is the different between json and jackson parser.
 which parser is best json or JACKSON

 --
 Thanks  Regards
 K.Arun Kumar


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



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




Re: [android-developers] Parser

2013-02-12 Thread Kevin Duffey
The problem with the built in o e is it is similar to a DOM parser for xml
in that it will load the entire json document into memory first. Jackson is
a json stream processor so it uses a lot less memory and is typically much
faster. I lean towards Jackson myself.
On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
wrote:

 JSON is so easy to use, I've never really had a problem with org.json.
  If you can get by using it I would do that, as it's already in the
 API (you won't have statically linked code sitting around clouding
 your app).

 kris

 On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K arunkuma...@npcompete.net
 wrote:
  Hi,
  I want to know which parser is best for android application..
  What is the different between json and jackson parser.
  which parser is best json or JACKSON
 
  --
  Thanks  Regards
  K.Arun Kumar
 
 
  --
  --
  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.
 
 

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




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




Re: [android-developers] Parser

2013-02-12 Thread Kristopher Micinski
I don't disagree, It's just that I'm typically processing a very minor
amount of data (responses from web APIs, a small amount of the time).

But like I said, it's a trade off, for any real use of JSON I'd also
recommend something stream based, : )

Kris

On Tue, Feb 12, 2013 at 2:54 PM, Kevin Duffey andjar...@gmail.com wrote:
 The problem with the built in o e is it is similar to a DOM parser for xml
 in that it will load the entire json document into memory first. Jackson is
 a json stream processor so it uses a lot less memory and is typically much
 faster. I lean towards Jackson myself.

 On Feb 12, 2013 7:27 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 JSON is so easy to use, I've never really had a problem with org.json.
  If you can get by using it I would do that, as it's already in the
 API (you won't have statically linked code sitting around clouding
 your app).

 kris

 On Tue, Feb 12, 2013 at 7:16 AM, Arun Kumar K arunkuma...@npcompete.net
 wrote:
  Hi,
  I want to know which parser is best for android application..
  What is the different between json and jackson parser.
  which parser is best json or JACKSON
 
  --
  Thanks  Regards
  K.Arun Kumar
 
 
  --
  --
  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.
 
 

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


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



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




Re: [android-developers] Parser avec Gson des objets de classe qui extends OverlayItem

2011-03-10 Thread TreKing
My French is rusty, but:

Nous parlons Englais ici. Oui?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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] Parser avec Gson des objets de classe qui extends OverlayItem

2011-03-09 Thread Jérem080
Mon problème est le suivant :

Tout d'abord, j'utilise Gson pour désérialiser un flux Json et ainsi
obtenir une liste avec tous mes objets créés (attributs du style :
lat, lon, détail, ville, etc).

Tout se passe pour le mieux. Le problème est que ma classe EXTENDS
OverlayItem (pour pouvoir être afficher sur une carte GoogleMaps) et
doit donc appeler la méthode SUPER dans le constructeur avec un
GeoPoint. Hors le flux Json est parser en passant par un constructeur
sans argument. Ce qui ne m'arrange pas car sans GeoPoint, pas possible
d'afficher les objets sur ma carte.

La seule solution que j'ai trouvé c'est de boucler sur ma liste
d'objet et à chaque fois recréer un objet en lui passant dans le
constructeur la latitude et la longitude pour le GeoPoint et faire une
recopie de tous les attributs. Mais la performance n'y est pas. 45min
d'attente :(

Quelqu'un aurait-il une solution à mon problème ?

-- 
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] Parser avec Gson des objets de classe qui extends OverlayItem

2011-03-09 Thread Jérem080
Mon problème est le suivant :

Tout d'abord, j'utilise Gson pour désérialiser un flux Json et ainsi
obtenir une liste avec tous mes objets créés (attributs du style :
lat, lon, détail, ville, etc).

Tout se passe pour le mieux. Le problème est que ma classe EXTENDS
OverlayItem (pour pouvoir être afficher sur une carte GoogleMaps) et
doit donc appeler la méthode SUPER dans le constructeur avec un
GeoPoint. Hors le flux Json est parser en passant par un constructeur
sans argument. Ce qui ne m'arrange pas car sans GeoPoint, pas possible
d'afficher les objets sur ma carte.

La seule solution que j'ai trouvé c'est de boucler sur ma liste
d'objet et à chaque fois recréer un objet en lui passant dans le
constructeur la latitude et la longitude pour le GeoPoint et faire une
recopie de tous les attributs. Mais la performance n'y est pas. 45min
d'attente :(

Quelqu'un aurait-il une solution à mon problème ?

-- 
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] Parser XML return table

2009-09-16 Thread sweet

Hello I'm new to android dev and I'd like to make a Parser xml which
return a table of string, i've try to find a tuto in the net but
without success. I know i should use SAX parser but i don't understand
his working if anybody can explain to me it will be very nice or if
anybody know a tutorial about this.
Thanks a lot
Sweet
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---