-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to invoke interface method on a null object reference #22
Comments
Never mind! didn't read the readme well ❌ thank you! |
oh it works now? ya I tried to be a thorough as possible about the usage in the README. |
Yeah but please put the important note after the implementation directly i got a question: |
one more thing if you want i can help you rewrite the readme 👍 so it's easier to be used by everyone! |
sure, what do you think needs to change? |
First you gotta Explain that Android Graphics Pallete is required and how to import it, then explain how to implement the methods and show the code that needs to be put in the methods (i copy pasted them from them source code of your application) then explain that the application works on URI not main file path and to make the application works on Path you can make a small work around in the two methods which is : |
i got a small question if you can help me where i can reach the callback of the imageview(smallones not fullscreen) so i make it on long press display a menu to delete the image |
ImageGalleryAdapter has an OnImageClickListener interface. The class that calls setOnImageClickListener() on this adapter can set up the click listener. You can similarly add an additional interface to this adapter. public interface OnImageLongClickListener {
void onImageLongClick(int position);
} |
Oh Okay! thank you! i will looking through it :) |
@lawloretienne Hi, I got the same issue as ziadkiwan got. I am not sure how to use Pallete in this case. Kindly, help me execute the code. Thanks in advance. |
Hello LawLoretienne,
Thank you for this great image gallery ! while i was implement the gallery i face a null object reference exception
My Code:
The Error i'm getting:
if you can point me at the error i would be grateful i added the activity you requested to the manifest file, and i'm attempting to launch the intent from a actionbar button click, thank you!
The text was updated successfully, but these errors were encountered: