java - Android extends Activity -
I'm developing an Android app. And my class relationships are like this: I have some problems about it. I am the biggest: 2) I can not use methods like FindViewById on the FacebookClass, because I do not access base class objects (Super Super Class), so I can not use activity methods. Fundamental Notifications: Can anyone help me, please? Thanks a lot! You have a as 1 Since
1) Working with Context is a SQLiteDatabase object in SocialNetWorkClass but I do not know how to work about it. Because I can not pass the context with the constructor from FacebookClass.
reference after all your classes They all extend activity , which increases the context All your classes have access to methods in context Side note: Consider using Android's ContentProvider to manage your SQLiteDatabase FacebookClass expands activity you can call directly findViewById () to FacebookClass .
Comments
Post a Comment