Image File Save

package siva.myprob.SaveImage; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Environment; import android.widget.Toast; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; /** * Created by ${Sivashankar} on 10/1/17. */ public class SaveImage { String directoryName; String fileName; boolean isExternal; private Context context; public SaveImage(Context context) { this.context = context; } public static boolean isExternalStorageWritable() { final […]

Animated Vector Drawable

80/20

In API 21 the Android team released bunch of very cool things for material design, most of the things focus around the design specs like colors or transition animation, other were for the new widgets like FAB, card view or recycle view, but within all those things there were also two things that barely discussed- VectorDrawable and AnimatedVectorDrawable.

Edit: looks like those classes became so popular that the Android team decided to add them to the latest support library, yay!

Android resources

In Android, recourses took lots of space in the final APK, tools like Proguard or loading modules dynamically helped the developers very much decreasing their app size, but when it came to assets, we were very limited. You had to choose between create asset for each density or paying with cpu time and let android doing the resizing and risk by not perfect asset.

I saw couple of apps that choose…

View original post 992 more words