If anyone is looking for an answer here still then there is a simple test.

Along with the post data will be a value for entry_id, this is related to the originating entry id. So if this value is 0 then it is a new entry, if this value is > 0 then it is an update to an existing entry.

eg,

if ($_REQUEST['entry_id'] === 0) { // new post } else { // existing post }

With the hook entry_submission_end, is it possible to know if the entry is inserted or updated?
I want to create 2 or more than 2 two button in android but I got the problem in this line 

View btnClick = findViewById(R.id.buttonClick);
    View btnscan = findViewById(R.id.btscanClick);
    //set event listener
    btnClick.setOnClickListener(this);
}

//override the OnClickListener interface method
@Override
public void onClick(View arg0) {
    if(arg0.getId() == R.id.buttonClick){
        //define a new Intent for the second Activity
        Intent intent = new Intent(this,SecondActivity.class);
        //start the second Activity
        this.startActivity(intent);

public void onClick1(View arg1) {
    if(arg1.getId() == R.id.btscanClick){
        //define a new Intent for the second Activity
        Intent intent = new Intent(this,ScanActivity.class);
        //start the second Activity
        this.startActivity(intent);

