| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package com.google.android.test.cameraprewarm; |
| 18 |
|
| 19 |
import android.app.Activity; |
| 20 |
import android.graphics.Camera; |
| 21 |
import android.os.Bundle; |
| 22 |
import android.util.Log; |
| 23 |
import android.view.WindowManager; |
| 24 |
|
| 25 |
import com.google.android.test.cameraprewarm.R; |
| 26 |
|
| 27 |
public class SecureCameraActivity extends Activity { |
| 28 |
|
| 29 |
@Override |
| 30 |
protected void onCreate(Bundle savedInstanceState) { |
| 31 |
super.onCreate(savedInstanceState); |
| 32 |
setContentView(R.layout.camera_activity); |
| 33 |
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); |
| 34 |
Log.i(CameraActivity.TAG, "Activity created"); |
| 35 |
Log.i(CameraActivity.TAG, "Source: " |
| 36 |
+ getIntent().getStringExtra("com.android.systemui.camera_launch_source")); |
| 37 |
} |
| 38 |
} |