Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 161

hamer
Code is Art
Profile
Posts: 16
Reg: Aug 29, 2013
Arlington
2,210
10/01/13 10:02 PM (12 years ago)

Android 3 - Problems with Location Map, Tabs, Menu Buttons, Simple Menu List

My apologies for this long list. I was not sure if I should break it into 5 different Forum topics or post all questions at once. For future reference, please let me know if this post should have been broken up. Thanks in advance for any and all assistance. I'm new to this world and am trying to learn all that I can. I have searched for some answers but I'm definitely at a roadblock. I created two identical apps. One I am using for IOS and one for Android. All of the plugins work properly on the IOS version of the app. Testing on the IOS emulator and a real iPhone with ios6. The Android app has problems with Location Map plugin, Tab, Menu Buttons, Simple Menu list and the Custom Html/Text plugin. I am testing the app on the Eclipse Emulator and 2 real devices (Galaxy Note 2 and Motorola Bionic) 1) Map Location - how do I get the map and the map point to show up on the screen? I have one Map Location screen with 7 locations that link to driving directions and nothing shows up. This screen doesn't show any of the mapped locations. There is just a blank grey screen with the plus and minus zoom symbols. I searched for the screen_map.xml file listed in the plugin directions but no joy. <a href="https://www.buzztouch.com/plugins/plugin.php?pid=9E669EFC6F081CA47A33877" target="_blank" rel="nofollow">https://www.buzztouch.com/plugins/plugin.php?pid=9E669EFC6F081CA47A33877</a> I have a google map api key and changed the information in the AndroidManifest.xml Google Maps v2 API Key <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="this is where I added the api key that I got from google"/> 2)Custom Html/Text - How do I make the address work? I have an html document with an address listed. I set the "Detect Phone/Address Links" to yes in Document behavior. When I tap on the address on Galaxy, Bionic and Emulator, I get a white "Loading" box that never goes away. The white "loading" box hijacks the app in the emulator, I have to close emulator and start over. 3)Tabs - How to get the tabs positioned correctly? Tabs are at the top of the screen now. Is there a way to move them to the bottom of the screen? Is there also a way to show 4 tabs on the screen instead of having 3 showing and one hidden. (you have to slide the tab bar to see the 4th tab) Also when I tap a tab, I have to tap it twice to get it to go to the correct screen. Is there a way to make one tap, switch to the next screen. 4)Menu Buttons - How can I modify font size, margin, corner radius and button size? Size, Margin, Corner Radius and Font size never change no matter what numbers I enter in the control panel. Currently my buttons are too small and the writing is hanging out of the box. I even tried changing here to see if that would make a difference. Please let me know if this is the wrong place to make changes. I only changed the "//small devices" numeric values. BT_screen_menuButtons.java //large devices... buttonCornerRadius = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "buttonCornerRadiusLargeDevice", "0")); buttonLabelFontSize = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "buttonLabelFontSizeLargeDevice", "13")); buttonPadding = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "buttonPaddingLargeDevice", "15")); buttonSize = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "buttonSizeLargeDevice", "100")); }else{ //small devices... buttonCornerRadius = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "buttonCornerRadiusSmallDevice", "10")); buttonLabelFontSize = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "buttonLabelFontSizeSmallDevice", "15")); buttonPadding = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "buttonPaddingSmallDevice", "3")); buttonSize = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "buttonSizeSmallDevice", "75")); } 5)Simple Menu List - How can I change the font size and row height so more information is visible on the Menu list? Row height, title font size will not change no matter what numbers I enter into the control panel properties. I tried changing the numbers in the BT_screen_menuListSimple file //large devices... listRowHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listRowHeightLargeDevice", "70")); listTitleHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleHeightLargeDevice", "60")); listTitleFontSize = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleFontSizeLargeDevice", "25")); }else{ //small devices... listRowHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listRowHeightSmallDevice", "40")); listTitleHeight = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleHeightSmallDevice", "40")); listTitleFontSize = Integer.parseInt(BT_strings.getStyleValueForScreen(this.screenData, "listTitleFontSizeSmallDevice", "13")); }
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/01/13 11:53 PM (12 years ago)
Hi @hamer, Welcome to Buzztouch! Here's a recent thread that discusses some maps stuff: http://www.buzztouch.com/forum/thread.php?tid=DBD7017A097DBB3DE91802B&currentPage=1 Keep in mind that maps do NOT work on the emulator...the best you'll get is the map controls. But, they absolutely work on real devices. You'll need to get a Google Maps for Android API v2 key. The app has to be signed with the same keystore that you used to generate the API key, or it will not work. There is no longer an XML file (except AndroidManifst.xml) to edit. I'll let others weigh in on the other questions. Again, welcome to Buzztouch! Mark
 
peterj
Apple Fan
Profile
Posts: 113
Reg: Jun 19, 2011
location unknow...
6,630
like
10/02/13 07:05 AM (12 years ago)
welcome hamer, regarding your item 3 tab positioning: the "action bar" is intended to be placed at the top now according to (I think) google design guidelines. Check out this post from David: https://www.buzztouch.com/forum/thread.php?tid=D0B258BE16A259FA104E557&fid=29FCCE999D443E6BA90435B&sortColumn=FT.id&sortUpDown=DESC&currentPage=2
 
hamer
Code is Art
Profile
Posts: 16
Reg: Aug 29, 2013
Arlington
2,210
like
10/02/13 07:09 AM (12 years ago)
Thanks GoNorthWest and peterj! Buzztouch has been a great experience so far. I will have a look at the information you both posted and report back.
 
hamer
Code is Art
Profile
Posts: 16
Reg: Aug 29, 2013
Arlington
2,210
like
10/05/13 11:03 PM (12 years ago)
GoNorthWest - Thanks for the help, I was able to get the maps working. I was using the apk file that was generated from the emulator on my real device. This is why the maps piece was not working properly on my Bionic or Note 2. After exporting the project (release) and using that apk on my devices, the maps worked. peterj - Thanks for the link. The tabs do have to be up top now. I'm okay with it, especially since I got my tabs to fit on one screen. I removed the tab icons and my 4 tabs now fit on one screen. Thanks to you both for your help. I'm getting closer to getting things ironed out.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/05/13 11:30 PM (12 years ago)
Rock on! Great to hear that you're making progress! Mark
 
hamer
Code is Art
Profile
Posts: 16
Reg: Aug 29, 2013
Arlington
2,210
like
10/05/13 11:36 PM (12 years ago)
GoNorthWest - Thanks for the help, I was able to get the maps working. I was using the apk file that was generated from the emulator on my real device. This is why the maps piece was not working properly on my Bionic or Note 2. After exporting the project (release) and using that apk on my devices, the maps worked. peterj - Thanks for the link. The tabs do have to be up top now. I'm okay with it, especially since I got my tabs to fit on one screen. I removed the tab icons and my 4 tabs now fit on one screen. Thanks to you both for your help. I'm getting closer to getting things ironed out.
 

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.