Why is Android Mobile SDK connect.iq broken? - android

Downloaded Garmin Android Mobile SDK.
Unzipped it.
Copied it to Libs in my project.
The file looks like it has a vertical zip on the icon.
Unable to open and view the file in Studio.
Unable to get the instance of ConnectIQ object as Studio unable to resolve the symbol ConnectIQ which is therefore shown in red.
What do I need to do to get this working?

Thanks for that Mikkel. We are both right. The file is named connectiq.jar BUT it is not a jar file! You have to unzip it and it is full of bloat including the connectiq.jar file itself. How typically Garmin.

Related

Problem linking .so and .lib on android studio

I'm having trouble linking some files to my project. It's an android studio project and I want to link one external file: "Emv_lib.so" (I know that are some questions on how to link .so files, but those are about internal .so files, this is an external one.)
Beside this file, I have an emv_lib.lib and emvIIapi.h (the header file that actually contains the functions that i need to call). I cannot get this to work. I tried with CMakeList, putting the emvIIapi.h file in there, but it comes with the error: "Execution failed for task ':app:configureCMakeDebug'.
C/C++"
I follow some suggestion, to create in src/main the folder jniLibs and put your .so files in there, but it didn't work.
From my undestanding, I have to compile, somehow, either the .so files or the .lib file.
I'm new to android studio, so don't go hard on me. Thank you for your time!

How to set the local cpp source path in Android studio for prebuild library

I created an App which includes our source code as a native lib (so-file). I'm able to step into it and everything works fine so far with this code.
This native lib links against another native lib which was pre-build on a different machine and which I copied into the jni-abi-folder. I have checked out the svn-repository of this so-file in a different folder parallel to my project and need to be able to debug also into it.
When I now do a break, I can see the method names in the callstack so I assume that the symbols can be loaded, but Android Studio doesn't know where to find the source files.
Under Visual Studio, when I did a break, I could specify the symbols in the symbol path and then an error was displaced that I should navigate to the corresponding source file. Then I only needed to navigate to the folder and it was working.
How can this be done with Android Studio - I have the newest version 3.2.1 installed.
I finally found the solution.
I got a stripped version from my colleague, he basically gave me the version inside his apk which is stripped. Now he gave me directly the build version (I think it is located somewhere in the intermediate directory or so, just search for the name of the lib).
Under Run\Edit Configurations\Debugger\LLDB startup commands the original source directory can be mapped to the source directory on my computer which is different. To achieve this, enter "settings set target.source-map or-dir cur-dir"
There should be a way to find out the original source directory from the so file, but I don't know it right now.
I hope this can help somebody else

VFS for zip files on android

I need a library that can open zip file like virtual file system programmatically and work with inner files and directories (read JSON, install apk). Is there are any library for that? The main thing, i shouldn't extract zip.
As far as I understand the problem , You can use it. https://github.com/hzy3774/AndroidP7zip

Android Eclipse: Archive for required library: cannot be read or is not a valid ZIP file

I am trying to integrate facebook to my android app. I followed facebook tutorial and imported facebook-android-3.14 into Eclipse. However, I got problems with some hidden files, I think. I did google a lot but still cannot figure it out.
It seems that I have to remove the hidden files like '._bolts.jar' from Android Private Library (libs folder) but I could not see it even when I turn on viewing hidden files on Mac. Any one have ideas? Thanks in advanced.
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/AudienceNetwork/samples/AdUnitsSample/libs/._AudienceNetwork.jar' in project 'AdUnitsSample' cannot be read or is not a valid ZIP file AdUnitsSample Build path Build Path Problem
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/AudienceNetwork/samples/NativeAdSample/libs/._AudienceNetwork.jar' in project 'NativeAdSample' cannot be read or is not a valid ZIP file NativeAdSample Build path Build Path Problem
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/facebook/libs/._bolts.jar' in project 'FacebookSDK' cannot be read or is not a valid ZIP file FacebookSDK Build path Build Path Problem

Error in creating a pdf file android

I am new to Android programming,my task was to create a pdf file in adroid
First I created a Java project using Eclipse (projectA) , wrote code in java to generate a pdf file using itext (Added jars to the project) and its working fine.
Now I created another Android project (ProjectB) , and added the itext jars (similar to projectA) and code, but it is not working properly
Error : Error generating final archive: Found duplicate file for APK: com/itextpdf/text/LICENSE.txt
Origin 1: /home/SudheerB/workspace-Ecclipse/NeedAnalyserTool13/libs/itextpdf-5.3.3-sources.jar
Origin 2: /home/SudheerB/workspace-Ecclipse/NeedAnalyserTool13/libs/itext-xtra-5.3.3-sources.jar
Can someone help me on this?
It is very simple. You are using jar files which have some common classes. so during the generation of apk file, duplicates files are being found.
just use one of the jar files. either "itextpdf.jar" or "itextpdf-xtra.jar". your problem will be solved.
Remove the sources jars from your project and at least that error should go away.
Seems like you're using the jars that are available for Java instead of the Android/GAE port. Please switch to using the official port for Android and Google App Engine. That will solve your problem. This port isn't available from SourceForge, you need to fill out the form at http://itextpdf.com/sales/ and they'll send you a link where you can download it.

Categories

Resources