paulolinhares09 / retropicker Goto Github PK
View Code? Open in Web Editor NEWAndroid Library for work with Camera or Gallery
Home Page: https://github.com/PauloLinhares09/RetroPicker/releases
Android Library for work with Camera or Gallery
Home Page: https://github.com/PauloLinhares09/RetroPicker/releases
Caused by java.lang.NullPointerException: Attempt to invoke interface method 'void br.com.packapps.retropicker.callback.CallbackPicker.onSuccess(android.graphics.Bitmap, java.lang.String)' on a null object reference at br.com.packapps.retropicker.fragments.RetroPickerFragment.executeActionResult(RetroPickerFragment.java:292) at br.com.packapps.retropicker.fragments.RetroPickerFragment.onActivityResult(RetroPickerFragment.java:277) at android.app.Activity.dispatchActivityResult(Activity.java:7802) at android.app.ActivityThread.deliverResults(ActivityThread.java:4929) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4269) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4330) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2123) at android.os.Handler.dispatchMessage(Handler.java:109) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:7470) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
Any idea about that?
When I add this library through gradle in my android project then I saw 2 apps in my apps menu in android phone. When I tap on 1 app its my app and when I tap on other it starts you image picker app. Whats the issue and how I solve it as I follow all things defined on your library page
Tentei usar o Glide, porém não consegui mostrar o bitmap de retorno. Também tentei colocar o bitmap diretamente na image view, porém não foi mostrado a imagem. Sempre é chamado o método onSuccess, porém não consigo obter seus dados.
A imagePath me retorna content://com.android.providers.media.documents/document/image%3A8994 na qual acredito estar correto
Retropicker.Builder builder = new Retropicker.Builder(getMainActivity())
.setTypeAction(Retropicker.GALLERY_PICKER);
builder.enquee(new CallbackPicker() {
@Override
public void onSuccess(Bitmap bitmap, String imagePath) {
imageProfilePicture.setImageBitmap(bitmap);
}
@Override
public void onFailure(Throwable error) {
showMessage(error.getMessage());
}
});
Retropicker retropicker = builder.create();
retropicker.open();
It would be useful
Hello Paulo,
After I adding your library i can see two launcher icon of my app. One is for your MainActivity and another is for my activity.
How can I resolve this?
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.