urban airship for push notification in android(Facing problems sometimes)
<p>I am using urban airship for push notifications in andorid. Sometimes i am going good with my code and sometimes i am facing problems with my code means sometimes i am getting the response correctly and sometimes and i am getting the response as -1(for every API call )</p>

<p>My logcat details are as follows:</p>

<p>The same code behaving differently --------- (I am proceeding as per the code and rules given in the urban airship site) :</p>

<p>Sometimes the response for Registration is coming like this:(Its behaving like this not only for registartion but also  for every API call like push ,get)</p>

<pre><code>01-20 08:58:38.008: I/System.out(412): {"tags":["hello1","hello2"],"alias":"15555215554"}
01-20 08:58:38.758: D/dalvikvm(412): GC_CONCURRENT freed 1366K, 57% free 2946K/6727K, external 2031K/2137K, paused 7ms+7ms
01-20 08:58:39.898: I/System.out(412): response code-1
01-20 08:58:39.898: I/System.out(412): content-type:null     content encoding value:null
01-20 08:58:40.639: W/IInputConnectionWrapper(412): showStatusIcon on inactive InputConnection
01-20 08:58:42.698: D/dalvikvm(412): GC_CONCURRENT freed 664K, 57% free 2920K/6727K, external 2064K/2137K, paused 7ms+6ms
01-20 08:58:49.918: I/chat application - UALib(412): Sending 5 events.
01-20 08:58:49.978: D/chat application - UALib(412): Sending Analytics to: https://combine.urbanairship.com/warp9/
01-20 08:58:51.688: I/dalvikvm(412): Jit: resizing JitTable from 512 to 1024
01-20 08:58:52.189: D/dalvikvm(412): GC_CONCURRENT freed 594K, 55% free 3040K/6727K, external 2064K/2137K, paused 18ms+7ms
01-20 08:58:54.058: D/chat application - UALib(412): Warp 9 response: 200
01-20 08:58:54.118: I/chat application - UALib(412): Deleting old events
01-20 08:59:49.898: I/chat application - UALib(412): Exiting analytics upload thread.


And sometimes its giving like this:

01-20 09:03:18.978: I/System.out(501): {"tags":["hello1","hello2"],"alias":"15555215554"}
01-20 09:03:20.159: D/dalvikvm(501): GC_CONCURRENT freed 1376K, 57% free 2936K/6727K, external 2031K/2137K, paused 7ms+6ms
01-20 09:03:22.149: D/dalvikvm(501): GC_CONCURRENT freed 694K, 56% free 2983K/6727K, external 2031K/2137K, paused 6ms+6ms
01-20 09:03:22.948: D/dalvikvm(501): GC_CONCURRENT freed 722K, 57% free 2936K/6727K, external 2031K/2137K, paused 7ms+6ms
01-20 09:03:23.669: I/System.out(501): response code200
01-20 09:03:23.669: I/System.out(501): content-type:text/plain; charset=UTF-8     content encoding value:null
</code></pre>

<p>Can you suggest me some solution for this?</p>
