I'm still new to Java, and I'm stuck.
When I use this line appView.setBackgroundColor(Color.TRANSPARENT);
in my mainactivity.java
file, an error shows up as "Color cannot be resolved to a variable".
I understand that "Color" has to be defined in a file somewhere in my Android
project but I don't know where, or what other commands/elements/etc. need to go along with it.
I tried creating a style
(assuming that was what I was supposed to do), but it didn't work, because of my limited Android/Java knowledge. My Google searches were fruitless, so that is why I am here.
Below is what my mainactivity.java file contains.
package com.ABC_Co.Twirly;
/* import android.app.Activity; */
import android.os.Bundle;
import org.apache.cordova.*;
public class util_952 extends DroidGap
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
appView.setBackgroundColor(Color.TRANSPARENT);
}
}