Comments

Post a Comment

Popular posts from this blog

for doing this you can fallow below two procedures:
a) here set your screen width and width to the dialog WindowManager.LayoutParams lp =newWindowManager.LayoutParams();
lp.copyFrom(dialog.getWindow().getAttributes());
lp.width = width;
lp.height = height;
dialog.getWindow().setAttributes(lp);
get width and height of the device like this for any device it will fills : WindowManager manager =(WindowManager) getSystemService(Activity.WINDOW_SERVICE);int

///here in below code use "file(.txt,.pdf,.doc ) path that exists in SDCard in place of
"imageofFileArayList.get(c1)".means replace "imageofFileArayList.get(c1)" this with file path like"/mnt/sdcard/Sample.pdf"