Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Intent;
import android.os.Bundle;

public class Main {
    public static final String ACTIVITEIT_NAME = "activiteit_name";

    public static String getActiviteitNameFromIntent(Intent intent) {
        if (intent == null) {
            return null;
        }
        Bundle extras = intent.getExtras();
        if (extras == null) {
            return null;
        }
        return extras.getString(ACTIVITEIT_NAME);
    }
}