hi,
i have one database class.in which i have
public Database(Context ctx)
{
context = ctx;
DBHelper = new DatabaseHelper(context);
}
where DatabaseHelper is a static class.
Now my problem is that if i call it from activity class than there is
no problem.
but i have one normal java class.
like public class xyz
{
}
how to instantiate database class from this class.
if i do like db = new Database(this); it gives me error.
so how can i achieve this?
thankx
--
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