Java Question Class in limbo........

mrred128

Active Member
Licensed User
Longtime User
I have an external class declared as final and it's members as static. I have created a working xml file and everything should be good to go......

When declaring the var "dim xyz as ClassName", I get an error "src\com\domain\MyApp\main.java:253: ClassName() has private access in com.....ClassName"

My thinking is this should happen, as it is a static class. But when I try to use ClassName.func() without a dim of xyz, b4a complains that ClassName variable does not exist.

What do we do?
 

mrred128

Active Member
Licensed User
Longtime User
It's a supplied jar from PushLink. The javadoc for the lib is https://push-link.com/javadoc502/index.html?com/pushlink/android/PushLink.html

I'm not sure what the distribution rights are, so I would suggest you create a login (free) and download the jar.

Here is the xml file I use for the jar

<?xml version="1.0" encoding="UTF-8"?>
<root>
<doclet-version-NOT-library-version>1.02</doclet-version-NOT-library-version>
<class>
<name>com.pushlink.android.PushLink</name>
<shortname>PushLink</shortname>
<owner>activity</owner>
<method>
<name>start</name>
<parameter><name>Context</name><type>java.lang.Object</type></parameter>
<parameter><name>NotifyIcon</name><type>int</type></parameter>
<parameter><name>ApiKey</name><type>java.lang.String</type></parameter>
<parameter><name>DeviceID</name><type>java.lang.String</type></parameter>
<returntype>void</returntype>
</method>
</class>
<version>5.02</version>
</root>

In the Main activity create my code would be.....

dim pl as PushLink
dim ph as Phone
If FirstTime Then Pl.start(Me,0,"yourkeyhere",ph.getSettings("android_id"))
 

mrred128

Active Member
Licensed User
Longtime User
I was hoping you wouldn't say that..... Now I have to install eclipse and watch my world go dark.......

Thanks for the quick reply.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…