Discussion Forums  >  Uncategorized

Replies: 15    Views: 281

steveh6883
buzztouch Evangelist
Profile
Posts: 383
Reg: May 15, 2011
Gosport, UK
3,830
11/25/11 06:06 AM (14 years ago)

BT Server - Compiled Android App displays blank screen

Hi All Have searched and searched, thought I found some resolutions to the problem, but none fixed the issue; BT Server 2.1.2 All latest plugins installed API registered & validated Clean Android App with 5x tabs to 5x simple menu screens, nothing else added (apart from icon) App package downloads & compiles fine with no errors, when installed onto 'live' device for testing (not using emulator - too slow & buggy), installs fine, icon displays correctly but when App selected displays just a black screen (occasionally briefly shows the 'refreshing' scrolling wheel) & nothing happens, no menu available, tapping doesn't do anything Some thoughts on problems & results: Initially I thought it was because I had a splash screen setup, so changed the Global theme back to default with no splash screen selected, re-downloaded source code, re-compiled & installed but still the same issue Next thought it may be the version of Eclipse running on my Linux machine, tried the same on a different version of Eclipse on a Windows 7 machine, same results Next thought it may just be black text on the default Android black background, changed the background to white in Global Themes, re-downloaded, re-compiled, same issues Think it may me to do with the configuration data. Checked APIs - registered & valid Checked configuration URL & Report to Cloud URL against app details - URL reflects the same App data: Application Id: EAF405A6B5B16CE867CF0856E Control Panel Id: A2D71D53B270347B576D5B9 Control Panel Password: 71AD1ACEE71F41AD563FDD1 Report to Cloud URL: XXXXXXX.com/api/app/?command=reportToCloud&appGuid=EAF405A6B5B16CE867CF0856E&apiKey=A2D71D53B270347B576D5B9&apiSecret=71AD1ACEE71F41AD563FDD1&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]& Configuration Data URL: XXXXXXXX.com/api/app/?command=getAppData&appGuid=EAF405A6B5B16CE867CF0856E&apiKey=A2D71D53B270347B576D5B9&apiSecret=71AD1ACEE71F41AD563FDD1 But still think it is to do with this Configuration Data URL & Report to Cloud URL because when checking that for JSON validation the page of data doesn't load & when selecting Show the app's config data just get returned to a page displaying; arrowShow my account control panel arrowLogout instead of the expected config data Have also re-installed the BT server scripts and deleted/rebuilt the app with the same results BIT STUMPED NOW !!
 
JP Wilson
Lost but trying
Profile
Posts: 11
Reg: Nov 22, 2011
location unknow...
1,110
like
11/25/11 05:57 PM (14 years ago)
I am having the same issue and this being my first attempt at using buzztouch, I have no idea how to resolve the issue. I also removed & re-installed BT server with no resolve. Hopefully a resolution will be provided in the very near future. Great product anxious to learn more... JP
 
steveh6883
buzztouch Evangelist
Profile
Posts: 383
Reg: May 15, 2011
Gosport, UK
3,830
like
11/26/11 06:49 AM (14 years ago)
Was also thinking it may be a Server permissions issue, but have checked those & all appear to be fine NOT SURE WHAT THE PROBLEM MAY BE & ISSUE STILL UNRESOLVED :(
 
steveh6883
buzztouch Evangelist
Profile
Posts: 383
Reg: May 15, 2011
Gosport, UK
3,830
like
11/28/11 03:23 AM (14 years ago)
After re-checking all my server settings and finding they are all fine and correct I decided to create a very simple Test App with zero screens and just an icon to check LogCat output as I added additional screens TestApp downloaded & compiled fine but when running in emulator and viewing the LogCat it appears the server script is either not creating, or not correctly creating the JSON formatted centralised configuration file, which would make sense as the App appears to not 'pull' any screens that should be detailed in the main configuration file and also the 'Configuration Data' section of the App control panel does not load any files. Have checked the BT_config.txt file in the assets folder and all is correct there Re-reinstalled BT Server 2.1.2 but still getting the same issues, obviously other people have this version working and running so suspect maybe a data access issue on the server?
 
Fonseca
Android Fan
Profile
Posts: 42
Reg: Oct 24, 2011
Germiston
620
like
11/28/11 09:34 AM (14 years ago)
mmmm How many people out there have the BT 2.1.2 server working.. (on android) I did a quick test and in eclipse all seems fine however when I try and run the simulator nothing.. it starts to load stops at 27% and that's it..
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/28/11 10:49 AM (14 years ago)
A few things here: Firsty 'BT 2.1.2 working on Android' is not the right way to look at it. I think I know what you mean though...when I donwload the code for an Android app, it doesn't work. OK. So, the reason it doesn't would on Android could be numerous. Start by making sure the download is working as expected.... a) Click the Configuration Data link for the app in your control panel. This will show the current config data. Copy / paste this to text file if want for reference b) Download the projects source. The BT_config.txt file should match the JSON you saw / copied in a) exactly. If this is not the case, something for sure is funky. Another way to do it. Copy the dataURL value from the config data and paste it in your browser, it should produce the exact same data. Compiler / Simulator: The compiler and the simulator have zero understanding of your backend control panel. If the code won't compile, the reasons needs to be found. After it compiles, if it won't run in a simulator, that needs to be found. It's all about getting the project compiled and running using the JSON data included. Tough to understand, for sure. Bottom line, we have a few different boxes running the self-hosted package and have zero trouble download, compiling, or running on iOS and Android so something's funky for sure. Do a) and b), make sure that's working.
 
