works in standard, FC in android
in
Android Processing
•
1 year ago
Accidently posted int he wrong thread a bit ago. Apologies.
I made an app that controls my TV via UDP using an arduino mounted behind my tv.
It have the windows version of the app working fine. It opens every time and does it's job. I would like to convert this to an android app. I made the normal changes for Android such as removing the size() call and this kind of stuff. I used the Gui Builder library to do the interface. Seems as though the error is coming with the code in the gui tab.
Gui Code:
- void createGUI(){
- G4P.setColorScheme(this, GCScheme.BLUE_SCHEME);
- G4P.messagesEnabled(false);
- TNT = new GImageButton(this, null, "TNT_logo_1999-150.jpg", 1, 77, 303);
- TNT.addEventHandler(this, "TNTClick");
- Disney = new GImageButton(this, null, "200px-DisneyChannel2010-150.jpg", 1, 285, 293);
- Disney.addEventHandler(this, "DisneyClick");
- ChDown = new GImageButton(this, null, "green down arrow-125.jpg", 1, 176, 692);
- ChDown.addEventHandler(this, "ChDownClick");
- VolDown = new GImageButton(this, null, "green left arrow-125.jpg", 1, 88, 561);
- VolDown.addEventHandler(this, "VolDownClick");
- VolUp = new GImageButton(this, null, "green right arrow-125.jpg", 1, 311, 562);
- VolUp.addEventHandler(this, "VolUpClick");
- ChUp = new GImageButton(this, null, "green up arrow-125.jpg", 1, 176, 467);
- ChUp.addEventHandler(this, "ChUpClick");
- Mute = new GImageButton(this, null, "green mute button-75.jpg", 1, 202, 581);
- Mute.addEventHandler(this, "MuteClick");
- PowerOff = new GImageButton(this, null, "power off-85.jpg", 1, 103, 30);
- PowerOff.addEventHandler(this, "PowerOffClick");
- PowerOn = new GImageButton(this, null, "power on-85.jpg", 1, 320, 30);
- PowerOn.addEventHandler(this, "PowerOnClick");
- USA = new GImageButton(this, null, "usa network-150.jpg", 1, 285, 195);
- USA.addEventHandler(this, "USAClick");
- TruTV = new GImageButton(this, null, "trutv-logo3-150.jpg", 1, 79, 199);
- TruTV.addEventHandler(this, "imgButton1_Click1");
- }
Could not find the image default_col_schema.png.
FATAL EXCEPTION: Animation Thread
java.lang.NullPointerException
at guicomponents.GCScheme.populateScheme(Unknown Source)
at guicomponents.GCScheme.<init>(Unknown Source)
at guicomponents.GCScheme.getColor(Unknown Source)
at guicomponents.G4P.setColorScheme(Unknown Source)
at processing.test.tv_control_android.TV_Control_Android.createGUI(TV_Control_Android.java:124)
at processing.test.tv_control_android.TV_Control_Android.setup(TV_Control_Android.java:28)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PGraphicsAndroid2D.requestDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:1019)
Any Help is appreciated. I have only been using processing for like 2 days. Still trying to get a handle on it.
1