-1

I wanna read database which is already created by my Android application but in some other activity. Like one activity is creating database and other is reading it. But when i started reading thought other activity like this:

List<String> names = this.dh.selectJname();

then this showed "Null pointer Exception".

rameezmeans
  • 830
  • 1
  • 10
  • 21
  • can you please post the logcat output? – Kurtis Nusbaum Oct 27 '11 at 16:38
  • 2
    Possible duplicate of [What is a NullPointerException, and how do I fix it?](http://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it) – rene Jan 14 '17 at 12:28

1 Answers1

0

Have you made sure to initialize your dh variable?

Kurtis Nusbaum
  • 30,445
  • 13
  • 78
  • 102