Hi everyone I’m hoping one of you can help please. I’ve been racking my brain trying to figure out how to extend my library to android. I already have a library
which contains the following java files.
Initially I just added the android libraries to my project and build path, and this seemed to clear up some of the code, however as I now understand traditionally the sketch extends PApplet whereas with android the sketch extends and therefore my current code wasn’t compatible.
Having then used google to do a preliminary search I’m trying to follow the following example
https://blog.onthewings.net/2013/04/25/setting-up-a-processing-android-project-in-eclipse/
to get this running, however I run into problems.
having created the package and imported all required libraries and jars, the main activity window produces this error
//The declared package "com.androidgui" does not match the expected package "androidGui"
package com.androidgui;
import android.R;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//main cannot be resolved or is not a field
}
}
I’m thinking I’m probably overthinking this, but as its my first time creating an android library and I’ve only been using eclipse for a week I feel I might be missing something simple.
Many thanks
Paul