Discussion Forums  >  WebViews and HTML for Mobile

Replies: 17    Views: 250

realworldincome
Aspiring developer
Profile
Posts: 36
Reg: Feb 22, 2012
location unknow...
1,160
04/11/12 02:31 AM (13 years ago)

Leadbolt App Wall Issue

I have been trying to implement Leadbolt's App Wall in a my newest project. It fails to allow clicks to their ads among other errors. The app wall URL is loaded via the URL Properties screen in version 1.4 To quote a Leadbolt representative: "The issue exists with the BuzzTouch platform as they implement a WebView which does not recognize the market:// protocol. Many Android ads use this protocol and normally clicking on this protocol would load the marketplace app, but it shows an error using BuzzTouch. However, we believe that BuzzTouch generates all the source code for you, so if you feel comfortable doing this, you can make the necessary modifications to the code to work around this." So it appears I must make code changes in somewhere Eclipse, but which ones? Although I am using version 1.4 now, I have the self-hosted Version 2+ for future projects. Does anyone have an idea what I need to change? Thanks very much!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/11/12 04:05 AM (13 years ago)
Do you have an example market:// url?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/11/12 04:44 AM (13 years ago)
This will work, not sure if this is what you need? In Act_ActivityBase.java in the 'showCustomURL' section, add this: //url contains market:// if(jsonString.contains("market://")){ useMyIntent = 0; } below the soundcloud bit, around line 170. That'll open a market url in the marketplace (google play) app. Example used: market://details?id=com.example.admob.lunarlander
 
realworldincome
Aspiring developer
Profile
Posts: 36
Reg: Feb 22, 2012
location unknow...
1,160
like
04/11/12 11:39 PM (13 years ago)
Thanks for responding raveyd! I've been delayed in getting back to the project to try what you are suggesting, but will give it a try in Eclipse as soon as I can and let you know what happens. It sounds like that would work. Appreciate it! More later...
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/12/12 04:03 AM (13 years ago)
Let me know if it works!
 
realworldincome
Aspiring developer
Profile
Posts: 36
Reg: Feb 22, 2012
location unknow...
1,160
like
04/22/12 08:00 AM (13 years ago)
@raveyd Something is really messed up in my project file in Eclipse. It is now actually showing two project names under the main project name in the Package Explorer, plus a bunch of Java warnings. Just loading any projects I've tried in Eclipse has had numerous manifest.xml missing errors. Sometimes I can import them, other times not. Finally just changed the working directory and it loaded the manifest file, but added a bunch of other old project files. ? It looks like perhaps the first thing I should do is completely uninstall Eclipse, Java, etc. and reinstall everything. What a mess.
 
realworldincome
Aspiring developer
Profile
Posts: 36
Reg: Feb 22, 2012
location unknow...
1,160
like
04/22/12 08:32 AM (13 years ago)
Okay, I was able to delete all other unnecessary projects and then of course it loaded fine in Eclipse. I no longer have a customer URL menu item in the app. And the app works fine. It can be seen here --- https://play.google.com/store/apps/details?id=com.v1_4.BEB3AD369C192041013A2F4A.com&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS52MV80LkJFQjNBRDM2OUMxOTIwNDEwMTNBMkY0QS5jb20iXQ.. Yes, it definitely needs some beautification, and I will work on that later. But for now I need to get Leadbolt's App Wall that offers a selection of different apps to download. And I would like that to appear as a main menu item, something like 'Check Out The Newest Apps'. So I am back to the beginning and from what you mentioned, it looks like I need to make a new menu item via custom URL, then download the .apk to Eclipse, then insert the code you have above into what section of the project? Sorry raveyd... just trying to wrap my head around this stuff. :-) Thanks!
 
realworldincome
Aspiring developer
Profile
Posts: 36
Reg: Feb 22, 2012
location unknow...
1,160
like
04/25/12 04:38 AM (13 years ago)
I have searched several sites for an answer to using Leadbolt's App Wall as described above. Each resource I found showed various methods of adding code to different Project sections in Eclipse. Even tried setting up the Leadbolt SDK java controller and doing build. But regardless of what I have tried, the same condition results: the App Wall will come up then promptly display that the webpage can't be found for each clicked offer. I also tried just adding the Ad Banner HTML code from Leadbolt to my Custom URL pages. They displayed the ad just fine, but again once clicked it is showing webpage not found. ??? So where do I add the above-mentioned code provided above? --- In Act_ActivityBase.java in the 'showCustomURL' section, add this: //url contains market:// if(jsonString.contains("market://")){ useMyIntent = 0; } below the soundcloud bit, around line 170. That'll open a market url in the marketplace (google play) app. Example used: market://details?id=com.example.admob.lunarlander -------------------
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/25/12 05:33 AM (13 years ago)
In the Act_ActivityBase.java file in the showCustomURL section, below the soundcloud bit at around line 170!
 
realworldincome
Aspiring developer
Profile
Posts: 36
Reg: Feb 22, 2012
location unknow...
1,160
like
04/25/12 09:22 AM (13 years ago)
Found it. Added the code. Went to sign the app... lost the original keystore file. Used software program to find deleted files on the hard drive. Not there... probably overwritten. :-( Lesson learned. Will implement what you shared in next app instead, now that I understand it. Thanks for all your help raveyd! And for your patience with a complete noob.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/25/12 10:05 AM (13 years ago)
Yeah, I've done the same. I've now added a keystore folder to my eclipse folder and save them all in there. It's unlikely the eclipse folder will be deleted any time soon so it's a relatively safe place to put them! I'm not saying that code will definitely work for leadbolt, never tried it, but it allows the webview to recognize the market:// protocol as per your first post, so it should probably be ok!
 
realworldincome
Aspiring developer
Profile
Posts: 36
Reg: Feb 22, 2012
location unknow...
1,160
like
05/30/12 08:27 AM (13 years ago)
Gave up on Leadbolt for now. Will be looking at http://www.mobclix.com/ soon. After having lost my original keystore, made a new app https://play.google.com/store/apps/details?id=com.publicdomainresources#?t=W251bGwsMSwyLDIxMiwiY29tLnB1YmxpY2RvbWFpbnJlc291cmNlcyJd that is basically available to most any mobile device with auto-sizing of a Wordpress site mobile site. Just now getting back into app development after a hiatus. Thanks for your earlier help raveyd!
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/02/12 07:15 PM (13 years ago)
@raveyd - I am going to give your method a shot tomorrow, hope it works! I will report back soon.
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/04/12 03:27 AM (13 years ago)
OK, I'm just not seeing where the Act_ActivityBase.java file is in Eclipse. Any suggestions? I do see BT_act_activity_base.java, but can't find the custom URL line.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/04/12 07:36 AM (13 years ago)
This is for BTv1.4.
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/04/12 07:48 AM (13 years ago)
Ohhhh. Is there a way to do this in 2.0?
 
Mike the App Guy
Lost but trying
Profile
Posts: 435
Reg: Sep 19, 2011
Birmingham, Ala...
5,900
like
06/05/12 08:00 PM (13 years ago)
Anyone - is there a way to modify what @raveyd said in a previous post to work in Buzztouch 2.0: In Act_ActivityBase.java in the 'showCustomURL' section, add this: //url contains market:// if(jsonString.contains("market://")){ useMyIntent = 0; } below the soundcloud bit, around line 170. That'll open a market url in the marketplace (google play) app. Example used: market://details?id=com.example.admob.lunarlander
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/07/12 06:24 AM (13 years ago)
Following
 

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.