Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
01/07/14 08:23 AM (10 years ago)

Scringo Error in Buzztouch 2.9

Hi , I am using Scringo 2.4.0 in Buzztouch 2.9. i have followed all the steps from https://dev.scringo.com/resources.php?resource=Getting%20Started&sub=Android. And also done changes in Androidmanifest.xml for adding scrion part. And i get below error. Kindly help me to resolve this issue... 01-07 10:15:02.531: E/AndroidRuntime(418): FATAL EXCEPTION: main 01-07 10:15:02.531: E/AndroidRuntime(418): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.properties/com.properties.BT_activity_root_tabs}: java.lang.NullPointerException 01-07 10:15:02.531: E/AndroidRuntime(418): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1736) 01-07 10:15:02.531: E/AndroidRuntime(418): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1752) 01-07 10:15:02.531: E/AndroidRuntime(418): at android.app.ActivityThread.access$1500(ActivityThread.java:123) 01-07 10:15:02.531: E/AndroidRuntime(418): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993) 01-07 10:15:02.531: E/AndroidRuntime(418): at android.os.Handler.dispatchMessage(Handler.java:99) 01-07 10:15:02.531: E/AndroidRuntime(418): at android.os.Looper.loop(Looper.java:126) 01-07 10:15:02.531: E/AndroidRuntime(418): at android.app.ActivityThread.main(ActivityThread.java:3997) 01-07 10:15:02.531: E/AndroidRuntime(418): at java.lang.reflect.Method.invokeNative(Native Method) 01-07 10:15:02.531: E/AndroidRuntime(418): at java.lang.reflect.Method.invoke(Method.java:491) 01-07 10:15:02.531: E/AndroidRuntime(418): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 01-07 10:15:02.531: E/AndroidRuntime(418): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 01-07 10:15:02.531: E/AndroidRuntime(418): at dalvik.system.NativeStart.main(Native Method) 01-07 10:15:02.531: E/AndroidRuntime(418): Caused by: java.lang.NullPointerException 01-07 10:15:02.531: E/AndroidRuntime(418): at com.scringo.general.ScringoProperties.read(ScringoProperties.java:28) 01-07 10:15:02.531: E/AndroidRuntime(418): at com.scringo.controller.ScringoController.init(ScringoController.java:67) 01-07 10:15:02.531: E/AndroidRuntime(418): at com.scringo.controller.ScringoHelper.internalInit(ScringoHelper.java:29) 01-07 10:15:02.531: E/AndroidRuntime(418): at com.scringo.controller.ScringoHelper.init(ScringoHelper.java:12) 01-07 10:15:02.531: E/AndroidRuntime(418): at com.scringo.Scringo.init(Scringo.java:162) 01-07 10:15:02.531: E/AndroidRuntime(418): at com.scringo.Scringo.init(Scringo.java:159) 01-07 10:15:02.531: E/AndroidRuntime(418): at com.properties.BT_activity_root_tabs.onCreate(BT_activity_root_tabs.java:97) 01-07 10:15:02.531: E/AndroidRuntime(418): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048) 01-07 10:15:02.531: E/AndroidRuntime(418): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1700) 01-07 10:15:02.531: E/AndroidRuntime(418): ... 11 more
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 10:28 AM (10 years ago)
A null pointer exception means that one of the variables you are passing is null, but the code tries to use it like it is there. In short the code tries to refer to a variable which is not present there. Have you checked that you have connected the scringo library project in your project? You can check it by right clicking your project file--> properties--> android--> in library field you need to select scringo resources library file and then click ok.
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 10:36 AM (10 years ago)
Thanks for your reply. Yes i have did it. The Scringo android 2.4.0 will not be having Scringoresources it will be having only scringo but i selected it. I have added the .jar files also.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 10:41 AM (10 years ago)
Have you declared all the scringo activities in your manifest file? Also have you put your scringo app id and facebook app id in the scringo.properties file (you need to put it in the assets folder)?
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 10:44 AM (10 years ago)
Yes Of course i did it. And also i have added the appid in the scringo properties. I have previously worked on using scringo 2.3.2 & 2.3.1 . But i dint get any errors.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 10:45 AM (10 years ago)
Ok, can you tell me where you added the scringo code? I mean in which activity file or fragment file?
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 10:47 AM (10 years ago)
I have added in the BT_activity_root_tabs..
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 10:49 AM (10 years ago)
Try adding it in the homescreen activity file instead of the BT_activity_root_tab file. Can you tell me which BT core are you using?
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 10:55 AM (10 years ago)
i can't add in homescreen activity because i want tabbed layout. And also i am using BT 2.9 old code. Scringo version 2.4.0
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 10:58 AM (10 years ago)
You mean BT 2.0? You can use scringo better if you add it in a separate activity instead of using it in the root file. Check one of my apps here, i will give code for it if you want... I have added the code in the bt blank screen in this app. Link- https://play.google.com/store/apps/details?id=com.wbhausamovies
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:07 AM (10 years ago)
No i am using BT 2.9 ....whether i have to add scringo.jar files.. Ok kindly provide the code
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 11:10 AM (10 years ago)
BT 2.9 is the selfhosting package. I am asking about which android core are you using. Is it the new core 3.0 or the old core 2.0. The new core compiles against android api level 14 and above whereas the old core compiles against api level 8 and above... You need to add scringo, twitter and gcm jar files in your project. Also you need to build configure those jar files.
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:10 AM (10 years ago)
Now i am getting error as "Type case expressions must be constant expressions App_rater.java /paloaltoproperties/src/com/pproperties line 199 Java Problem"
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:15 AM (10 years ago)
Now i am getting error as "Type case expressions must be constant expressions App_rater.java /paloaltoproperties/src/com/pproperties line 199 Java Problem"
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:17 AM (10 years ago)
I am using old core 2.0 only and api level is 11. I have configured the libs by giving add to build path.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 11:19 AM (10 years ago)
Ok i have to go now. It would be better if we have a teamviewer session to sort out the errors you are getting. I will be online tomorrow at about 8 am. If you can manage that time mail me your teamviewer id and password, we will sort out the problem together.
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:20 AM (10 years ago)
I am using old core 2.0 only and api level is 11. I have configured the libs by giving add to build path.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 11:20 AM (10 years ago)
I forgot to give you my email address- its- sandeepkurne (at) gmail (dot) com.
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:23 AM (10 years ago)
Ok after adding the .jar files only i got th error "Type case expressions must be constant expressions App_rater.java /paloaltoproperties/src/com/pproperties line 199 Java Problem"
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:25 AM (10 years ago)
Thanks for the reply.
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:27 AM (10 years ago)
Thanks for the reply.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/07/14 11:29 AM (10 years ago)
Dont keep refreshing the forum page, if you refresh it, your earlier post will be posted again. Its too late for me to do any work now, you can catch me in the morning after 8 am. We will sort out your problem tomorrow.
 
Militant
Aspiring developer
Profile
Posts: 55
Reg: Apr 22, 2013
Coimbatore
1,300
like
01/07/14 11:30 AM (10 years ago)
Thanks for the reply.
 

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.