Discussion Forums  >  App Store Approvals, Thank You's

Replies: 46    Views: 170

ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
08/09/12 09:34 PM (13 years ago)

I published my first Android app!

Hey everyone, I published my first Android app called Fresh Prince Trivia. It's one of my favorite TV shows so I decided to make a trivia game. Thanks Buzztouch and community members for helping to make it possible. If you'd like to check it out, here's the link: https://play.google.com/store/apps/details?id=com.pandak.freshprincetrivia
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
08/09/12 10:27 PM (13 years ago)
I just saw an article today on how Fresh Prince is the #1 most requested Entertainment at Guantanamo Bay (something like that)! Crazy! http://gawker.com/5933225/harry-potter-books-out-fresh-prince-of-bel-air-in-as-gitmo-prisoners-entertainment-of-choice Love the show myself.. the things on TV now make me feel like I'm losing my intelligence - or what I have left of it.Your app One of the better looking android apps out there - congratulations! Love the graphics on this one, very clean, awesome home screen. Cheers mate, David buzztouchmods.com
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/09/12 10:40 PM (13 years ago)
Thanks so much David! I really appreciate it. :) One of my friends sent me a link to that article today and I thought, "Ah man! Too bad they can't have cellphones." haha I know what you mean about TV today. I wonder if people are just too lazy to write quality shows these days. That's why The Fresh Prince and Seinfeld record on my TiVo everyday. haha
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
08/09/12 10:59 PM (13 years ago)
Oh crud - my original post was cut off :p I mentioned Seinfeld, and some other shows that were good back in the day like The Pretender, Star Trek Voyager, Stargate SG1, Married with Children, Buffy the Vampire Slayer, and of course, I Love Lucy. Probably not the best idea for them to text ;p Cheers, and no problem! David buzztouchmods.com
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/09/12 11:25 PM (13 years ago)
Downloading this app right now. The screenshots look awesome. Can you tell me how you managed to put the buttons in the middle and how did you add the high score screen??
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/09/12 11:29 PM (13 years ago)
Wow!!! This app is really awesome. I liked the overall interface. Kindly share some knowledge with us on how you managed to customise the app to such an extent.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/09/12 11:38 PM (13 years ago)
Very nice looking app! Congratulations! I'd love to learn how you did the buttons on the home screen as well. Looks like an HTML screen? Mark
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/09/12 11:50 PM (13 years ago)
@Mark- I think @ElleEyeEssay has used regular Menu Button plugin but with certain changes in the layout file or maybe used the Blank Screen plugin with custom layout. In any case this is by far the most good compiled app i have seen using the Quiz plugin. I am interested to know how @ElleEyeEssay managed to get that home screen and how did he added the high score screen as well.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/09/12 11:59 PM (13 years ago)
Thanks so much you guys for checking out my app! @Sandeep and @GoNorthWest, I used the regular screen_menuButtons for the home screen. I removed the code to make the buttons/rows scroll and the scrollView containers in the layout file because I knew that I was only going to use three buttons that would fit on the screen and I believe that the buttons are in a table which I centered. I'll compare my code to the regular to give detailed changes. For the high scores screen, I used screen_blank but I also created my own Highscores class that writes and reads the top 10 scores to a shared preferences file.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/10/12 12:04 AM (13 years ago)
That would be really helpful if you do so. I would like to know specially about how to add high score for quiz section.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/10/12 12:35 AM (13 years ago)
For the high scores, I used Shared Preferences and you can find out how to use the Shared Preferences here: http://developer.android.com/guide/topics/data/data-storage.html My High Scores class has a constructor which creates or opens a shared preferences file and reads 20 entries from it (10 strings and 10 ints) into a string array and integer array. This class does not extend or implement any other class/listener, etc. I have a function defined in the class called addScore which I pass the string (name) and int (score) from the quiz activity to add to the shared preferences file. In the screen quiz file, I added a dialog box to get the username to pass to the addScore function. The addScore function adds the most recent score to the shared preferences file and replaces the lowest score. In screen_blank, in the layout file, I have a RelativeLayout container with a TableLayout defined inside of it somewhat like in screen_menuButtons. Inside of the TableLayout, a TableRow is defined for the header row that has the text for "High Scores." To add the table rows, I dynamically create table rows and add 3 dynamic TextViews to each row for the score number, the name, and the score. I'll get back to you guys tomorrow on the screen_menuButtons. It's getting late in my part of the world.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/10/12 12:38 AM (13 years ago)
No problem with that. I will go through the link you provided and tell you how it goes with me. Thanks for sharing your knowledge.
 
