Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 20    Views: 42

CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
05/25/14 07:01 PM (10 years ago)

Plugin Update: Art Droid

Ive updated the art droid plugin with the ability to draw on a background image. Just enter the name of the image without the extension, into the control panel.And remember to drag your image into the drawable folder of your app project in eclipse. You can make a coloring book app with this. Here are a list of sites with coloring book pages lol(be cautious of copyrighted material): https://www.google.com/search?q=coloring+book+pages&oq=coloring+book+pages&aqs=chrome..69i57j69i60j0l4.3403j0j4&sourceid=chrome&es_sm=119&ie=UTF-8
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/25/14 07:53 PM (10 years ago)
Now THAT is a cool idea... Nice feature, Chris!! :) Cheers! -- Smug
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/25/14 08:44 PM (10 years ago)
Ha yes thanks.Im actually making a coloring book app myself.
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/26/14 12:39 AM (10 years ago)
Thanks! Done with android share button now?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/26/14 11:14 AM (10 years ago)
lol sorry kennedyE what specifically do you want the share button to do?what do you want it to share? http://developer.android.com/training/sharing/shareaction.html http://developer.android.com/guide/topics/ui/actionbar.html im adding share feature to this plugin already.
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/26/14 03:00 PM (10 years ago)
I am not talking about adding share button to this plugin, I mean you promised to release an android in-app share plugin few days ago in a thread...
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/26/14 03:07 PM (10 years ago)
Not a plugin just the code.I said i didnt know how to make a plugin out of it.Plus it would depend on what you're sharing. You would have to put some code in anyway because I dont own other plugins.Ill look around for something that might can work globally in post.and you might have to remind me again lol.Ill see what I can come up with. You can probably just use certain sdks to share things, like scringo, and others we havent explored.plus it would be free!
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/26/14 03:18 PM (10 years ago)
I think its possible to develop an android share plugin to share any android app with friends and loved ones, and the plugin can be put at the top of any app screen.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/26/14 03:25 PM (10 years ago)
Yea you can easily do that with scringo and you get feedback,and you can add comment and like buttons. There might be a global way but I havent found one. But also in bt_fragment.java class it says each "screen" or "plugin" has to manually add it in their code.Because to put a button on the top bar, you have to use the action bar,which is what it is referring to. Here is a snippet of the commented code in bt_fragment.java: //onCreateOptionsMenu... @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { if(screenData != null){ BT_debugger.showIt(fragmentName + ":onCreateOptionsMenu JSON itemId: \"" + screenData.getItemId() + "\" itemType: \"" + screenData.getItemType() + "\" itemNickname: \"" + screenData.getItemNickname() + "\""); } /* Screens that extend BT_fragment should implement their own onCreateOptionsMenu() method to add action bar items specific to that screen. They should call super.onCreateOptionsMenu() AFTER adding customized items for that screen. */ Unless that certain class file doesnt need to extend BT_fragment for some reason.Main reason because the close and refresh action bar buttons are through out the whole app
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/27/14 02:40 AM (10 years ago)
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/27/14 05:23 AM (10 years ago)
Cool thanx.basically its the same thing I posted.better way is to do it so you dont have to create menu.xml is to do it programmatically.I did it that way in art droid.ill post code when I get a chance
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/27/14 05:40 AM (10 years ago)
- Please post the code with a simple step to integrate, I will really love to use it in my android apps. - Again can you add a little space to your Art Droid plugin where one can load banner ads? - Now how do I motivate and support you (with money?) to develop more polished and elegant android plugins for BT market?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/27/14 08:10 AM (10 years ago)
Theres space now because yOu menu items arent at thw bottom of the screen. When you mean polished do you mean art work? Motivation as just in ideas,improvements,suggestions
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/29/14 10:44 AM (10 years ago)
how or where do I edit the menu items in Art Droid plugin? I noticed that 'Close' and 'Quit App' items are repeated
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/29/14 11:02 AM (10 years ago)
Yes sorry Ive fixed that but forgot to upload it.I will soon as I get next to my computer. Im also almost finished writing little tutorials on how to edit menu options. And do things like take screenshot,share pictures from gallery,share text. But yeah back to your question I think its in doodle_fragment.java onMenuOptions method is where you would fix it.I cant remember exact name sorry but yea its something like OnMenuOptions(Menu menu){ //then in here is code to add menu items } Basically on the OnMenuOptions parameters change the second "menu" (which is lowercase) to something else for example: OnMenuOptions(Menu menuz) { //code that adds menu items } and change all other instances of "menu" in that method to the name you changed. took me a long time to type this on my phone lol
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/29/14 12:25 PM (10 years ago)
Ok, when you upload the fix, let me know, waiting...
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/29/14 01:10 PM (10 years ago)
Here soon I will.what I said above is incorrect I remember now
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/29/14 01:37 PM (10 years ago)
Thanks for your quick responses, your support is awesome, well, don't want to mess with the code, I wait for your fix.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/29/14 03:13 PM (10 years ago)
ha well I just added this @Override public void onPrepareOptionsMenu (Menu menu){ super.onPrepareOptionsMenu(menu); MenuItem books = menu.findItem(-3); books.setEnabled(false); books.setVisible(false); MenuItem bookz = menu.findItem(-4); bookz.setEnabled(false); bookz.setVisible(false); } setEnabled really isnt needed but I was playing with it to see what it did. Im making simple tutorial with all this menu actionbar stuff too. Ive uploaded the fix
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
05/30/14 03:21 AM (10 years ago)
Beautiful, thanks!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/30/14 05:07 AM (10 years ago)
Welcome.thanks for pointing it 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.