I have a problem setting a function getResources()in a standard class. To use this function, all imports must be used. Is there any special class that I need to extend my class?
Thanks for the immediate help.
package com.example.helloandroid;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.res.Resources;
import android.content.Intent;
import android.os.Bundle;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
public class DbAdapter {
public DbAdapter() {
Resources res = getResources();
}
}
source
share