yazeed44 / multiimagepicker Goto Github PK
View Code? Open in Web Editor NEWA library to pick multi images in Android
License: MIT License
A library to pick multi images in Android
License: MIT License
.
To a similar one of telegram
Hi!
I really liked your component and i´m trying to use it in my application but i´m getting an issue.
I did all the things listed in your github page, but when i try to open the gallery, i´m having the following issue:
Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.
And i´m calling the picker like you did
new Picker.Builder(getBaseContext(),new MyPickListener())
.build()
.startActivity();
Can you help me out?
I´ll appreciate.
Thanks
The default theme and style are fetched from themeResId
variable
Searching web for specific images and then selecting them
Using SquareFrameLayout
class or any other method
add support for pick videos
I have android:allowBackup="false" set in my apps manifest uppon adding your dependecy I get :
Error:(6, 13) Gradle: Attribute application@allowBackup value=(false) from AndroidManifest.xml:6:13
Error:(6, 13) Gradle: Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:6:13
is also present at net.yazeed44.imagepicker:imagepicker:1.1.6:12:9 value=(true)
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:5:5 to override
Hi,
Thanks a lot for great library.
I am facing an issue while browsing gallery. First image is always not get load , even selecting sub folder shows 1st image as blank white. And many times it shows all sublist as blank white , which later might or might not get refresh.
How ccan I get that working?
Thanks.
After rotation while i'm in an album ... a null pointer exception happens when choose another album ..
Hello, I am implementing a library in my project however when taking a picture he bursts the following error
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
at net.yazeed44.imagepicker.model.ImageEntry$Builder.from(ImageEntry.java:52)
at net.yazeed44.imagepicker.model.ImageEntry.from(ImageEntry.java:26)
at net.yazeed44.imagepicker.ui.PickerActivity.onActivityResult(PickerActivity.java:227)
at android.app.Activity.dispatchActivityResult(Activity.java:6549)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4054)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3380)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3425)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2763)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4462)
at android.app.ActivityThread.access$1000(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1454)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
Hi, this is really weird and I've been spending hours on this. If I launch your sample app, I could see everything is working fine, even if I referenced the imagePicker library non directly, meaning through gradle. However, if I copy pasted your sample app into my own app (pretty much the MainActivity class and wtv it references, it launches the Picker activity fine but I dont see the images, even after I select them. I only see the count.
Any idea as to what I'm missing here or what's different? The sample app is already simple enough. One thing I could guess is because my app also uses Glide, however I'm not sure where things went wrong here.
This is what the MainActivity looks like pasted into my app:
and of course this is what MainActivity looks like just by itself from your sample app:
exception saving result to URI: file:///storage/emulated/0/capture1438926874060.png
java.io.FileNotFoundException: Is a directory
at android.os.Parcel.openFileDescriptor(Native Method)
at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:253)
at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:199)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:916)
at android.content.ContentResolver.openOutputStream(ContentResolver.java:686)
at android.content.ContentResolver.openOutputStream(ContentResolver.java:662)
at com.android.camera.PhotoModule.onCaptureDone(PhotoModule.java:1425)
at com.android.camera.PhotoModule$10.onClick(PhotoModule.java:756)
at android.view.View.performClick(View.java:4781)
at android.view.View$PerformClick.run(View.java:19873)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
Hi again!
I´m still using your library, which is very good, but i´m getting an issue.
Sorry if i´m doing something wrong but i´m new in Android.
When I pick the imagens from gallery, it´s working fine, but when i take a picture from camera, it´s not saving in the gallery.
So when I try to create a file of the picture taken and upload it with retrofit, i´m getting the following issue:
/storage/emulated/0/capture1435779162195.png: open failed: EISDIR (Is a directory)
Below is the code where I get the picture that was taken.
private File photo;
@OverRide
public void onPickedSuccessfully(String[] strings) {
photo = new File(strings[0]) // Consider i´m only taking one picture.
}
Regards,
Guilherme Batista
It will be really convenient if we can use the fragments directly such as the AlbumsFragment and ImagesThumbnailFragment, so we can really customize the use for our app. PickerActivity seems to just instantiate them in a normal way which works, but when I instantiate them within my viewpager, it throws a null pointer. Do you have any tips?
Thank you, this is the stacktrace:
java.lang.NullPointerException
at net.yazeed44.imagepicker.ui.AlbumsFragment.onCreateView(AlbumsFragment.java:46)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1789)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:955)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1138)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:740)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1501)
at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:490)
at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)
at android.support.v4.view.ViewPager.populate(ViewPager.java:1105)
at android.support.v4.view.ViewPager.populate(ViewPager.java:951)
at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1473)
at android.view.View.measure(View.java:17495)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
at android.view.View.measure(View.java:17495)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.support.v7.internal.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:124)
at android.view.View.measure(View.java:17495)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
at android.view.View.measure(View.java:17495)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at android.view.View.measure(View.java:17495)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1410)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
at android.view.View.measure(View.java:17495)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5363)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2548)
at android.view.View.measure(View.java:17495)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2285)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1396)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1595)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6632)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:814)
at android.view.Choreographer.doCallbacks(Choreographer.java:614)
at android.view.Choreographer.doFrame(Choreographer.java:584)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:800)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5487)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
Any help would be most welcome
In my app I am using your library to select images. When the user select images than the app moves the images to some other place and they are deleted from the gallery but if I again click the button to select more pictures the images are still there at the same place. The images don't appear in the gallery because they have been moved. It seems like the library is not refreshing. So how can I refresh the images in the library?
To show them while browsing
Hello! Beautiful lib, though I failed to implement it easily into my project.
App crashes when AlbumActivity calls getSupportActionBar.
I suppose that happens because of the theme. I'm using Theme.Appcompat.Light.NoActionBar and Toolbar as a separate layout.
What is this?
A disgrace!
Hi,
It will be better if an option for showing/hiding camera button is available. In my case, I don't want to let user to take photo by camera, just only let them to pick images from gallery.
Waiting... :)
Or picking images from artificial album created by user of the library
Hi
Just wanted to let you know that floating action button is not working in your new library version.
BTW I don't know why Telegram is not working here today :(
Unable to start image picker.
java.lang.NoClassDefFoundError: de.greenrobot.event.EventBus
at net.yazeed44.imagepicker.util.Picker.startActivity(Picker.java:58)
at com.goldenedge.gephotolab.MainActivity.onCreate(MainActivity.java:221)
at android.app.Activity.performCreate(Activity.java:4510)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1050)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2048)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2111)
at android.app.ActivityThread.access$600(ActivityThread.java:134)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1251)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4666)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
at dalvik.system.NativeStart.main(Native Method)
Here is code
@Override
public void onClick(View arg0) {
switch (arg0.getId()) {
case R.id.btnSelect:
new Picker.Builder(this, new MyPickListener()) // Here error arose
.build()
.startActivity();
break;
}
}
class MyPickListener implements Picker.PickListener
{
@Override
public void onPickedSuccessfully(final String[] paths){
}
@Override
public void onCancel() {
}
}
I run this lib, select some images but I get no result here is the debug :
08-03 16:04:04.982 16113-16113/com.goodrequest.dofeparticipant.debug D/Event﹕ No subscribers registered for event class net.yazeed44.imagepicker.util.Events$OnPublishPickOptionsEvent
08-03 16:04:04.982 16113-16113/com.goodrequest.dofeparticipant.debug D/Event﹕ No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
08-03 16:04:05.005 16113-16113/com.goodrequest.dofeparticipant.debug D/Event﹕ No subscribers registered for event class net.yazeed44.imagepicker.util.Events$OnAttachFabEvent
08-03 16:04:05.005 16113-16113/com.goodrequest.dofeparticipant.debug D/Event﹕ No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
08-03 16:04:05.008 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:489﹕ 16:04:05.008 main adding request to request queue
08-03 16:04:05.009 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:489﹕ 16:04:05.009 main adding request to request queue
08-03 16:04:05.010 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:212﹕ 16:04:05.009 main SpiceManager started.
08-03 16:04:05.020 16113-16587/com.goodrequest.dofeparticipant.debug V//SpiceManager.java:1191﹕ 16:04:05.019 SpiceManagerThread 0 Binding to service.
08-03 16:04:05.026 16113-16587/com.goodrequest.dofeparticipant.debug V//SpiceManager.java:1197﹕ 16:04:05.025 SpiceManagerThread 0 Binding to service succeeded.
08-03 16:04:05.027 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:1245﹕ 16:04:05.026 SpiceManagerThread 0 Waiting for service to be bound.
08-03 16:04:05.049 16113-16113/com.goodrequest.dofeparticipant.debug E/RecyclerView﹕ No adapter attached; skipping layout
08-03 16:04:05.051 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceService.java:134﹕ 16:04:05.051 main SpiceService instance created.
08-03 16:04:05.054 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceService.java:506﹕ 16:04:05.054 main Pending requests : 0
08-03 16:04:05.054 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceService.java:508﹕ 16:04:05.054 main Stop foreground
08-03 16:04:05.056 16113-16113/com.goodrequest.dofeparticipant.debug E/RecyclerView﹕ No adapter attached; skipping layout
08-03 16:04:05.062 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:33﹕ 16:04:05.062 main Message Queue starting
08-03 16:04:05.063 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:1088﹕ 16:04:05.062 main Bound to service : OfflineSpiceService
08-03 16:04:05.070 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:1252﹕ 16:04:05.069 SpiceManagerThread 0 Bound ok.
08-03 16:04:05.072 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:286﹕ 16:04:05.071 SpiceManagerThread 0 Sending request to service : CachedSpiceRequest
08-03 16:04:05.072 16113-16587/com.goodrequest.dofeparticipant.debug D//RequestProcessor.java:63﹕ 16:04:05.072 SpiceManagerThread 0 Adding request to queue 541781102: CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@1f045f0f] size is 0
08-03 16:04:05.073 16113-16587/com.goodrequest.dofeparticipant.debug D//RequestProcessor.java:85﹕ 16:04:05.073 SpiceManagerThread 0 Adding entry for type class java.util.ArrayList and cacheKey null.
08-03 16:04:05.074 16113-16587/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:61﹕ 16:04:05.073 SpiceManagerThread 0 Request was added to queue.
08-03 16:04:05.074 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.074 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.078 16113-16587/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:82﹕ 16:04:05.075 SpiceManagerThread 0 Sending progress PENDING
08-03 16:04:05.080 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.078 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.081 16113-16587/com.goodrequest.dofeparticipant.debug V//SpiceService.java:506﹕ 16:04:05.081 SpiceManagerThread 0 Pending requests : 1
08-03 16:04:05.081 16113-16587/com.goodrequest.dofeparticipant.debug V//SpiceService.java:508﹕ 16:04:05.081 SpiceManagerThread 0 Stop foreground
08-03 16:04:05.085 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:83﹕ 16:04:05.085 Thread-28284 Processing request : CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@1f045f0f]
08-03 16:04:05.086 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:129﹕ 16:04:05.085 Thread-28284 Cache content not available or expired or disabled
08-03 16:04:05.088 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:286﹕ 16:04:05.087 SpiceManagerThread 0 Sending request to service : CachedSpiceRequest
08-03 16:04:05.088 16113-16587/com.goodrequest.dofeparticipant.debug D//RequestProcessor.java:63﹕ 16:04:05.088 SpiceManagerThread 0 Adding request to queue 541781102: CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@353d617a] size is 1
08-03 16:04:05.089 16113-16587/com.goodrequest.dofeparticipant.debug D//RequestProcessor.java:85﹕ 16:04:05.089 SpiceManagerThread 0 Adding entry for type class java.util.ArrayList and cacheKey null.
08-03 16:04:05.089 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:148﹕ 16:04:05.086 Thread-28284 Calling netwok request.
08-03 16:04:05.090 16113-16587/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:61﹕ 16:04:05.090 SpiceManagerThread 0 Request was added to queue.
08-03 16:04:05.092 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:175﹕ 16:04:05.092 main Processing request added: CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@1f045f0f]
08-03 16:04:05.092 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.092 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.093 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:131﹕ 16:04:05.092 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@3d31dd2b
08-03 16:04:05.093 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:175﹕ 16:04:05.093 main Processing request added: CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@353d617a]
08-03 16:04:05.094 16113-16587/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:82﹕ 16:04:05.094 SpiceManagerThread 0 Sending progress PENDING
08-03 16:04:05.096 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.095 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.096 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:131﹕ 16:04:05.096 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@39e07588
08-03 16:04:05.097 16113-16587/com.goodrequest.dofeparticipant.debug V//SpiceService.java:506﹕ 16:04:05.096 SpiceManagerThread 0 Pending requests : 2
08-03 16:04:05.097 16113-16587/com.goodrequest.dofeparticipant.debug V//SpiceService.java:508﹕ 16:04:05.097 SpiceManagerThread 0 Stop foreground
08-03 16:04:05.098 16113-16590/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:82﹕ 16:04:05.096 Thread-28284 Sending progress LOADING_FROM_NETWORK
08-03 16:04:05.099 16113-16590/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.098 Thread-28284 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.100 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:131﹕ 16:04:05.099 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@3791ab21
08-03 16:04:05.121 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:151﹕ 16:04:05.121 Thread-28284 Network request call ended.
08-03 16:04:05.121 16113-16590/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:82﹕ 16:04:05.121 Thread-28284 Sending progress COMPLETE
08-03 16:04:05.122 16113-16590/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.122 Thread-28284 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.124 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:131﹕ 16:04:05.124 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@7b01b46
08-03 16:04:05.126 16113-16590/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.126 Thread-28284 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.128 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:166﹕ 16:04:05.128 main Notifying 1 listeners of request success
08-03 16:04:05.129 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:172﹕ 16:04:05.129 main Notifying AlbumsFragment
08-03 16:04:05.129 16113-16113/com.goodrequest.dofeparticipant.debug D/Event﹕ No subscribers registered for event class net.yazeed44.imagepicker.util.Events$onAlbumsLoadedEvent
08-03 16:04:05.129 16113-16113/com.goodrequest.dofeparticipant.debug D/Event﹕ No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
08-03 16:04:05.130 16113-16590/com.goodrequest.dofeparticipant.debug V//RequestProgressManager.java:161﹕ 16:04:05.130 Thread-28284 Removing CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@1f045f0f] size is 2
08-03 16:04:05.132 16113-16590/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.131 Thread-28284 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.132 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:295﹕ 16:04:05.132 Thread-28284 It tooks 49 ms to process request CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@1f045f0f].
08-03 16:04:05.133 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:83﹕ 16:04:05.133 Thread-28284 Processing request : CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@353d617a]
08-03 16:04:05.134 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:129﹕ 16:04:05.133 Thread-28284 Cache content not available or expired or disabled
08-03 16:04:05.135 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:148﹕ 16:04:05.134 Thread-28284 Calling netwok request.
08-03 16:04:05.136 16113-16590/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:82﹕ 16:04:05.135 Thread-28284 Sending progress LOADING_FROM_NETWORK
08-03 16:04:05.136 16113-16590/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.136 Thread-28284 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.153 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:151﹕ 16:04:05.153 Thread-28284 Network request call ended.
08-03 16:04:05.154 16113-16590/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:82﹕ 16:04:05.154 Thread-28284 Sending progress COMPLETE
08-03 16:04:05.154 16113-16590/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.154 Thread-28284 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.155 16113-16590/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.155 Thread-28284 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.155 16113-16590/com.goodrequest.dofeparticipant.debug V//RequestProgressManager.java:161﹕ 16:04:05.155 Thread-28284 Removing CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@353d617a] size is 1
08-03 16:04:05.156 16113-16590/com.goodrequest.dofeparticipant.debug D//RequestProgressManager.java:91﹕ 16:04:05.155 Thread-28284 Sending all request complete.
08-03 16:04:05.157 16113-16590/com.goodrequest.dofeparticipant.debug V//SpiceService.java:495﹕ 16:04:05.156 Thread-28284 Pending requests : 0
08-03 16:04:05.158 16113-16590/com.goodrequest.dofeparticipant.debug D//SpiceServiceListenerNotifier.java:146﹕ 16:04:05.158 Thread-28284 Message queue is Handler (android.os.Handler) {1e6d3b9c}
08-03 16:04:05.159 16113-16590/com.goodrequest.dofeparticipant.debug D//DefaultRequestRunner.java:295﹕ 16:04:05.159 Thread-28284 It tooks 26 ms to process request CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=net.yazeed44.imagepicker.util.LoadingAlbumsRequest@353d617a].
08-03 16:04:05.165 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:131﹕ 16:04:05.165 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@ab05283
08-03 16:04:05.169 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:131﹕ 16:04:05.169 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@1a893c00
08-03 16:04:05.170 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:166﹕ 16:04:05.169 main Notifying 1 listeners of request success
08-03 16:04:05.170 16113-16113/com.goodrequest.dofeparticipant.debug V//DefaultRequestListenerNotifier.java:172﹕ 16:04:05.170 main Notifying AlbumsFragment
08-03 16:04:05.170 16113-16113/com.goodrequest.dofeparticipant.debug D/Event﹕ No subscribers registered for event class net.yazeed44.imagepicker.util.Events$onAlbumsLoadedEvent
08-03 16:04:05.170 16113-16113/com.goodrequest.dofeparticipant.debug D/Event﹕ No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent
08-03 16:04:06.013 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:326﹕ 16:04:06.013 main SpiceManager stopping. Joining
08-03 16:04:06.014 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceManager.java:767﹕ 16:04:06.013 main Cleared listeners of all requests to launch
08-03 16:04:06.014 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceManager.java:796﹕ 16:04:06.014 main Cleared listeners of all pending requests
08-03 16:04:06.015 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:265﹕ 16:04:06.015 SpiceManagerThread 0 Interrupted while waiting for new request.
08-03 16:04:06.015 16113-16587/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:271﹕ 16:04:06.015 SpiceManagerThread 0 SpiceManager request runner terminated. Requests count: 0, stopped true, interrupted false
08-03 16:04:06.017 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:339﹕ 16:04:06.017 main Runner join time (ms) when should stop 2
08-03 16:04:06.018 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceManager.java:1221﹕ 16:04:06.018 main Unbinding from service start.
08-03 16:04:06.019 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceManager.java:1225﹕ 16:04:06.019 main Unbinding from service.
08-03 16:04:06.026 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:1227﹕ 16:04:06.026 main Unbound from service : OfflineSpiceService
08-03 16:04:06.027 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceManager.java:345﹕ 16:04:06.027 main SpiceManager stopped.
08-03 16:04:06.076 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceService.java:506﹕ 16:04:06.076 main Pending requests : 0
08-03 16:04:06.079 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceService.java:508﹕ 16:04:06.079 main Stop foreground
08-03 16:04:06.082 16113-16113/com.goodrequest.dofeparticipant.debug V//SpiceService.java:495﹕ 16:04:06.082 main Pending requests : 0
08-03 16:04:06.088 16113-16113/com.goodrequest.dofeparticipant.debug D//SpiceService.java:303﹕ 16:04:06.088 main SpiceService instance destroyed.
08-03 16:04:07.872 16113-16152/com.goodrequest.dofeparticipant.debug D/OpenGLRenderer﹕ endAllStagingAnimators on 0xa15ad180 (RippleDrawable) with handle 0xaee689f0
my code :
public class SettingsActivity : ToolbarActivity(R.layout.settings, navigation = Navigation.UP)
public class SettingsView(context: Context, attrs: AttributeSet) : RxLayout(context, attrs) {
val email : EditText by bindView(R.id.settings_email_edit_text_input)
val phone : EditText by bindView(R.id.settings_phone_edit_text_input)
val picture : ImageView by bindView(R.id.settings_user_photo)
private val pickerListener = object : Picker.PickListener {
override fun onCancel() { }
override fun onPickedSuccessfully(p0: ArrayList<ImageEntry>) {
for(image in p0){
image.bg("Image")
}
//picture.load(p0[0].path)
}
}
override fun onFinishInflate() {
super<RxLayout>.onFinishInflate()
email.setText("[email protected]")
phone.setText("+420 904 497 337")
settings_user_photo.onClick { Picker.Builder(context, pickerListener, R.style.ImagePicker)
//.setPickMode(PickMode.SINGLE_IMAGE)
.disableCaptureImageFromCamera()
.build()
.startActivity() }
}
override fun onAttachedToWindow() {
super<RxLayout>.onAttachedToWindow()
}
}
-Single image mode
-Multiple images mode
Right now it's only multiple images
Hi , I'm having trouble with camera capture. Here is the logcat entry :
java.lang.RuntimeException: Unable to resume activity {com.../net.yazeed44.imagepicker.ui.PickerActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=null} to activity {com.../net.yazeed44.imagepicker.ui.PickerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3394)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3425)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2763)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4462)
at android.app.ActivityThread.access$1000(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1454)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=null} to activity {com.../net.yazeed44.imagepicker.ui.PickerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:4058)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3380)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3425)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2763)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4462)
at android.app.ActivityThread.access$1000(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1454)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
at net.yazeed44.imagepicker.model.ImageEntry$Builder.from(ImageEntry.java:52)
at net.yazeed44.imagepicker.model.ImageEntry.from(ImageEntry.java:26)
at net.yazeed44.imagepicker.ui.PickerActivity.onActivityResult(PickerActivity.java:225)
at android.app.Activity.dispatchActivityResult(Activity.java:6543)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4054)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3380)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3425)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2763)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4462)
at android.app.ActivityThread.access$1000(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1454)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
How to hide/remove camera button ??
Like the one in quickpic
By long clicking an image for example
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.