title: Android App - Unable to start activity ComponentInfo
body: <p>i created an app, that should receive data from my thingspeak channel.
  First i just used the webview widget, but i want to go further and use the thingspeak java api to handle the data by myself.</p>
  
  <p>In MainActivity i just put in the code :</p>
  
  <pre><code>Channel channel = new Channel(1234,"writeKey");
  try {
      Entry entry = channel.getLastChannelEntry();
  } catch (UnirestException e) {
      e.printStackTrace();
  } catch (ThingSpeakException e) {
      e.printStackTrace();
  }
      out.println("entry");
  </code></pre>
  
  <p>but i get the following error:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{de.babytemp.babytempapp2/de.babytemp.babytempapp2.MainActivity}: java.lang.IllegalArgumentException: Unknown pattern character 'X'
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
  at android.app.ActivityThread.access$800(ActivityThread.java:151)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:135)
  at android.app.ActivityThread.main(ActivityThread.java:5254)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
                                                Caused by: java.lang.IllegalArgumentException: Unknown pattern character 'X'
  at java.text.SimpleDateFormat.validatePatternCharacter(SimpleDateFormat.java:314)
  at java.text.SimpleDateFormat.validatePattern(SimpleDateFormat.java:303)
  at java.text.SimpleDateFormat.&lt;init&gt;(SimpleDateFormat.java:356)
  at com.google.gson.DefaultDateTypeAdapter.&lt;init&gt;(DefaultDateTypeAdapter.java:49)
  at com.google.gson.GsonBuilder.addTypeAdaptersForDate(GsonBuilder.java:555)
  at com.google.gson.GsonBuilder.create(GsonBuilder.java:543)
  at de.babytemp.babytempapp2.Channel.&lt;init&gt;(Channel.java:46)
  at de.babytemp.babytempapp2.MainActivity.onCreate(MainActivity.java:41)
  at android.app.Activity.performCreate(Activity.java:5990)
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) 
  at android.app.ActivityThread.access$800(ActivityThread.java:151) 
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) 
  at android.os.Handler.dispatchMessage(Handler.java:102) 
  at android.os.Looper.loop(Looper.java:135) 
  at android.app.ActivityThread.main(ActivityThread.java:5254) 
  at java.lang.reflect.Method.invoke(Native Method) 
  at java.lang.reflect.Method.invoke(Method.java:372) 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 
  </code></pre>
  
  <p>Thanks!</p>