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 App extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
//call the asynctask class here to initialize the library; | |
new PushItInitialize().execute(); | |
} |
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
@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 |
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
/* | |
* 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: |
NewerOlder