Android :: Apache Commons Codec With Android: Could Not Find Method
Jan 12, 2010
Today I tried including the apache.commons.codec package in my Android application and couldn't get it running. Android could not find method ord.apache.commons.codec.binary.* and output the following errors in DDMS
CODE:...................
View 2 Replies
Sep 28, 2010
I'm trying to use the Amazon Web Services java sdk jar but it has references to org.apache.commons.httpclient. All I seem to have in my Android sdk is org.apache.commons.http.client, which is a different namespace and obviously causes the build to fail. I'm new to Java and Android dev... is there a way to "map" one to the other or create some sort of symbolic link? If not, does that mean I have to import a "standard" org.apache.commons library?
View 2 Replies
View Related
Jan 24, 2010
Where do I unzip commons-io-1.4-bin.zip so that the import statement can find org.apache.commons.io.FileUtils?
View 2 Replies
View Related
Aug 19, 2009
How to use apache.commons in my android application.
I put the right import, but when I compile it I get the following error:
: package org.apache.commons.io does not exist import org.apache.commons.io.IOUtils;
View 6 Replies
View Related
Sep 16, 2009
I am trying a simple send mail application using apache commons library.
Here is the code.
The email sending code is working fine in a standalone application.However when I try to run it as android application
It gave following error message. trouble processing "javax/naming/AuthenticationException.class": [2009-09-17 05:33:20 - Commons]
Attempt to include a core VM class in something other than a core library. It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine binary, as opposed to compiling an application -- then use the "--core-library" option to suppress this error message. If you go ahead and use "--core-library" but are in fact building an application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message. [2009-09-17 05:33:20 - Commons] 1 error; aborting [2009-09-17 05:33:20 - Commons] Conversion to Dalvik format failed with error 1
I have added mail.jar,commons jars and jndi.jar to the references of eclipse If anybody know a resolution let me know.
CODE:....................
View 2 Replies
View Related
Jan 27, 2010
I'm using org.apache.commons.net.nntp to connect to a nntp server, however running a simple nntp.connect(host, port) crashes the android.
Anyone got any ideas? Do java packages work with android straight out of the box? or do they need editing?
View 2 Replies
View Related
Dec 6, 2009
I am writing a ftp client on android sdk 1.5 with apache-commons-net- ftp-2.0. I can successfully connect to my testing ftp server but with I use listFiles() it return an empty FTPFile[].
I put the same code in a normal java program and it works fine. I don't know where is wrong. Any compatible problem when apache-commons- net-ftp-2.0 and android works together?
Here is my test code:
CODE:..................
It is actually 4 files and 1 directory in the ftp root!
View 2 Replies
View Related
Jul 14, 2010
To enable logging for apache commons HttpClient in normal Java application I used:
CODE:...................
But on android I don't see logs in LogCat.
View 2 Replies
View Related
Sep 13, 2010
I've removed my convoluted and badly malformed question so that it doesn't detract from the very neat and correct answer beneath. Given the (surprising) difficulty of finding an on-line example for doing this incredibly common task, I hope Yoni gets a few more up-ticks for his response.
So the question...How do I use Apache.Commons to upload a file to some destination. I'm using it in Android and uploading to a PHP script, but obviously it can work from any Java program and to any HTTP based listener.
View 1 Replies
View Related
May 14, 2010
In the spirit of using existing, tested and stable libraries of code, I started using the Apache-Commons-Math library and its BigFraction class to perform some rational calculations for an Android app I'm writing called RationalCalc.
It works great for every task that I have thrown at it, except for one nagging problem. When dividing certain BigFraction values, I am getting incorrect results.
If I create a BigFraction with the inverse of the divisor and multiply instead, I get the same incorrect answer but perhaps that is what the library is doing internally anyway.
Does anyone know what I am doing wrong?
The division works correctly with a BigFraction of 2.5 but not 2.51, 2.49, etc...
[UPDATE]
This was indeed a bug in the apache-commons-math 2.0 libraries. The bug is fixed in v.2.1.
It is now listed in the Fixed Issues section of the bug tracker:
When multiplying two BigFraction objects with numerators larger than will fit in an java-primitive int the result of BigFraction.ZERO is incorrectly returned..attempting to reproduce the issue and setting me on the right track.
CODE:.....................
View 1 Replies
View Related
Jan 27, 2010
How do i import org.apache.commons packages into android so i can use them in my applications?
View 2 Replies
View Related
Jul 2, 2009
I got one blog which interacts with servlets... Link as follows
http://groups.google.com/group/android-developers/browse_thread/threa...
In that program 2 libraries were used..
1---> import org.apache.commons.httpclient.HttpClient; 2---> import org.apache.commons.httpclient.methods.GetMethod;
When i check these libraries in my program, its show error....how to resolve this error?
View 11 Replies
View Related
Apr 27, 2009
Is there a method to access the digital output of the audio codec without first storing it into a file, a streaming output?
View 5 Replies
View Related
May 17, 2009
I'm doing a Get and Post method for an android project and I need to "translate" HttpClient 3.x to HttpClient 4.x (using by android).
My problem is that I'm not sure of what I have done and I don't find the "translation" of some methods...
This is the HttpClient 3.x I have done and (-->) the HttpClient 4.x "translation" if I have found it (Only parties who ask me problems) :
CODE:...........
I don't know if that is correct. This has caused problems because the packages are not named similarly, and some methods too. I just need documentation (I haven't found) and little help.
View 4 Replies
View Related
Feb 27, 2010
I have two android projects, ProjA requires ProjB (in Eclipse Properties > Java Build Path > Projects > Add > ProjB). Every thing compiles ok in Eclipse, but when I run ProjA I get an error: Could not find method XXX, referenced from method YYY. Where XXX - is the method from ProjB. How can I fix the settings?
View 3 Replies
View Related
Mar 5, 2010
I was wondering how should I proceed to debug while working with frameworks. Like specifically how can i tell which method is being called when a particular event happens.
View 2 Replies
View Related
May 27, 2009
I've been getting this error "Could not find method javax.microedition.io.Connector.open, referenced from method org.ksoap2.transport.ServiceConnectionMidp."
View 7 Replies
View Related
Apr 27, 2010
I know that I can get some informations from the Sim card by using the TelephonyManager class, but I couldn't find any specific method to get its country and area code, and also if the user is on roaming the area code would probably change to the location he currently is.
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options,
View 2 Replies
View Related
Aug 20, 2010
My Android app runs fine, but: If I insert a call to WebView.setScrollbarFadingEnabled, it crashes saying:
Could not find method android.webkit.WebView.setScrollbarFadingEnabled, referenced from [my class]
VFY: unable to resolve virtual method 289: Landroid/webkit/WebView;.setScrollbarFadingEnabled (Z)V
I am using Android 1.5, not a custom ROM. My app defines minSdkVersion="3" I always clean before compiling.
Is setScrollbarFadingEnabled unavailable in Android 1.5? If so, why don't I receive a compiler error?
View 1 Replies
View Related
Sep 8, 2010
I have a single screen with a bank of buttons below a ListView. Entries on the ListView light up in orange when I scroll so I assume that are selected. When I then press the "Delete" button I want the onClickListener to remove the currently selected entry. But getSelectedItemPosition() always gives me -1. If I can't hope to use the GUI controls in this way, please give me another way of getting the same result.I have even tried setting the onClickListener of the List View to store the index before the button is pressed (in case pressing the button unselects the entry) but even that is always -1 it seems.
View 1 Replies
View Related
Apr 5, 2012
I am developing an application in order to connect to Google Navigator by the following code..
public static void Call_GoogleMapsNavigation(int longitud,int latitud)
import android.app.Activity;
import android.content.Context;
import android.content.Intent;[code].....
View 2 Replies
View Related
Sep 22, 2010
am getting this error: cannot find symbol symbol: method log(java.lang.String) when using method : log("some test", +test);
I have imported import android.text.TextUtils; import android.util.Log;
Still its throwing same error why it is so ?
View 8 Replies
View Related
Jun 17, 2010
I have a pretty big library I developed specifically for use in my Android Application. However business logic itself has no dependency on Android. To preserve that, I used Commons Logging throughout this library and it's respective JUnit tests (which I run in Eclipse).
However now that I am starting to integrate it into an Activity which I launch on Android, I am unable to get my logging to work. In Eclipse/JUnit, I had simply pulled in log4j's jar file as well as a log4j.properties file. This doesn't seem to work when deploying to a device. After struggling with attempting to get that to work for several hours, I gave up and tried replacing all my commons logging stuff with android.util.Log. Now I can log on the device.. but all JUnit tests are broken. When any JUnit tries to log using android.util.Log, it throws a RuntimeException 'Stub!'.
I would prefer to revert to my commons logging approach.. if anyone can help with that.. otherwise.. what can I do to get my JUnit test cases running using 'android.util.Log'?
View 2 Replies
View Related
Aug 4, 2009
I want to import the org.apache.commons.net.ftp.FTP, but there is no libs for it, so I download the commons-net-2.0 lib from apache website,
I try to push this lib into /system/framework/ but I can't because the directory is a read-only filesystem, and I try to chang mode for directory, but can't work! is other methods can use the lib?
View 9 Replies
View Related
Jul 17, 2009
I am developping an API for my web application and get a problem when i try to run my android application.
Log file:
CODE:...........
View 12 Replies
View Related
Mar 16, 2009
I'm trying to write a simple web service client app for Android, and I'd like to use commons-digester to convert the service's XML responses into objects I can work with. However, I'm getting a VerifyError as soon as I try to invoke any Digester method.
I've set up my dependencies (external jars) using Maven (the Masa Android plugin for Maven, and the Maven Plugin for Eclipse). The Masa plugin seems a little bit bleeding edge, so that may somehow be the source of the problem, but I can't be sure.
How can I debug this issue further, and what, if anything, can I do to resolve it? Is it not possible to use a library as simple as Digester on the Android platform?
Here is my complete error output:
CODE:..............
View 2 Replies
View Related
Aug 22, 2009
jarkata commons lib is very useful for our everyday development.is there any porting to android?or is there a good way to porting the jarkart commons libs to the android environment?
View 2 Replies
View Related
May 25, 2010
I am wondering if there is any timeframe for VP8 to be included into Android?Is it possible for me to build and use it myself using NDK to decode/encode video?
View 3 Replies
View Related
Mar 10, 2010
I currently have a Loop back program for testing Audio on Android devices.It uses AudioRecord and AudioTrack to record PCM audio from the Mic and play PCM audio out the earpiece. So as you can see in the creation of the AudioTrack and AudioRecord the Encoding is supplied via the AudioFormat but this only allows 16 bit or 8 bit PCM.I have my own G711 Codec implementation now and I want to be able to encode the audio from the Mic and decode it going into the EarPiece, So I have encode(short lin[], int offset, byte enc[], int frames) and decode(byte enc[], short lin[], int frames) methods but I'm unsure as to how to use them to encode and the decode the audio from the AudioRecord and AudioTrack.
View 2 Replies
View Related
Jul 15, 2009
I was wondering what kind of Audio/Speech Codecs are available for the 1.5 SDK? Are there any Open Source projects working on this?
View 5 Replies
View Related