On Sun, Jun 7, 2015 at 11:22 PM, justaguy <[email protected]> wrote:
> Running the app generated two errors. > The 1st one is: "error: <identifier> expected", source code: httpGet = new > (url); > That is a compiler error - if you're having trouble with this, you probably should take a step back from Android development and get a better handle on just learning Java and your IDE. To answer the question, you're missing the class type in the statement, which you have in the line above, but commented out: httpGet = new *HttpGet*(url); Also, wherever you got this code, it's severely outdated. DefaultHttpClient has not been supported for some time, and was officially deprecated in API 22. http://developer.android.com/reference/org/apache/http/impl/client/DefaultHttpClient.html You should use HTTPUrlConnection or, better yet, some networking library that handles most of this for you like Volley or Retrofit. Good luck. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

