Looks like the tutorial you are using is from the 1.1 SDK.... In 1.5 that method was removed and replaced with openOrCreateDatabase().
http://www.mail-archive.com/[email protected]/msg11654.html Unfortunately, I have not done anything with databases in Android yet and so I would not know how to modify the code to fix it. Thanks, Justin ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Mon, Oct 12, 2009 at 12:58 PM, f...@r@0n <[email protected]> wrote: > > > > I installed the older version of Android SDK and ADT but still have > > that error "The method openDatabase(String,null) is underfinded for > > the type Context". > > Please help me :) > > Hi, > > I can say that currently I try to learn Android by one book and I > faced quite many mismatches between book examples and SDK as well. > This mainly happens because of differences between older and newer SDK > versions. > But if you are using Eclipse (I believe you are :)) you can simply > navigate to that place in code (db = ctx.openDatabase("AddressBook", > null); ) and check, which methods Eclipse can propose for ctx object. > Most probably the difference isn't so huge (either change in name or > change in parameters). Good luck! > > Regards > f...@r@0n > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

