hi saurab, first u need to check is there any value is going to be null when u r passing values handle the null values first and then enter it into database, if u r passing any value as null application will give force close most of the problem are for null values and handle them okay and also take the database parameters check either the pass holdings u r passing or correct or not(?,?) like this while inserting into database.
On Jul 30, 7:35 pm, Mark Murphy <[email protected]> wrote: > Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine > LogCat and look at the stack trace associated with your "force close". > > On Sat, Jul 30, 2011 at 10:32 AM, saurabh kulkarni > > <[email protected]> wrote: > > My app gives me force close when I add one record to database and > > then returns to privious activity which shows me added record.So why > > force close? > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android 3.1 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

