Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 41    Views: 119

Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
07/07/12 06:01 AM (13 years ago)

Scringo Integration On Android, Need Help!

Hi Is there anyone who has used and integrated Scringo into an Android BT app. I have spent weeks trying to integrate and keep getting errors. I have tried following Fred's tutorial but have been unable to get past section 2 as the tutorial steps appear to be different when following the steps as mentioned. If anyone has video tutorial or if you have successfully installed Scringo using Fred's guide, or you have your own guide that I can follow, please let me how.
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/07/12 10:12 AM (13 years ago)
bro am into action i will also try to install in my app let see what will happen
 
nish
Android Fan
Profile
Posts: 60
Reg: May 05, 2012
location unknow...
1,950
like
07/07/12 05:43 PM (13 years ago)
are you still stuck in 2nd step what you need to do is copy the java files to libs or jar folder in eclipse project then go to project in eclipse(top bar) go to properties there you will see java built path..in that add path select those java files you copied to libs or java folder this is the 2nd step ..am stuck in fifth step!
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/07/12 06:03 PM (13 years ago)
How are you stuck in step 5? What activity (plugin/screen ) are you trying to add it to? Fred
 
nish
Android Fan
Profile
Posts: 60
Reg: May 05, 2012
location unknow...
1,950
like
07/07/12 06:08 PM (13 years ago)
just a second i will tell where all i went wrong
 
