Discussion Forums  >  Self Hosted Control Panels

Replies: 56    Views: 191

Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
01/18/13 12:30 PM (13 years ago)

Community Rescue Please

I have updated everything with eclipse and android sdk and previously built an app which worked perfect but now I can not get past errors when attempting a new compile. Many many do not resolve errors that should not even be popping up. I updated to 2.1.7 a few months back and I ran into this problem. I submitted forum questions but the answer was not clear. It is almost assured that it will be a one click of a mouse fix and I am just to much in my brain to see it. Thanks everyone for discussing this issue. Joe
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/18/13 12:36 PM (13 years ago)
Not sure if this is the answer or not, but when you imported your file in, you didn't click the "copy project into workspace". Try that.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/18/13 12:40 PM (13 years ago)
What errors?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/18/13 12:41 PM (13 years ago)
@Outbreak - watch the video he posted
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 12:45 PM (13 years ago)
just tried the workspace checkbox no go on that
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 12:47 PM (13 years ago)
i just checked console settings and android is selected
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 12:48 PM (13 years ago)
outbreak, all plugins will not resolve. everything is no resolving
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 12:49 PM (13 years ago)
outbreak, all plugins will not resolve. everything is no resolving
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/18/13 12:55 PM (13 years ago)
Two things: Look at this link for the menu problem https://www.buzztouchmods.com/downloads.php?download_id=13#c1 couldn't see what the error actually said. Is your url link to a file that has spaces(non camel case)? bad naming conventions can create havoc.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/18/13 12:55 PM (13 years ago)
noticed you also didn't rename the package after importing it in. Right click on the package, go to "refactor" then "rename". Enter something like "com.APPNAME.BT_activity_root"
 
