[Android Q&A, Help & Troubleshooting] Fernandq:
I have downloaded this apk from FTDI which is provided to test their chips. The app lies here: https://play.google.com/store/apps/details?id=com.ftdi.j2xx.hyperterm

I have email FTDI for the source but I get no response at all. So I decompiled it using this process: http://www.souldevteam.net/blog/2012/01/27/how-to-retrieve-source-code-from-an-android-apk-file/

I loaded the project in Eclipse and get an error on the manifest file.

error: Error: String types not allowed (at 'configChanges' with value 'keyboardHidden|orientation| screenSize').

My AndroidManifest.xml:

activity android:label="@string/app_name"
android:name="com.ftdi.j2xx.hyperterm.J2xxHyperTerm" android:launchMode="singleTask"
android:configChanges="keyboardHidden|orientation|screenSize">

This apk build target is android 1.5 api. If I delete the screenSize the error clear but I still cant run the apk in my phone from either Eclipse or if I export and sign the apk file and install directly in my phone. If I set my target for google apis 4.4 (it has to be at least 3.1 for otg to work, no idea why the source shows 1.5 API) then I can leave the screenSize and the error clear but still cant run the signed apk.

I have compiled and installed other apk in my phone so I feel comfortable that I am doing that part correctly.

Not sure what else to add, whatever you gents/gals need from me just ask and I will oblige. I have a log from the Eclipse console but not sure that will help:

2-09 21:01:33.081: W/dalvikvm(7108): threadid=1: thread exiting with uncaught exception (group=0x40bd21f8)
12-09 21:01:33.081: E/AndroidRuntime(7108): FATAL EXCEPTION: main
12-09 21:01:33.081: E/AndroidRuntime(7108): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ftdi.j2xx.hyperterm/com.ftdi.j2xx.hyperterm.J2xxHyperTerm}: java.lang.ClassNotFoundException: com.ftdi.j2xx.hyperterm.J2xxHyperTerm
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1891)
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.app.ActivityThread.access$600(ActivityThread.java:127)
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.os.Handler.dispatchMessage(Handler.java:99)
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.os.Looper.loop(Looper.java:137)
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.app.ActivityThread.main(ActivityThread.java:4511)
12-09 21:01:33.081: E/AndroidRuntime(7108): at java.lang.reflect.Method.invokeNative(Native Method)
12-09 21:01:33.081: E/AndroidRuntime(7108): at java.lang.reflect.Method.invoke(Method.java:511)
12-09 21:01:33.081: E/AndroidRuntime(7108): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:976)
12-09 21:01:33.081: E/AndroidRuntime(7108): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743)
12-09 21:01:33.081: E/AndroidRuntime(7108): at dalvik.system.NativeStart.main(Native Method)
12-09 21:01:33.081: E/AndroidRuntime(7108): Caused by: java.lang.ClassNotFoundException: com.ftdi.j2xx.hyperterm.J2xxHyperTerm
12-09 21:01:33.081: E/AndroidRuntime(7108): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
12-09 21:01:33.081: E/AndroidRuntime(7108): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-09 21:01:33.081: E/AndroidRuntime(7108): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.app.Instrumentation.newActivity(Instrumentation.java:1026)
12-09 21:01:33.081: E/AndroidRuntime(7108): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1882)
12-09 21:01:33.081: E/AndroidRuntime(7108): ... 11 more

I have to mention that the original apk downloaded from the google play works fine and i just want to change the way it display the information and add a few buttons so I can send the most repeated serial commands and some data processing. I have programed in TCL/TK and trying to learn Java now. I have been waiting for 2 years to get the application from the vendor but it is obvious they wont deliver it so I must do it myself.

Any help and guidance will be appreciated. Im just getting started in java/android so the error might be hitting me in the face but I cant see it. If it were TCL/TK i would have it all done no problem. My learning of java is not as quick as I would have hope, seems it is in fact hard to teach new tricks to an old dog.

Thanks!