We cant go with just a JSON Object or HashMap, because we want to give those objects some more logic in form of additional methods.
Ok, it's good to know about GSON. But why are you not just using...
Type: Posts; User: OneWorld123; Keyword(s):
We cant go with just a JSON Object or HashMap, because we want to give those objects some more logic in form of additional methods.
Ok, it's good to know about GSON. But why are you not just using...
I dont see you taking use of the Event and Location objects in the 2nd code frame.
You just download the resource and parse them to String with the help of RestTemplate. Later on u parse the...
E.g. when threading.
How? Could you provide me the code? Thx!
@dutchman: I think u forgot the @Annotations in our Event class which are required for the JacksonJSONparser
I added an empty contructor to "MyObject" and put "MyObject.class" into the getForObject method.
Result: all attributes are null.
So I remain using the wrappe and dont use empty constructors....
Here is the JSON file:
{"myObject":{"title":"this is the...
After a lot of trial and error I got it working. Take a look at my results...
Example:
Execution of the getForObjectMethod
RestTemplate restTemplate = new RestTemplate();...
The first time I saw http://static.springsource.org/spring-android/docs/1.0.x/reference/htmlsingle/#spring-android-rest-template-example2 I thougt This is the framework to go! Now after 3 days on it...
Thats the way I fixed it with the help of dutchman:
I downloaded http://jackson.codehaus.org/1.6.3/jackson-all-1.6.3.jar from http://wiki.fasterxml.com/JacksonDownload dragged the .jar file in my...
Thats my approach so far:
//relevant imports:
import org.springframework.http.converter.HttpMessageConverter;
import...
hey nala,
in my initial post in point 1 I wrote a link to a zip file. I took the jar-file from the bin folder in this file.
Dont add the logging...jar to your build path. its in this version...
Thats the way I got it working in eclipse:
Pull spring-android-rest-template-1.0.0.M1.jar into eclipse and add it to build path Download...
Issue #2
11-30 14:35:21.339: INFO/ActivityManager(1283): Process org.dayup.gtask (pid 19008) has died.
11-30 14:35:21.339: INFO/dalvikvm(19022): WOW: somebody generated [Landroid/graphics/Rect;...
I have exactly the same problem.
Could you please provide a more detailed install instructions? I use Google API 4 (includes Android 1.6)
I went this way:
Download...