vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
06/21/12 12:06 PM (13 years ago)

My first test app

I'm trying to run my first app, and I'm facing some problems... I followed the tutorials and successfully installed Eclipse as well as the Android SDK. I also added a virtual device. I downloaded the zip from BT and unzipped it. Then I followed the steps of the instructions.pdf doc. But there are some screens that are not the same... I created a new "android project" and selected the directory where my files are. Then I launch my virtual device, I wait for it to opens and until I can see the android screen. And then I click on the menu "Run", and I'm asked what to run, so I choose "Android project". I don't know if it's correct. Then in the console, I have this message: [2012-06-21 19:57:34 - test2] Uploading test2.apk onto device 'emulator-5554' [2012-06-21 19:57:38 - test2] Installing test2.apk... [2012-06-21 19:57:41 - test2] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2012-06-21 19:57:41 - test2] Please check logcat output for more details. [2012-06-21 19:57:42 - test2] Launch canceled! Any idea of what can be the problem ? This app is nothing special, but I just wanted to have a look, and see how things work. I hope somebody will be able to help me... Thanks
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/21/12 12:22 PM (13 years ago)
Hello, You said you installed the Android SDK, but did you also install the correct Google APIs that are necessary to correctly compile your program? Also...did anything come up in LogCat, as the error indicates it would? If you can paste that info here, it would be helpful. I searched stackoverflow.com for your problem, and there are multiple solutions, but it depends on what's being seen in LogCat (and whether you have the right Google APIs installed). Also...here is a step-by-step guide I wrote, with illustrations, to help make sure you have all the required components installed: http://www.buzztouch.com/resources/buzztouch_For_Android-A_Users_Guide.pdf Let us know what you find! Mark
 
rob151
Aspiring developer
Profile
Posts: 40
Reg: Feb 14, 2012
london
2,250
like
06/21/12 01:02 PM (13 years ago)
I had this problem and it still continues to happen every time I run the simulater on my computer. But when I install it on to my android tablet it works. So if you have got a android device try exporting the project to an apk then puting it on to your device and running it. Hope this helps
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/21/12 01:06 PM (13 years ago)
It should still work on the Emulator. There's just something preventing that from happening. Hundreds of us have run buzztouch apps in the Emulator without any issues at all! Mark
 
rob151
Aspiring developer
Profile
Posts: 40
Reg: Feb 14, 2012
london
2,250
like
06/21/12 01:07 PM (13 years ago)
Yea it must be somthing wrong with my eclipse install but it dosent really take much longer to export it to my device than wait for the emulater to load
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/21/12 01:08 PM (13 years ago)
For now I'm trying to follow Mark's user guide. I'd rather be able to test on my pc first. It seems I didn't have the correct version of Eclipse. I had downloaded eclipse-jee-indigo-SR2-win32. Now I'm downloading eclipse-SDK-3.7.2-win32. I hope it will work better. About the API, it's written: for buzztouch v1.4, you select the Google APIs under Android 1.6 (API 4), and for buzztouch v1.5 and v2.0, you select the Google APIs under Android 2.2 (API 8). But now it's BT v2.0, so what API must I choose ? I had chosen Google 2.2, i don't know if it's correct. Also: I tried to run Fred's hello world, and it didn't work either, so I guess I really do have problem with my Eclipse install (or configuration, or sdk config, I don't know). I'll re-try and hope it will go better... Thanks for your help.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/21/12 01:09 PM (13 years ago)
I hear ya. It's much better to test on an actual device anyway, since the Emulator is just that...it emulates real hardware. I'm forced to use the Emulator because I don't have a device yet...but one is on the way! But I'd still like to figure out why it won't work for you.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/21/12 01:12 PM (13 years ago)
Do you have a SD card on the Emulator ? Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/21/12 01:16 PM (13 years ago)
The Google APIs are the same for v1.5 and v2.0. Eclipse itself doesn't matter so much, as it's just the Development Environment. It's the Google/Android stuff that matters more. I suspect you didn't have the correct Google APIs installed? In any event, if you install Eclipse Classic, it should hopefully help a bit. Mark
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/21/12 01:26 PM (13 years ago)
Hey All, I recommend downloading bluestacks, It plays APKs and is wayyyy faster than an emulator. And it does more than an emulator can since its from google
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/21/12 04:32 PM (13 years ago)
I think it's better now. I followed this: http://myskylla.wordpress.com/2012/04/03/got-milk-is-eclipse-setup-correctly-got-sdk-adt-platform-tools/ And I was able to run the project without error. But I can't see anything happening in the simulator... I don't know if it's normal. In eclipse, when i put my mouse over the run button, I can see the tooltip: "run hello (already running)" I tried to export but I'm asked for the keystore, and I was unable to set up the Release Key... I don't understand how it work. I read this page: http://developer.android.com/tools/publishing/app-signing.html but I still didn't understand, and don't know what to do. In my C:\Users\Admin\.android directory, I have debug.keystore (the file was there, i didn't create it), but no release.keystore. Could you help me with that?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/21/12 04:35 PM (13 years ago)
Hello, Check out my step-by-step, start to finish, illustrated guide for Android: http://www.buzztouch.com/resources/buzztouch_For_Android-A_Users_Guide.pdf It will show you exactly how to do the keystore stuff. Also...keep an eye on LogCat...it shows you exactly what's going on with your app. There's a section in the guide that shows you how to set it up. Mark
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/21/12 04:38 PM (13 years ago)
http://myskylla.wordpress.com/2012/04/03/got-milk-is-eclipse-setup-correctly-got-sdk-adt-platform-tools/ That's an old doc, recommend you use The Buzztouch Process www.MySkylla.com And I was able to run the project without error. But I can't see anything happening in the simulator... I don't know if it's normal. In eclipse, when i put my mouse over the run button, I can see the tooltip: "run hello (already running)" The app is already running. You might go to the virtual device stop it and restart it. I tried to export but I'm asked for the keystore, and I was unable to set up the Release Key... The Buzztouch Process will walk you through this step. I don't understand how it work. I read this page: http://developer.android.com/tools/publishing/app-signing.html but I still didn't understand, and don't know what to do. Not my guide, try mine. In my C:\Users\Admin\.android directory, I have debug.keystore (the file was there, i didn't create it), but no release.keystore. The debug key is created automatically. Could you help me with that? See above. Fred
 
