Android Open Source - android-camera-example Home Activity






From Project

Back to project page android-camera-example.

License

The source code is released under:

GNU General Public License

If you think the Android project android-camera-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
* Copyright 2013 Devaholic, Inc.  All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*//w ww.  java 2s . c o m
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*/
package com.devaholic.android.activities;

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

import com.devaholic.android.R;
import com.devaholic.android.activities.camera.CameraThroughAPI;
import com.devaholic.android.activities.camera.CameraThroughIntent;

import roboguice.activity.RoboActivity;
import roboguice.inject.ContentView;


/**
 * <h1>HomeActivity</h1>
 *
 * <p>
 *     Main activity that will have the menu and all the option that we could run
 * </p>
 *
 * @author M. Rabie Hayoun
 * @since 1
 * @version 1
 */
@ContentView(R.layout.home_activity)
public class HomeActivity extends RoboActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    /**
     * Method that will handles clicks on the IntentCamera button
     * @param view reference to the view that triggered the event
     */
    public void startCameraThroughIntent(View view) {
        Intent cameraThroughIntent = new Intent(HomeActivity.this, CameraThroughIntent.class);
        startActivity(cameraThroughIntent);
    }

    /**
     * Method that will handles clicks on the CustomCamera button
     * @param view reference to the view that triggered the event
     */
    public void startCameraThroughApi(View view) {
        Intent cameraThroughAPI = new Intent(HomeActivity.this, CameraThroughAPI.class);
        startActivity(cameraThroughAPI);
    }
}




Java Source Code List

com.devaholic.android.activities.HomeActivity.java
com.devaholic.android.activities.SplashScreenActivity.java
com.devaholic.android.activities.camera.CameraThroughAPI.java
com.devaholic.android.activities.camera.CameraThroughIntent.java
com.devaholic.android.cameraControls.CameraSurface.java