text
stringlengths
3
1.18M
package il.co.gadiworks.beginnerandroidtutorial; import android.media.MediaPlayer; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; public class SplashActivity extends Activity { private MediaPlayer logoMusic; @Override protected void onC...
package il.co.gadiworks.beginnerandroidtutorial; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class SweetActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.s...
package il.co.gadiworks.beginnerandroidtutorial; import android.net.Uri; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.widget.MediaController; import android.widget.VideoView; public class VideoViewTutorialActivity extends Activity { private VideoView video...
package il.co.gadiworks.beginnerandroidtutorial; import android.os.Bundle; import android.app.Activity; import android.graphics.Typeface; import android.view.Gravity; import android.view.Menu; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.RadioG...
package il.co.gadiworks.beginnerandroidtutorial; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.view.View; publi...
/** Automatically generated file. DO NOT MODIFY */ package il.co.gadiworks.beginnerandroidtutorial; public final class BuildConfig { public final static boolean DEBUG = true; }
/*___Generated_by_IDEA___*/ package com.example.ContactList_MyImp; /* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ public final class Manifest { }
/*___Generated_by_IDEA___*/ package com.example.ContactList_MyImp; /* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ public final class BuildConfig { public final static boolean DEBUG = Boolean.parseBoolean(null); }
/*___Generated_by_IDEA___*/ package com.example.ContactList_MyImp; /* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ public final class R { }
package com.example.ContactList_MyImp; import android.annotation.SuppressLint; import android.database.Cursor; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.ContactsContract; import android.support.v4.app.Fragment; import android.support.v4.app.LoaderManage...
package com.example.ContactList_MyImp; import android.app.SearchManager; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import util.Utils; /** * Created by Tzachi on 31/01/14. */ public class ContactsActivity extends Fragm...
///* // * Copyright (C) 2013 The Android Open Source Project // * // * Licensed under the Apache License, Version 2.0 (the "License"); // * you may not use this file except in compliance with the License. // * You may obtain a copy of the License at // * // * http://www.apache.org/licenses/LICENSE-2.0 // * // * Un...
///* // * Copyright (C) 2013 The Android Open Source Project // * // * Licensed under the Apache License, Version 2.0 (the "License"); // * you may not use this file except in compliance with the License. // * You may obtain a copy of the License at // * // * http://www.apache.org/licenses/LICENSE-2.0 // * // * Un...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/*___Generated_by_IDEA___*/ package com.google.android.gms; /* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ public final class Manifest { }
/*___Generated_by_IDEA___*/ package com.google.android.gms; /* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ public final class BuildConfig { public final static boolean DEBUG = Boolean.parseBoolean(null); }
/*___Generated_by_IDEA___*/ package com.google.android.gms; /* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ public final class R { }
package android; public class Dummy {}
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
public class Dummy {}
/*___Generated_by_IDEA___*/ package com.example.android.lifecycle; /* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ public final class Manifest { }
/*___Generated_by_IDEA___*/ package com.example.android.lifecycle; /* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ public final class BuildConfig { public final static boolean DEBUG = Boolean.parseBoolean(null); }
/*___Generated_by_IDEA___*/ package com.example.android.lifecycle; /* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ public final class R { }
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/*___Generated_by_IDEA___*/ package com.google.android.gms; /* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ public final class Manifest { }
/*___Generated_by_IDEA___*/ package com.google.android.gms; /* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ public final class BuildConfig { public final static boolean DEBUG = Boolean.parseBoolean(null); }
/*___Generated_by_IDEA___*/ package com.google.android.gms; /* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ public final class R { }
package android; public class Dummy {}
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/*___Generated_by_IDEA___*/ package com.example.android.location; /* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ public final class Manifest { }
/*___Generated_by_IDEA___*/ package com.example.android.location; /* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ public final class BuildConfig { public final static boolean DEBUG = Boolean.parseBoolean(null); }
/*___Generated_by_IDEA___*/ package com.example.android.location; /* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ public final class R { }
package com.example.android.location; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.MapFragment; i...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/*___Generated_by_IDEA___*/ package com.example.android.fragments; /* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ public final class Manifest { }
/*___Generated_by_IDEA___*/ package com.example.android.fragments; /* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ public final class BuildConfig { public final static boolean DEBUG = Boolean.parseBoolean(null); }
/*___Generated_by_IDEA___*/ package com.example.android.fragments; /* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ public final class R { }
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/*___Generated_by_IDEA___*/ package com.example.android.contactslist; /* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ public final class Manifest { }
/*___Generated_by_IDEA___*/ package com.example.android.contactslist; /* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */ public final class BuildConfig { public final static boolean DEBUG = Boolean.parseBoolean(null); }
/*___Generated_by_IDEA___*/ package com.example.android.contactslist; /* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ public final class R { }
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package com.droidweb.snippets; import java.util.ArrayList; import android.app.ListActivity; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; public class snippetsActivity extend...
package com.dell; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.cookie.Cookie; import org.apache.http.impl.client.DefaultHttpClient; import android.app.Activity; import android.content.Co...
package com.dell; import com.dell.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; /** * @author Victor_Chen1 * @date Aug 30, 2011 */ public class MailPortalActivity extends Activity { private ImageButton dellm...
package com.dell; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.view.Display; import android.view.KeyEvent; import android.view.WindowManager; import android.webkit.WebChromeClient; import android.webkit.WebView; import android.webkit.W...
package com.dell; import android.app.Activity; import android.content.Context; import android.os.Handler; import android.webkit.WebView; /** * @Filename SetContextJavascript.java * @author Victor_Chen1 * @date Sep 6, 2011 */ public class SetContextJavascript { private WebView webview; private Ha...
package com.diat; import android.app.Activity; import android.os.Bundle; import java.util.Timer; import java.util.TimerTask; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.graphics.drawable.AnimationDrawable; import android...
package com.diat; import android.app.Activity; import android.app.AlarmManager; import android.app.AlertDialog; import android.app.PendingIntent; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.util.Log; ...
package com.diat; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class BrokenscreenAlarmReciever extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent i = new Intent(context, Brokenscreen.cla...
package com.diat.adapter; import java.util.List; import com.diat.CountActivity; import com.diat.Fart; import com.diat.R; import com.diat.audio.SoundEffect; import com.diat.entity.FartList; import com.diat.entity.Sound; import android.content.Context; import android.content.Intent; import android.view.Mo...
package com.diat; import com.diat.audio.LongSoundEffect; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; /** * Unused. * Alternative way to play sound using MediaPlayer. Passed tests. * @Filename Fart1.java * @author Victor_Chen1 * @...
package com.diat; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; public class GhostShow extends Activity { public static final String TAG = "Tricky Expert"; private MediaPlayer player; @Override protected void onCreate(Bundle savedInstanceState) { super....
package com.diat; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; /** * * @author Victor * */ public class AlarmReceiver extends BroadcastReceiver { @Override public void onReceive(Context arg0, Intent arg1) { Intent i = new Intent(arg0...
package com.diat; import com.diat.adapter.FartAdapter; import com.diat.audio.SoundEffect; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.widget.TextView; public class CountActivity extends Activity {...
package com.diat; import java.util.TimerTask; import com.diat.audio.SoundEffect; import com.diat.utils.TimerUtility; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.graphics.drawable.AnimationDrawab...
package com.diat.entity; import java.util.ArrayList; import java.util.List; import com.diat.R; /** * A List for storing fart sound. * @author Victor * */ public class FartList { public static List<Sound> getFartList(){ List<Sound> fartList = new ArrayList<Sound>(); Sound fart1 = new Sound(1...
package com.diat.entity; /** * Entity class for Sound. * Dynamically show the fart name or other resources according to given sound ID. * @author Victor * */ public class Sound { private int soundID; private String soundName; private int resourceID; public Sound(int soundID, String sound...
package com.diat; import com.diat.audio.SoundEffect; import android.app.Activity; import android.media.SoundPool; import android.os.Bundle; public class Brokenscreen extends Activity { private SoundEffect soundManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCre...
package com.diat.utils; import java.util.Timer; import java.util.TimerTask; import com.diat.audio.SoundEffect; /** * Schedule a timer task according to given parameters. * @author Victor * */ public class TimerUtility { private Timer timer = new Timer();; private TimerTask task = null; ...
package com.diat.utils; import android.content.Context; /** * Utility to get the Locale of a computer. * @author Victor * */ public class LocaleUtility { public static final String TAG = "Tricky Expert"; private Context context; private String locale; public LocaleUtility(Context contex...
package com.diat.audio; import android.media.MediaPlayer; /** * Use Media Player to play big sound effects and also files on SDCard. * Please override onDestroy method to kill Media Player in your activity. * @Filename LongSoundEffect.java * @author Victor_Chen1 * @date Nov 14, 2011 */ public class L...
package com.diat.audio; import java.util.HashMap; import android.content.Context; import android.media.AudioManager; import android.media.SoundPool; import android.util.Log; /** * Use SoundPool to implement playing short sound. Any sound track longer than 5 or 6 seconds * should better use MediaPlayer ...
package com.diat; import android.app.Activity; import android.app.AlarmManager; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.PendingIntent; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.util.Log; ...
package com.diat; import java.util.Timer; import java.util.TimerTask; import com.diat.adapter.FartAdapter; import com.diat.audio.SoundEffect; import com.diat.entity.FartList; import com.diat.utils.LocaleUtility; import com.diat.R; import android.app.Activity; import android.app.AlertDialog; import andro...
package com.diat; import com.diat.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageButton; /** * Main page for Tricky Expert. * @Filename TrickyExpertActivity.java * @author Victor_Chen1 * @...
package com.krikelin.android.scaffold; import java.util.ArrayList; import java.util.List; public class Model { public String capitalize(String text) { return Character.toUpperCase(text.charAt(0)) + text.substring(1); } public Model(String[] args) { this._package = args[0]; String model = args[1]; this.m...
package com.krikelin.android.scaffold; public class Field { public String typeName = ""; public String name = ""; public String NAME = ""; public String Name = ""; }
package com.krikelin.android.scaffold; import java.io.Console; import java.net.URI; import java.util.ArrayList; import org.xml.sax.HandlerBase; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.jknack.han...
package com.bubblewaretechnology.i18n; import com.google.api.translate.Language; import com.google.api.translate.Translate; /** * Class to translate Strings to a device's locale. * * @author David Gill * */ final public class I18nTranslator { //If you wrote your application's text in a different la...
package com.gc.widget; import java.io.File; import java.io.InputStream; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Properties; import java.util.Vector; import android.content.Context; im...
package com.gc.widget; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class Utils { public static void write(InputStream is, File file) { try { FileOutputStream fos = new FileOutputStream(file); t...
package com.gc.widget.oilcan; import java.util.Iterator; import java.util.concurrent.Semaphore; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Context; import andro...
package com.gc.widget.oilcan; import java.io.InputStream; import java.util.Map; import com.gc.widget.api.Feature; import com.gc.widget.api.FeatureFactory; import android.content.Context; import android.webkit.WebView; public class OilcanPlugin implements FeatureFactory { public final static String MATC...
package com.gc.widget.api; import java.util.Map; import android.content.Context; import android.webkit.WebView; public interface FeatureFactory { Feature getFeature(String uri, WebView wv, Context ctxt, Map<String,String> params); }
package com.gc.widget.api; import java.io.InputStream; import java.util.Map; public interface Feature { public Map<String,Object> getJsInterfaces(); public InputStream getJsScript(); }
package com.gc.widget; import android.graphics.Bitmap; import android.webkit.WebView; import android.webkit.WebViewClient; public class OilCanClient extends WebViewClient { /** * Watch each newly loaded page for userscript extensions (.user.js) to * prompt user with install helper. */ public voi...
package com.gc.widget; import java.io.File; import java.io.InputStream; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class MainActivity extends Activity { public final s...
/** * Copyright 2011, Under-Ground Studio. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * Copyright 2011, Under-Ground Studio. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * Copyright 2011, Under-Ground Studio. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * Copyright 2011, Under-Ground Studio. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * Copyright 2011, Under-Ground Studio. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * Copyright 2011, Under-Ground Studio. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...