python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to properly reference a class which extends from View in MainActivity?
I'm learning by doing and reading from the Android docs but I have stumbled upon this problem while building a drawing app.
public class MainActivity extends AppCompatActivity {
private Button co...
BadProgrammer
Votes: 0
Answers: 0
Getting the error "Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null
I have tried many ways but the error still persists. This error is shown because the location of the image is null but I think there are some more issues that causes this error
I am attaching my code ...
Sourabh Sharma
Votes: 0
Answers: 0
App Crashing when calling New Activity Intent from Webview?
I'm developing app to load PDF file into new PDF activity from Webview
using intent & PdfViewer.jar library. I know it is not possible to open PDF files in Webview but trying to open in activity_p...

abhilash kaveriappa
Votes: 0
Answers: 4
NullPointer while using JPA EntityManager in a ThredPoolExecutor
I'm implementing a JavaEE8 application using CDI and running on an Open Liberty (v20.0.0.4). The application has a event-triggered job, which runs some code in an separate thread using the ThreadPoolE...
cloudy_rowdy
Votes: 0
Answers: 1