[APP][4.0+][2016/10/05 2.90]Photo Frame&Grid Widget

Search This thread

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
** Formerly known as Photo Grid/Frame Widget. Due to complaint of infringement for the trademark "PHOTOGRID", I had to rename it to Photo Frame&Grid Widget. Hopefully, it doesn't infringe any other trademarks. **

Besides, please uninstall any versions older than 2.83 before installing the new version (2.83) because a new package name is assigned and your Android device will treat it as a separate app.


This is my first Android app. Basically I want to replicate the grid-style photo widget from HTC so it can be used by other phones or in AOSP ROM.

I developed the widget and tested it on my HTC Incredible S. If you're interested, please install it in other phones of different brand and screen size. If you encounter any issues, please feel free to report here or give me a PM. Or if you have any request for new features, I'll also consider in future versions.

Features:
  • Resizable & scrollable grid view / photo frame mode / stack mode
  • Support lockscreen widget in JellyBean (Android 4.2 and up)
  • Configurable slideshow interval for frame mode
  • Supports JPG, GIF, PNG, BMP, MPO, JPS for image files
  • Support 3GP, MP4, TS, WEBM, MKV for video files (http://developer.android.com/guide/appendix/media-formats.html)
  • Configurable file types & filename filter
  • Selectable photo album from internal/external storage
  • Individual file selection
  • Can choose a specific installed app to launch for full screen image view or video playback
  • Image file details in preview mode (Filename, image dimension, file size and video duration)
  • Tween animation in frame mode (fade / slide) ** even better slide effect if navigation arrows are hidden **
  • Support different settings in multiple widget instances
  • Two different image styles - Scale whole image / Crop to fit
  • User define image border width and color
  • Thumbnail size options
  • Display order options
  • Limit the maximum no of photo files to show. Default is 50.
  • App to change widget settings on the fly
  • Tasker integration
  • Requires ICS (Android 4.0) or above

Permissions
  • WRITE_EXTERNAL_STORAGE - store thumbnails for grid view to improve performance
  • READ_EXTERNAL_STORAGE - read thumbnails for grid view
  • RECEIVE_BOOT_COMPLETED - restart services for auto refresh and register alarm manager for slideshow
  • WAKE_LOCK - keep phone awake during background thumbnail generation
  • VIBRATE - vibrate when thumbnail is selected

Outstanding issues:
  • Due to a bug in Android 4.2.1 SDK, if you remove the widget in lockscreen, you need to remove its settings in the app as well manually. Fixed in 4.2.2 SDK.

https://play.google.com/store/apps/details?id=com.gzplanet.photoframegridwidget

 

Attachments

  • Screenshot_gridview_x1_1.31.jpg
    Screenshot_gridview_x1_1.31.jpg
    54.4 KB · Views: 8,570
  • Screenshot_preview.jpg
    Screenshot_preview.jpg
    43.7 KB · Views: 7,930
  • Screenshot_framemode.jpg
    Screenshot_framemode.jpg
    36 KB · Views: 7,093
  • Screenshot_widgetlist.jpg
    Screenshot_widgetlist.jpg
    17.4 KB · Views: 6,198
  • Screenshot_config2_1.70.jpg
    Screenshot_config2_1.70.jpg
    31.1 KB · Views: 4,419
  • Screenshot_config3_1.70.jpg
    Screenshot_config3_1.70.jpg
    20 KB · Views: 4,177
  • Screenshot_config4_1.70.jpg
    Screenshot_config4_1.70.jpg
    31.8 KB · Views: 4,078
  • Screenshot_config5_1.70.jpg
    Screenshot_config5_1.70.jpg
    24.6 KB · Views: 3,960
  • Screenshot_config6_1.70.jpg
    Screenshot_config6_1.70.jpg
    24.7 KB · Views: 3,908
  • Screenshot_config7_1.70.jpg
    Screenshot_config7_1.70.jpg
    17.6 KB · Views: 3,873
  • Screenshot_config1_1.80.jpg
    Screenshot_config1_1.80.jpg
    29.4 KB · Views: 3,114
  • Screenshot_stackmode.jpg
    Screenshot_stackmode.jpg
    38.2 KB · Views: 3,113
  • Screenshot_dirpicker_2.20.jpg
    Screenshot_dirpicker_2.20.jpg
    45.8 KB · Views: 1,658
Last edited:

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
Change log
Code:
2.90
- New option to limit the maximum no of photo files to show (under Album Photo Files options screen). Default is 50.

2.87
- Fix issue that image files are incorrectly treated as video files in CM12/CM13

2.86
- Add support for esdfs in Moto X devices

2.85
- Fix slideshow issue when interval is less than 1 minute on Android 4.4 or higher

2.84
- Fix widget UI unable to launch on Lollipop

2.83
- Change package name to com.gzplanet.photoframegridwidget. Please uninstall any previous version. Otherwise, you'll end up having 2 separate apps on your device.

2.82
- Fix issue that external SD/OTG cannot be found in Samsung S5

2.81
- Fix issue that external storage not available in some Huawei (4.2.2) devices

2.80
- Improve Auto Refresh on File Change function to make it much more reliable

2.72
- Fix issue that external SD/OTG cannot be found in some Android 4.4 devices

2.71
- Always show Apply buttons in action bar which might be hidden in menu for some devices

2.70
- New option to adjust thumbnail rotation in stack mode

2.60
- Photo in preview/frame mode will be automatically re-rendered to correct size on phone orientation change.

2.50
- New option to auto hide frame/preview mode UI components (filename, dimension, file size...) in 5s. Auto hide feature currently doesn't work with animation.

2.40
- New option to show hidden folder (action bar menu) in Album Folders.
- Allow manual input of border color by hex code or color name in frame/stack mode.
- New option to skip to next photo in frame mode when screen is turned on.

2.32
- Add support for exFAT SD card in Android 4.3

2.31
- Improve animation performance in album folder selection

2.30
- Fix the issue that external storage is not available in Android 2.3
- Bug fixes

2.22
- Fix the issue that widget cannot show images after a reboot for Samsung Galaxy S4

2.21
- Improve mount/unmount event for devices with multiple external storages

2.20
- Add support for individual file seletion

2.14
- Add support for Android 2.3 FEATURE_APP_WIDGETS permission and restricted profile environment

2.13
- New grid thumbnail size for Sony Xperia
- Bug fix

2.12
- New Slide animation (Vertical)

2.11
- Bug fix that the widget is not refreshed when a new video is added

2.10
- Tasker integration
  * Change settings (album folder / display order)
  * Skip to next/previous photo (frame mode only)

** Changing Album Folder action does not trigger the cache files generation. Thumbnails will be generated on-the-fly when they're displayed and once all thumbnails are generated for the first time, the performance will be the same. However, if you have previously generated thumbnail files, they will be used so there'll be no performance impact. **

2.00
- Now supports video files
- Supports core Android video formats (3GP,MP4,TS,WEBM,MKV). http://developer.android.com/guide/appendix/media-formats.html
- New option to select video player app

** Please use the new Reset file types function (under Album photo files section) first. Otherwise, video files will not be shown **

1.91
- Improve widget list and album picker performance
- Improve photo preview performance in album picker
- Stack mode now supports auto refresh
- Reduce auto refresh performance impact on JB
- Improve preview/frame image scaling (now supports stock launcher and Nova 2.1 and Apex 2.0.1)
- Other optimizations and bug fixes

1.90
- New stack mode!
  - select stack mode in display mode and find more customization options in thumbnail section
  - reduce max dimension if widget/launcher crash especially in tablet
- New options to select image border width & color
- New tween animation in frame mode (fade / slide)
  - even better slide effect if navigation arrows are hidden
- Bug fixes

1.81
- New set of thumbnail sizes for Samsung Galaxy Note2
- Fix FC when selected album folder has no photo files

1.80
- New background thumbnail generation - if the selected album folders contain more than 30 photo files, system will generate the thumbnails in the background so you can continue using the phone. Check the progress on the status bar.
- You can now also use Auto Refresh for photo frame mode
- Several improvements on photo album selection UI
- You can now choose to retain existing album folder selections before changing album folders
- Further fine-tuned preview/frame photo dimension calculation on JB

1.75
- Bug fix for preview/frame photo crashes on JB for some devices

1.74
- Slideshow interval can now be set to 0 to disable slideshow

1.73
- Better support for screen off triggered by 3rd party apps

1.72
- Properly handle slideshow interval after screen on
- Restart services when package is upgraded

1.71
- Fix navigation arrows not responding in frame mode
- Generate thumbnails only for grid mode
- Fine tune preview/frame image dimension calculation for ICS

1.70
- Dynamically scale preview/frame image when widget is resized (JB only)
- New preview/frame image style option (crop/scale)
- New preview/frame image maximum dimension option (reduce it if the widget or your launcher crash, ICS only since JB has better memory management, at least it doesn't crash on me)
- New option to disable EXIF orientation detection for preview/frame image
- New option to force filtering for thumbnail
- New option to set thumbnail JPEG quality
- Reduce battery drain in frame mode (slideshow) when screen is off (service is required and thus needs more memory)
- Re-organize config menu
- Bug fixes

1.61
- Fix FC when no external viewer app is found

1.60
- JB 4.2 lockscreen support
- New set of layouts for lockscreen
- New option to show next photo instead of launching viewer app when tapping preview/frame photo
* Due to a bug in Android 4.2 SDK, if you remove the widget in  lockscreen. You need to remove its settings in the app manually.

1.50
- Multiple folder support
- Implemented fragment animation
- Option to toggle preview items individually
- Bug fixes

1.41
- Fix FC for some users upgrading from old versions 

1.40
- New photo frame mode (configurable slideshow interval)
- Configurable file types to include
- Configurable filename filter with wildcard support
- Random order (useful for photo frame slideshow)
- New option to hide information in preview mode (File info and prev/next buttons will be hidden)
- Bug fixes

1.32
- Fix problem with Android 4.1 (Jelly Bean)

1.31
- New option to set background opacity of appwidget
- Spacing between grid items is now aligned evenly for a more tidy look

1.30
- New config application to change widget settings on the fly. (Find the new app shortcut in app drawer)
- UI revamp to make use of ICS features. (Click the icon on upper right corner to confirm instead of pressing the Back button when adding new widgets)
- Reduced package size

1.20
- Photo preview in album selection screen
- New option to refresh widget automatically when there is a change of image files in the selected folder (service is required)
- Widget now behaves properly when external storage is unmounted
- Bug fixes

1.12
- Add support for MPO and JPS image files
- Images with EXIF orientation tag will be rotated properly

1.10 (Please re-add your widgets)
- New option to choose thumbnail sizes (some optimized for HTC launcher)
- Changed thumbnail dimension to square instead of portrait
- New option to choose display order
- You can now use different thumbnail style, size and other settings for different widget instances independently
- Bug fixes and performance optimization

1.01
- New option to skip preview image and launch external viewer directly
- Unified external storage and album folder selections into a single option
- Adjust preview image size for large screen devices

1.0
- Published to Play store

Beta 4 (build 09040937)
- Correct typo "Chop to fix" to "Crop to fit"
- Fixed issues that thumbnail files are not closed properly during creation

Beta 3 (build 09021624)
- Fixed thumbnail for images of some aspect ratio cannot be generated
- Show file position in preview mode
- New prev/next buttons in preview mode
- New app icon
- Automatically apply filter to preview image if it's upscaled to reduce pixelation

Beta 2 (build 08301200)
- Support devices with non standard external storage
- Support devices with multiple external storage
- Support devices with un-mountable internal storage (e.g. Asus Transformer internal SD)
- Fixed thumbnail generation issue for square size images
- Proper exception handling during thumbnail generation so issue of individual file will not crash the whole widget
 
Last edited:
  • Like
Reactions: Jrhoop and Jaizu

Nezys

Senior Member
Sep 26, 2011
443
187
Catania
www.mondoblackberry.com
Very nice widget,it works great on my Galaxy S with JB 4.1.1
The only problem(which not depends on your widget) is that external storage on CM10 where I have most of my pictures is located in a folder that I can't select with this widget :p
If you(in a next release) can allow users to do a manual selection of the folder my "problem" will be solved xD
However,it's really a beautiful photo widget man,thanks ;)

Inviato dal mio GT-I9000 con Tapatalk 2
 
Last edited:

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
Very nice widget,it works great on my Galaxy S with JB 4.1.1
The only problem(which not depends on your widget) is that external storage on CM10 where I have most of my pictures is located in a folder that I can't select with this widget :p
If you(in a next release) can allow users to do a manual selection of the folder my "problem" will be solved xD
However,it's really a beautiful photo widget man,thanks ;)

Inviato dal mio GT-I9000 con Tapatalk 2

Do you mean Galaxy S has multiple external storage? Can you give me the complete paths of these storage. (e.g. /mnt/sdcard/) I'll see what I can do.
 
  • Like
Reactions: Jrhoop

MiDiANx360

Member
Feb 23, 2009
29
5
I tried your widget, but unfortunately i can't get it to work on my phone (Galaxy Nexus). I can install it, and get to the settings screen.
After pressing back the Thumbnail-Generation starts and during that, the app just closes. With some folders it closes right away, with others it closes later on. But it always stops at the same time if i select the same folder. I.e. when i choose folder A it will always close at 15/30 Images. If i select Folder B it always closes at 1/34. So i guess it might be an issue with certain pictures.

Update:
I finally found one folder with 6 pictures that does work and would like to suggest two additional settings:I would like to be able to change the spacing between the pictures (in fact i would like to be able to remove the spacing). Which would give the widget the same look as the one from HTC and i would like to be able to access the settings of the widget so i don't have to remove and add it back to change the settings.

Thank you for your work!
 

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
I tried your widget, but unfortunately i can't get it to work on my phone (Galaxy Nexus). I can install it, and get to the settings screen.
After pressing back the Thumbnail-Generation starts and during that, the app just closes. With some folders it closes right away, with others it closes later on. But it always stops at the same time if i select the same folder. I.e. when i choose folder A it will always close at 15/30 Images. If i select Folder B it always closes at 1/34. So i guess it might be an issue with certain pictures.

Update:
I finally found one folder with 6 pictures that does work and would like to suggest two additional settings:I would like to be able to change the spacing between the pictures (in fact i would like to be able to remove the spacing). Which would give the widget the same look as the one from HTC and i would like to be able to access the settings of the widget so i don't have to remove and add it back to change the settings.

Thank you for your work!

Thanks for testing my widget!

Can you give me a logcat so I can locate the source of the issue? I believe the widget is unable to generate a thumbnail for some of your images. It might be a program bug or a corrupted image. You can create a logcat using aLogcat app or adb command as below (let me know if you need more instructions):

Code:
adb logcat > logcat.txt

I'll add the spacing issue to my todo list. But currently I cannot think of a solution since unlike HTC widget, my widget is resizable and target for different devices so these spacing is added automatically to fill up the entire area of the widget as well as to handle devices of different screen density and launchers (they actually display widgets differently!).

Also, I'll see if I can add the setting button in this version.
 

Nezys

Senior Member
Sep 26, 2011
443
187
Catania
www.mondoblackberry.com
Do you mean Galaxy S has multiple external storage? Can you give me the complete paths of these storage. (e.g. /mnt/sdcard/) I'll see what I can do.

Galaxy S with stock rom has these paths:

mnt/sdcard (internal storage)
mnt/sdcard/external sd (ext-sd card)

With AOSP roms(CM7-CM9-CM10-AOKP-MIUI) these paths change in:

mnt/sdcard
mnt/emmc (ext-sd card)

As you can see,I can't access external sd card from mnt/sdcard with a NON-samsung rom..this is why I can't use pictures on ext- sd ;)

I hope is clear!:eek:



Inviato dal mio GT-I9000 con Tapatalk 2
 

MiDiANx360

Member
Feb 23, 2009
29
5
Thanks for testing my widget!

Can you give me a logcat so I can locate the source of the issue? I believe the widget is unable to generate a thumbnail for some of your images. It might be a program bug or a corrupted image. You can create a logcat using aLogcat app or adb command as below (let me know if you need more instructions):

Code:
adb logcat > logcat.txt

I'll add the spacing issue to my todo list. But currently I cannot think of a solution since unlike HTC widget, my widget is resizable and target for different devices so these spacing is added automatically to fill up the entire area of the widget as well as to handle devices of different screen density and launchers (they actually display widgets differently!).

Also, I'll see if I can add the setting button in this version.

I never used alogcat but i gave it a try, either i'm doing it wrong or there is nothing happening that gets logged. I started aLogCat, cleared everything that was in it, and pressed the Play-button. I then forced the widget to "crash" and went back into aLogCat, and there is nothing new in there. Do I have to change any settings?
 

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
I never used alogcat but i gave it a try, either i'm doing it wrong or there is nothing happening that gets logged. I started aLogCat, cleared everything that was in it, and pressed the Play-button. I then forced the widget to "crash" and went back into aLogCat, and there is nothing new in there. Do I have to change any settings?

Can you check in the preference, the value for Level is Verbose? If running correctly, you should see new entries coming in constantly even if you do nothing.

Sent from my HTC Incredible S using Tapatalk 2
 

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
Galaxy S with stock rom has these paths:

mnt/sdcard (internal storage)
mnt/sdcard/external sd (ext-sd card)

With AOSP roms(CM7-CM9-CM10-AOKP-MIUI) these paths change in:

mnt/sdcard
mnt/emmc (ext-sd card)

As you can see,I can't access external sd card from mnt/sdcard with a NON-samsung rom..this is why I can't use pictures on ext- sd ;)

