EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Trouble with MsgConnect and Android

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
Posted: 04/27/2012 07:18:18
by Nicolas Ciezki (Standard support level)
Joined: 04/26/2012
Posts: 13

OK, thanks.

I'll try to use MsgConnect with delphi while waitng for, but I really need to use it with Android.
Posted: 04/27/2012 07:42:05
by Eugene Mayevski (Team)

There exists at least one solution - add source code of MsgConnect directly to your application (without JAR). Nevermind I have to check the sample to see what could be wrong.

Sincerely yours
Eugene Mayevski
Posted: 04/27/2012 11:14:28
by Eugene Mayevski (Team)

I have successfully compiled and run the sample by taking the following steps:

1. Create new workspace.
2. Open .classpath file and update MsgConnect entry there as follows:


<classpathentry exported="true" kind="lib" path="../../Core/MsgConnect.jar"/>

I used the absolute path in my test but the above path should work as well.

3. Use Import... command to import SendNote project into workspace.

4. The compiler *can* complain that run() method must override the descendant. The strangest thing is that @Override directive is present, and to fix the problem you need to *comment* that Override directive. Another strange thing is that the original code worked in original project and workspace, so the glitch is specific to some settings.

Once the changes above are made, the project is run under the emulator successfully.

Sincerely yours
Eugene Mayevski
Posted: 04/30/2012 02:47:17
by Nicolas Ciezki (Standard support level)
Joined: 04/26/2012
Posts: 13

Hello !

I just tried it and it works perfectly ! Thanks a lot for your support !

Now I'll checkout the source to understand how it works. I'll come back if I need.

By the way, about the run() method error : Eclipse is defaulting to Java 1.5 and you have classes implementing interface methods (which in Java 1.6 can be annotated with @Override, but in Java 1.5 can only be applied to methods overriding a superclass method). Go to your project/ide preferences and set the java compliance level to 1.6. That's why the compiler *can* complain, it depends on the java compliance level ;-)



Topic viewed 13170 times

Number of guests: 2, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!