How do you know where Stub() is coming from in an open project?



  • There's this open project on google-code. https://code.google.com/p/open-gpstracker/source/browse/OpenGPSTracker/application/src/nl/sogeti/android/gpstracker/logger/GPSLoggerService.java?name=release_1.3.5 I can't figure out where the method comes from. .Stub() In 369 lines, I have a studioo in Android, it burns red and says Cannot resolve symbol 'Stab'. What is this Stub() method?

    Compilation does not solve the problem, makes a mistake.

    C:\...\gpstracker\logger\GPSLoggerService.java
    Error:(336, 58) error: cannot find symbol class Stub
    Note: C:\...\gpstracker\logger\GPSLoggerService.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.
    Information:BUILD FAILED
    Information:Total time: 7.315 secs
    Information:2 errors
    


  • IGPSLoggerServiceRemote - is a remote AIDL-interface, which serves to communicate (referencing) between the client and the service - an interface written in a special language established for such cases - Android Interface Definition Language (Interfays android description language).

    In order for the interface written in AIDL to exist in the programme, it must be converted into Java code. This process is being carried out when the project is assembled with the Utilities of Android SDK.

    Stub - is an abstract class (and not a method) that is incorporated into the AIDL-interface in Java-code, which is automatically created when the project is assembled (in the case of AIDL-language in Java-Fail interface). Through this class, AIDL-interfeis is being implemented directly on the client ' s side in the form of a Java facility. Similarly, all methods declared in the AIDL Interface must be specifically implemented through this class.
    In fact, through the class Stub A full Java-realization of the interface described in AIDL is being established.

    http://developer.android.com/intl/ru/guide/components/aidl.html


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2