Skip to content

Instantly share code, notes, and snippets.

View codeInBit's full-sized avatar

Olanrewaju Abidogun codeInBit

View GitHub Profile
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
//call the asynctask class here to initialize the library;
new PushItInitialize().execute();
}
@Override
protected void onResume() { //will be called in any cases
super.onResume();
// getIntent() should always return the most recent intent hence a viable candidate for
// displaying messages from notifications
//Make provisions to receive the intent and parse the expected response in a desired format
if(getIntent().hasExtra(PushIt.TYPE)){
String notification_type= getIntent().getStringExtra(PushIt.TYPE);//detect message type
/*
* Original script by: Shafiul Azam
* Version 4.0
* Modified by: Luigi Balzano
* Description:
* Inserts Countries and/or States as Dropdown List
* How to Use:
In Head section: