piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
10/11/14 09:28 AM (9 years ago)

Tutorial: Full screen scringo, working radar

Created a new Android app last night (Find it on the market here: https://play.google.com/store/apps/details?id=com.destinymatchmaking ) and the goal was to essentially use Scringo as the apps primary function. I wanted the home screen of the app to be a Full screen scringo, without needing to swipe. I followed this guide to integrate Scringo into my app, and it worked perfectly. If you don't plan on having swipe, you probably want to remove the line of code that adds the sidebar. http://www.buzztouch.com/forum/thread.php?tid=3D1785DE0847EBF6B271E14&fid=F006D74B653CA9FFE3CB28E&sortColumn=FT.id&sortUpDown=DESC&currentPage=2 Next, for my home screen, I use Susan's Menu Image Button screen and set icons per row to 1. This gives me a nice button thats placed in the center of the screen and resized. I had this button point to itself, so when clicked it basically loads the same screen that it's on (looped). I'll explain this further down. Next, I opened that screens .java file, in this case WB_menuImageButtons.java, and right after the onCreateView on line 123, I added this code: Scringo.openMenu(this.getActivity()); - (Thanks SmugWimp for helping me figure this out!) And that's it! So basically what happens, is the app starts up, and the first thing it does is load the full screen Scringo menu. If you press the back button on the phone however, this menu closes and the Menu Image Button screen is displayed. The button displayed is basically a "Start" button, that reloads the screen, thus reopening the Scringo menu :) I'm sure there's a better way to do this, but for a novice like me this suited my purpose just fine. The guide I linked to above is perfect for integrating the radar feature as well, but one thing it forgot to mention.. for it to work, make sure you enable GPS in the core settings of your app! Should probably also add a screen to turn this off as well.. (oops!) Back to work!
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
10/11/14 11:02 AM (9 years ago)
Sweet, thanks for sharing, think I saw you chatting about this last night too :) Also, congratulations on your new app! I've actually never seen Scringo work in Android, pretty neat. Cheers, David Van Beveren http://btmods.com/chat ^ Chat with other BT members live! http://btmods.com/hire ^ Hire MrDavid for one of his services!
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
10/11/14 09:20 PM (9 years ago)
Congratulations! Thanks for sharing how you did it.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
10/12/14 10:30 AM (9 years ago)
I saw the magic happening on the chat last night between him and Smug ... Then an idea spark erupted! Nice app -- love the innovative use of Scringo! The iOS version is next? :-) -- Niraj
 

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.