Skip to main content

Posts

Showing posts from October, 2012

Displaying and Saving Image in Sdcard

Hi all. In this post i am going to discuss how to get an image from any URL and saving an image into sdcard and also capturing the whole screen. Now lets design a small layout as in the capture.     The following xml named  first_activity.xml   is used to design the capture. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/layoutCapture" >     <Button         android:id="@+id/showImage"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignParentLeft="true"         android:layout_alignParentTop="true"         android:layout_marginLeft="15dp"         android:layout_marginTop="25dp"