chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
10/18/12 10:25 AM (13 years ago)

my first android app - cannot run

Okay, after finishing my first iOS app in Buzztouch, I decided to load it in Eclipse and see how it runs on Android. But, I can't get Eclipse to run the file. I loaded the project using File-->New-->Project-->Android Project from Existing Code. (There was no option for "Android Project" - just "Android Application Project" or "Android Project from Existing Code"). After compiling the app, it gave me lots of warnings and 5 errors. I took a screenshot, hoping someone can help. Thanks! http://dl.dropbox.com/u/6847437/Screen%20Shot%202012-10-18%20at%2012.21.08%20PM.png
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/18/12 10:27 AM (13 years ago)
Hi Chris, It would be helpful to see what's in the Consol tab in Eclipse. It might say to fix the project properties, in which case right-click your package, select Android Tools > Fix Project Properties. That might take care of the errors. You'll generally have a few hundred warnings that can be safely ignored. Also make sure you have the Google API 8 selected (right-click the package, select Properties > Android, and select the right API). Mark
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/18/12 10:31 AM (13 years ago)
Mark, Here are screenshots of my console (which is blank) and my API property screen. I don't see "Google API 8", but I have the Google API that is available checked. http://dl.dropbox.com/u/6847437/Screen%20Shot%202012-10-18%20at%2012.29.07%20PM.png http://dl.dropbox.com/u/6847437/Screen%20Shot%202012-10-18%20at%2012.29.28%20PM.png
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/18/12 11:05 AM (13 years ago)
Hi Chris, In the Console tab, there's a small monitor that if you click, toggles the view from DDMS to Android and back. We're interested in what it says there. Here's a doc that shows how to get the Google API 8 : https://www.buzztouch.com/files/howtos/buzztouch_For_Android-A_Users_Guide.pdf Mark
 
Intrege
Veteran developer
Profile
Posts: 196
Reg: Sep 12, 2011
Philadelphia, P...
3,160
like
10/18/12 11:07 AM (13 years ago)
There is another thread with this same issue. My guess is they are working on the code.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/18/12 11:10 AM (13 years ago)
Nope, this is just a configuration issue!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/18/12 11:11 AM (13 years ago)
Okay - so I downloaded the correct API and tried again. It still didn't work. Then I decided to change "daviddebug_appDelegate..." to "<projectname>_appDelegate..." for each of the 5 lines that were causing the error. It seemed to work. This time I got farther. The application supposedly built fine, but it wouldn't install onto my virtual device. Here's what the console shows now: http://dl.dropbox.com/u/6847437/Screen%20Shot%202012-10-18%20at%201.10.24%20PM.png
 
Intrege
Veteran developer
Profile
Posts: 196
Reg: Sep 12, 2011
Philadelphia, P...
3,160
like
10/18/12 11:13 AM (13 years ago)
Configuration error in Eclipse? I just used my IDE earlier this morning ans all was fine.
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
10/18/12 11:17 AM (13 years ago)
Yousicc, I think what mark is talking about is the fact that Chris1 does not have the correct API's installed. He also has the problem you are experiencing. Two issues going on here.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/18/12 11:18 AM (13 years ago)
Hi Chris, Take a look at the doc I posted above. It shows how to do this step-by-step. Unless you have made some custom code changes, you shouldn't have to make the changes you indicated. If you follow the guide, it'll work! Mark
 
Intrege
Veteran developer
Profile
Posts: 196
Reg: Sep 12, 2011
Philadelphia, P...
3,160
like
10/18/12 11:20 AM (13 years ago)
Gothca
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
10/18/12 11:54 AM (13 years ago)
"daviddebug" That's the name of the test app David uses. i recognize it from the vids and other places. He must have left that in the code when uploading. the BT API turns the instances of "BT" to the name of your appdelegate when necessary when you download source code. If you forget to change this and upload the plugin to the server with an app name instead of "BT", when you download the source code, the the API won't change the text to your app delegate. I do it all the time in my plug-in experements...... do a find replace of "daviddebug" with the name of "your app" and it might clear that up.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/18/12 11:54 AM (13 years ago)
As far as I can tell, I did everything according to the guide. I just deleted the project from Eclipse, redownloaded it from Buzztouch, and used the "import" method as described in the guide. I still get the same error regarding "daviddebug_appDelegate". After changing "davddebug" to reflect my project name, it loaded fine and runs ok. I'm missing some graphics and my local docs. I assume I can just upload the docs into the BT_docs folder, just like in XCode? But what about the images? I don't see a folder for those.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
10/18/12 11:56 AM (13 years ago)
ATrain53: So, is this something I did wrong in creating my app? Or is it a problem with one of the plugins I installed?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/18/12 11:59 AM (13 years ago)
Good catch, ATRAIN! Sounds like a problem with one of the plugins that David created and uploaded. Images go into res > drawable for Android. Mark
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
10/18/12 12:08 PM (13 years ago)
that looks like it's in the BT_activity_rot.java file only. Only 5 instances in your screen shot. probably not a new plug-in, but you never know. I guess we DO know the BT fairies were tinkering with that file. Maybe more. You would have to add them all, compile and find out.... This again is another reason I'm in favor of some versioning used in files, esp the BT core ones. Simple text in the header with a "date last modified". My hunch is if we used that, that file would say Last modified "10/18/12 at like 4 am... by David.." now you wonder what did he fix/add to that class....
 

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.