1. Android Central Question's Avatar
    old code

    package com.myappcompany.rob.interactivitydemo;

    import android.support.v7.app.AppCompatActivity;
    import android.os.Bundle;
    import android.util.Log;
    import android.view.View;

    public class MainActivity extends AppCompatActivity {

    public void clickFunction(View view) {

    Log.i("Info", "It worked!!");

    }

    @override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    }
    }

    new code

    package com.example.myapplication;

    import androidx.appcompat.app.AppCompatActivity;
    import android.os.Bundle;
    import android.util.Log;
    import android.view.View;

    public class MainActivity extends AppCompatActivity {
    private String tag,msg;

    public void clickFunction(View view){
    Log.i( tag:"Info" , msg :"Button Pressed");
    }

    @override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    }
    }
    in new code does not identify tag and msg
    12-14-2019 01:12 PM
  2. mustang7757's Avatar
    If you like to join the community , and interact with other members developing apps can register here.https://forums.androidcentral.com/sh...d.php?t=409154
    12-14-2019 01:22 PM
  3. hallux's Avatar
    You might consider posting in the developer's forum/lounge if you have a specific question. You would need to register to post there.

    If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See this link for instructions on how to join Android Central.
    12-14-2019 01:22 PM
  4. belodion's Avatar
    Would you like this thread to be moved?
    ManiacJoe likes this.
    12-14-2019 01:53 PM
  5. B. Diddy's Avatar
    I went ahead and moved it.
    12-14-2019 07:42 PM
  6. Rukbat's Avatar
    First learn programming, including object oriented programming - in English. (You don't 'build an app', you solve a problem. Then you code the solution into Java/Kotlin.)
    12-16-2019 12:02 AM
  7. BackupF's Avatar
    c++ is the basis of programming (however you could also try Assembler if you wanna try hardcore)
    12-31-2019 08:33 AM

Similar Threads

  1. Finally having to move to Android
    By squeezy99 in forum New to the Forums? Introduce Yourself Here!
    Replies: 26
    Last Post: 01-16-2020, 01:06 PM
  2. Why do i see 2 apps running in background even though i opened just 1 app
    By Android Central Question in forum Ask a Question
    Replies: 3
    Last Post: 12-16-2019, 12:07 AM
  3. How to change my phone settings to what they were 2 days ago
    By Android Central Question in forum Ask a Question
    Replies: 2
    Last Post: 12-14-2019, 07:49 PM
  4. I don't want to change my password
    By Android Central Question in forum Ask a Question
    Replies: 3
    Last Post: 12-14-2019, 07:43 PM
LINK TO POST COPIED TO CLIPBOARD