Find Your Forum
  
Welcome, Guest. Please login or register.
Did you miss your activation email?

News: Do you like Samsung Instinct?      
Instinct Forum, Samsung Instinct message board, Samsung Instinct By Sprint, Samsung Instinct phone, new Samsung Instinct, Samsung Instinct phone, Sprint Instinct, Samsung Instinct phone
Best Screen Protector for Samsung Instinct                 Free Sprint Phones and Cheap Plans
                Samsung Instinct Scratch Protection
Pages: [1]
Reply Print
Author Topic: Instinct Visual Designer  (Read 1294 times)
playermanny2
[I][N]
**

Cookies: 0
Hometown: New Orleans
Posts: 17


Email
« on: August 22, 2009, 03:35:37 PM »

I generated this code straight from the instinct visual designer emulator, and I'm getting errors for some reason... here are the errors

Code:
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:22: cannot find symbol
symbol : class FrameManager
location: class InstinctApp
fm = new FrameManager(display);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:50: cannot find symbol
symbol : class PushButton
location: class InstinctApp.ScreenNoName
playButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("PLAY", font, 0x000000),10,109);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:50: cannot find symbol
symbol : variable PushButton
location: class InstinctApp.ScreenNoName
playButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("PLAY", font, 0x000000),10,109);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:50: cannot find symbol
symbol : class TextItem
location: class InstinctApp.ScreenNoName
playButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("PLAY", font, 0x000000),10,109);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:54: cannot find symbol
symbol : class PushButton
location: class InstinctApp.ScreenNoName
aboutButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("ABOUT", font, 0x000000),11,185);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:54: cannot find symbol
symbol : variable PushButton
location: class InstinctApp.ScreenNoName
aboutButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("ABOUT", font, 0x000000),11,185);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:54: cannot find symbol
symbol : class TextItem
location: class InstinctApp.ScreenNoName
aboutButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("ABOUT", font, 0x000000),11,185);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:58: cannot find symbol
symbol : class PushButton
location: class InstinctApp.ScreenNoName
exitButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("EXIT", font, 0x000000),12,261);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:58: cannot find symbol
symbol : variable PushButton
location: class InstinctApp.ScreenNoName
exitButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("EXIT", font, 0x000000),12,261);
^
C:\SPRINT~1\apps\HamberCatcher App\src\hamburgergobbler\StartCanvas.java:58: cannot find symbol
symbol : class TextItem
location: class InstinctApp.ScreenNoName
exitButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("EXIT", font, 0x000000),12,261);

Help really appareciated, this is my last step then i can test the app.

Code:
//*****************************************************************
//*****************************************************************
//**************** Generated Code Below ***************************
//*****************************************************************
//*****************************************************************

import com.sprintpcs.lcdui.widget.*;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.Font;

public class InstinctApp extends MIDlet
{
    Display display;
    FrameManager fm;
    boolean firstRun = true;

    public InstinctApp()
    {
        display = Display.getDisplay(this);
        fm = new FrameManager(display);
    }

    protected void startApp()
    {
        if (firstRun)
        {
            fm.setCurrent(new ScreenNoName());
            firstRun = false;
        }
    }

    protected void destroyApp(boolean arg0) throws MIDletStateChangeException
    {
    }

    protected void pauseApp()
    {
    }
    class ScreenNoName extends BasicFrame implements WidgetEventListener
    {
        protected Font font = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
        PushButton playButton;
        PushButton aboutButton;
        PushButton exitButton;

        public ScreenNoName()
        {
            playButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("PLAY", font, 0x000000),10,109);
            playButton.addWidgetEventListener(this);
            addItemWidget(playButton);

            aboutButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("ABOUT", font, 0x000000),11,185);
            aboutButton.addWidgetEventListener(this);
            addItemWidget(aboutButton);

            exitButton= new PushButton(PushButton.BIG_BLACK_BUTTON_TYPE,new TextItem("EXIT", font, 0x000000),12,261);
            exitButton.addWidgetEventListener(this);
            addItemWidget(exitButton);

        }

        public void widgetEvent(int type, Widget widget, java.lang.Object data)
        {
            if(widget == playButton)
            {
                // Insert your code here related to this action
            }
            else if(widget == aboutButton)
            {
                // Insert your code here related to this action
            }
            else if(widget == exitButton)
            {
                // Insert your code here related to this action
            }
        }

        // Since BasicFrame extends GameCanvas we can capture key presses
        protected void keyPressed(int keyCode)
        {
            if (keyCode == -8) //dedicated backkey
            {
                //do a back command
            }
        }
    }
}
Logged
KillerBeagle
Instinct Fanatic
******

Cookies: 234
Hometown: Wilmington
Posts: 1282



« Reply #1 on: August 22, 2009, 04:05:32 PM »

It looks like you don't have the SIWL in your classpath.
The Sprint tutorial on building an Instinct app with the WTK shows you how to do that.
Logged
playermanny2
[I][N]
**

Cookies: 0
Hometown: New Orleans
Posts: 17


Email
« Reply #2 on: August 22, 2009, 04:41:03 PM »

Thanks alot Smiley. I'm following the guide as we speak
Logged
Pages: [1]
Reply Print
Jump to:  

Got a new phone? Find the forum here






Galaxy S3 | Galaxy Note | Galaxy Nexus | Kindle Fire | Atrix 4G | Motorola Xoom | Windows Phone 7
Nokia Lumia | Top Hosts | Samsung Galaxy Tab | Samsung Galaxy S2 | Samsung Galaxy S | Samsung Wave
HTC Evo 3D | HTC Evo 4G | HTC Incredible | HTC Incredible 2 | HTC Incredible S | HTC Thunderbolt
Motorola Droid Razr
| HTC Desire | HTC Desire HD | HTC Desire Z | HTC Desire S | HTC Wildfire
Motorola Droid | Galaxy Indulge | Nokia N8 | Droid Charge | Droid X | Droid X2 | Droid 2| Droid 3 | Fascinate
HTC Sensation | HTC Flyer | LG Revolution | Asus Transformer | Xperia Play | iPhone 4 | Nexus S | Droid Bionic
HTC One | HTC Wildfire S | HTC Droid Eris


This is an Un-Official fan based Website. The views expressed on this website are solely those of the proprietor, or contributors to the site, and do not necessarily reflect the views or opinions of the parties it covers, and is not affiliated with, endorsed or sponsored by parties involved.
If you have a problem with any of the content posted on this website, please contact "sales@verticalscope.com"
Term of Use | Privacy Policy | BlackRain 2006 by, Crip





















CopyRight 2008 www.instinct-samsung.com
Powered by SMF 1.1.11 | SMF © 2006-2007, Simple Machines LLC