Created
February 13, 2015 16:06
-
-
Save theblang/48d2d54f671d5996aec5 to your computer and use it in GitHub Desktop.
toast on app start
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
public class MyApplication extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
Toast.makeText(getApplicationContext(), "Hello World", Toast.LENGTH_SHORT).show(); | |
} | |
} | |
then in manifest | |
<application | |
android:name=".MyApplication" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment