• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Recent content by Rascalsailor

  1. Rascalsailor

    Android Studio - requires manual Sync every startup

    Hi - I have Android Studio 4.1.1 Every time I start the IDE, I need to click the Sync project with Gradle files otherwise I get the dreaded red errors everywhere. This seems to be a recent problem (since upgrading maybe?) I also have to keep specifying the SDK each time (Module JDK is not...
  2. Rascalsailor

    How is this interface implemented?

    Hi all. I wrote a simple weather app which goes fetches data from Openweathermap's API in Json format. I used an Aynctask to fetch the data, using ideas from online (as we all do!) All works ok, but I am trying to get a better understanding of the callback implementation (similar to the one at...
  3. Rascalsailor

    Apps Any change in file requires second compile

    Hi all. I am still learning and have a project involving a few buttons and a spinner as a simple test. All is working, but a problem came about when I added a new class file (myClass.java), just to practice using and accessing classes in other files. I also have a inner class in another file to...
  4. Rascalsailor

    making a variable visible in switch statement

    Hi all - In the code below, I need the variables button1 and button2 to be visible in the switch statement to change their button text after being clicked.The switch statement happliy uses their button id's to decide which was clicked, but it can't see the button1 or button2 variables in the...
  5. Rascalsailor

    Json parser; URL question

    Hi all I got a json parser running in AS with an AVD based on the example at:https://www.tutorialspoint.com/android/android_json_parser.htm The code attempts to access json data at:"http://api.androidhive.info/contacts/ The resulting response in Logcat in Studio gives: Response from url...
  6. Rascalsailor

    Hello from new user

    Hi - have just joined. Great to see such a thriving and helpful community. Background is electronic eng., but am hoping to learn Android App programming and related coding. greetings from Russell
  7. Rascalsailor

    Apps Android Studio - how to enable code changes button

    Hi I am using 3.5.3 and was wanting to enable the "Apply Code Changes" - (it is greyed out.) the popup message reads: "apply code changes disabled incompatible device api level" My compile Sdk version is: 28(API 28: Android 9.0 {Pie)) My build tools version is 29.0.2 Is the problem that I need...