text stringlengths 3 1.18M |
|---|
package com.example.arduinosvn;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.support.v4.app.NavUtils;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreat... |
package com.example.hello;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr;
import android.app.Activity;
import android.os.Build;
import android.support.v4.app.FragmentActivity;
public class ActionBarHelper {
public static CompatActionBar getActionBar(FragmentActivity activity) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH)
return new Comp... |
/*
* Copyright (C) 2005-2009 Team XBMC
* http://xbmc.org
*
* This Program 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; either version 2, or (at your option)
* any later version.
*
* ... |
package de.androvdr;
public interface IFileLogger {
public String getLogFileName();
public void setLogFileName(String logFileName);
public int getLogLevel();
public void setLogLevel(int loglevel);
public void initLogFile(String logFileName, boolean append);
}
|
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr.devices;
import java.util.ArrayList;
public interface ISensor extends IDevice {
public ArrayList<String> getSensors();
public String read(String command);
}
|
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr;
import java.io.File;
import java.util.ArrayList;
import android.content.Intent;
import android.gesture.Gesture;
import android.gesture.GestureLibraries;
import android.gesture.GestureLibrary;
import android.gesture.GestureOverlayView;
import android.gesture.Prediction;
import android.gesture.Gest... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr.activities;
public class EpgSearchActivity extends TimersActivity {
}
|
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2009-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr;
import android.view.ActionMode;
public class ActionModeHelper {
public static void finish(ActionMode actionmode) {
actionmode.finish();
}
}
|
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr;
import android.app.Activity;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.GestureDetector.SimpleOnGestureListener;
public class SimpleGestureFilter extends SimpleOnGestureListener {
public final static int SWIPE_UP = 1;
public final static int SWIPE... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr.svdrp;
import java.io.IOException;
import java.util.TimerTask;
import org.hampelratte.svdrp.Command;
import org.hampelratte.svdrp.Connection;
import org.hampelratte.svdrp.Response;
import org.hampelratte.svdrp.Version;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.androvdr.P... |
package de.androvdr.svdrp;
import org.hampelratte.svdrp.Response;
public class ConnectionProblem extends Response {
private static final long serialVersionUID = 1L;
public ConnectionProblem(String message) {
super(503, (message == null) ? "Couldn't connect to VDR" : message);
if (this.... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr;
public class Dialogs {
public static final int SWITCH_VDR = 1;
public static final int CONFIG_VDR = 2;
}
|
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* www.jcraft.com/jsch/
*
* Copyright (c) 2002,2003,2004,2005,2006,2007,2008 Atsuhiko Yamanaka,
* JCraft,Inc. All rights reserved. Redistribution and use in source and binary
* forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of s... |
package de.androvdr.fragments;
import java.io.File;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.util.TypedValue;
import android.view.LayoutInfl... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr.fragments;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;
import java.util.List;
import org.hampelratte.svdrp.Response;
import org.hampelratte.svdrp.commands.LSTC;
import org.hampelratte.svdrp.parsers.ChannelParse... |
package de.androvdr.fragments;
import android.app.Activity;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.LayoutInflater;
import android.view.MenuInflater;
import android.view.MenuI... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr;
import java.io.File;
import android.app.Activity;
import android.content.Intent;
import android.gesture.Gesture;
import android.gesture.GestureLibrary;
import android.gesture.GestureOverlayView;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.MotionEvent;
import android... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
//
// based on: http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds
//
package de.androvdr.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.text.Layout.Alignment;
import android.text.StaticLayout;
import android.text.TextPaint;
import android... |
//
// based on: http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds
//
package de.androvdr.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.text.Layout.Alignment;
import android.text.StaticLayout;
import android.text.TextPaint;
import android... |
package de.androvdr.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.TableLayout;
public class SquareButton extends TextResizeButton {
private int maxHeight;
public SquareButton(Context context) {
super(context);
}
public SquareButt... |
package de.androvdr.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.TableLayout;
public class SquareImageButton extends ImageButton {
private int maxHeight;
public SquareImageButton(Context context) {
... |
package de.androvdr;
import java.lang.reflect.Field;
import android.util.TypedValue;
import android.widget.TextView;
public abstract class AbstractViewHolder {
public void setTextSize(int textSizeOffset, float scaledDensity) {
if (textSizeOffset == 0)
return;
for (Field field : this.getClass().getDeclaredF... |
package de.androvdr;
import java.io.File;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ListActivity;
import android.content.Context;
import android.content.... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package de.androvdr;
import android.app.ActionBar;
import android.app.Activity;
public class CompatActionBar {
public static void setHomeButtonEnabled(Activity activity, boolean enabled) {
ActionBar actionBar = activity.getActionBar();
if (actionBar != null)
actionBar.setHomeButtonEnabled(enabled);
}
}
|
/*
* Copyright (c) 2010-2011 by androvdr <androvdr@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be ... |
package hieudd.appgame.andengine;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
public class AppGActivity extends Activity {
/** Called when the ac... |
package hieudd.appgame.andengine;
import org.anddev.andengine.ui.activity.BaseGameActivity;
import android.view.Menu;
import android.view.MenuItem;
public abstract class BaseExample extends BaseGameActivity {
private static final int MENU_TRACE = Menu.FIRST;
@Override
public boolean... |
package hieudd.appgame.andengine;
import javax.microedition.khronos.opengles.GL10;
import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.engine.camera.Camera;
import org.anddev.andengine.engine.camera.hud.controls.AnalogOnScreenControl;
import org.anddev.andengine.engine.camera.hud.controls.Ba... |
package com.mars.android_widget;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.Timer;
import java.util.TimerTask;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.... |
package pkg.andru.demo;
import android.app.Activity;
import android.os.Bundle;
public class AndrudemoActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(... |
package pkg.andru.animation;
import java.util.ArrayList;
import java.util.List;
import pkg.andru.animation.Frame.FrameDrawState;
import pkg.andru.animation.Sprite.SpriteDrawState;
import android.graphics.Canvas;
import android.util.Log;
public class Frame implements IDrawable<FrameDrawState> {
stati... |
package pkg.andru.animation;
/**
* basic draw item's draw state, like position, alpha or another things
*
* @author idiottiger
*
*/
public interface IDrawState {
}
|
package pkg.andru.animation;
import pkg.andru.animation.Sprite.SpriteDrawState;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.util.Log;
/**
* the sprite class, the smallest draw unit
*
* @author idiottiger
... |
package pkg.andru.animation;
public interface IAnimeUpdate {
public void animeUpdate();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.