hello friend
i am new with android
i want to print current date on mobile screen
what i do.
i want to take today's date from sqlite query
any one help me how i get date in textview from query result..





03-08 01:31:03.096: WARN/dalvikvm(450): threadid=3: thread exiting with uncaught exception (group=0x40010e28)
03-08 01:31:03.104: ERROR/AndroidRuntime(450): Uncaught handler: thread main exiting due to uncaught exception
03-08 01:31:03.295: ERROR/AndroidRuntime(450): java.lang.NullPointerException
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:181)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at com.android.database.DB.openOrCreateDB(DB.java:77)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at com.android.SearchServices.<init>(SearchServices.java:22)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at com.android.DView$3.onClick(DView.java:80)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.view.View.performClick(View.java:2109)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.view.View.onTouchEvent(View.java:3523)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.widget.TextView.onTouchEvent(TextView.java:4410)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.view.View.dispatchTouchEvent(View.java:3178)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1561)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1085)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.app.Activity.dispatchTouchEvent(Activity.java:1873)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1545)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.os.Handler.dispatchMessage(Handler.java:88)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.os.Looper.loop(Looper.java:123)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at android.app.ActivityThread.main(ActivityThread.java:3742)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at java.lang.reflect.Method.invokeNative(Native Method)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at java.lang.reflect.Method.invoke(Method.java:515)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
03-08 01:31:03.295: ERROR/AndroidRuntime(450): at dalvik.system.NativeStart.main(Native Method)


cybersat wrote:hi,
Please attach full working source code, i am unable to view database details.
1. Kindly attach full source code.zip
2. How can we view databases and tables using command prompt.


pippo wrote:hi @ all,
first of all sorry for my english..and thanks for posting tutorials like this.
i tried it but when i run the application all i get is a black screen. could anyone help me please (should i post my code for that?)
thanks in advance,
greets,
pippo


Now I am trying to figure out how to create a high score table that would display the top 10 scores and store data in the SQLite database

Users browsing this forum: Google Feedfetcher and 5 guests