retesere20

Untitled

Jan 15th, 2017
97
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.__MyDefaultLibrary;
  2.  
  3.  
  4. import android.content.Intent;
  5. import android.content.SharedPreferences;
  6. import android.net.Uri;
  7. import android.os.Bundle;
  8. import android.os.Environment;
  9. import android.os.Handler;
  10. import android.preference.PreferenceManager;
  11. import android.view.View;
  12. import android.view.animation.AlphaAnimation;
  13. import android.view.animation.Animation;
  14. import android.view.animation.LinearInterpolator;
  15. import android.view.animation.ScaleAnimation;
  16. import android.widget.*;
  17. import java.io.File;
  18. import java.util.Calendar;
  19. //
  20. import android.app.Activity;
  21. import com.oceanesa.samplevideorecorder.R;
  22.  
  23.  
  24. public class __MyDefaultFunctions{
  25. public android.app.Activity actv1 = android.app.Activity;
  26.  
  27. public void Initt(){
  28. PreferenceManager.setDefaultValues(actv1.getBaseContext(), R.xml.mypreferences, false);
  29. }
  30.  
  31. // ========== MY CUSTOM LIBRARY =============//
  32. //button find
  33. public Button fvb(int id) {
  34. return (Button) actv1.findViewById(id);
  35. }
  36.  
  37. //message show
  38. public void msg(String text) {
  39. Toast.makeText(actv1.getApplicationContext(), text, Toast.LENGTH_LONG).show();
  40. }
  41.  
  42. public View.OnClickListener optionsListener2 = new View.OnClickListener() {
  43. @Override
  44. public void onClick(View v) {
  45.  
  46. Intent i = new Intent(actv1.getBaseContext(), com.__MyDefaultLibrary.__MyDefaultPreferencesInit1.class);
  47. actv1.startActivity(i);
  48. }
  49. };
  50.  
  51.  
  52.  
  53. }
RAW Paste Data