RobK
Lost but trying
Profile
Posts: 73
Reg: May 19, 2012
Milton Keynes
6,530
like
01/18/13 01:02 PM (13 years ago)
had something a while ago that caused a load of errors - not sure if it is the same - but it turned out to be a .png file that had capitalized letter. Resolved that and all errors disappeared.
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:07 PM (13 years ago)
all good on the camel case outbreak. I just downloaded and installed on my windows and the same problem exist. I will now try refactor package name suggestion
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:07 PM (13 years ago)
it is not a png issue RobK but thanks for chiming in
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 01:10 PM (13 years ago)
Hey @web, Ok, a few things going on here. First like @chris1 said rename your package by refractor to the same name you named it before. Second your xml files have a certain way they must layout..example: screen_yourapp.xml with no capitals and no special characters. Third, in your java files that error you showed in the video must match the relevant xml file. Example your java could be: Send.java and that would match under layout the xml file screen_send.xml. I hope you can follow this; LA
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:12 PM (13 years ago)
refresh is reposting sorry
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:20 PM (13 years ago)
the app name is com.swapflights. Is this the name which I should refractor and change to com.swapflights.BT_activity_root is that the correct procedure? one i get this I will move on to LA xml file issue
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 01:21 PM (13 years ago)
Hey @web, When you refresh your page on here, you will double post. LA
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/18/13 01:24 PM (13 years ago)
You can refresh if you hit the back button first. Your url should look like: https://www.buzztouch.com/forum/thread.php?fid=BA6441EC8AC63432E2B956E&tid=BA6441EC8AC63432E2B956E If it doesn't have that long string of characters at the end, don't refresh or you'll double post.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 01:27 PM (13 years ago)
Hi @web, Yes name it com.swapflights, so when it's done in your java files it will look like this at the top of the file: package com.swapflights; LA
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:31 PM (13 years ago)
LA, this being a new app downloaded for compiling should these file already be correctly named. I have not changed anything. I am unclear as to the refractor issue since it is a new app. I will shoot a quick video to show my process
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:31 PM (13 years ago)
ok
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 01:32 PM (13 years ago)
Click refractor and rename then put in swapflights. LA
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:41 PM (13 years ago)
I have now successfully changed package name to display com.swapflights; errors still active but am working towards xml issue
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 01:43 PM (13 years ago)
Great @web! A little tip: if you hover over the red line error in the file, it gives suggestions how to fix it and most of the time it's correct. LA
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:49 PM (13 years ago)
the following is the console error [2013-01-18 14:41:03 - BT_activity_root] res/layout/menu_list_rowsimpleadvancedBackup.xml: Invalid file name: must contain only [a-z0-9_.] [2013-01-18 14:41:03 - BT_activity_root] res/layout/screen_menulistsimpleadvancedBackup.xml: Invalid file name: must contain only [a-z0-9_.] I am in the layout folder but I am not sure what to rename. I will say that 400 plus errors went away after the refractor process
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 01:50 PM (13 years ago)
@web, Take out the capital B and put in the lower b. LA
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:55 PM (13 years ago)
i see the hover technique but i have over 100 errors and there must be a root cause for all errors as opposed using the quick fix for each error. is there a specific area you would allow me to video for your viewing?
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 01:57 PM (13 years ago)
working on b
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 01:58 PM (13 years ago)
@web, I would go through all your xml files first and make sure no capitals letter in the name at all. Like that capital B. LA
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/18/13 01:59 PM (13 years ago)
Yeah - Android is screwy with filenames. Sounds like you have a problem with the custom plugin Menu List Advanced from buzztouchmods.com?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/18/13 02:01 PM (13 years ago)
@LA is right, capital B - the error message shows lower case a-z. That might be a pain to fix - you're using the simpleadvancedmenu from buzztouchmods right? Try Susans 'menu with image' plugin instead. Or before forking out cash, try a regular menu plugin first, bet it'll be fine.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 02:01 PM (13 years ago)
@chris1, If he did then I have no experience working with that. LA
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/18/13 02:02 PM (13 years ago)
If you have a macintosh, you can use the 'automator' to do a lot of that upper/lower case management. If you have windows, here is a link to a batch file you can create. But it hasn't been tested... http://www.windowsitpro.com/article/tips/jsi-tip-0568-how-do-i-convert-a-file-name-to-lowercase--71893 Good Luck! Cheers! -- Smug
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/18/13 02:04 PM (13 years ago)
Did you look at that like link I posted? It tells you which ones to delete. I had the same problems with self hosted. I believe you end up deleting those in the SRC and layout folders.
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 02:11 PM (13 years ago)
actually I am using munusimple by david. the buzztouch mods just happened to download with the package. I am deleting this plugin a n redownloading
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 02:15 PM (13 years ago)
@web, On your left, where it was high lighted under layout folder, is your screen names and change the screen names. That is where your capital B is at. LA
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/18/13 02:16 PM (13 years ago)
Even when I removed plugin I still had to delete them.. Do this(ICTGUY wrote it) 1. Download the source and unzip 2. Delete these files src/com/appname/BT_screen_menuListSimpleAdvanced.java src/com/appname/BT_screen_menuListSimpleAdvancedBackup.java res/layout/menu_list_rowsimpleadvancedBackup.xml res/layout/screen_menulistsimpleadvanced.xml res/layout/screen_menulistsimpleadvancedBakup.xml 3. open eclipse and import source as per the instructions.pdf 4. open the BT_fileManager.java file 5 Do a search and replace on the above file. Replace sparrakortenandroid_appDelegate with yourappname_appDelegate
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/18/13 02:17 PM (13 years ago)
You probably wont have to do step 5
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 02:18 PM (13 years ago)
When you name a screen, you have to use lowercase. You have menu_list_rowsimpleadvancedBackup.xml so it should be menu_list_rowsimpleadvancedbackup.xml. LA
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/18/13 02:18 PM (13 years ago)
That's why I stick with plugins from buzztouch.com - a lot higher system of review.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 02:20 PM (13 years ago)
Totally agree @chris1! LA
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 02:24 PM (13 years ago)
please tell me what folder to access to delete these foreign plugins. I do not see it in the control panel. I may not be using these plugins but they are the problem and they must get deleted
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/18/13 02:25 PM (13 years ago)
Look in your files/plugins folder on your server.
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 02:25 PM (13 years ago)
first i will try outbreak file delete method
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/18/13 02:28 PM (13 years ago)
When you download the folder and unzip...then open the src and layout folders and delete the files which are listed above. Then move it into eclipse.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 02:28 PM (13 years ago)
@web, Under src expand that then expand com folders, there you have all you java files, delete all the ones your not using. Under res then layout is all your xml files and these are your screens. Delete all of the ones your not using. So delete java files under src folders and xml files under res. LA
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
01/18/13 02:43 PM (13 years ago)
I want to thank everyone for there help. I mean that problem has plagued me for 6 months and I am so thankful. It was the non buzz touch plugin causing all the problems. Thank you all. I would say I made the correct decision to come back and register as a member. Hats off to everyone Joe
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 02:44 PM (13 years ago)
@web, Can you start a fresh App on here @buzztouch then move it to your server? Might be easier in the long run. LA
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/18/13 02:46 PM (13 years ago)
Happy to help - glad u got it working! (btw, 6 months ago I wouldn't have had a clue how to help you!)
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/13 02:47 PM (13 years ago)
Just here to help @web. LA
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/18/13 02:49 PM (13 years ago)
I'm glad you're back on the street... Sorry I couldn't help any; but as usual the BT Member brigade was represented in force! Cheers! -- Smug
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/18/13 02:52 PM (13 years ago)
No prob. Glad you figured it out.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
01/19/13 03:24 AM (13 years ago)
Hey @Outbreak, Thanks for the hat tip! I wish I had of seen this thread earlier ... I can do the BTM Menu advanced shuffle for Android in my sleep now :) It's such a good plugin for iOS I keep it on my self hosted server even if it means a bit of Android pain. Would love to know how to avoid doing the search and replace thing - I might have a dig around and see what I can work out. cheers Darrel
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
01/19/13 08:52 AM (13 years ago)
No problem @ictguy. Try to give the credit when I can. When I was using self hosted I got used to doing the same thing. I thought I heard that on the next update of the self hosted it would be fixed. Might be something to ask admin if it can be fixed.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/19/13 08:59 AM (13 years ago)
I think it's a problem with the plugin, not with self-hosted. I would contact the developer and ask about an update to their plugin. Or just delete it if you're not using it anyway.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/19/13 09:19 AM (13 years ago)
You can't load plugins on BT site, so SH is the only place this BTM menu with header ever worked. It's solid for iOS. BTM has always said it was not working for Android. I lost a few hours on it too because some folks claim they made it work. I had it working "once" in a project. I just deleted Android "source" folder from the plug-in from my self hosted. No more problems on new code I download. (ftp into your server and nuke the files by hand) I'd be surprised if that plug-in is updated. It uses the BT 1.5 includes which has been updated a lot since. I tried to take it apart a few times and failed. The new Menu With Image plug-in is the perfect replacement for it. It's my go to menu screen - but it also has some issues with newer devices and images. ALL of the plug-ins require some tinkering to make them work the way you want for your app. That's what a lot of posts on BT are - "how do i mod this plugin to do this...?"
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
01/19/13 06:31 PM (13 years ago)
@ATRAIN, Thanks - that may solve my Android issue! I still use the BTM Simple Menu Advanced because it allows you to specify different header image heights on a screen by screen basis. I also like the fact that you don't have to use a huge ipad image size when you are only doing a phone app. Don't get me wrong, I still use 'Menu with Image' on Android and sometimes on iOS :) cheers
 

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.