Hello,
I'm still trying to get that Teamviewer SDK working:
https://integrate.teamviewer.com/de/develop/screen-sharing-sdk/android-tutorial/
https://integrate.teamviewer.com/en/develop/screen-sharing-sdk/android-sdk-reference/
At some point wone needs to build a session which is being done via some class method call.
(TJTVSessionFactory.JavaClass.createTVSession)
This call gets the activity passed (TAndroidHelper.Activity), some key as JString and an
implementation of the JTVSessionCreationCallback interface.
Now when making that call I get the following exception:
Exception of class EJNIException with message 'android.content.res.Resources$NotFoundException:
Resource ID #0x7f05000c type #0x3 is not valid' occured.
The call stack of the java exception caught in logcat is this one:
android.content.res.Resources$NotFoundException: Resource ID #0x7f05000c type #0x3 is not valid
at android.content.res.Resources.getDimensionPixelOffset(Resources.java:640)
at com.teamviewer.sdk.screensharing.internal.gui.widget.d.<init>(SourceFile:48)
at com.teamviewer.sdk.screensharing.internal.c.a(SourceFile:365)
at com.teamviewer.sdk.screensharing.internal.c.a(SourceFile:147)
at com.teamviewer.sdk.screensharing.api.TVSessionFactory.createTVSession(SourceFile:56)
I omited the timestamp and some prefix indicating that it's an error entry.
That resource ID does exist in the generated r.java file, and when I look at values.xml in the res\values
subfolder of that SDK I see it declared as <dimen name="tv_session_overlay_hitbox_offset_x">14dp</dimen>
In the R.java file it's declared as:
public static final class dimen {
[..]
public static final int tv_session_overlay_hitbox_offset_x=0x7f05000c
[..]
}
Now one final thing: to even get at that point we had to change the package name in AndroidManifest.xml
of that SDK from com.teanviewer to com.teanviewer.sdk.screensharing, as otherwise the generated output
of the r.java file would have been placed at the wrong place and would not have been found at runtime.
This is a bit sucpicious to me, wouldn't that mean that a java developer would have to do the same?
But otherwise how to find out more about that ressource issue? It really blocks.
Greetings
Markus
Connect with Us