GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
11/21/14 09:37 PM (9 years ago)

[Solved!] Scringo For Android - I'm Stumped!

OK, I've spent about hour hours trying to get Scringo working in my Android test app, and it's just not happening. Here's the crash I get (partial output): 11-21 21:19:40.828: E/AndroidRuntime(11386): FATAL EXCEPTION: main 11-21 21:19:40.828: E/AndroidRuntime(11386): Process: com.playtime, PID: 11386 11-21 21:19:40.828: E/AndroidRuntime(11386): java.lang.NoClassDefFoundError: com.scringo.features.menu.ScringoMenuActivity 11-21 21:19:40.828: E/AndroidRuntime(11386): at com.scringo.Scringo.openMenu(Scringo.java:502) 11-21 21:19:40.828: E/AndroidRuntime(11386): at com.playtime.BT_screen_menuListSimple.onCreateView(BT_screen_menuListSimple.java:109) I'm using a Nexus tablet running Android 4.4.4, and the Scringo 2.5.6 SDK. I've followed the following excellent guides: <a href="http://www.scringo.com/docs/buzztouch/android-integration/" target="_blank" rel="nofollow">http://www.scringo.com/docs/buzztouch/android-integration/</a> <a href="http://www.buzztouch.com/forum/thread.php?tid=3D1785DE0847EBF6B271E14&fid=F006D74B653CA9FFE3CB28E&sortColumn=FT.id&sortUpDown=DESC&currentPage=2" target="_blank" rel="nofollow">http://www.buzztouch.com/forum/thread.php?tid=3D1785DE0847EBF6B271E14&fid=F006D74B653CA9FFE3CB28E&sortColumn=FT.id&sortUpDown=DESC&currentPage=2</a> I've managed to get the app to compile, but it crashes each time it launches, and I get the LogCat stuff above (there's more if you need it). I also see this before the crash: 11-21 21:19:39.978: W/dalvikvm(11386): Unable to resolve superclass of Lcom/scringo/features/ScringoFeatureActivity; (182) 11-21 21:19:39.978: W/dalvikvm(11386): Link of class 'Lcom/scringo/features/ScringoFeatureActivity;' failed 11-21 21:19:39.978: W/dalvikvm(11386): Unable to resolve superclass of Lcom/scringo/features/menu/ScringoMenuActivity; (2223) 11-21 21:19:39.978: W/dalvikvm(11386): Link of class 'Lcom/scringo/features/menu/ScringoMenuActivity;' failed 11-21 21:19:39.978: E/dalvikvm(11386): Could not find class 'com.scringo.features.menu.ScringoMenuActivity', referenced from method com.scringo.Scringo.openMenu 11-21 21:19:39.978: W/dalvikvm(11386): VFY: unable to resolve const-class 2476 (Lcom/scringo/features/menu/ScringoMenuActivity;) in Lcom/scringo/Scringo; As far as I can tell, I've followed the instructions in the above two posts to the letter. I simply cannot figure out what's going on. If ANYBODY can help me make this work, please let me know. I'm happy to send you my project files so you can mess around with them. Once I get this going, you KNOW that I'll make a video about it for everybody! Many thanks! Mark
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
11/21/14 10:57 PM (9 years ago)
I use the scringo package for every app I make, but if I remember right you have to take out the gcm.jar in the scringo package because its also in your app project package. also remember to add the text to your apps projects "project.properties" file and add the scringo.properties file in your asset with the right app id. also have you added the facebook part yet or any of the other features?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
11/21/14 11:02 PM (9 years ago)
heres the code I use. private Scringo scringo I put it right before "return thisScreensView;" scringo= new Scringo(getActivity()); scringo.init(); scringo.addSidebar(); also add scringo.onStart(); and scringo.onStop(); in the onStart and onStop methods
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/22/14 12:29 AM (9 years ago)
Hi Chris, Thanks for reaching out. I hadn't deleted that jar file, so I've done that. I had already done the properties file stuff. I haven't done any Twitter or Facebook stuff, because I want to get the basic stuff working first. I'm assuming the code you mention above goes in BT_activity_host.java. I have most of that already in there. I don't see a "return thisScreensView;" section...I have my code right after setContentView(R.layout.bt_activity_host);, per one of the guides I mention. I must be missing something simple! Could I send my project package to you? I wouldn't want you to spend more than like 15 minutes on this, since it seems you've got this nailed. It's possible I'm just missing something easy. Thanks! Mark
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
11/22/14 02:18 AM (9 years ago)
I have it working in one of my Android Apps - heres a link to a "dirty" doc file that saw me through it :) https://www.dropbox.com/s/wnm6amkvnvkggg8/SCRINGO.docx?dl=0
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
11/22/14 02:33 AM (9 years ago)
If memory serves, the code changes and manifest merge caught me out so pay close attention to lines 21 through 33 as these are critical!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/22/14 09:22 AM (9 years ago)
Well, I've done all that several times, and it still crashes! I switched to the menu that you used just for completeness. I really don't understand why this is so hard! It seems like there is an issue with the SDK or something. If anybody is interested in getting my project files and trying it out, I would be much appreciative! Mark
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
11/22/14 11:23 AM (9 years ago)
Sorry that was code for specific plugins.in btvactivity host file you put it either above or below the configureEnviroment(); method I'll take a look when I get home to post the correct way. you can send it to me if you want
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/22/14 11:35 AM (9 years ago)
Maybe that's where I'm getting confused. I have that code in the BT_activity_host.java file, per the Scringo instructions. I'd love to send you my project package. Can you PM me your email address? Thanks! Mark
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
11/22/14 04:51 PM (9 years ago)
Yes its under that method in bt_activity_host.java. I just pm'd you my email //configure the app's environment... configureEnvironment(); scringo = new Scringo(this); scringo.init(); scringo.addSidebar(); }
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/22/14 05:00 PM (9 years ago)
Email on the way with my unchanged project package. Do your magic! Thanks, Chris! Mark
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
11/22/14 08:36 PM (9 years ago)
I got it working.Im about to send you an email now.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/22/14 09:06 PM (9 years ago)
You are an Android NINJA! Can't wait to see how you got it working!
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
11/23/14 11:11 AM (9 years ago)
Good thread! Been struggling Android for Scringo and Parse (Push Notifications). Going to save the tread a long with other important threads. GoNorthWest, did you solve your issue?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/23/14 12:12 PM (9 years ago)
Just about there! Chris provided me with a working app, and I attempted to repro his steps in another app of mine. I'm close. It still crashes, but I think I know what I'm missing. As soon as I can reproduce the steps reliably, which Chris the Android Ninja apparently has, I'm going to make a video to share with all. Look for that in a week or so, if all goes well. Mark
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
11/23/14 02:12 PM (9 years ago)
Thanks Mark! Dragon007 for parse push on android you have to right some extra code to handle when the user clicks the push notificqtion or it will crash.if you search the forum for how to on parse for android.I'll post link if I can't find code in my app ha.been some weeks before I got it working
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
11/23/14 04:36 PM (9 years ago)
I have the push notifications working too - have a doc if you need it? Code and an extra user priv required in the manifest to stop some Samsung devices crashing (when it asks the initial permission on app start).
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/23/14 08:47 PM (9 years ago)
Finally got this working reliably! Can swipe open Scringo from any screen, and was able to register an account and see the Radar. Good stuff! Many thanks to @CMCOFFEE (Chris) for all his Ninja help. I'll be creating a video on how to do this in the very near future. @rburns50 - Would love to see that document! You can send to MrkFleming at gmail dot com. Thanks! Mark
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
11/24/14 01:17 AM (9 years ago)
Just emailed you Mark - hope its useful!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/24/14 01:23 AM (9 years ago)
Thanks!
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
11/24/14 02:48 AM (9 years ago)
Hi Mark - just sent you another doc, overview of Google/BT Panel settings for Push which complements the one I have already sent!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/24/14 08:55 AM (9 years ago)
Thanks! Got it, and I'll give it a read tonight. I appreciate the sharing of information. Mark
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
01/02/15 01:54 AM (9 years ago)
Hi Guys.... Does anybody have an HowTo (Step by Step) for PARSE Push Messaging? My Samsung Crashes all the Time by opening an App with Parse ;-(
 

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.