mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
24 lines
609 B
Java
24 lines
609 B
Java
package com.example.app;
|
|
|
|
import android.app.Activity;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.webkit.WebSettings;
|
|
import android.webkit.WebView;
|
|
import android.webkit.WebViewClient;
|
|
|
|
/** A utility program for getting intent extra information from Android activity */
|
|
public class IntentUtils {
|
|
/** Get intent extra */
|
|
public static String getIntentUrl(Activity a) {
|
|
String thisUrl = a.getIntent().getStringExtra("url");
|
|
return thisUrl;
|
|
}
|
|
|
|
/** Get bundle extra */
|
|
public static String getBundleUrl(Activity a) {
|
|
String thisUrl = a.getIntent().getExtras().getString("url");
|
|
return thisUrl;
|
|
}
|
|
} |