Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
10/15/13 02:36 PM (12 years ago)

Many errors in appDelegate.java

I just imported my project into Eclipse and have many errors in my letsgo_appDelegate.java file. I don't have any programming knowledge so I really don't know what I'm looking at to know where all the errors are coming from. Below is a small clip of some of the lines that are generating errors. Any help or guidance would be greatly appreciated. public static String configurationFileName = "BT_config.txt"; //init the allowed input characters string. ONLY these characters will be allowed in input fields. public static String allowedInputCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-.@!$"; //file names for apps cached configuration file public static String cachedConfigDataFileName = "cachedAppConfig.txt"; public static String cachedConfigModifiedFileName = "appModified.txt"; //references to the application object for use in other classes public static String delegateName = "letsgo_appDelegate"; public static Context theContext; public static Application theApplication; //media player for screen background sounds public MediaPlayer audioPlayer; //array of sound effect names and matching sound effect MediaPlayers public static ArrayList<String> soundEffectNames = new ArrayList<String>(); public static ArrayList<MediaPlayer> soundEffectPlayers = new ArrayList<MediaPlayer>(); //root objects public static BT_application rootApp; //flag for locationManager in BT_activity_base public static boolean foundUpdatedLocation; //when the application is created... public void onCreate(){ super.onCreate(); //debug BT_debugger.showIt("letsgo_appDelegate: onCreate");
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/15/13 08:30 PM (12 years ago)
Hello, The first question I have is whether you followed the instructions for loading your project into Eclipse using the PDF file (instructions-v3-android.pdf) that's included in your project download? And, if that file isn't there (which means it's an Android v2 project), have you tried following this video: http://www.youtube.com/watch?v=NV3Ofi2602I&feature=share&list=UUbL5gei-5kK8hHf5q3andnw Let me know if this helps. If not, we'll try something else! Mark
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/15/13 08:32 PM (12 years ago)
Which version of BT Android are you using? BT v2 or BT v3? If using version 2, check to ensure you've got the 'Google' API v2.2, and not 'Android' API v2.2 If using version 3, check to make sure you've either 1) Added the Google Play Services and correctly referenced them, and removed the google-play-services-remove.jar file OR 2) Make sure you haven't removed the google-play-services-remove.jar file if you have NOT added the Google Play Services. Cheers! -- Smug
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
10/16/13 05:05 PM (12 years ago)
Thanks Smug and Mark for your help so far! You have NO idea how much I appreciate it! I re-compiled my project using BT v3. That corrected one error. I also did not have the Google play services loaded and correctly referenced--which I also corrected. Lastly, I removed the google-play-services-remove.jar file. I am no longer getting errors in my in my letsgo_appDelegate.java file, but I am now getting an error in my BT_plugin_success.java file. The error is occurring on the line: case R.id.successImage: //onClickView.. public void onClick(View view) { BT_debugger.showIt(fragmentName + ":onClick"); //id of tapped item... int itemId = view.getId(); //figure out what method... switch (itemId){ case R.id.successImage: this.wobbleImage(); return; } }
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
10/16/13 05:21 PM (12 years ago)
Smug and Mark. I forgot to add that when I try to run my project as an android project on the simulator I get a launch error that reads "Android library projects cannot be launched."
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/16/13 06:13 PM (12 years ago)
Give this very raw video a watch. I haven't edited it yet for YouTube. https://www.dropbox.com/s/gmq1i2ovtk2kepz/Android%20v3_HD.mp4 Mark
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
10/17/13 08:30 AM (12 years ago)
Thanks Mark the tutorial was VERY helpful....no more errors in my project! I seem to have one more issue, and this time it is with the simulator. The simulator will launch but it will not load my project. Here is the error that I am getting in logcat: [2013-10-17 11:17:05 - letsgo] Android Launch! [2013-10-17 11:17:05 - letsgo] adb is running normally. [2013-10-17 11:17:05 - letsgo] Performing com.letsgo.BT_activity_start activity launch [2013-10-17 11:17:06 - letsgo] Automatic Target Mode: launching new emulator with compatible AVD 'buzztouch_v3' [2013-10-17 11:17:06 - letsgo] Launching a new emulator with Virtual Device 'buzztouch_v3' [2013-10-17 11:17:20 - letsgo] New emulator found: emulator-5554 [2013-10-17 11:17:20 - letsgo] Waiting for HOME ('android.process.acore') to be launched... [2013-10-17 11:19:28 - letsgo] HOME is up on device 'emulator-5554' [2013-10-17 11:19:28 - letsgo] Uploading letsgo.apk onto device 'emulator-5554' [2013-10-17 11:19:34 - letsgo] Installing letsgo.apk... [2013-10-17 11:21:50 - letsgo] Failed to install letsgo.apk on device 'emulator-5554! [2013-10-17 11:21:50 - letsgo] (null) [2013-10-17 11:21:51 - letsgo] Launch canceled! not sure what is going on with the apk. Thanks again for everything!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/17/13 09:16 AM (12 years ago)
Well, unfortunately, LogCat isn't really telling us why it's not working. The Android emulator is notoriously bad, so I'd just recommend killing it and trying again. And, of course, if you have a real device, I'd run it on that instead. Mark
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
10/17/13 03:43 PM (12 years ago)
Not sure how you "kill it" not at all system savvy...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/17/13 04:00 PM (12 years ago)
Sorry...by kill I meant exit the emulator and try running it again in the same way you did the first time.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.