Skip to content

Android app for downloading browsing sharing and printing images/videos

Notifications You must be signed in to change notification settings

ItsMeVikash/Instagram-Share-Print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Instagram-Share-Print


Android app for downloading browsing sharing and printing images/videos

Tool Used

Android Studio IDE

Download Apk from PlayStore

Screenshots

1.Main Screen

alt text

2.Image Loaded after pasting url

alt text

  1. Printing Image Screen

alt text

4.Video Screen

alt text

  1. Sharing Content

alt text

How to Code:-

Download Apk from PlayStore

  1. Get Url from Instagram
  2. Use InstagramApi to get the final url of image and video
  3. or You can get into source code using JSoup Library Jsoup Maven and Gradle Dependencies
  4. Once You get the Final Image/Video Url Use Picasso or Glide Library to Load images from url Glide Github
  5. For Loading video from url get Url connection
try {
     	URL myUrl = new URL(url);
      	URLConnection connection = myUrl.openConnection();      
      	is = connection.getInputStream();
      	bis = new BufferedInputStream(is);
      	fos = new FileOutputStream(destFile); 
	int current = 0;
   	while ((current = bis.read()) != -1) {
        	fos.write(current);
         }
        fos.close();
    }catch(Exception e) {
      //Log.e(TAG, "Error while downloading and saving file !", e);
    }
  1. For Printing Image Use below piece of code
private void doPhotoPrint() {
    PrintHelper photoPrinter = new PrintHelper(getActivity());
    photoPrinter.setScaleMode(PrintHelper.SCALE_MODE_FIT);
    Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.droids);
    photoPrinter.printBitmap("droids.jpg - test print", bitmap);
}

Releases

No releases published

Packages

No packages published

Languages