Basically I'm creating a small app which should record video when receiving a ping from another computer.
I have extended the Google Glass stopwatch example in order to create a basic live card. I removed ChronometerView.java
and changed CountDownView.java
so it does not count down but opens a ServerSocket
and displays text once it receives a ping from another computer.
This all goes well, but now I want to start Glass' built-in camera activity from CountDownView.java
once the signal is received. Simply inserting the below code does not work as (for as far as I understand) CountDownView.java
does not extend activity
.
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
startActivityForResult(intent, TAKE_VIDEO_REQUEST);
So how do I start the camera activity at this point?