0

I've got a problem. I'm using Titanium SDK 5.1.1.GA and on Android I experience that issue: Description of error on Stackoverflow

I checked Titanium SDK source and found that class: TiSocketFactory.java

The code of that class can be found here

How can I change the source code of that class and than to use it in my application?

Community
  • 1
  • 1
Rodion Mamin
  • 141
  • 8

2 Answers2

0

The process of modifying the Titanium SDK source code and building it from source is described in this guide.

Emzor
  • 1,380
  • 17
  • 28
Fokke Zandbergen
  • 3,866
  • 1
  • 11
  • 28
-1

Right now you would need to create a Titanium Module for Android. If your looking to experiment, you could also use Hyperloop to access those APIs directly.

The Titanium Module framework, allows you to extend your Titanium application using native Java. From Appcelerator Studio or CLI, you would create a new Titanium Module project, specifying Android as your target platform. This will generate a module project for you which you can then leverage the code found in the Titanium source to scaffold what your looking to do.

Hyperloop is new tech, and still in beta for iOS and Android (its GA with Windows), but allows you to leverage the Android native APIs directly from JavaScript. You can find sample code in the link to Hyperloop above.

Hope this helps point you in the right direction.

Bert G.
  • 354
  • 1
  • 6