Last active
August 4, 2017 04:28
-
-
Save Bruno125/ca7c1191c1d4898dcd99a146ca5494ce to your computer and use it in GitHub Desktop.
Java Activity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.pack.two; | |
// some imports | |
import com.example.package.one.MyClass; | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_java); | |
MyClass myClass = new MyClass(); | |
myClass.setListener(new MyClass.Listener() { | |
@Override | |
public void foo() { | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment