JSON Requests (Weather Sample) seems not to work with SDK 1.0.0

Former Member
Former Member
I tried out the Weather sample with SDK 1.0.0 but the JSON request never return (onReceive is not reached).
I had the same problem in old SDK with request to http://api.openweathermap.org/data/2.5/forecast (for the 3 hour forecast).
Is the a problem with JSON in general (e.g. if the answer has a certain size?)?:confused:
  • The makeJsonRequest() api has very unreliable in my testing. Sometimes it doesn't work, sometimes it takes a long time, other times it returns immediately, and then in the worst case it just crashes.
  • Do you also have problems with most of the samples in 1.0?
    For eg. Strings sample show only digital clock nothig more.

    EDIT:
    OK I get it, some samples are not working, just need to set proper class in entry="" in manifest.
    Similar with C64Face is not updating every second b/c class C64View extends Ui.View instead of class C64View extends Ui.WatchFace.

    For now there is a lot of guessing with connect IQ:)
  • All of the example programs 'work' in the simulator. If you want to deploy them to a device, then you need to enable that device in the manifest and build the binary for the device. Instead of manually editing the xml, it is probably best to modify them via the Eclipse project properties.

    As for the C64Face example, it isn't wrong. As with anything else in the world, you can't expect examples of how to do things. The documentation should be sufficient.

    Travis