NullPointerException error while displaying database contents.

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


Sponsored Links
 Hi rohit,

put

dbw.FillData();

TextView col1 = (TextView)findViewById(R.id.col1);
TextView col2 = (TextView)findViewById(R.id.col2);

after the setContentView(R.layout.displaylog);

does it works?

On Tue, Apr 7, 2009 at 2:55 AM, rohit.kundal...@gmail.com <




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Camcorder not woking for video recording sdk1.6r1

Hello everybody

I tried the Camcorder(in built Android app) for both avds default and
custom(with camera) to record video, but the media recorder start
fails.
Is there any suggestion?

Here is log cat:

12-07 14:09:49.477: ERROR/CameraService(554): mHardware->startRecording
() failed with status -2147483648
12-07 14:09:49.527: ERROR/MediaRecorder(876): start failed:
-2147483648
12-07 14:09:49.789: ERROR/videocamera(876): Could not start media
recorder.
12-07 14:09:49.789: ERROR/videocamera(876):
java.lang.RuntimeException: start failed.
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.media.MediaRecorder.start(Native Method)
12-07 14:09:49.789: ERROR/videocamera(876):     at
com.android.camera.VideoCamera.startVideoRecording(VideoCamera.java:
1072)
12-07 14:09:49.789: ERROR/videocamera(876):     at
com.android.camera.VideoCamera.onShutterButtonClick(VideoCamera.java:
378)
12-07 14:09:49.789: ERROR/videocamera(876):     at
com.android.camera.ShutterButton.performClick(ShutterButton.java:116)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.View.onTouchEvent(View.java:4133)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.View.dispatchTouchEvent(View.java:3672)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712)
12-07 14:09:49.789: ERROR/videocamera(876):     at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1202)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.app.Activity.dispatchTouchEvent(Activity.java:1987)
12-07 14:09:49.789: ERROR/videocamera(876):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.os.Handler.dispatchMessage(Handler.java:99)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.os.Looper.loop(Looper.java:123)
12-07 14:09:49.789: ERROR/videocamera(876):     at
android.app.ActivityThread.main(ActivityThread.java:4203)
12-07 14:09:49.789: ERROR/videocamera(876):     at
java.lang.reflect.Method.invokeNative(Native Method)
12-07 14:09:49.789: ERROR/videocamera(876):     at
java.lang.reflect.Method.invoke(Method.java:521)
12-07 14:09:49.789: ERROR/videocamera(876):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:791)
12-07 14:09:49.789: ERROR/videocamera(876):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
12-07 14:09:49.789: ERROR/videocamera(876):     at
dalvik.system.NativeStart.main(Native Method)

-- 

2. HTC 2010 roadmap? Silakan dipilih yang cocok

Rekan rekan, ada beberapa calon keluarga android baru nih disini
http://is.gd/5fvZt, silahkan dipilih dan ditunggu tanggal rilisnya hehehehe

--~--~---------~--~----~------------~-------~--~----~
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. Missing Market Application

4. Android Emulator - MediaPlayer

5. Market access on unlocked phone

6. modify the recent tasks list

7. ADT installation on Ubuntu 9.10