Archived Forum Post

Index of archived forum posts

Question:

Android example error

Jan 04 '13 at 11:56

I have a problem when I try run a example from http://www.chilkatsoft.com/chilkatAndroid.asp. Apparently the error occurs on the System.loadLibrary("chilkatcrypt") instruction. I checked the ...libsarmeabi directory and I found only libchilkatcrypt.so file. Some idea??? Thanks mBarbiero


Answer

I tried to use a proposed solution on http://www.chilkatforum.com/questions/482/how-to-use-the-chilkat-shared-lib-in-an-android-rooted-application, but not works too!


Answer

I solved the problem. Is very simple: Put the line code setContentView(R.layout.main); in example

Instead of:

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv = new TextView(this);

        CkCrypt2 crypt = new CkCrypt2();

        // Display the version of the CkCrypt2 class
        tv.setText(crypt.version());

        setContentView(tv);
    }

I use

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    TextView tv = new TextView(this);

    CkCrypt2 crypt = new CkCrypt2();
    // Display the version of the CkCrypt2 class
    tv.setText(crypt.version());

    setContentView(tv);
}