DeveloperLost
Code is Art
Profile
Posts: 12
Reg: Jun 20, 2012
Gurgaon
1,070
like
06/21/12 10:34 PM (13 years ago)
Can anyone tell me how to create a simple HELLO WORLD PLUGIN in buzztouch for android,Please give me full details.I dont know where to store code after downloading,Site documentation is very short.Please please.just full process for creating simple message plugin. [email protected]
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/21/12 11:09 PM (13 years ago)
http://dl.dropbox.com/u/42553454/MySkylla's%20Guide/Articles/Buzztouch_Process.html Fred
 
DeveloperLost
Code is Art
Profile
Posts: 12
Reg: Jun 20, 2012
Gurgaon
1,070
like
06/21/12 11:10 PM (13 years ago)
thanks fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/21/12 11:13 PM (13 years ago)
Hi @sushe3l, Welcome to buzztouch! Since this discussion is about Android, I'll assume that's what you're interested in. Here is a link to a step-by-step, illustrated guide on how to get your Android environment up and running, your emulator going, and your app compiled! http://www.buzztouch.com/resources/buzztouch_For_Android-A_Users_Guide.pdf Let us know if you have any questions! Mark
 
DeveloperLost
Code is Art
Profile
Posts: 12
Reg: Jun 20, 2012
Gurgaon
1,070
like
06/22/12 12:11 AM (13 years ago)
much thank gonorthwest
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/25/12 06:59 AM (13 years ago)
It seems that my test app's finally working ! Thank you for your help. I still have one small problem though... I deleted some screens, to make the app simpler, and after downloading my new code, the former screens are still displayed in the app... I watched a video where the user changed something in BT and it was reflected in his app... I don't understand why my changes are not reflected into my app. I got an message saying the app had changed, and asking me if I wanted to refresh: I clicked on "Yes", but I still have the old app on screen in my simulator... Any idea of why it's happening ?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/25/12 07:09 AM (13 years ago)
Your Config file need to be updated. Fred
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/25/12 07:16 AM (13 years ago)
But it strange that it wasn't updated when I recompile it on BT... I clicked on "Prepare package for download", so I thought the app code would be entirely regenerated.
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/25/12 09:48 AM (13 years ago)
You're right, my config file's not up to date... I tried editing it, but I must have done some errors as the app doesn't work anymore :) Is there a way to ask BT to rebuild the config file ?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/25/12 09:51 AM (13 years ago)
When you request a new package from BT, the entire package is regenerated, and up to date. That includes the BT_Config.txt file (unless this is BT v1.4), which is what you are asking about. If you download that package, and unzip it over your existing files, everything will be returned to brand new (including any files you may have previously deleted, and it will overwrite any files you may have modified). Mark
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/25/12 10:01 AM (13 years ago)
Forgot this is a BTv1.4 app. Normally you don't modify the BTv1.4 Source Code except to add advertising.So not sure what's amidst. Re-Downloading is usually not recommended or necessary, but shouldn't do any harm, and should work. Fred
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/25/12 10:01 AM (13 years ago)
Well Mark, that's what I thought, but: I requested a new package, unziped, created a new project on my computer, and it was showing the old app... So I went online and saw that my config file was not up-to-date in BT !! Strange, isn't it ? I deleted some screens, but when I go there: http://www.buzztouch.com/app/cp_v20/bt_app/bt_configData.php?appGuid=JA52B5A30DEC39DB9ED24985F I can see that there are still my old screens. Do you see what I mean ? Is it normal ?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/25/12 10:03 AM (13 years ago)
This is v2.0? Is this self-hosted? Can you provide the dataURL from your config file? Mark
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/25/12 10:10 AM (13 years ago)
Yes, it's v2.0. Self-hosted... hmm... well the files are on your server, not mine. I just work on BT, on bt.com, and then I download my package. The dataURL: http://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA52B5A30DEC39DB9ED24985F&apiKey=44583C34DC25EC2DA1778B2&apiSecret=77B6FE8693B047190AC8ED8
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/25/12 10:11 AM (13 years ago)
So I went online and saw that my config file was not up-to-date in BT !! The Config file in the Control Panel is up to date every time you got the save button in the Control Panel. The BT_config.txt file should be up to date when you download the source code. Have you altered the reportToCloud URL? Shouldn't matter for your issue either way, but perhaps a interesting side note. Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/25/12 10:19 AM (13 years ago)
Hi, While I "wish" they were my servers, I don't actually work for buzztouch! Just a user like you! You have both the dataURL and reportToCloudURL configured, so that's a good thing. Do this: * Pull up a copy of the config file using the URL you show above. * Go into your control panel, change the text in your Home Screen from "Home" to "This Is a Test" * Save * Pull up the URL above again, and see if "navBarTitleText":"Home" has changed to "navBarTitleText":"This Is a Test" If it hasn't changed, then seems like a bug. If it has, then it's updating, and something else is wrong. Mark
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/25/12 10:19 AM (13 years ago)
I deleted some screens, but there's no save button there. I just retried and changed the app name - actually I didn't change it but just clicked on "save" in the change name window. I thought the config file would be rebuilt, with my older screens deleted. But there's still there. I added one new screen, just to see. The new screen is in the config file, but my older screens also. Very strange, isn't it ? Mark, I'm going to try what you're saying.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/25/12 10:19 AM (13 years ago)
Ah hah, the issue is probably not about the Config file or the source code. It probably due to the nature of the screen listing in the Control Panel. Perhaps you did delete some screens, but you probably didn't delete all the buttons or menu rows. Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/25/12 10:21 AM (13 years ago)
Screens that are not linked to a menu will still be in the Config file. Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/25/12 10:24 AM (13 years ago)
Did you delete the actual screen, or just the menu item that links to a screen? Those are two separate entries in the configuration file. You could have deleted the screen itself, but left it in the menu list, and it would still show up. You could delete the menu item, but leave the screen, and the screen would still be there. You need to delete both! Mark
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/25/12 10:49 AM (13 years ago)
Yes Fred, that's right ! Thank you. I had deleted the screens, but not in my main menu. I think I understand now, and it's working. Thanks again, and also thank you Mark.
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
06/25/12 10:50 AM (13 years ago)
Yes Mark, sorry I answered before I saw your message. That's exactly as you said. Thanks again !
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/25/12 10:54 AM (13 years ago)
It's all good! Glad you got it worked out!
 
KayJay3
Lost but trying
Profile
Posts: 26
Reg: Jun 29, 2012
San Diego
2,510
like
07/03/12 04:52 PM (13 years ago)
I'm at the same place as you were at the beginning of this thread; and installed the one from Video, I have "Eclipse IDE for Java EE Developers". Does this dound correct? Thanks
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/03/12 05:08 PM (13 years ago)
Hi @KayJay, Check this document out. It tells you exactly what software to download, and where to download it from. Also shows you how to install it, and which options to choose! http://www.buzztouch.com/resources/buzztouch_For_Android-A_Users_Guide.pdf Mark
 

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.