Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 34    Views: 145

LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
04/03/15 05:56 AM (9 years ago)

Android New Plugin Punch Card

A Loyality Rewards Punch Card For Businesses. Choose the passwords and how many punches. Upload a logo also! Can be used for discounts or earn a free gift or goods. I uploaded a new plugin for Android only. Enjoy! https://www.buzztouch.com/plugins/plugin.php?pid=67A42E19963976ACB5AD459 LA
 
KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
like
04/03/15 07:02 AM (9 years ago)
Great idea! Can you change the password in the BT control panel as needed?
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
04/03/15 07:15 AM (9 years ago)
Yes to whatever you want! LA
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
04/03/15 07:24 AM (9 years ago)
Sounds cool. Please edit plugin description in marketplace to remove the iOS icon if only android.
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
04/03/15 07:33 AM (9 years ago)
lol yeah I've tried but some reason its not showing just Android. LA
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/03/15 07:39 AM (9 years ago)
in the config.txt file, under 'supported devices', enter the value 'Android' only. Cheers! -- Smug
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
04/03/15 07:46 AM (9 years ago)
Yeah after several attempts..now its fixed..lol LA
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
04/03/15 01:18 PM (9 years ago)
So cool! Any chance there's a live app using this now -on Google play?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/03/15 02:20 PM (9 years ago)
I was there when punch cards were used for programming the 1st time around. It wasn't quite like this though...
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/03/15 04:15 PM (9 years ago)
Here's a test app I made using his plugin: https://www.dropbox.com/s/0987y5tcy9jkizn/app-debug.apk?dl=0 Passwords are password0, password1, password3, etc
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
04/03/15 06:19 PM (9 years ago)
Keep on keeping on LA.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
04/03/15 10:21 PM (9 years ago)
Congratulations, LA!
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
04/04/15 05:06 AM (9 years ago)
@aqulia98: No I haven't published any Apps in awhile because of my mother going thru Alzheimer's Disease and dying in September. I will in time though! MacApple and Susan: Thank you! @CMCOFFEE assisted me on this plugin so a huge thank you to him! LA
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
04/04/15 07:53 AM (9 years ago)
@LA - sorry to hear that buddy. Sending good thoughts to you & the fam -
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
04/07/15 01:18 AM (9 years ago)
Ace just what i was after, an android loyalty card, cheers dude, Great work Sean
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
04/07/15 04:48 AM (9 years ago)
Thanks! LA
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 02:21 AM (9 years ago)
LA im getting some errors when trying to launch your plugin, is it me or do i change something in the xml file error: No resource identifier found for attribute 'layout_alignStart' in package 'android' error: No resource identifier found for attribute 'layout_toEndOf' in package 'android' heres the xml file <?xml version="1.0" encoding="UTF-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/containerView" android:background="@android:color/transparent" android:layout_width="fill_parent" android:layout_height="fill_parent"> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/r0" android:checked="false" android:paddingTop="20dp" android:layout_alignTop="@+id/r4" android:layout_toLeftOf="@+id/r1" android:layout_toStartOf="@+id/r1" android:layout_below="@+id/imageView"/> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/r1" android:checked="false" android:layout_alignTop="@+id/r0" android:layout_toLeftOf="@+id/imageButton" android:layout_toStartOf="@+id/imageButton" android:paddingTop="20dp" android:layout_below="@+id/imageView"/> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/r2" android:checked="false" android:layout_alignTop="@+id/r1" android:layout_centerHorizontal="true" android:paddingTop="20dp" android:layout_below="@+id/imageView"/> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/r3" android:checked="false" android:paddingTop="20dp" android:layout_alignTop="@+id/r2" android:layout_toRightOf="@+id/r2" android:layout_toEndOf="@+id/r2" android:layout_below="@+id/imageView"/> <RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/r4" android:checked="false" android:paddingTop="20dp" android:layout_toRightOf="@+id/r3" android:layout_toEndOf="@+id/r3" android:layout_below="@+id/imageView" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageButton" android:layout_above="@+id/toggleButton" android:layout_alignLeft="@+id/r2" android:layout_alignStart="@+id/r2" android:layout_marginBottom="85dp" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageView" android:src="@drawable/bt_network_cell" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:scaleType="center" android:paddingBottom="20dp" /> <ToggleButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="New ToggleButton" android:id="@+id/toggleButton" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" /> </RelativeLayout>
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 02:42 AM (9 years ago)
Tried the above in eclipse, As i find it easier to use than studio, could launch the app when your plugin is not included, soon as i add it, i get loads of errors, so tried in android studio to see if it was eclipse, and i get same outcome cant launch with the above same errors in studio, soon as i take your plugin out it launches. is there something im not adding cheers dude Sean
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/21/15 05:57 AM (9 years ago)
Take out all the code that has layout_alignStart.any xml code that has start and end.I think that's all.its been awhile. Basically just remove the code with those lines or any lines in that xml file that give you errors,because eclipse doesn't support some features of android.then do a project>clean. Studio is really easier.just use go Northwest videos
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/21/15 06:15 AM (9 years ago)
Usually changing the target to Android 3 and clean it takes out the errors. LA
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 07:43 AM (9 years ago)
thanks guys, i did follow marks guides couple months ago, and i can compile in studio, it was just showing the same errors in both platforms, will try both, thanks guys Sean
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 08:23 AM (9 years ago)
tried the changing target to 3, but then just came up with loads of errors, did what cm suggested, took out start and end lines where the errors where coming from, that cleared the errors, now its got an error lapunchcard.java int stub_id = R.mipmap.ic_launcher; error= mipmap cannot be resolved or is not a field any ideas guys, will the plugin still work after taking the start and end lines out. cheers sean
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/21/15 08:36 AM (9 years ago)
Looks like a drawable issue! There an icon in your drawable folder? LA
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 08:41 AM (9 years ago)
whats it called and where do i find it dude
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/21/15 08:45 AM (9 years ago)
Look in the xml layout file and in drawable folder for an icon. LA
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 08:48 AM (9 years ago)
whats the icon called dude the only mention of an image in the layout xml file is this android:src="@drawable/bt_network_cell" checked drawable and its in there
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/21/15 08:50 AM (9 years ago)
called icon..the main one...send me a link to your project if you cannot get it fixed and I can look at it. LA
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 08:52 AM (9 years ago)
icon.png is in there, but thats my app icon is that right sent you pm with project link, thanks for your help LA
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 08:57 AM (9 years ago)
error
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/21/15 09:04 AM (9 years ago)
Change mipmap to Drawable and ic_launcher to icon if using eclipse
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/21/15 09:05 AM (9 years ago)
Yes that will do it! LA
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/21/15 09:14 AM (9 years ago)
And we have lift off, Thanks cm and la launches fine now :) and plugin works great as well
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/21/15 09:25 AM (9 years ago)
Awesome! LA
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/22/15 01:04 AM (9 years ago)
Love your plugin LA, works like charm, Thanks dude. 1 question how do you reset the punches ie after you,ve punched five cheers sean
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
07/22/15 01:10 AM (9 years ago)
is there any way of adding punch holes, ie 7 buttons instead of 5 cheers sean
 

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.