mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
16 lines
376 B
Java
16 lines
376 B
Java
package com.example.app;
|
|
|
|
import android.app.Activity;
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
|
/** A utility program for getting intent extra information from Android activity */
|
|
public class IntentUtils {
|
|
|
|
/** Get double extra */
|
|
public static double getDoubleExtra(Activity a, String key) {
|
|
String value = a.getIntent().getStringExtra(key);
|
|
return Double.parseDouble(value);
|
|
}
|
|
} |