android


Capturing a photo taken from a gallery intent


I have a method which launches the gallery so that I can choose photos (this works)
public ArrayList<ImageEntry> pickImages(Context cont){
Picker.PickListener pic = new MyPickListener();
ArrayList<ImageEntry> images = new ArrayList<>();
pic.onPickedSuccessfully(images);
new Picker.Builder(cont, pic, R.style.MIP_theme)
.build()
.startActivity();
return images;
}
Except when I take a photo in gallery it returns with
/storage/emulated/0/capture1461208914080.png
As the image path
When I try to load this image
public class MyPickListener implements Picker.PickListener, View.OnLongClickListener {
HorizontalScrollView imageScroll;
LinearLayout imageLayout;
LinkedList<View> thumbnails = new LinkedList<>();
LinkedList<String> thumbnailsPaths = new LinkedList<>();
#Override
public void onPickedSuccessfully(final ArrayList<ImageEntry> images) {
imageLayout = (LinearLayout) view.findViewById(R.id.thumbnail_layout);
imageScroll = (HorizontalScrollView) view.findViewById(R.id.thumbnail_scroll);
imageLayout.setHorizontalScrollBarEnabled(false);
for(ImageEntry image : images){
if (imageCount < 5) {
imageCount++;
imageScroll.setVisibility(View.VISIBLE);
View view = viewBuilder.createThumbnail(getActivity(), image.path);
thumbnails.add(view);
thumbnailsPaths.add(image.path);
view.setOnLongClickListener(this);
imageLayout.addView(view);
MainActivity.imageArray.add(image.path);
}
}
}
My question is what do I need to do to be able to load images taken from the gallery. At the moment they only show as empty, thanks

Related Links

OnClick doesnt work while Animation is running
How can I figure out the dependency paths for Android support libraries?
How to Store Accelerometer Data for Classification by using Machine Learning
Multiple Google Cloud Endpoint API versions in the same Appengine Version
Android: Drawable <android:tint> alternative API < 21
copyTo doesn't work on OpenCv4Android
Part of a Button outside of a Dialog
Unable to integrate google sign in?
Android:Play sound onClick x time in a minute
Open Intent android.provider.Settings.ACTION_WIFI_SETTINGS using React Native Liniking.openURL()
how to change color of TextinputLayout's edittext underline android [duplicate]
Cardboard panorama with hotspot
Google analytics for Android: Events are sent for delivery but not displayed in google console
Navigation Drawer item remains selected Android
Auto permission clicker android
Android spinner overwriting default selection

Categories

HOME
service-worker
cygwin
nvd3.js
redux-form
powerpoint
swt
apache-spark-mllib
shiro
hugo
interpolation
sendgrid-api-v3
vimdiff
alamofire
automatic-ref-counting
selenium-ide
plink
atlassian
3nf
heat
do-while
gruntfile
coin3d
scsi
google-container-registry
identity-management
asciidoctor-pdf
interpreter
dynamically-generated
dapper-extensions
xcode-ui-testing
google-cloud-print
has-and-belongs-to-many
android-maps
uitapgesturerecognizer
scrollview
anki
angularjs-material
mailkit
nested-lists
mnist
engine.io
doc
logback-groovy
oracle-service-bus
avcapturedevice
android-exoplayer
drupal-theming
oim
phpdbg
plan-9
double-click
gitlist
facebook-pixel
zenhub
context-switch
wpas
yii2-user
spring-data-couchbase
backbone-collections
arules
swingworker
rmongo
webjars
file-uri
android-dateutils
swizzling
kango-framework
character-replacement
assertion
opl
vigenere
lazybones
flock
sql-server-data-tools
snoop
public-html
cryptographichashfunction
infosphere-spl
sql-scripts
cbind
universal-image-loader
insight.database
build-script
rcaller
live555
tinyxml
buffering
amslidemenu
getopt
ebay-lms
unit-of-work
poker
octal
traceability
sqlclr
appjs
database-create
httponly
koken
landscape-portrait
android-holo-everywhere
drawtobitmap
w3c-geolocation
luajava
request-headers
dsoframer

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App