learnncode / mediachooser Goto Github PK
View Code? Open in Web Editor NEWLibrary to browse & select videos and images from disk.
License: Apache License 2.0
Library to browse & select videos and images from disk.
License: Apache License 2.0
First thanks for the greet project.
I need an app to show the videos and pictures in the phone. But I only need part of them. I want to know how to let this app only show particular videos and pictures according to the path they are stored.
after capture a video there is no pop up like image do you want to save so you need to press back
to go to the app by doing that the resultCode will be equal to zero , it should be -1 to refresh the list
@OverRide
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == MediaChooserConstants.CAPTURE_VIDEO_ACTIVITY_REQUEST_CODE) {
if (resultCode == RESULT_OK ) {
sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, fileUri));
final AlertDialog alertDialog = MediaChooserConstants.getDialog(HomeFragmentActivity.this).create();
alertDialog.show();
Hello,
You can put "Support select Photo & Video in the same time Feature" to the library?
We can select both photos & video in the same time?
Thanks,
I tried your sample code, include Library and Sample.
I run on my device, but there is not any file show in here. (video & image)
Is your application read from /sdcard, right?
If yes, please tell me :
"Which coding I need add to your sample code to test successfully?"
Hey guys!
The library looks good, I wanted to integrate it into my Gradle project, but I can't find any instructions on how to do it. Is it on Bintray? If it is, could you please update the README with 'group:artefact:version'?
Thanks!
Hello,
Your structure folders looks like support for Eclipse.
Could you support this Library for Android Studio?
I think It's necessary.
Thanks.
If you scroll down to bottom and then come back to top selecting images from top then the application will be crash and Fatal Exception raised.
FATAL EXCEPTION: main Process: alisons.com.trippr, PID: 25737 java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at android.support.design.widget.TabLayout.getTabAt(TabLayout.java:517) at com.learnncode.mediachooser.activity.HomeScreenMediaChooser.onImageSelected(HomeScreenMediaChooser.java:224) at com.learnncode.mediachooser.fragment.ImageFragment$2.onItemClick(ImageFragment.java:215) at android.widget.AdapterView.performItemClick(AdapterView.java:305) at android.widget.AbsListView.performItemClick(AbsListView.java:1146) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3053) at android.widget.AbsListView$3.run(AbsListView.java:3860) 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:5343) 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:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
You can see the error,
Would u like to tell me how to fix it?
Although I add the library as below image, and check it in "Order and Export" also,
And follow many people said that need declare the Library folder in Class Path first, as below image :
But still can not fix it,
Please tell me how to fix.
Hello,
I need edit something follow what I want, but it looks like your library not allow me to do that.
I think You can add the menu for someone can do more things they want, ex. is the setting page for them to add feature, like compress, sorting ... It's good and necessary.
Also thing, your library already added Compress the photo or video for uploading to the server feature?
Thanks,
How do I integrate on my project?
Hi!
Its good work and so compact, but how to add my project MediaChooser. Can you share gradle link?
the image list is showing well .back when i scroll to bottom then i back scroll to top .the image in top is changed and the origin image is dismissed.
This bug NullPointerException happens at this [data.getStringArrayListExtra("list")].
You can add if condition for it.
[code]
If(data != null).
[/code]
Thanks,
If so, please let me know the Gradle line which i could add it to my project's Gradle file to implement this library.
HI,
I try to add your lib to my project, but it seems that your lib is not found.
I follow this steps:
Step 1. Select your build system: Gradle
Step 2. Add the specific repository to your build file:
repositories {
maven {
url "https://jitpack.io"
}
}
Step 3. Add the dependency in your build file (do not forget to specify the correct qualifier, usually 'aar'):
dependencies {
compile 'com.github.learnNcode:MediaChooser:b1461b0028'
}
And then i got this message when i try to build:
Error:Could not find com.github.learnNcode:MediaChooser:b1461b0028.
and if i try to put '@arr' i got the same thing.
ps ยน: I'm using Android Studio.
ps ยฒ: why you are not using tags ?
Could you help me ?
Thx
how can i play the video on select on video and play the video in video view ?
How can i get the video url on click of video image ?
Furthermore, could I just pick one picture?
Back Button and Green CheckBox have same function.
I think you can change :
That's really necessary. Thanks.
Thanks for this awesome library!
The issue which I am facing is video thumbnails are not loading for all videos, I am running your sample demo on samsung s4 running on android 5.0.1.
Is there a way to fix this?
Thanks!
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.