ihatecode
I hate code!
Profile
Posts: 19
Reg: Jan 16, 2012
unknown
2,240
like
08/10/12 03:58 PM (13 years ago)
How to create unique button designs such as home screen?
 
ihatecode
I hate code!
Profile
Posts: 19
Reg: Jan 16, 2012
unknown
2,240
like
08/10/12 04:07 PM (13 years ago)
Which version are you using to create this application? BT 1.4, 1.5, 2 or self hosting ? I like it
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/10/12 08:00 PM (13 years ago)
@foxilab I'm using 2.0. For everyone who wants to know about the code changes I made to the home screen, I decided to just paste the function instead of listing the differences so you can review the changes for yourself in case you've already made some changes to the file itself. //layout buttons public void layoutButtons(){ BT_debugger.showIt(activityName + ":layoutButtons"); //empty list of buttons... buttonBoxes.clear(); buttonSquares.clear(); /* CODE MAY NOT NEEDED FOR YOUR PROGRAM */ //Remove the callback to these buttons and then clear int size = buttonImages.size(); int index = 0; for(index = 0; index < size; index++){ d = buttonImages.get(index); packagename_appDelegate.unloadDrawable(d); } /* END CODE MAY NOT NEEDED FOR YOUR PROGRAM */ buttonImages.clear(); //flag for if we are using a tableLayout or not... boolean usingTable = false; //font-size should not be more than 20... if(buttonLabelFontSize > 20){ buttonLabelFontSize = 18; } //we may need to add some height if labels are "above" or "below" to button's color or image... int addHeight = 0; if(buttonLabelLayoutStyle.equalsIgnoreCase("above") || buttonLabelLayoutStyle.equalsIgnoreCase("below")){ addHeight += (buttonLabelFontSize * 1.3); } //determine how many rows / columns... int numButtons = childItems.size(); int cols = 0; int rows = 0; int cnt = 0; //layout params for each table row... LayoutParams trLp = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); //////////////////////////////////////////////////////////////////////////// //vertical buttons, right or left side of screen... if(buttonLayoutStyle.equalsIgnoreCase("verticalLeft") || buttonLayoutStyle.equalsIgnoreCase("verticalRight")){ //tableLayout gets top padding same as button padding... tableLayout.setPadding(0, 0, 0, 0); tableLayout.removeAllViews(); usingTable = false; //counts... rows = numButtons; cols = 1; //left or right... int boxGravity = Gravity.CENTER; //LSA used to be LEFT //outer loop rows.. for (int f = 0; f <= rows; f++) { //table row holds parts... TableRow tr = new TableRow(this); tr = new TableRow(this); tr.setLayoutParams(trLp); tr.setPadding(0, 0, 0, 0); tr.setGravity(boxGravity); //inner loop cols.. for(int c = 0; c < cols; c++){ //increment counter here if NOT a vertical layout... if(cnt < numButtons){ //BT_item... BT_item tmpItem = childItems.get(cnt); //relative layout holds button parts...this is the button "size" and the background color... RelativeLayout buttonBox = getButton(tmpItem, cnt, buttonSize, buttonHeight + addHeight, buttonPadding, addHeight); //add to list of "button boxes" to keep track of it... buttonBoxes.add(buttonBox); //add to layout... RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(buttonSize, buttonHeight); if(buttonLayoutStyle.equalsIgnoreCase("verticalRight")){ lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); } buttonBox.setLayoutParams(lp); //add buttonBox to the table row... tr.addView(buttonBox, buttonSize + (buttonPadding * 2), buttonHeight + buttonPadding + addHeight); //increment counter... cnt++; }//cnt > numButtons } //for cols... //add the row... tableLayout.addView(tr, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); //if addHeight was used we need a spacer between each row.. if(addHeight > 0){ TableRow spacerRow = new TableRow(this); spacerRow.setPadding(0, 0, 0, 0); RelativeLayout spacerBox = new RelativeLayout(this); spacerBox.setMinimumHeight(30); spacerRow.addView(spacerBox, 30, 30); tableLayout.addView(spacerRow, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); } } //for rows... } //end vertical buttons, right or left side of screen... //////////////////////////////////////////////////////////////////////////// //if we used a table layout... //add a few empty row at end so scrolling shows enough of bottom margin... if(usingTable){ for(int t = 0; t < 3; t++){ TableRow tr = new TableRow(this); tr.setPadding(0, 0, 0, 0); RelativeLayout buttonBox = new RelativeLayout(this); buttonBox.setMinimumWidth(buttonSize); buttonBox.setMinimumHeight(buttonHeight); tr.addView(buttonBox, buttonSize, buttonHeight); tableLayout.addView(tr, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); } //invalidate tableLayout... tableLayout.invalidate(); } //hide progress... hideProgress(); }
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/10/12 08:03 PM (13 years ago)
You all will see an unfamiliar variable buttonHeight in the code above and I added that variable and set it to the size of my small vs large buttons that I created. Those variables are set in the onCreate function where it checks to see if the device is a large or small device. buttonHeight is also passed into the getButton function and used for the height variables where buttonSize was previously used. For example, this line of code is originally: int tmpHeight = buttonSize + buttonPadding + addHeight; but is now: int tmpHeight = buttonHeight + buttonPadding + addHeight;
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/12/12 10:14 PM (13 years ago)
I am getting error "d cannot be resolved to a variable" for the following line of code on BT_screen_menuButton.java file d = buttonImages.get(index); independencedayquiz_appDelegate.unloadDrawable(d); How is this supposed to be fixed? By creating a local variable, field or paramater?
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/12/12 11:21 PM (13 years ago)
Yes. d is a static Drawable class variable and the unloadDrawable function is a function I created to unload drawables which basically just sets the callback of the drawable to null but actually you can erase all those lines if you want. I'll modify the code above. One more thing, the text on my buttons are a part of the graphics so I do not know if this works and still aligns text from the Control Panel. You may have to make some tweaks if your text does not line up.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/12/12 11:27 PM (13 years ago)
That would be great. But i managed to make changes in code however am not able to get the images in place of those buttons. Have a look at this following screenshot. https://dl.dropbox.com/u/61663890/20120813115350.png
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/12/12 11:31 PM (13 years ago)
In the configuration of the menuButtons screen in the Control Panel, did you specify image names and include those images in your drawables folder in your project?
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/12/12 11:34 PM (13 years ago)
Yes i have included the image files in my project and also have mentioned those images in bt control panel. The name of image and their casing is also the same. BTW i have prepared those images of 200x72 size.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/12/12 11:38 PM (13 years ago)
Can you put your screen_menuButtons.java file in dropbox and share the link with me so I can take a look at it? I'll compare it to mine.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/12/12 11:41 PM (13 years ago)
ok no problem. will post the link in just a minute.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/12/12 11:43 PM (13 years ago)
heres the link for BT_screen_menuButtons.java file https://dl.dropbox.com/u/61663890/BT_screen_menuButtons.java
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/12/12 11:45 PM (13 years ago)
I got the file. I'm taking a look at it now.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/12/12 11:46 PM (13 years ago)
Thanks. I will be waiting for your reply.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/13/12 12:08 AM (13 years ago)
I noticed two differences between our files: 1) the variable buttonHeight was missing from yours and 2) you're using Bitmaps and I'm using Drawables. I've uploaded the file with a few changes. 1) I've added in the buttonHeight variable and changed buttonSize to buttonHeight where necessary. 2) I'm not sure if there's a problem loading the Bitmaps since I'm not able to step through the code so I can't comment on that. https://dl.dropbox.com/u/25391006/BT_screen_menuButtons.java If this doesn't work, let me know.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/13/12 12:11 AM (13 years ago)
I will check it on my device and let you know about it. Thanks for the help.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/13/12 12:12 AM (13 years ago)
No problem.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/13/12 12:15 AM (13 years ago)
Also, make sure the buttonSize in the configuration file is the same size or bigger than the actual graphic size.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/13/12 12:17 AM (13 years ago)
ok thanks for reminding that.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/13/12 12:23 AM (13 years ago)
The button heights have changed but still no luck in fetching the images. Here is the screenshot with new look. https://dl.dropbox.com/u/61663890/20120813125010.png
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/13/12 12:25 AM (13 years ago)
One other thing, did you see in the file where I made comments? Search for "ElleEyeEssay" and I specify where you need to set your button heights.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/13/12 12:28 AM (13 years ago)
No i did not see that comments earlier. I will set the button height there as you suggested.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/13/12 12:29 AM (13 years ago)
I'm going to replace my file with your file and see if I can find anything by using the debugger.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/13/12 12:32 AM (13 years ago)
No luck here. Earlier you said i am using Bitmaps and you are using Drawables can you make any changes there?
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/13/12 12:43 AM (13 years ago)
To use Drawables instead of Bitmaps, change your code back to the original screen_menuButtons source code in the places where drawables are used.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/13/12 12:49 AM (13 years ago)
ok i will see what happens after making this change.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/13/12 01:10 AM (13 years ago)
Nevermind. Mine doesn't contain anything because my images are in the drawables folder and not BT_images. I'll move mine there and see what happens.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/13/12 01:14 AM (13 years ago)
Ok, do tell me if it works with you.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/13/12 01:24 AM (13 years ago)
It's not working for me but here's what I found out through the debugger. This line causes an exception: bg = BT_fileManager.getBitmapFromCache(imageName); BT_fileManager:getBitmapFromCache An exception occurred trying to get an image from the cache: "<button name>" If I don't find the issue in the next few minutes, I'm probably asleep since it's late on my side of the world but I'll continue to take a look at it later today.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
08/13/12 01:26 AM (13 years ago)
No problem with that, we can sort out this problem later after you wake up.
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/19/12 02:33 PM (13 years ago)
@Sandeep Did you find out why your Bitmaps were not showing up?
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
08/19/12 02:56 PM (13 years ago)
For anyone else that's interested, I've changed my app to use button labels on the screen_menuButtons and it does center the text correctly on the button.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/04/13 01:48 PM (12 years ago)
Hi @ElleEyeEssay, This was a very cool post i stumbled on. Really great knowledge and help you provided! Just wanted you to know Buzztouch could use some more Android plugins in the BT Plugins Market. Great way to make some extra income. cheers! ian
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/07/13 07:40 AM (12 years ago)
I too discovered this today due to the Shared Preference link. Nice work, ElleEyeEssay! What other apps have you done with BuzzTouch? -- Niraj
 
ElleEyeEssay
Code is Art
Profile
Posts: 36
Reg: Jul 08, 2012
Santa Barbara, ...
4,510
like
07/06/14 02:54 PM (11 years ago)
I haven't done any others yet. I'm going to update the Fresh Prince Trivia app first. I am thinking about creating another one soon. I have a few ideas floating around in my head.
 

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.