hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
04/22/13 01:41 PM (12 years ago)

Starting to intergrate Scringo and already need help

Already need help with the first step!! I know shameful, but I really don't want to screw anything up and hopefully can do it correctly the first time. So for the first step: "1. Copy it(libs folder) under your Android App Project (keep the name "libs"). Sometimes a "Refresh" is needed here Under my project I already have a "libs" folder. Do I just copy the contents of the Scringo libs folder into this folder? Thanks and sorry to be so simple, but again would rather do it correctly the first time rather than redoing the whole app. thanks, howard
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/22/13 03:51 PM (12 years ago)
Hi Howard, "Do I just copy the contents of the Scringo libs folder into this folder?" Yes, copy the scringo jar into your existing libs folder.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/22/13 04:06 PM (12 years ago)
Thank Rave, I copied the files, but there is already a GCM jar file. I am not sure what this file is for, so don't want to replace it unless it is okay to do so. Thanks, Howard
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/22/13 04:27 PM (12 years ago)
That GCM jar is for push notifications, you only need the one, either one will be ok.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/22/13 06:02 PM (12 years ago)
Question #2, Trying to follow the guide with scringo, but came into a problem. Trying to add the jars to the build path, but when right mouse click to build path, "add build path" is not there. Not sure how to add them? Thanks, Howard
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/23/13 03:55 AM (12 years ago)
A number of ways to do it Howard, this is one way: In the package explorer on the left, right click your project, go to Properties (a box will pop up), In the box select 'Java Build Path' on the left, and 'Libraries' on the right. Click 'Add Jars' and in the file tree navigate to the jar file in your libs folder, select it and ok everything to close the boxes.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/24/13 03:54 PM (12 years ago)
Rock on Rave! Thanks for the detailed instructions. onto the next step! thanks, Howard
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/24/13 04:03 PM (12 years ago)
Okay, so I got as far as adding the scringo resources to my project. There is a red (!) next to my project and the scringo resource project. I tried cleaning the projects but still persists. Just wondering if this is normal before I proceed. Howard
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/24/13 04:26 PM (12 years ago)
In the scringo resource project right click and go to Properties > Android. At the bottom of the box is a tick box - "Is Library". Make sure the box is ticked and ok it. In your project, go to the same location and click the 'add' button. Select the scringo resources project and ok everything to close the boxes. Do a project > clean and your project is now using scringo as a library so the red exclamation marks should be gone... Hopefully...
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/24/13 04:40 PM (12 years ago)
So the tick box was already ticked for the scringo resource. For my project it was not ticked but the scringo project is in the box. For the scringo project there is no Android project build target checked. H-
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/24/13 04:51 PM (12 years ago)
A build target should be checked in the scringo library. Mine's set to Android 4.2.2 - Api 17. Do a project > clean after you've checked it and ok'd the box. In your project does the scringo project have a green tick next to it? If you still have a problem remove the scringo library reference in your project, do a project > clean and re-add the scringo library.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/24/13 06:04 PM (12 years ago)
I set my to Google API 2.2, it cleared up the red (!), but now I have a red "x" src->project name->App_rate.java. That is the only error I see.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/25/13 03:53 AM (12 years ago)
That's probably not a scringo issue, I don't use the app rater plugin so have no idea. In the App_rate.java file, what's the code that's red underlined?
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/25/13 06:03 AM (12 years ago)
its on the onclick(view) , case R.id... I hope that helps.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/25/13 06:13 AM (12 years ago)
Sounds like some issue in the Res folder, maybe an image name?, hard to say without seeing it, or some logcat output. Send the project over if you like? paul9qr at btinternet dot com.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/25/13 06:30 AM (12 years ago)
It was a syntex error which corrected that lead to another error, saying a "break can not be used outside a loop or switch". To be able to move on from this, is there a way to just delete the app.rate plug in. It really doesn't work properly in the app any ways?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/25/13 06:40 AM (12 years ago)
Remove the app rate java file, remove the associated xml file from the res > layout folder, remove the app rate activity from the manifest (last one isn't necessary but helps keep the project tidy). And of course, do a project > clean! :) If the app rate uses any images you can delete those too from the res > drawable folder - again it's not really necessary except to keep the project tidy. PS, if/when you get an R.id error, the error is 'usually' something in the Res folder - even if you follow the 'fix' in the java file it'll often make things worse. Sometimes you can get hundreds of java R.id errors and all it'll be is a misnamed image, or a misplaced character in an xml file, in the Res folder.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/25/13 06:57 AM (12 years ago)
Ok, so thank you again. Deleted the plugin with no errors. Continued with the scringo integration. I am at the part to add the scringo manifest text to my manifest. it says to add it under directly under <application>. Do I add it under this: <application android:name="petspests_appDelegate" android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="false" android:theme="@android:style/Theme.NoTitleBar"> or can I add it anywhere between the <application> </application>? Thanks again, Howard
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/25/13 07:17 AM (12 years ago)
Anywhere between the tags Howard as long as it doesn't break into something already there. For ease of integration I usually put any new stuff directly before the closing </application> tag. You might already have a reference to: <uses-library android:name="com.google.android.maps" /> or it might be commented out? Either way, you only need the one reference in the manifest to google maps.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
04/25/13 10:02 AM (12 years ago)
Raveyd, I am at the point of activating Scringo in the app, but at what point has BT automatically intergrated scringo into the apps? Has everything that I have done and about to attempt already in the new source codes? Going back to the orginal announcement, David mentioned that all is needed is to add the Scringo ID??? Sorry to make this so difficult. Thanks again, Howard
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/25/13 10:15 AM (12 years ago)
No problem howard! To be honest, I've got no idea. I haven't seen any integrated scringo code at all, it must just be in the bt control panel, not self hosted?
 

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.