Android Open Source - keepmoving My App

From Project

Back to project page keepmoving.


The source code is released under:

GNU General Public License

If you think the Android project keepmoving 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

package it.rainbowbreeze.keepmoving.common;
/*from   w  w  w .  j  a  va2 s .c o  m*/

import java.util.Arrays;
import java.util.List;

import dagger.ObjectGraph;

 * This file is part of KeepMoving. KeepMoving is free software: you can
 * redistribute it and/or modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation, version 2.
 * <p/>
 * This program 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 for more
 * details.
 * <p/>
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 51
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 * <p/>
 * Copyright Alfredo Morresi
 * <p/>
 * Created by Alfredo "Rainbowbreeze" Morresi on 15/06/14.

 * Builds Dagger's object graph.
 * For additional information
 * -
public class MyApp extends Application {
    public static final String APP_NAME_FOR_LOG = "KeepMoving";

    private ObjectGraph mObjectGraph;

    public void onCreate() {
        mObjectGraph = ObjectGraph.create(getModules().toArray());

     * Cloud be overridden in tests, passing a different list of modules
     * @return
    protected List<Object> getModules() {
        return Arrays.<Object>asList(
                new DaggerModule()

     * Used by activities to inject themselves with the required dependencies
     * @param object
    public void inject(Object object) {

Java Source Code List