Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
04/04/13 11:52 AM (12 years ago)

Scringo for Android

Hey Gang, please can you share your experience? How to integrate scringo to Android: I managed to download the SDK, step by step add the lib, jars, etc... Got stuck on actual activation in activities: where and how to create instance for scringo, i.e.: Activate Scringo in your code The Scringo class is where you want to start. On each Activity you want Scringo's sidebar to appear, make sure you have a Scringo instance like so: Scringo scringo = new Scringo(this); After you've created the Scringo instance, you should also initialize Scringo (after the setContentView): scringo.init(); I was not able to create that instance - how do yo do it? Where shall I copy it? I watched the tutorials from last summer and it is a little different ... Please let me know where to put it. Cheers! Frogman
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/04/13 12:21 PM (12 years ago)
Imports: import com.scringo.Scringo; import com.scringo.ScringoActivationButton; This goes before the onCreate event: private Scringo scringo = new Scringo(this); This goes in the onCreate event, I put it just after the baseview has been added: scringo.init(); ((ScringoActivationButton) findViewById(R.id.activationButton1)).setScringo(scringo); This goes in the onStart event: scringo.onStart(); This goes in the onStop event: scringo.onStop(); That's it!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/04/13 12:27 PM (12 years ago)
Then in the xml file use: <com.scringo.ScringoLeftActivationButton android:id="@+id/activationButton1" android:layout_width="wrap_content" android:layout_height="match_parent"/>
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/04/13 01:15 PM (12 years ago)
Hey raveyd, yet I partially followed your instructions and managed to make scringo work in my first screen! Thank you for your support! Digging deeper into the code now... Great you opened my eyes. I had a little clue what it may be but really did not realize where and what... the instruction in scringo.com are a little more code knowledge requiring than I could provide at the time. Cheers! Frogman
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/04/13 01:23 PM (12 years ago)
Excellent news Frogman! Glad that's made it a bit clearer. There's some pretty cool scringo stuff that can be integrated when you dig into it.
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/04/13 01:35 PM (12 years ago)
One more question please: where in the xml (Android Manifest) to put the: <com.scringo.ScringoLeftActivationButton android:id="@+id/activationButton1" android:layout_width="wrap_content" android:layout_height="match_parent"/> My app crashed when I put it after scringo definitions. Frogman
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/04/13 01:55 PM (12 years ago)
Which java file did you add the scringo stuff to? The xml code will go in the associated xml file located in the res > layout folder. So if, for example, you put the code in BT_screen_menuButtons.java, the xml code will go in the screen_menubuttons.xml file. In the screen_menubuttons.xml file, you could put the code under the LinearLayout wrapper, like this: <?xml version="1.0" encoding="UTF-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/containerView" android:background="@android:color/transparent" android:padding="0dip" android:layout_margin="0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.scringo.ScringoLeftActivationButton android:id="@+id/activationButton1" android:layout_width="wrap_content" android:layout_height="match_parent"/>
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/04/13 01:58 PM (12 years ago)
I put it into the Android Manifest, my eyes are yet open halfways. Yours truly, Borat from the woods (Frogman) P.S. I got the button solved. Just added the lines to the right xml. THANX!!! P.S.1 I love Scringo!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/04/13 02:29 PM (12 years ago)
LOL!! Don't show us your mankini! Any relation to the living legend Turtleman from the US?! Great you got the button solved!
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/04/13 02:57 PM (12 years ago)
Do not worry, I keep some secrets for me (API secret, mankini etc.) Frogman is actually a Navajo creator of the world... I saw it when I was in the US, we visited a museum-reservation and my former girlfriend spotted that the little statue looks just like me, almost dying from laughter. If I remember well, there was a wolf and maybe also turtleman... who would remember it all. Thanxxxxx fot your help, you made my day. After my self-hosted server showed some problem, resolving scringo brought me much further on my way to feed my kids :)))) Hope to be able to return your help one day! Cheers! Frogman
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/04/13 04:45 PM (12 years ago)
lol! Good story, and I'm glad I've helped a bit towards feeding the kids! :)
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/08/13 03:00 AM (12 years ago)
They are very hungry, you know :)
 
Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
like
06/17/13 06:26 AM (12 years ago)
hellooo! I get an error on this line: ((ScringoActivationButton) findViewById(R.id.activationButton2)).setScringo(scringo); This is the error: ScringoActivationButton cannot be resolved to a type. What can I do? thanks!
 
nonaperak
Lost but trying
Profile
Posts: 15
Reg: Feb 04, 2011
location unknow...
3,250
like
06/28/13 11:02 PM (12 years ago)
@Imagenparaweb, I followed instructions by raveyd above Imports: import com.scringo.Scringo; import com.scringo.ScringoActivationButton; <== I had to add this line Adding that made the error disappear.
 
Imagenparaweb
Aspiring developer
Profile
Posts: 121
Reg: Dec 13, 2011
Cordoba
1,210
like
07/01/13 04:33 AM (12 years ago)
hey nonaperak, thanks! I've discovered the same when trying the ScringoSample :D Thanks anyway for the tip, now it will easier to someone else :) Regards,
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/20/14 09:56 PM (11 years ago)
Hello! So, I'm trying to get this to work on Android, but without much luck. Couple of questions I have: * Which BT file are you putting this code in? BT_fragement.java? BT_activity_host.java? * Can somebody provide an entire file I can look at for comparison? * Do you have this working in BT v3? Your help is much appreciated! Mark
 

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.