I hope is clear!:eek:



Inviato dal mio GT-I9000 con Tapatalk 2

I guess I found some generic ways to get all external storage locations for different devices. I'll try to implement it in next version.

Sent from my HTC Incredible S using Tapatalk 2
 
  • Like
Reactions: Nezys

NEO130

Senior Member
Jul 12, 2007
657
13
If the widget open, you see the picture. Maybe you can improve a button to switch to next picture - forward - backword. Thanks, is a very usefull widget.
 

NEO130

Senior Member
Jul 12, 2007
657
13
Another idea. I resize the widget not to fill the full screen on launcher, but when I clicked the picture, it is so small, as the resized widget. Maybe, you can do this making bigger.
 

NEO130

Senior Member
Jul 12, 2007
657
13
Can you give me a screenshot of that? This way I can get a better idea. Thx!

Here are the screenshot. I hope you know what I mean. Or you make a direktlink to the intern picturebrowser to open the file. Both is a thinking.
 

Attachments

  • 2.jpg
    2.jpg
    53.4 KB · Views: 431
  • 1.jpg
    1.jpg
    50.2 KB · Views: 417
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 63
    ** Formerly known as Photo Grid/Frame Widget. Due to complaint of infringement for the trademark "PHOTOGRID", I had to rename it to Photo Frame&Grid Widget. Hopefully, it doesn't infringe any other trademarks. **

    Besides, please uninstall any versions older than 2.83 before installing the new version (2.83) because a new package name is assigned and your Android device will treat it as a separate app.


    This is my first Android app. Basically I want to replicate the grid-style photo widget from HTC so it can be used by other phones or in AOSP ROM.

    I developed the widget and tested it on my HTC Incredible S. If you're interested, please install it in other phones of different brand and screen size. If you encounter any issues, please feel free to report here or give me a PM. Or if you have any request for new features, I'll also consider in future versions.

    Features:
    • Resizable & scrollable grid view / photo frame mode / stack mode
    • Support lockscreen widget in JellyBean (Android 4.2 and up)
    • Configurable slideshow interval for frame mode
    • Supports JPG, GIF, PNG, BMP, MPO, JPS for image files
    • Support 3GP, MP4, TS, WEBM, MKV for video files (http://developer.android.com/guide/appendix/media-formats.html)
    • Configurable file types & filename filter
    • Selectable photo album from internal/external storage
    • Individual file selection
    • Can choose a specific installed app to launch for full screen image view or video playback
    • Image file details in preview mode (Filename, image dimension, file size and video duration)
    • Tween animation in frame mode (fade / slide) ** even better slide effect if navigation arrows are hidden **
    • Support different settings in multiple widget instances
    • Two different image styles - Scale whole image / Crop to fit
    • User define image border width and color
    • Thumbnail size options
    • Display order options
    • Limit the maximum no of photo files to show. Default is 50.
    • App to change widget settings on the fly
    • Tasker integration
    • Requires ICS (Android 4.0) or above

    Permissions
    • WRITE_EXTERNAL_STORAGE - store thumbnails for grid view to improve performance
    • READ_EXTERNAL_STORAGE - read thumbnails for grid view
    • RECEIVE_BOOT_COMPLETED - restart services for auto refresh and register alarm manager for slideshow
    • WAKE_LOCK - keep phone awake during background thumbnail generation
    • VIBRATE - vibrate when thumbnail is selected

    Outstanding issues:
    • Due to a bug in Android 4.2.1 SDK, if you remove the widget in lockscreen, you need to remove its settings in the app as well manually. Fixed in 4.2.2 SDK.

    https://play.google.com/store/apps/details?id=com.gzplanet.photoframegridwidget

    5
    New release public testing

    I've been working on a new release for the past month. Most of the UI have been rewritten to make use of ICS features and style. Besides, you can now change widget settings on the fly using a new application in app drawer.

    Change log:
    - New config application to change widget settings on the fly. Find the new app shortcut in app drawer.
    - UI revamp to make use of ICS features (e.g. Action bar, Fragments, Holo theme). Click the icon on upper right corner to confirm settings instead of pressing the Back button.
    - Reduced package size

    Please feel free to try on your phone or tablet and report if you encounter any issues.
    3
    New release public testing

    This release has lots of changes. Hope it doesn't break anything! :)

    • Multiple folder support
    • Implemented fragment animation
    • New options to hide preview info individually (including navigation arrows)
    • Bug fixes
    3
    Public testing for next version

    As promised I just pulled together a new build with some cool features:

    • New Stack Mode! - similar to Google Gallery stack widget but much cooler
    • Preview/frame photo animation - finally I managed to implement some animation in appwidget. You can select Fade or Slide animation in settings.
    • New border width and color selection for preview image and stack thumbnails

    For the slide animation, if you disable arrow buttons, you'll see an enhanced version of the animation. Try it and see for yourself.

    Currently I disable auto refresh function for stack mode because it doesn't work properly. Hopefully I can find a solution soon. I already have an idea, though.

    Finally, I need to think of a new name for the widget. I just can't call it like "Photo Grid/Frame/Stack Widget". If you have any idea, please let me know. :confused:
    3
    More more thing guys, I've something cool in development. Unfortunately my desktop GPU seems to be dying. I need to replace it. Might slow down the progress. Stay tuned.