Discuz! Board

 

 

Search
Discuz! Board Forum Integration Questions Problems with PPYEntranceView [Solved]
View: 970|Reply: 4
go

Problems with PPYEntranceView [Solved]

Rank: 2

Post on 2011-9-20 02:15 |All posts
Last edited by Fede on 2011-9-20 22:59

I am making an app with papaya, and i am having problems using PapayaEntranceView. After it, i tried to use it in a new empty project, but i still have the same problems. The program throws a NullPointerException. I am using the EntranceView from the xml, but also tried creating it from the code, and both ways throws the same error.

Can someone help me with this?

Here is the error from the error log:
  1. com.papaya.social.PPYEntranceView failed to instantiate.

  2. java.lang.NullPointerException
  3.     at com.papaya.social.PPYEntranceView._intBannerView(Unknown Source)
  4.     at com.papaya.social.PPYEntranceView.<init>(Unknown Source)
  5.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  6.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  7.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  8.     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
  9.     at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.instantiateClass(ProjectCallback.java:396)
  10.     at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.loadView(ProjectCallback.java:164)
  11.     at com.android.layoutlib.bridge.android.BridgeInflater.loadCustomView(BridgeInflater.java:205)
  12.     at com.android.layoutlib.bridge.android.BridgeInflater.createViewFromTag(BridgeInflater.java:133)
  13.     at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:83)
  14.     at android.view.LayoutInflater.rInflate(LayoutInflater.java:702)
  15.     at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
  16.     at android.view.LayoutInflater.inflate(LayoutInflater.java:367)
  17. ...
Copy
Thanks for the help

Edit: The problem is with the entrance view inside a Tab, but in my test project now it is working... I will try to make the same in my main project.

Edit2: Problem solved... I don't know what it was.

Rank: 2

Post on 2011-9-20 17:48 |All posts
NEED IMPORT THE PROJECT?

Rank: 2

Post on 2011-9-20 21:56 |All posts
friendlinzh posted on 2011-9-20 17:48
NEED IMPORT THE PROJECT?

I dont understand what you said...

The login/register screen is working, and the purchase API too...

Rank: 1

Post on 2011-9-23 21:28 |All posts
dont know exactly how you added the entranceView, but I  have met a similar problem. it's caused when you try to initiate the entranceView before initializing papaya social. like : if you declare an entranceview in layout ,and call setContentView(layoutid) before initializeWithConfig , such kind of error could happen , because some resource has not been initialized yet.

Rank: 1

Post on 2011-10-8 13:07 |All posts
I encountered a similar problem. It is caused when you try to start before the initialization papaya social entranceView.
Security Q&A Change Security code Change

Archiver|Comsenz Inc.

All time is GMT+8, 2013-5-18 19:51 , Processed in 0.046594 second(s), 10 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.