Thursday, April 3, 2014

Imortant Link

 

Custom ListView with Image and Text Using BaseAdapter  

http://www.tutorialsbuzz.com/2014/03/watsapp-custom-listview-imageview-textview-baseadapter.html

Android Button State Change Example 

http://www.tutorialsbuzz.com/2014/04/android-button-state-change-example.html

 

OnActivityResult Demo



Android Fundamentals: IntentService Basics
IntentService (android.app.IntentService) is a simple type of service that can be used to handle asynchronous work off the main thread by way of Intent requests. Each intent is added to the IntentService’s queue and handled sequentially.



Custom checkbox and rediobutton


http://icetea09.com/blog/2014/03/18/android-android-action-bar/




http://www.grokkingandroid.com/adding-actionbarsherlock-to-your-project/

creating-frame-animations-in-android
http://javatechig.com/android/creating-frame-animations-in-android


http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/





Paypal Intigratioin


https://github.com/paypal/PayPal-Android-SDK

android-reverse-geocoding-yahoo-api.html



http://www.londatiga.net/it/how-to-send-image-to-twitpic-from-android/


/**
       * Take screenshot of the activity including the action bar
       *
       * @param activity
       * @return The screenshot of the activity including the action bar
       */
     
public static Bitmap takeScreenshot(Activity activity)
      {
            ViewGroup decor = (ViewGroup)activity.getWindow().getDecorView();
            ViewGroup decorChild = (ViewGroup)decor.getChildAt(0);
            decorChild.setDrawingCacheEnabled(true);
            decorChild.buildDrawingCache();
            Bitmap drawingCache = decorChild.getDrawingCache(true);
            Bitmap bitmap = Bitmap.createBitmap(drawingCache);
            decorChild.setDrawingCacheEnabled(false);
            return bitmap;
      }

/**
       * Print hash key
       */

      public static void printHashKey(Context context)
      {
            try
            {
                  String TAG = "com.sromku.simple.fb.example";
PackageInfo info = ontext.getPackageManager().getPackageInfo(TAG,
                        PackageManager.GET_SIGNATURES);
                  for (Signature signature: info.signatures)
                  {
                        MessageDigest md = MessageDigest.getInstance("SHA");
                        md.update(signature.toByteArray());
                        String keyHash = Base64.encodeToString(md.digest(),Base64.DEFAULT);
                        Log.d(TAG, "keyHash: " + keyHash);
                  }
            }
            catch (NameNotFoundException e)
            {

            }
            catch (NoSuchAlgorithmException e)
            {

            }
      }

Android Sliding Menu using Navigation Drawer


http://manishkpr.webheavens.com/android-navigation-drawer-example-using-fragments/

Working Code with Fragment

tutorial-activity-slide-animation