Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 16    Views: 61

Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
02/20/15 06:41 AM (9 years ago)

Droid Link plugin generates errors [SOLVED]

Hello, I want to use "Droid Link" plugin on my app. But it gives errors. I'm using an app I built some time ago. This is what I've tried: 1. Install and configure Droid Link on the app on BT panel 2. Download the project from BT 3. Extracted 'CM_droidLink.java' and 'cm_droidlink.xml' files from the downloaded project 4. Include the previous files in my app folder 5. Compiled with Eclipse As you can read, I don't use the last downloaded project from Buzztouch. Instead of that, I use the firts-time-downloaded project. These are the errors: <a href="http://s28.postimg.org/s2byw5cul/droid_link_errors.png" target="_blank" rel="nofollow">http://s28.postimg.org/s2byw5cul/droid_link_errors.png</a> I think the problem is that my app is too old to use with Droid Link plugin.. I don't know. Anyone can help me please? Thanks!!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/20/15 09:16 AM (9 years ago)
Yes your using a bt v2.0 project but that plugin requires v3.0 bt project
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/20/15 09:23 AM (9 years ago)
Hi Imagenparaweb Just before Chris released Droid Link I was working on a solution for sharing an app (Buzztouch v2) by altering the code that starts David's 'Share by Email' plugin. If all you want to do is share the app than I can provide some code that will help you. Let me know - and I'll post it here.
 
Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
like
02/23/15 06:08 AM (9 years ago)
Thanks for the clarification CMCOFFEE! @Krompa, I'd like to try that ! Tell me how it works please ! Thanks both of you guys.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/23/15 12:35 PM (9 years ago)
Yea and really you could copy and paste the code from mine under onCreateView into on create in bt v2.you would also copy the layout. Any errors you get from getActivity () , just change that to "this"
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/23/15 01:15 PM (9 years ago)
I'll dig for that code now
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/23/15 03:05 PM (9 years ago)
Here is a guide which enables you to add a sharing function to BT v2.0 apps and also v3.0 apps. I hope it helps.
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/23/15 03:08 PM (9 years ago)
I've just spotted a small error. I'll re-do
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/23/15 03:14 PM (9 years ago)
Here is a guide which enables you to add a sharing function to BT v2.0 apps and also v3.0 apps. I hope it helps. https://www.dropbox.com/s/z1leldhch9kra6f/Android%20-%20HOW%20TO%20add%20a%20sharing%20function%20to%20your%20app%20edit.doc?dl=0
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/23/15 04:07 PM (9 years ago)
nice one krompa, thats awesome! and it looks better,at least to me.the intent.createChooser is awesome.Just gave me an idea, since its part of the BT_fragment, you could call the method with any value in any plugin,using a button in navbar or anywhere, if you do this: BT_item cool = new BT_item(); cool.setItemId = "theExtraSubjectToShare"; cool.setItemNickname = "theExtraTextToShare"; sendEmailWithScreenData(cool); and in the BT_fragment change your(Krompa) lines in your guide: sharingIntent.putExtra(Intent.EXTRA_SUBJECT, theScreenData.itemId); sharingIntent.putExtra(Intent.EXTRA_TEXT, theScreenData.itemNickname); your just gave me so many new cool ideas Krompa!(even though people would have to hardcode,it would be worth it!) Krompa you should definitely make a post sharing your guide and also ask Susan if you can include it the how-tos!
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/23/15 04:10 PM (9 years ago)
Cheers Chris. Yes, I also use it to share points score in the quiz.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/23/15 04:14 PM (9 years ago)
Cool you can also make an alert when clicking a menu item without going to a new screen.make a web view pop up in an alert like kittys pop up Web view plugin
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/23/15 04:24 PM (9 years ago)
Powerful stuff. I think you're much further down the Android learning path than me. I'm just happy when all the red x's disappear. One day I'll get there tho. In about 2018.
 
Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
like
02/24/15 05:33 AM (9 years ago)
Hey Krompa, I followed your guide, but I have 2 errors. Look at them please: http://s22.postimg.org/lvkihk1ox/errors.jpg What's wrong?
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/24/15 05:39 AM (9 years ago)
Perhaps the arrow in my HOW TO is confusing. Your code should look like this: //email / share email... if(nextScreenType.equalsIgnoreCase("BT_screen_email") || //nextScreenType.equalsIgnoreCase("BT_shareEmail") || nextScreenType.equalsIgnoreCase("BT_sendEmail")){ BT_debugger.showIt(objectName + ":launching email compose sheet..."); BT_act_controller.sendEmailWithScreenData(parentActivity, theScreenData); return; } if(nextScreenType.equalsIgnoreCase("BT_shareEmail")){ Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.putExtra(Intent.EXTRA_SUBJECT, "The best Classic Rock Quiz app for iOS and Android"); sharingIntent.putExtra(Intent.EXTRA_TEXT, "I love Classic Rock Quiz app\n\nhttp://ow.ly/BoTly iOS (no ads)\nhttp://ow.ly/BxZmD Android (no ads)\nhttp://ow.ly/Bh2VE Android"); sharingIntent.setType("text/plain"); parentActivity.startActivity(Intent.createChooser(sharingIntent, "Share Classic Rock Quiz app with friends using ...")); return; }
 
Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
like
02/24/15 06:40 AM (9 years ago)
Yeah! it was my mistake :D I got confused with that arrow! Now it is working perfect! Thanks Krompa!!
 
krompa
Lost but trying
Profile
Posts: 257
Reg: Jun 14, 2013
Bristol
8,820
like
02/24/15 06:43 AM (9 years ago)
No problem - I'm glad it's working for you.
 

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.