Android :: Including Jar Files With My Application
Jul 16, 2009
When I added the JExcelAPI http://jexcelapi.sourceforge.net/ to the class path and run my app.
I get: trouble writing output: shouldn't happen [2009-07-16 14:32:19 - xxx] Conversion to Dalvik format failed with error 2.
View 3 Replies
Jan 12, 2010
I have a library-only Android eclipse project (no main class, only library classes) that I want to include in my main Android Application project. I went to the Build Path and added the library project to the "Required projects on the build path" on the Projects tab, and checked it on the "Order and Export" tab. However, when the application is run, it emits VerifyError exception, because the class from the library project didn't happen to be packaged together in the apk.
View 1 Replies
View Related
Nov 12, 2010
I included a WebView in my activity and load some Javascript in it which is then going to get data from an external website.This works and displays fine but the problem is that my activity doesn't scroll when the WebView is done loading so I can't see the bottom of the WebView such as all the other Views I put below this.
View 2 Replies
View Related
Mar 21, 2009
In my Android app, I always get VerifyErrors! And I cannot figure out why. Whenever I include a external JAR, I always get VerifyErrors when I try to launch my app (except for once, when I included Apache Log4j.) I usually get around this by taking the source of the library and adding it to my project, but I am trying to put the GData client library (http://code.google.com/p/gdata-java-client/). I can get this in source, but it's dependencies (mail.jar, activation.jar, servlet-api.jar) I cannot, so I get verify errors. I would like to get to the root of this problem once and for all. I looked on the internet, but they all seem to talk about incomplete class files? which I do not know of.
View 7 Replies
View Related
Oct 30, 2009
I have some external sqlite files I'd like to include with my app. It looks like I can add them to the /assets folder, then read them from there? Is the /assets folder the appropriate location for them?
I've used SQLiteOpenHelper to open databases my app creates at runtime, which just uses a unique db name. Will the sqlite files in the assets folder also be accessible using SQLiteOpenHelper in the same manner?
View 5 Replies
View Related
Oct 28, 2010
Am downloading a ZipFile from web. where it contain folders and files. Uncompressing them using zipInputstream and zipentry. zipentry.getName giving name of file as "htm/css/aaa.htm". so i am creating New File(zipentry.getName); But problem it throwing an exception File not found. i got that it is creating subfolders htm and css. My question is that , how to create a file including its sub directories , by passing above path?
View 2 Replies
View Related
May 3, 2010
i'm trying to include a maven java project into my android project. the maven project is the greader-unofficial project which allows developers access to google reader accounts, and handles all of the http transactions and URI/URL building, making grabbing feeds and items from google reader transparent to the developer. the project is available here:
the code is originally written for the standard jdk and uses classes from java.net that are not a part of the standard Android SDK. i actually tried to manually resolve all dependencies and ran into a problem when i got as far as including com.sun.syndication pieces required by the class be.lechtitseb.google.reader.api.util.AtomUtil.java... some of the classes in java.net that are in the standard jdk (i'm using 1.6) are not in the Android SDK. in addition, resolving all of these dependencies manually is just ridiculous when i'm compiling a maven project that should be pretty simple.
however, i can use maven to compile the sources with no issue. how can i include this maven project, which is dependent on the complete jdk, into my android project in such a way that it will compile so that i can access the GoogleReader class from my android project? and for the record, i don't have the expertise to rewrite this entire api to work with the standard Android SDK.
View 2 Replies
View Related
Oct 29, 2009
The app I'm working on has 4 tabs, 3 of which share many features, including a navigation bar a the bottom with Back, Edit, and Map buttons. There is exactly the same xml in all 3 layouts, so I'm trying to DRY this out by extracting that xml into a separate component, including it, and then going from there. Previously I had:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/showedit_toolbar" style="@style/showItemToolbar">
<ImageButton android:id="@+id/show_person_back_button"
style="@style/blackToolbarButton"
android:src="@drawable/left_white_arrow"
android:layout_alignParentLeft="true"/>
<Button android:id="@+id/show_person_map_button"
style="@style/blackToolbarButton"
android:text="map" android:layout_alignParentRight="true"/>
<Button android:id="@+id/show_person_edit_button"
style="@style/blackToolbarButton"
android:text="edit" android:layout_toLeftOf="@id/show_person_map_button"/>
</RelativeLayout>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_above="@id/showedit_toolbar"
style="@style/CoinLightTheme">
// Lots more layout omitted
I extracted out the bit that's repeated into an xml file called show_toolbar.xml, changing the names of variables to make it more generic across the 3 views
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/show_toolbar" style="@style/showItemToolbar">
<ImageButton style="@style/blackToolbarButton"
android:src="@drawable/left_white_arrow"
android:layout_alignParentLeft="true"
android:id="@+id/show_back_button"/>
<Button android:id="@+id/show_map_button"
style="@style/blackToolbarButton"
android:text="map" android:layout_alignParentRight="true"/>
<Button android:id="@+id/show_edit_button" style="@style/blackToolbarButton"
android:text="edit" android:layout_toLeftOf="@id/show_map_button"/>
</RelativeLayout>
Then from within my original layout file, I replaced that big block of code with
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layout_width="fill_parent">
<include android:id="@+id/show_toolbar" layout="@layout/show_toolbar"/>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layout_width="fill_parent"
android:layout_above="@id/showedit_toolbar" style="@style/CoinLightTheme">
Now, the problem is that the view no longer shows up. Including Custom component causes it to be hidden behind main viewI can still click the buttons and they respond (i.e. if I click in the corner where the button should be, it still works), but I cannot see the buttons or bar onto which they were drawn. I cannot find very good documentation on how Include is supposed to work, so perhaps I am using it incorrectly.
View 1 Replies
View Related
Jun 20, 2012
I picked up a Zeki TB782B for my kids to use and I have been really happy with it as an entertainment tablet. I have put my daughters gmail account into it and gmail works great, but contacts app does not show up anywhere including apps. It is on the tablet as a native app, Titanium is backing it up and it seems like it should be running. I rolled back the system updates to the app and still nothing.
View 7 Replies
View Related
Oct 30, 2010
I have a new Galaxy S. If I go to Market and install an application, everything is done automatically without giving me options.
So, my questions:
a. What is/are the files that are downloaded?
b. Where are files saved to?
c. What happens during installation? Is there just one binary? Or a binary with lots of other files? How can I find out the files that belong to a particular application.
If it is a paid application, how can I save it so that I can reinstall again. I am having so much trouble learning this new phone that I have to restore it to factory state already twice on the first day.
View 7 Replies
View Related
Sep 20, 2010
Will Android Phones or Apads ever have an Application that allows the user to EDIT a pdf file, not just view or read it?
View 3 Replies
View Related
Jul 31, 2010
Disabling / removing apps (including 2.2) here is list
View 49 Replies
View Related
Sep 6, 2010
What will be the best storage choice for an application with huge amount of mb in media? The application will not be in android market.
First choice was to use assets/ folder. At least, 160MB of audio is shipped with the application. When I moved all the media to the assets/ folder, I end up with:
"Conversion to Dalvik format failed: Unable to execute dex: null"
And reading: http://code.google.com/p/android/issues/detail?id=2328 suggest me that maybe it's not such a good idea to ship all the media in an .apk file. I think that the problem has nothing to do with large .java files, as it arises when I copy the bunch of audio to assets/.
I was thinking in using the sd card storage. But, I don't want the user to accidentally remove the media files. I want it to be private, not accesible to possible deletions. So, another approach is to use the private storage and download the media in the application first run, or something like that.
View 11 Replies
View Related
Oct 14, 2010
I've created an application which uses around 15 small audio files. Right now I'm using mp3 files and each is around 200KB. These files are stored in my res/raw directory. I'm using SoundPool class to play the files in my application. I'm hoping to put this application on the android market place. Can one of you suggest what is the best way to store so many audio files? Will my application be scalable? Is wav or ogg format better approach instead of mp3? Please let me know.
View 3 Replies
View Related
Jul 20, 2010
I am looking for an application that can handle large PDF files smoothly. I have tried adobe reader, pdf viewer and RepliGo. They were not very impressive, therefore I have come here for suggestions. Repligo reader I think was better out of the three but I couldn't view a PDF file that had scanned images on it. Was hoping someone could recommend an app that could handle large PDFs and PDFs that contained scanned images.
View 2 Replies
View Related
Sep 11, 2010
I m designing a big android application, where there are XMLs to store temporary data, images captured by camera and other details. Which is the best way to protect them from outer access from phone or from PC. XMLs can be encrypted. And images too, however there are times when they need to be accessed very often and encrypting-decrypting is very heavy operation. XML encryption is manageable but images cause memory problems. Is there any alternative way, something at folder level ?
View 2 Replies
View Related
Sep 7, 2010
I want to build an application that is able to read .CSV files. These .CSV files are downloaded NOT from within the application but just the regular Android browser. Now, when I start my custom application, is that download available to me? Any examples?
View 2 Replies
View Related
Aug 19, 2009
Can we assume that App can write to /sdcard some file? What can be reason one cannot do that? I could not find any documentation on sdcard rules in google docs.
View 6 Replies
View Related
Feb 26, 2009
I am developing a small application using file operations. when ever application lunches I am writing some information about the app user in the location of "/data/anr/". While deleting the application i want to remove those files in that location. Can any one suggest me how to do this? Is there any permission needs to be added?
View 2 Replies
View Related
Sep 28, 2010
As of yesterday my predictive text has gone weird. It seems to be making very odd choices of words when I'm typing a text. It also seems to be including some foreign language characters which I think are Turkish. I've checked the language settings and it's definitely set to English. The problem isn't application specific as I've tried both the default messages application but it appears to be specific to the Touch Input keyboard as SwiftKey keyboard appears to be ok. I've tried rebooting but it's the same deal. I prefer the default keyboard so I really don't want to go to another one.
View 1 Replies
View Related
Feb 25, 2010
SO i pushed the volume rocker down all the way to silent on the sprint hero for my weekly office meeting, thinking that the phone was completely muted, and then I opened up gang wars on the phone and it started BLARING rap music on full volume through the speakers!!! WHAT IS WITH THIS??? Would the stupid phone know to mute everything? Or did I do somethign wrong and not doing this properly? My old treo had a volume kill switch on the top of the phone and NO sounds would work. Is there any way to quickly MUTE all sounds without having to also go to settings sounds media and scrolling it down to zero?? also, even when i set the media volume down, a lot of times an app causes it to be set to high again. WHATS WITH THIS?
View 12 Replies
View Related
Jun 2, 2010
A little advice please. i have been messing around constantly with my desire since i had it, about 3 weeks. Installing apps, uninstalling apps, etc, etc. It has become a little laggy, certainly not as fast as when it first arrived. The main things that concern me are how to backup all of my contacts, including their pictures. As this has taken me some time to compile. I have backed up my contacts to the sd card, but i dont think this does the pictures as well.
View 13 Replies
View Related
Aug 21, 2010
I've rooted my device, and there are some things I don't like about it, I'm also running a 'hacked' 2.2 not the ota one, basically I want everything back to normal so including the os. How do I do this?
View 2 Replies
View Related
May 3, 2010
I have an application that can read and write txt files to the phones sdcard. By using this code for reading files:
@Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); mFileNameOpen = files.get(position);
String st = null; mVector.clear();
notepad.mNewEmpty = false; try { File f = new File(Environment.getExternalStorageDirectory()+"/ notepad/"+mFileNameOpen); FileInputStream fileIS = new FileInputStream(f);
BufferedReader in = new BufferedReader(new InputStreamReader(fileIS));
do { st = in.readLine();
mVector.add(st);
}while(st!=null); in.close(); ...
} catch (FileNotFoundException e) { e.printStackTrace();
} catch (IOException e) e.printStackTrace();
and this to write them:
try { File root = Environment.getExternalStorageDirectory();
File fileCheck = new File(root, "/notepad/" + fileNameSave + saveExtension);
boolean exists = fileCheck.exists();
if (!exists) { if (root.canWrite()) { File textFile = new File(root, "/notepad/" + fileNameSave + saveExtension);
FileWriter textWriter = new FileWriter(textFile);
BufferedWriter out = new BufferedWriter(textWriter);
out.write(SAVEAS); out.close(); written = true;
} else { written = false; else { written = true; showMaybe = 1; showDialog(DIALOG_SAVE_EXISTS);
catch (IOException e) {Log.v(getString(R.string.app_name), e.getMessage());
This has been working fine on my Tattoo and all the emulators I've tried this on. But it does not seem to be working on moto droid. Is there something different to consider with moto droid? Or have I missed something in the manifest maybe?
View 11 Replies
View Related
May 3, 2010
I am building an app on android and running into an error and while searching on net, came across your posting on this and changed the eclipse.ini to increase Xms and Xmx params but still this error does not go away. I am using Eclipse IDE for Java with Andrioid SDK 2.1 on Mac OS. Please help or please point me to someone who might know. Btw, this error only happens when i add external jar files (which i need for my project). here are the list of external jar files that i have in my classpath.)
// httpclient-4.0.1.jar from apache
// httpcore -4.0.1.jarfrom apache
// commons-codec-1.3.jar from apache
//commons-logging-1.1.1.jar from apache
// json_simple-1.1.jar from google ........
View 3 Replies
View Related
Jun 10, 2009
I am working on an android app that needs to act on a few data files totaling around 30MB. I put together a test and the emulator failed with OutOfDiskSpace. Debugging on a device failed with even a smaller data size. After reading through the google groups, it appears that the application size limit isn't stated anywhere and nobody from google has been forthcoming with specifics about this. Given that there are iPhone apps that are over 100MB in size, putting such a small limit on Android apps seems weird, except just for the fact that you have a relatively small amount of total available app storage space (< 100MB).What techniques do you use to deal with this limit? If you have an app that needs more than 10MB, do you put it on a web server and deal with downloading it the first time? If so, how do you handle access control so that only your app can get the data?
View 2 Replies
View Related
May 29, 2009
I am new to android and i need to play list of audio files in my application. but where can i put all the audio files as its large in size around 45 MB ? and how can i access it?
View 6 Replies
View Related
Feb 14, 2010
It would be useful for me to have an application to exchange files between my Tattoo and a PC through WiFi.
I was thinking about something standard, like FTP or Windows file sharing.
Do you know if an app like this is existing ?
View 9 Replies
View Related
Aug 3, 2009
I created an application which creates and stores files to sdcard. Is there a way to bind the folder with application in order to delete all files when the user runs uninstall on android device?
View 2 Replies
View Related
May 3, 2010
Is there a way to programatically get the path to the databases/files an application uses instead of hardcoding "data/data/mypackage.com/database.db" ?
View 1 Replies
View Related