Dropbox setup/authentication issue on Android - java

I am following all the instructions followed on the getting started Dropbox page but, I get a red mark on AndroidAuthSession, and AppKeyPair and, when i try to import them using:
import com.dropbox.client2.android.AndroidAuthSession;
import com.dropbox.client2.session.AppKeyPair;
I get a "symbol not found" on AndroidAuthSession and Session.
I have imported all the library files: Libs/dropbox-sync-sdk-android.jar and, placed the appropriate .so files: app/src/main/jniLibs/*
which were found in the sdk file download from their site. Could someone help resolve this?

Dropbox provides two different Android SDKs with different capabilities and different classes. The code you have is for the Android Core SDK:
https://www.dropbox.com/developers/core/sdks/android
However, the files you mention, dropbox-sync-sdk-android.jar and the .so files, are from the Sync SDK:
https://www.dropbox.com/developers/sync/sdks/android
If you did mean to use the Core SDK, install that instead, from the first link above. Or, if you did mean to use the Sync SDK, the tutorial is here:
https://www.dropbox.com/developers/sync/start/android

Related

Android JavaCV - UnsatisfiedLinkError and couldn't find "libopencv_core.so"

I use JavaCV 1.1. I have added jar files (javacv.jar, javacpp.jar and opencv.jar) and *.so libraries to my project in Android Studio. I succesfully build and run my app on Android 5.1 phone, but when i try use functions, that used OpenCV i get error:
java.lang.UnsatisfiedLinkError:dalvik.system.PathClassLoader[DexPathList[[zipfile"/data/app/com.example.dogan.ligntningshower-/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libopencv_core.so"
I try to add
static {
System.loadLibrary("opencv_core");
System.loadLibrary("jniopencv_core");
}
but it's no work. How to fix it?
I just add *.so libs to folder /app/src/main/jniLibs/armeabi and now all works fine!
if someone still looking for the answer, first you should check if you added correct files to jniLibs folders. heres a complete tutorial :
A Beginner’s Guide to Setting up OpenCV Android Library on Android Studio
second, if .os files are at their places in each and every folder then you should only change the names to the name that is showing up in the compiler error.
in my case the names were libopencv_java3.so and yet the compiler was saying couldn't find "libopencv_java343.so" . after changing the name to libopencv_java343.so it worked.

OpenCV2.4.9.jar file

I want to use OpenCV library in my android app. I have downloaded OpenCV 2.4.9 and I have performed all the steps mentioned in the tutorial I followed, error was
opencv.android....cannot be resolved
When I searched for this I came to know that I should include opencv_library-2.4.9.jar file. But opencv_library-2.4.9.jar was not present in the file I have downloaded. But then, I have added opencv_library-2.4.3.jar to the project and I am not able to find the 2.4.9.jar file. Can anyone help me in solving the problem?

BaseGame Util cannot be resolved to a type

my project requires BaseGameUtil library
I have BaseGameUtil library downloaded form here
But when i import it in my android project it doesnt show baseGameUtil instead it shows main as added in my eclipse project and even when i add that main library i still get the same error.
Can anyone help me.
I think you may be using the version of BaseGameUtils in here:
...\android-samples-master\BasicSamples\libraries
But you are using Eclipse so you need to use the one in the following location:
...\android-samples-master\eclipse_compat\libraries
You may then also encounter an error with the GameHelper.java class in the BaseGameUtils folders. Use the code available here instead: https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3
BaseGameActivity cannot be resolved to a type
public Class FisrstActivity extends BaseGameActivity{
In your project, right click > properties > Android > in Library section check if your library is correct and don´t show any red cross.
Check the same for your BaseGameUtils library, probably the reference to google_play_services is incorrect.
you problem must be similar to : android - import - with developers google com games
Basegameutils from github includes all source .java files in java folder. When implementing in eclipse, move all these folders from 'java' to 'src'. Eclipse compiles them to produce .class files which fixes this problem.

eclipse can not locate my foregroundcameraplugin.xml file

so im making this cordova / phonegap application.
I found out that The default Phonegap (Cordova) Camera Plugin calls the native camera and this makes Android Garbage Collector to kill background applications.
so I found a plugin that fixes this :
https://code.google.com/p/foreground-camera-plugin/
now I followed the steps as these guys told. and I'm having the following problems that I cant resolve and need help on.
There was a problem with the cameraActivity.java it did not recognize thegenerated file R.java
then I used an import statement to make it have access to this file
import statement : import java.android.R;
after this eclipse doesnt recognize the foregroundcameraplugin.xml.
besides this my my styles.xml files in values-v11 and values-v14 directories are giving an error
"Error retrieving parent for item; no reources found that match the given name #android: Theme.Holo.Light.DarkActionBar "
this is how my forground camera plugin looks like :
If anyone knows how too fix this please let me know
thank you
I was able to reply the error with the new Eclipse Kepler and found the solution: upgrade your ADT to version 22 and install Android SDK Build-tools by SDK manager. I have also commited a new classpath file for ForegroundCameraPlugin project with some changes (included Android Private Libraries). Thanks to your contact and the help of this link: Eclipse giving error, missing R.java file after recent update

Broken Package links for ksoap2 .jars?

I'm currently trying to build a little application on android that is using a webspace but the problem ist that if I want to download a ksoap2 package (e.g. ksoap2 with all dependencies 2.5.2 from here) the filesize is 21.6KB after downloading. But the table says 141KB.
This is resulting into printing out errors when I try to import it as an external library (not compatible to Dalvik) which is un derstandable because the archive is corrupt/broke.
Can someone give me a link where can download a proper .jar-archive?
(2nd question: how do I use the javadocs? do I have to set them into the path if I click on the external libraries dialog->ksoap2...->javadoc ?)
thanks in advance
I've uploaded the latest Ksoap2 Version. It can only be downloaded 10 times.
http://rapidshare.com/files/434471358/ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar
But I see, you've alredy fixed it. ;)

Categories