<p dir="ltr">App works fine!<br></p>
<div class="gmail_quote">On Jun 21, 2013 5:17 PM, &quot;Matthias Wessendorf&quot; &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you! :)<div><br></div><div>that did the trick.</div><div><br></div><div>I filed two new JIRAs to cover the &quot;issues&quot; in the guide/docs</div><div><br></div><div><br>
</div><div>-Matthias</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 21, 2013 at 4:58 PM, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div>
    <div>On 06/21/2013 10:46 AM, Matthias
      Wessendorf wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Fri, Jun 21, 2013 at 4:35 PM,
            Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>
                  <div>On 06/21/2013 10:31 AM, Matthias Wessendorf
                    wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr"><br>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">On Fri, Jun 21, 2013 at
                          4:16 PM, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span>
                          wrote:<br>
                          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000">
                              <div>Eclipse + Maven + Android is a series
                                of long sighs best avoided.  The idea
                                with the Android project is we declared
                                the compile time dependencies for the
                                application and they SHOULD be dropped
                                into your /libs folder after running
                                `mvn dependency:copy`.  After that
                                Eclipse SHOULD pick them up correctly.<br>
                              </div>
                            </div>
                          </blockquote>
                          <div><br>
                          </div>
                          <div>ah... ok. the &quot;<span style="font-family:arial,sans-serif;font-size:13px">mvn

                              dependency:copy&quot; is missing on the README
                              (will file a JIRA/PR soon).</span></div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
                It isn&#39;t in the README, it is in the Eclipse doc.<br>
                <br>
                <a href="https://github.com/aerogear/aerogear.org/blob/master/docs/guides/GetStartedAndroidEclipse.asciidoc#getting-the-source-with-git" target="_blank">https://github.com/aerogear/aerogear.org/blob/master/docs/guides/GetStartedAndroidEclipse.asciidoc#getting-the-source-with-git</a><br>


                <br>
                I don&#39;t want to muddle up the README with the n! ways of
                getting AeroGear running ;).</div>
            </blockquote>
            <div><br>
            </div>
            <div>ah... OK. I missed that since I had the build
              already working, and directly went to the &quot;Importing the
              project into Eclipse&quot; section :) </div>
            <div><br>
            </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div><br>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div class="gmail_extra">
                        <div class="gmail_quote">
                          <div> </div>
                          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000">
                              <div> <br>
                                The second half of this is making sure
                                you download the Android support
                                library.<br>
                              </div>
                            </div>
                          </blockquote>
                          <div><br>
                          </div>
                          <div>Ok, not really sure what you mean here </div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
                It is under the Android Tools submenu of the context
                menu in Eclipse.</div>
            </blockquote>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>OK, now this resolves fine for the &quot;support&quot;
              bits, e.g:</div>
            <div><br>
            </div>
            <div><span>import</span>
              android.support.v4.app.FragmentActivity;   &lt;==== GOOD
              NOW :)<br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>Let me file a JIRA to include the &quot;Support
              Lib&quot; on the Eclipse guide.</div>
            <div><br>
            </div>
            <div>but still, this does not resovle:</div>
            <div>
              <br>
            </div>
            <div>
              <p>
              </p>
              <p><span>import</span> <span>android.app.Fragment</span>;</p>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote></div>
    Hrm... It needs to be building against 4.0+ to resolve that.  It
    doesn&#39;t hurt backwards compatibility as long as developers use the
    right libraries APIs.<div><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div><br>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div class="gmail_extra">
                        <div class="gmail_quote">
                          <div> </div>
                          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                            <div bgcolor="#FFFFFF" text="#000000">
                              <div> <br>
                                Could you post the content of your libs
                                directory?</div>
                            </div>
                          </blockquote>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>
                            <div>pluto:aerogear-android matzew$ ls -la
                              libs/</div>
                            <div>total 4104</div>
                            <div>drwxr-xr-x   5 matzew  staff      170
                              Jun 21 16:24 .</div>
                            <div>drwxr-xr-x  17 matzew  staff      578
                              Jun 21 16:24 ..</div>
                            <div>-rw-r--r--   1 matzew  staff    13662
                              Jun 21 16:24 gcm-client-3.jar</div>
                            <div>-rw-r--r--   1 matzew  staff   189285
                              Jun 21 16:24 gson-2.2.2.jar</div>
                            <div> -rw-r--r--   1 matzew  staff  1891110
                              Jun 21 16:24 guava-13.0.1.jar</div>
                          </div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>now.... the google collection
                            dependencies are resolved.</div>
                          <div><br>
                          </div>
                          <div> Only that these are now continuing
                            issues:<br>
                          </div>
                          <div>
                            <p><span>import</span> <span>android.app.Fragment</span>;<br>
                              <span>import</span> <span>android.support</span>.v4.app.FragmentActivity;</p>
                          </div>
                          <div>as well as the &quot;<span>import</span> <span>com.google.android.gms</span>.gcm.GoogleCloudMessaging;&quot;

                            (and some others)</div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
                You need to use the Google API&#39;s build target instead of
                the Android 2.3.3 build target.  The docs on <a href="http://aerogear.org" target="_blank">aerogear.org</a> (obviously) havn&#39;t
                been updated for push yet ;)</div>
            </blockquote>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>Hrm &quot;Google APIs [Android 2.3.3]&quot; does not
              help to resolve &quot;Fragment&quot; or &quot;GoogleCloudMessaging&quot; .</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>For fun, I changed to &quot;Google APIs [Android
              4.2.2]&quot;. That resolved almost all issues, _except
              &quot;import com.google.android.gms.gcm.GoogleCloudMessaging;&quot;.
              That guy is still a problem   :-) </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote></div>
    Oh ok then :)<br>
    <br>
    GoogleCloudMessaging is provided by the Android SDK.  You need to
    import the Google Play Services project into Eclipse and reference
    the library from the AG project.  The Services project is in
    $ANDROID_HOME/extra/google/google-play-services.<div><div><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div><br>
            </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>
                  <div><br>
                    <br>
                    <br>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div class="gmail_extra">
                          <div class="gmail_quote">
                            <div>-Matthias</div>
                            <div><br>
                            </div>
                            <div> </div>
                            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                              <div bgcolor="#FFFFFF" text="#000000">
                                <div>
                                  <div>
                                    <div><br>
                                      <br>
                                      <br>
                                      On 06/21/2013 06:10 AM, Matthias
                                      Wessendorf wrote:<br>
                                    </div>
                                  </div>
                                </div>
                                <div>
                                  <div>
                                    <blockquote type="cite">
                                      <div dir="ltr">Hi,
                                        <div><br>
                                        </div>
                                        <div>I did a download of the
                                          latest Android SDK
                                          (adt-bundle-mac-x86_64-20130522),
                                          and did follow our
                                          instructions here:</div>
                                        <div><a href="https://github.com/aerogear/aerogear-android/blob/push/README.md" target="_blank">https://github.com/aerogear/aerogear-android/blob/push/README.md</a></div>
                                        <div><br>
                                        </div>
                                        <div>I did the
                                          maven-sdk-deployer etc, all
                                          good. the branch was compiling
                                          with Maven. Great!</div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div>Now, with Eclipse, I did
                                          follow these instructions:</div>
                                        <div> <a href="http://staging.aerogear.org/docs/guides/GetStartedAndroidEclipse/" target="_blank">http://staging.aerogear.org/docs/guides/GetStartedAndroidEclipse/</a><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div>But once I finished these
                                          steps, I am getting compiler
                                          errors. For instance on the
                                          Pipeline.java, I am getting
                                          these issues:</div>
                                        <div><br>
                                        </div>
                                        <div><span>import</span> <span>android.app.Fragment</span>;<br>
                                          <span>import</span> <span>android.support</span>.v4.app.FragmentActivity;<br>
                                          <span>import</span> <span>com.google</span>.common.collect.HashMultimap;<br>
                                          <span>import</span> <span>com.google</span>.common.collect.Multimap;</div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div>While I think that the
                                          android.** related import
                                          issues are most likely related
                                          to the fact that this is
                                          perhaps now wrong (2.3.3):</div>
                                        <div><a href="http://staging.aerogear.org/docs/guides/img/android_eclipse_import_005.png" target="_blank">http://staging.aerogear.org/docs/guides/img/android_eclipse_import_005.png</a><br>


                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div> But the Google Collections
                                          are also not resolving. </div>
                                        <div><br>
                                        </div>
                                        <div>I guess the &quot;Import&quot; in
                                          Eclipse is not really
                                          reflecting the description of
                                          the guava dependency in the
                                          pom.xml file.</div>
                                        <div><br>
                                        </div>
                                      </div>
                                    </blockquote>
                                  </div>
                                </div>
                                <blockquote type="cite">
                                  <div>
                                    <div>
                                      <div dir="ltr">
                                        <div>Besides the google
                                          collections, I also noticed
                                          that other classes (like &quot;<span>com.google</span>.android.gms.gcm.GoogleCloudMessaging&quot;)


                                          are not being resolved.</div>
                                        <div> <br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div>Is there a way that all
                                          these &quot;required&quot; dependencies
                                          are picked up automatically,
                                          by the Eclipse IDE?   Or do I
                                          have to import all
                                          dependencies, by hand ? </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div>Thanks!</div>
                                        <div>Matthias</div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div> <br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div><br clear="all">
                                          <div><br>
                                          </div>
                                          -- <br>
                                          Matthias Wessendorf <br>
                                          <br>
                                          blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
                                          sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
                                          twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
                                        </div>
                                      </div>
                                      <br>
                                      <fieldset></fieldset>
                                      <br>
                                    </div>
                                  </div>
                                  <pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
                                </blockquote>
                                <br>
                              </div>
                              <br>
_______________________________________________<br>
                              aerogear-dev mailing list<br>
                              <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
                              <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
                            </blockquote>
                          </div>
                          <br>
                          <br clear="all">
                          <div><br>
                          </div>
                          -- <br>
                          Matthias Wessendorf <br>
                          <br>
                          blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
                          sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
                          twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
                        </div>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              aerogear-dev mailing list<br>
              <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
              <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          Matthias Wessendorf <br>
          <br>
          blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
          sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
          twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>

<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>

twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</blockquote></div>