steveh6883
buzztouch Evangelist
Profile
Posts: 383
Reg: May 15, 2011
Gosport, UK
3,830
like
11/28/11 11:03 AM (14 years ago)
Hi David, will make a final post here & continue the discussion on the other post to avoid confusion 1. The packaged code downlpads and compiles fine in Eclipse 2. The BT_congig.txt file data appears to be correct 3. The JSON formatted config file doesn't seem to be generated or is incorrect according to LogCat output 4. The above appears to be true as no JSON data is loaded when selecting 'Config Data' in Control Panel Hope that clarifies. Will post this to other discussion then end this thread to maintain clarity
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/28/11 11:58 AM (14 years ago)
Something's still not adding up. I'm not sure how the BT_config.txt file included in the download appears to be OK but the show Config Data screen is blank. I think both of these pull the same data from the same URL. Lets start by figuring out why the show Config Data screen isn't working. This has to work or we'll be screwed trying to figure out what's wrong. The idea is that we need to be able to see this to make sure the same thing is included in the download. I'll watch the other post too. All that from an iPhone ;-) Gone a few hours.
 
Intrege
Veteran developer
Profile
Posts: 196
Reg: Sep 12, 2011
Philadelphia, P...
3,160
like
12/10/11 02:56 PM (14 years ago)
Hey Guys. Has this been addressed already? I am also having this issue on the 2.1.4 version.
 
steveh6883
buzztouch Evangelist
Profile
Posts: 383
Reg: May 15, 2011
Gosport, UK
3,830
like
12/11/11 04:34 AM (14 years ago)
Hi After sorting the JSON issue, I found that using the tabbed layout for Android App is what generates a blank screen Switching to non-tabbed layout, re-downloading source code and recompiling fixed the issue, but still getting a blank screen with tabbed layout :(
 
Intrege
Veteran developer
Profile
Posts: 196
Reg: Sep 12, 2011
Philadelphia, P...
3,160
like
12/11/11 06:54 AM (14 years ago)
thanks for the update Steve
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
01/22/12 06:41 PM (14 years ago)
Hi Everyone, Has anyone gotten to the bottom of this issue? I'm also getting the 'black/blank screens' on tabbed layouts using iOS. I'm running BT server 2.1.6 I have compared the control panel app data with the downloaded sources code (config.txt) using quickdiff.com and they are identical. Any other thoughts or ways to investigate would be appreciated.
 
javooooo
buzztouch Evangelist
Profile
Posts: 719
Reg: Jun 17, 2011
Sydney, Austral...
18,490
like
02/25/12 04:24 PM (13 years ago)
Same issue here. Anyone know how to fix it? I too thought it was file perms, but doesn't seem to fix it.
 
javooooo
buzztouch Evangelist
Profile
Posts: 719
Reg: Jun 17, 2011
Sydney, Austral...
18,490
like
02/25/12 04:28 PM (13 years ago)
Issue appears on the latest server version with or without tabs on iOS (haven't tested android). Blank page appears with blank nav bar. Any ideas?
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
02/25/12 06:48 PM (13 years ago)
This was solved for me by making sure I setup my iOS project correctly. I wasn't adding the additional folders to the xcode project (the way to do it is in the instructions.pdf that comes with your downloaded source code). I just assumed the BT server process was the same - it's not. Once I added the folders everything worked for me. A case of RTFM for me! Hope this helps :)
 
javooooo
buzztouch Evangelist
Profile
Posts: 719
Reg: Jun 17, 2011
Sydney, Austral...
18,490
like
02/25/12 07:23 PM (13 years ago)
OOOH LOL. Looks like I had the same error. Only just tested it alittle, but I'm now seeing a title and a refresh button. Thanks for your help, I'm such an idiot.
 

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.