nish
Android Fan
Profile
Posts: 60
Reg: May 05, 2012
location unknow...
1,950
like
07/07/12 06:10 PM (13 years ago)
5. Add the following code: ("The activities you should add the ScringoAgent to, are all the activities you use in your project. The activities in the Manifest aren't the ones we mean. The ones we mean are _your_ activities, for example if you're using: BT_screen_menuListSimple, the add it in there." Ofer Kalisky) : a. On every activity you want the Scringo panel to appear: Add a member: private ScringoAgent scringoAgent = new ScringoAgent(); Add the following methods to your activity. @Override protected voidon Start() { super.onStart(); scringoAgent.start(this); } @Override protected voidon Stop() { super.onStop(); scringoAgent.stop(); } If you already have these functions, simply add the scringoAgent function calls to them Note: the code you see above is actually code to text, to cut & paste use the code from the Scringo link above. b. In your onCreate add: Scringo.init(this); (or Scringo.init(this, true) if it's the welcome activity) c. If you want to see test users add the following line (just before the previous call): Scringo.setDebugMode(true); i dont know where to put above things where in eclipse ...in which activity n all!!
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/07/12 08:18 PM (13 years ago)
Take a look at BT_screen_menuListSimple.java
 
nish
Android Fan
Profile
Posts: 60
Reg: May 05, 2012
location unknow...
1,950
like
07/08/12 03:17 AM (13 years ago)
after looking at bt_screen_menulistsimple.java what should be done..you have a video link to one of the person who created scringo in his app..who is it can u ask him to make a tutorial
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/08/12 07:38 AM (13 years ago)
This is the part I am stuck on: b. ScringoResources (folder) - Import this project into your eclipse workspace (File -> Import... -> Existing projects into workspace -> Browse) and add it as an Android Library Project used by your app (Right-click your Android App Project -> Properties -> Android -> under "Library" click Add... -> Select ScringoResources -> OK -> OK) It just doesn't make any sense to me, I tried following the process but doesn't appear to follow the process I do when doing it.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/08/12 07:54 AM (13 years ago)
I updated my tutorial, go back and check it out. Fred
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/08/12 08:30 AM (13 years ago)
Hi Fed I don't understand how you add the ScringoResources folder as an Android Library Project: b. ScringoResources (folder) - Import this project into your eclipse workspace (File -> Import... -> Existing projects into workspace -> Browse) and add it as an Android Library Project used by your app I don't see an option to add it as an Android Library Project; I don't get it.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/08/12 08:37 AM (13 years ago)
Do I need to select the check box that says (copy projects into workspace) when importing the ScringoResources folder?
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/09/12 02:47 AM (13 years ago)
@dragon 007 any progress?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/09/12 05:23 PM (13 years ago)
I've had a play with scringo tonight and got it up and running. It's late now, so I'll post a guide tomorrow if anyone still needs any help? fwiw, the guide on scringo is spot on, as you'd expect: http://scringo.com/doc_android.html **Edit** If you think you've got it set up ok, but are getting a bunch of 'fetch' errors related to scringo in logcat, ignore them, it'll be the emulator not set up to receive json data requests. Compile the app and test on device and it'll be fine.
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/10/12 03:12 AM (13 years ago)
@raveyd wow!.. waiting for your tutorial...actually i managed integrate scringo in my app following the way of user deckG...but i need to pull out scringo from left side bar...so its a issue..i think in ur tutorial it will be perfect i guess
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/10/12 03:28 AM (13 years ago)
Hi @nishad, I don't know about swiping from left. By default it swipes from the right. Where's @deckG's guide, I couldn't find it? If you could follow it ok and it works ok it seems pointless to do another guide!
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/10/12 03:33 AM (13 years ago)
@raved in his tutorial(kind of tutorial)..he managed to integrate only in a blank screen....but still we are waiting for ur tutorial because i have followed ur tutorial b4 and it was perfect...am sorry actually its from left,it waas my typing error...but in his tutorial as i told there is no way to know scringo is there in the app http://youtu.be/TCXoORd1hGo this is his video when will be ur tutorial be posted waiting here!
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/10/12 03:35 AM (13 years ago)
no no we need your guide..its a request plz do make a guide..and his tutorial is not easiy to understand because he answered in his own post take a look at this http://www.buzztouch.com/forum/thread.php?tid=738547CBA5680384CA7DD10&command=isSearching&currentPage=1&topicTitle=scringo&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory=
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/10/12 03:48 AM (13 years ago)
hehe thanks. Ok, I'll post it sometime today. As I say, the scringo guide is spot on, but it's a little hard to interpret if you're not familiar with the steps to add a library or add code to java files etc.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 04:15 AM (13 years ago)
Hi Guys I am obviously doing something wrong here, can someone tell me how to add the ScringoResources folder into the Android Library, this is what I have be stuck on from the very beginning. I don't see no option to add to the library. I have been told many times that the guide to integrate is spot on, but to me it isn't. All I need is help with this part: b. ScringoResources (folder) - Import this project into your eclipse workspace (File -> Import... -> Existing projects into workspace -> Browse) and add it as an Android Library Project used by your app
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/10/12 04:20 AM (13 years ago)
@raved thats cool .am just waiting for ur tutorial @dragon007 just sent a mail to my id i will attach u a file which will solve ur problem [email protected]
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 04:27 AM (13 years ago)
thank you, I look forward to seeing the solution.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 05:21 AM (13 years ago)
Hi still having the same issue. I cannot add the resources folder to the library, I don't have this option: b. ScringoResources (folder) - Import this project into your eclipse workspace (File -> Import... -> Existing projects into workspace -> Browse) and add it as an Android Library Project used by your app I cannot add to library. Am I missing something here?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 05:25 AM (13 years ago)
which folder do I need to copy the resources files too? not clear to me.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 05:29 AM (13 years ago)
which files do I need to copy over from the ScringoResources folder?
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 05:35 AM (13 years ago)
Do I only need to copy the res folder files in the ScringoResources folder into my project and that's it or are there other files from this folder I need to copy over? Still don't get it.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/10/12 05:38 AM (13 years ago)
Yes that's it. Fred
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 06:33 AM (13 years ago)
Also in your tutorial you mention: d. scringo.manifest (file) - Copy the content of the file into your app's AndroidManifest.xml file (directly under the <application> around line 127). I don't appear to have <application> only </application> so again not sure where to add the code.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/10/12 06:43 AM (13 years ago)
@Dragon007 - Nearly got a video done, give me an hour and I'll post it here.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/10/12 07:18 AM (13 years ago)
Look at line 33 to 127 Fred
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/10/12 07:33 AM (13 years ago)
@raved..cant wait.....waiting for that moment to see ur tutorial
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 07:38 AM (13 years ago)
Hi Fred I have pasted the code from my AndroidManifest.xml, can you advise to where I need to add the which you refer from your tutorial (d. scringo.manifest (file) - Copy the content of the file into your app's AndroidManifest.xml file (directly under the <application> around line 127). <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.taylorjones" android:versionCode="3" android:versionName="3.1"> <uses-sdk android:minSdkVersion="8"/> <!-- required device permissions --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- recommneded device features --> <uses-feature android:name="android.hardware.camera" android:required="false"/> <uses-feature android:name="android.hardware.location" android:required="false"/> <uses-feature android:name="android.hardware.location.gps" android:required="false"/> <uses-feature android:name="android.hardware.telephony" android:required="false"/> <application android:name="taylorjones_appDelegate" android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="false" android:theme="@android:style/Theme.NoTitleBar"> <!-- activity root is the default, beginning activity --> <activity android:name="BT_activity_root" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:excludeFromRecents="false" android:noHistory="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <!-- activities for general layout (tabbed or non-tabbed) --> <activity android:name=".BT_activity_base" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_activity_root_tabs" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <!-- remaining activities are for individual plugin types --> <activity android:name=".BT_screen_settingsDevice" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_customHTML" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_pptDoc" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_map" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_settingsLocation" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_menuListSimple" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_htmlDoc" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_excelDoc" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_wordDoc" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_splash" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_pdfDoc" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_customURL" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_blank" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_menuButtons" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <activity android:name=".BT_screen_settingsLogIn" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"></activity> <!-- THE NEXT LINE IS ONLY USED IF MAPS ARE USED --> <uses-library android:name="com.google.android.maps"/> <service android:name="com.parse.PushService" /> <receiver android:name="com.parse.ParseBroadcastReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.USER_PRESENT" /> </intent-filter> </receiver> </application> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.VIBRATE" /> </manifest>
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/10/12 07:43 AM (13 years ago)
under this bit: <application android:name="taylorjones_appDelegate" android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="false" android:theme="@android:style/Theme.NoTitleBar"> and before this bit: <!-- activity root is the default, beginning activity --> <activity android:name="BT_activity_root" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:excludeFromRecents="false" android:noHistory="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
 
nishad
Lost but trying
Profile
Posts: 61
Reg: May 06, 2012
cochin
610
like
07/10/12 07:48 AM (13 years ago)
@raved is ur tutorial posted!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 07:49 AM (13 years ago)
thank you
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/10/12 08:00 AM (13 years ago)
@nishad - Waiting for dropbox, big movie file!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/10/12 08:13 AM (13 years ago)
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 08:25 AM (13 years ago)
OK, I have approached the final part of the integration, but I have no idea where about to add a member: private ScringoAgent scringoAgent = new ScringoAgent(); Also I am unsure whether to overwrite the additional code with: @Override protected voidon Start() { super.onStart(); scringoAgent.start(this); (line 275) } @Override protected voidon Stop() { super.onStop(); scringoAgent.stop(); (line 359) } or whether I just need to update the code and make changes where necessary. Need help on this final part.
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 08:27 AM (13 years ago)
Can anyone provide a screen shot for the final part of the integration so I know where to add the code.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/10/12 08:31 AM (13 years ago)
In my tutorial it gives you line numbers. Fred
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/10/12 09:10 AM (13 years ago)
This video tutorial has finally put my pain to rest and has helped me integrate Scringo. For anyone having issues use this link: http://dl.dropbox.com/u/56760890/scringo.wmv Also Fred, you may want to add this video tutorial to your site, it really helped me as there were a few things that hadn't been mentioned in your tutorial. Nevertheless all of you have been a big help, thank you!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/10/12 12:15 PM (13 years ago)
 

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.