NullPointerException error while displaying database contents.

by Kent Yip » Fri, 22 May 2009 02:24:06 GMT

Sponsored Links
 Hi rohit,



TextView col1 = (TextView)findViewById(;
TextView col2 = (TextView)findViewById(;

after the setContentView(R.layout.displaylog);

does it works?

On Tue, Apr 7, 2009 at 2:55 AM, <


Other Threads

1. Abnormal thumbnail generated after ending video recording

I met a weird problem when I was testing my video recorder. Also, it
only happens when video settings are as following:

1. H.263 codec.
2. 320x240 resolution.

Let's say, when I am recording a area with "White" color (or similar
to White), the generated thumbnail will have several corrupted blocks/
pixels filled with "Light/Dark green" color. Sometimes, the whole
thumbnail is generated as a "Light/Dark" green picture. When I enter
"Gallery" to check this video clip, the thumbnail is shown as the same
I saw after ending recording (I guess they are generated in the same
way). I am kinda stuck on this and could not figure out what's going
on here. I was wondering maybe the color converter has some bugs. So I
wrote my own API to do the "YUV420 to RGB565" job. Same result. Hope
if any of you can help me on this.


2. Threaded horizontal scrolling text


Its been a while since I've done any coding, I'm new to android, and
unfortunately my first job is rather tricky.

My program need to display horizontally scrolling text and images, but
it need to set the scroll speed quiet finely. Now I've been looing at
some examples with TextView and some also use android.widget.Scroller.

Now I'm pretty sure I'll have to write this from scratch, but what i
want to know, is there a clear way that i should use in creating the
class. I could try expanding on the TextView class and use its

Or should I just write a class to treat text and images the same?



3. need help on editText + IME

4. Programatically selection of 3G network connection in G1?

5. Web service calling from andriod

6. Cant get Latitude and Longitude without Internet Connection

7. Asynchronous ListView