Tag: eclipse

“R cannot be resolved to a variable” just after creating android project?

This question already has an answer here: “R cannot be resolved to a variable”? [duplicate] 30 answers

Increasing the visibility of a view on Swipe using Gestures in android

I am using following code private GestureDetector.OnGestureListener mGestureListener = new GestureDetector.OnGestureListener() { private float lastDeltaValue; private static final int MIN_DISTANCE = 15; private static final int MIN_DISTANCE_Y = 25; @Override public boolean onDown(MotionEvent e) { lastDeltaValue = 0; return false; } @Override public void onShowPress(MotionEvent e) { } @Override public boolean onSingleTapUp(MotionEvent e) { return […]

How can I add a generated Source Folder to my Source Path in Gradle?

I use annotation processing. Therefore I use the apt plugin. It generates new java sources in build/source/apt. Here is my build.gradle: apply plugin: ‘java’ apply plugin: ‘eclipse’ apply plugin: ‘apt’ apply plugin: ‘war’ apply plugin: ‘gwt’ apply plugin: ‘jetty’ sourceCompatibility = 1.7 version = ‘1.0’ eclipse { classpath { downloadSources=true downloadJavadoc=true } } buildscript { […]

How to configure Tesseract in Eclipse for Android development?

I have been working on android from 6 months. So I have basic idea about Android development. Now I want to develop an OCR Android app using Tesseract. For that I have downloaded android-ndk-r6b, tess-two from Tesseract, Cygwin for Windows and installed C/C++ developer in Eclipse. And I followed these two links: 1.http://www.itwizard.ro/interfacing-cc-libraries-via-jni-example-tesseract-163.html 2.http://gaut.am/making-an-ocr-android-app-using-tesseract/ but […]

R.java is not generating due to appcompat v7?

I am using Eclipse, I added the appcompat lib to my project ands suddenly the R.java file is not generating. But in my Console it is showing like this whenever i clean the project. [2014-11-02 18:50:16 – Client] G:\ProgramZ\workspace\android-support-v7-appcompat\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name ‘android:Widget.Material.ActionButton.CloseMode’. [2014-11-02 […]

How to Avoid Launching the Android Application Twice ,Running from Eclipse to real device

I am Running the application from eclipse and it’s being launched twice: first time launching the app, then again relaunching after few seconds My app Splash Screen—>> Main activity(Both Opening twice). i already tried adding android:launchMode=”singleInstance” in my manifest file, but not success. i have tried 3 different applications from my eclipse still opening twice […]

Android SIP application using Linphone

I am working on SIP application and using Linphone Library i have a little confusion while setting up the library to run the project. Step 1: Firstly I Downloaded NDK on my Mac with the new Android SDK pkg. Then gaved the PATH of my NDK folder in ADT -> Preferences -> Android -> NDK […]

Qt C++ library in Android Eclipse project: QSQLITE driver not loaded

I’ve created a Qt dynamic lib that uses Qt SQL to open an SQLite database, but I’m getting this error: QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers: The DLL was working fine as part of a Qt Android application, however I need to use it through JNI from an existing Java application developed in […]

Eclipse Workspace Best Practices

So far I’ve used Eclipse to develop just one product, but now I’m starting another, totally independent project (both are Android apps). So is the common practice to develop each project in its own workspace? I’m not extremely familiar with Eclipse, but it seems to do some things by searching all the projects within the […]

ADT wont update to 23 because of dependency conflict

I am just starting android dev and was launching adt for the first time after installing all the past APIs from the sdk manager (down to 2.2 froyo) and i get an error telling me to update, but when it checks for an update it says no new updates. moreover when i try to manually […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.