Card 77 (Add photo details to Trovebox Collect)

Trovebox-Android-App:

- GalleryFragment: modified reference to the EXTRA_ADAPTER_PHOTOS
constant in the additionalSingleImageViewInit method
- MainActivity: now it doesn't implement PhotoDeletedHandler and
PhotoUpdatedHandler. Also removed photoDeleted and photoUpdated method
implementation. That is done because GalleryFragment now may register
itself to receive boradcast notifications. Also removed receiver
registering code from the  onCreate method
- PhotoDetailsActivity: now it doesn't implements PhotoDeletedHandler
and PhotoUpdatedHandler. Also removed photoDeleted and photoUpdated
method implementation. That is done because PhotoDetailsFragment now may
register itself to receive boradcast notifications. Also removed
receiver registering code from the  onCreate method
- PhotoDetailsActivity: removed EXTRA_PHOTO, EXTRA_PHOTOS,
EXTRA_ADAPTER_PHOTOS constants
- PhotoDetailsActivity.PhotoDetailsUiFragment: now it extends
PhotoDetailsFragment from common library so a lot of common
functionality is moved to that fragment
- PhotoDetailsActivity.PhotoDetailsUiFragment: replaced current instance
management fields wit the CurrentInstanceManager instance.
- UploaderService: modified reference to the EXTRA_PHOTOS constant in
the getSuccessPendingIntent method
- HorizontalListView: moved to common library
- PhotoViewHackyViewPager: moved to common library
- res/drawable-?dpi/button_private.png: moved to common library
- res/layout/activity_photo_details.xml: moved to common library
- res/layout/item_details_thum_image.xml: moved to common library
- res/layout/item_photo_details.xml: moved to common library
- res/values/colors.xml: moved detail related and ab_bg_black colors to
the common library
- res/values/dimens.xml: moved photo details related dimensions to the
common library
- res/valeus/strings.xml, res/values-ru/strings.xml,
res/values-pt/strings.xml: moved details_title_and_date_header constant
to the common library

Trovebox-Android-Common:
- GalleryFragment: added registering of photo deleted and photo updated
broadcast receivers to the onCreate method
- PhotoDetailsFragment: added. Extracted common functionality from the
Trovebox-Android-App photo details ui fragment.
- PhotoDetailsFragment: fixed thumbs offset issue caused by invalid
dimensions in pixels calculation. 104dip in pixels is not the same as
100dip+2dip+2dip in pixels at hdpi devices
- HorizontalListView: added. Moved from Trovebox Android App
- PhotoViewHackyViewPager: added. Moved from Trovebox Android App
- res/drawable-?dpi/button_private.png: added. Moved from Trovebox
Android App
- res/layout/fragment_photo_details.xml: added. Moved from Trovebox
Android App
- res/layout/item_details_thum_image.xml: added. Moved from Trovebox
Android App
- res/layout/item_photo_details.xml: added. Moved from Trovebox Android
App
- res/values/colors.xml: added detail related and ab_bg_black colors.
Moved from Trovebox Android App
- res/values/dimens.xml: added photo details related dimensions. Moved
from Trovebox Android App
- res/valeus/strings.xml, res/values-ru/strings.xml,
res/values-pt/strings.xml: added details_title_and_date_header constant.
Moved from Trovebox Android App

Trovebox-Android-Test:
- PhotoDetailsActivitTest: fixed constant references
Card 77 (Add photo details to Trovebox Collect)

Trovebox-Android-App:

- AlbumsFragment.AlbumsAdapter: added missing newly added runnable
parameter to the PhotoUtils.validateUrlForSizeExistAsyncAndRun call in
the getView method
- FacebookFragment: added missing newly added runnable parameter to the
PhotoUtils.validateUrlForSizeExistAsyncAndRun call in the postPhoto
method
- SelectAlbumsActivity.SelectAlbumsUiFragment.AlbumsAdapter: added
missing newly added runnable parameter to the
PhotoUtils.validateUrlForSizeExistAsyncAndRun call in the getView method

Trovebox-Android-Common:

- GalleryFragment.GalleryAdapterExt: added missing newly added runnable
parameter to the PhotoUtils.validateUrlForSizeExistAsyncAndRun call in
the init method
- PhotoDetailsFragment.PhotoDetailsPagerAdapter: added missing newly
added runnable parameter to the
PhotoUtils.validateUrlForSizeExistAsyncAndRun call in the
instantiateItem method
- PhotoDetailsFragment.ThumbnailsAdapter: added missing newly added
runnable parameter to the PhotoUtils.validateUrlForSizeExistAsyncAndRun
call in the getView method
- Photo: added mHost, mToken fields, their getters and setters and
support to parcelable implementation
- PhotoUtils: added additional parameter to the
validateUrlForSizeExistAsyncAndRun method declaration
- PhotoUtils: added missing newly added parameters to the getPhoto API
call in the getThePhotoWithReturnSize method
- PhotoUtils.RetrieveThumbUrlTask: added mPhoto2 field and moved mPhoto
field modification from doInBackground to the onSuccessPostExecute to
avoid concurent modification
- ITroveboxApi: modified getPhoto declaration: added new token and host
parameters
- TroveboxApi: added host and token parameters support to the getPhoto
API method implementation
- AbstractUploaderService: added setting of host and token information
to the Photo object onsuccessful upload in the handleIntent method

Trovebox-Android-Test:
- GalleryActivityTest: added missing parameters to the getPhoto call in
the testLoadImages method
- PhotoDetailsActivityTest: added missing parameters to the getPhoto
call in the testPreconditions method