Android :: Standard Libraries Not Imported In Phone Project
Mar 7, 2010
I'm new to Java/Eclipse/Android, so this is probably an easy (if not stupid) question:
After creating a new Android project, I want to import some (what I think are standard) Java libraries. However, some import statements throw an error:
HelloAndroid.java:
import java.awt.Color; (The import java.awt.Color cannot be resolved)
import javax.imageio.ImageIO; (The import javax.imageio cannot be resolved)
while others don't:
import java.io.File; (no error)
I've done some googling and tried to add these classes to my class path by going to project->properties->libraries but I haven't been able to figure out what to do exactly.
View 3 Replies
Nov 22, 2010
The Three20 project is really nice for building iPhone apps quickly using common libraries:
https://github.com/facebook/three20
Is there anything like this for Android?
View 2 Replies
View Related
Oct 9, 2010
As I am very pissed off of using the emulator to develop any Java class, I thought of setting up a project in Eclipse and instead of the usual JRE I linked to the Android.jar (version 2.1) that usually the Android projects link to. I don't mean to use this to develop Layouts or other specific platform things, I was just trying to create a class that uses HttpClient.
It miserably crashes like this.
CODE:.............
I mean I'd like to develop libraries (and test them) so that when I go to the emulator I don't have to deal with them. Is there a good way to do this? This seems not to work for some reason.
View 1 Replies
View Related
Aug 6, 2010
I'm trying to build a project in Android 1.5 that references another Android (library) project compiled against Android 1.5 and I keep seeing this error in the Console in Eclipse:
Target 'Android 1.5' does not support building project with libraries.
I'm running Eclipse 3.5, and version 0.9.7 of the ADT.
I followed the instructions here:
http://developer.android.com/guide/developing/eclipse-adt.html
What gives?
View 1 Replies
View Related
Sep 1, 2010
I'm trying to use the JJIL libraries with my Android project:
http://code.google.com/p/jjil/
I followed all the instructions on importing libraries into eclipse on the android guides, and have had no successes. It just fails to import.
Can some one point me in the right direction with this?
View 1 Replies
View Related
Apr 3, 2010
I have a project that I would like to add external libraries to (and have them packaged with the application) but I am not sure it is happening. I read on this link:
http://developer.android.com/intl/fr/guide/appendix/faq/commontasks.html. how to, but they do not show up in any of the /data/data/project directories. Does anyone know how I can confirm that the libraries were in fact added to the project for use at runtime?
View 1 Replies
View Related
May 2, 2010
I'm trying to develop an external library (not sure if that's the right term) to provide prepackaged functionality in Android projects. Working in Eclipse, I've added the appropriate android.jar file to the build path, and everything is happy both while editing and upon compilation.However, when I use Android's Handler and Message classes (android.os.Handler, android.os.Message) for inter-thread communication, I get exceptions unless I'm running within an Android app, on the emulator or a device. I can no longer test my library in a "standalone" way without having to go through a running Android target.Is there any way for me to include these two Android classes and still be able to test my library standalone? Do I need to have the Android source available? Or would it require some sort of conditional compilation hand-waving?
View 1 Replies
View Related
Jul 28, 2010
I own a Droid, and consider myself fairly savvy in the Android world, however my wife recently got the Ally and is having a problem editing her contacts. So when she initiqally booted up the phone it walked her through logging into google and facebook, etc, and it imported all those contacts into the phone, however, she wants to add in their phone numbers now, but its not letting her. We click on the menu button, click eedit contact, but then there is no way to edit or add phone numbers.
View 5 Replies
View Related
Jul 13, 2010
My app uses location services, and has the manifest entry:
<uses-library android:name="com.google.android.maps" />
Does anyone know if these libraries are guaranteed to be included on every Android phone? If not, how would I know if they are not there?
View 8 Replies
View Related
Aug 21, 2010
I have a problem: Cant load library with my phone, but an other can open it, why?
CODE:..............
And yes, the other lib is there too.
View 2 Replies
View Related
Oct 26, 2009
so i made a wonderful discovery this weekend that my phone will take a charge from my CD deck in my car that has a USB jack. my concern is, that it may end up damaging the phone somehow and i was beyond paranoid. does anyone know if it is a safe thing to do? Does the USB standard have a standard power output?
View 6 Replies
View Related
Jun 22, 2010
I have just got the new Samsung Galaxy S phone, which after using Nokia N97 is a brilliant phone. My main issue is that it doesn't have standard phone profiles yet the function manual I downloaded from the Samsung site clearly says it does? Any ideas? Not a major issue but I guess I just got used to having profiles. Secondly, is there a way to sort the photos in the gallery into different folders? For example in months or tags?
View 1 Replies
View Related
Nov 10, 2010
I have a text file that I am pulling from my SD card which contains an array in plain text format. Here are the contents of that file ...
http://www.oddree.com/rayhaque/android1.jpg,http://www.oddree.com/rayhaque/android2.jpg,http://www.oddree.com/rayhaque/android3.jpg,http://www.oddree.com/rayhaque/android4.jpg,http://www.oddree.com/rayhaque/android5.jpg
I am trying to import that text file into a String, convert that String to an array, and then load that array into a list adapter. If I try to split up readString or a trimmed result of readString, I get a forced close every time. If I copy the contents of the file into a String and then use that ... everything works as expected. So what is the difference between loading this stuff from a text file, and loading it from an included string? Is it a byte conversion issue? Code...
View 1 Replies
View Related
Sep 13, 2010
Is there anyway to get rid of the standard email app on my Android phone? It seems to be permanently stuck there in the bottom dock (along with "Phone", "Browser" and "Applications").
Since I use Gmail and the Gmail app, the built in Email app isn't used and I would much rather switch the icon there with the Gmail app. Is this possible somehow?
View 2 Replies
View Related
Mar 21, 2010
Somethings I'll have an? .xml file selected when I compile a project, only to have a? .out.xml generated. Deleting the file doesn't clear the error, and Eclipse won't compile the project. It just reports that your project contains errors. The solution is to go to Project/Clean. This will clear the error in the project and allow it to compile.
View 6 Replies
View Related
Aug 11, 2010
I can now get our Android project to talk to our non-Android project. But there's still an issue: I are trying to have an Android class call a non Android Hello World class. I tried compiling our non-Android Hello World class in a separate Eclipse workspace. I then packaged it into a jar. I imported that jar into our Android Hello World class.
I then called one of the methods in the non-Android Hello World class. When I ran the Android Hello World class as an Android application, the following runtime error occurred. Here are the Android debug logs:
08-11 09:07:56.764: ERROR/AndroidRuntime(333): FATAL EXCEPTION: main
08-11 09:07:56.764: ERROR/AndroidRuntime(333): java.lang.ExceptionInInitializerError
08-11 09:07:56.764: ERROR/AndroidRuntime(333): at com.hello2.hello2.onCreate(hello2.java:27)
08-11 09:07:56.764: ERROR/AndroidRuntime(333): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1047).....................
View 1 Replies
View Related
May 15, 2010
I want to change standard resources, such as button background, programatically to allow applications using standard buttons be displayed with custom background. My problem is - how shall I identify the path for retrieval resources on phone or emulator? And if we have permissions to access to those resources?
View 1 Replies
View Related
Jun 6, 2010
I have 2 android projects out of which I modified one to work as a library. I want the main project to refer to this library to perform few functions. While this scenario works just as expected, I want to introduce one more functionality. I want to link this library project with another just a java project which has code common to both Android and Blackberry applications. This second part however doesn't seem to work and throws "The application <appname> (<package name>) has stopped unexpectedly. Please try again" with a ForceClose button. I would greatly appreciate if someone can give a brief information on how to make this work.
View 2 Replies
View Related
Jan 25, 2010
I am a C# developer and getting started with Android. I am attempting to duplicate a couple applications I already have in VS. The project is made of 2 executables and 1 common assembly. The 2 executables contain the application specific logic while the common contains centralized forms and logic (such as login form). I am using Eclipse. So how can I accomplish this layout?
View 1 Replies
View Related
Dec 31, 2011
I had to switch out samsung transform ultras recently so I exported all my contacts from my old phone to the sd card and when I got the new phone I synced with my google account and tons of contacts that weren't. On my old list were showing up I tried deleting over 100 people from all the social sites and google said it was too many so I just reset the phone to factory and set up a new gmail and turned off auto syncing. Then I imported my contacts from the SD card and while they are recognized when I dial the number manually or the contact calls me they are not showing up in my actual contact list.
View 3 Replies
View Related
Sep 6, 2010
I'm somewhat new to Android. I just bought my first Android phone (the Evo) Saturday, I'm having one bit of trouble. I just recorded some footage of our family reunion for my cousin, and really want to get it off of my phone. So I decide to put it in my computer. However, when I put the video on my desktop, the video has no sound. How do I fix this problem?
View 3 Replies
View Related
Oct 28, 2010
Right, here goes. I've got all the contacts I want in my contacts folder. Some of them are linked to their facebook accounts which I like. But when I tap phone, a load of people who I only chat to on Facebook are there despite not being in the contacts folder. So how do I edit what appears under "Phone" Is there away to get rid of all the contacts that Facebook imported in one go? Or a way to edit my phone directory online? I didn't know that when I set up my Facebook account it would import anyone who has a number to my Phonebook!
View 14 Replies
View Related
Aug 2, 2010
I saved my contacts from my old handset (LG) to the SIM card. I put the SIM into my Milestone and went to contacts, went to import/export and chose Import from SIM. It showed all of my SIM contacts, and I chose Import All. At this point, a dialogue box with a progress bar comes up as it imports all of my contacts. However, when it's finished, they don't appear in my contacts list. It's set to display contacts with numbers. I bluetoothed the .vcf file from my old handset to my MacBook and then from there to the Milestone, and chose Import from SD Card, but I just get the same result. my contacts seem to appear when I type the name into the recipient box while texting but still not in the contacts list, meaning I can't call them and come to think of it, receiving texts from people who should be on my contacts, their name shows up.
View 3 Replies
View Related
Apr 15, 2012
Saved all my contacts through import option on droid phone to the sd card.. Moved the vcf file to the pc.. Did a fresh install on my LG Optimus s phone.. and now cant import any contacts.. Its not displaying in contacts.. But if i go to text someone.. I type the first 3 letters and the full name and number displays. Just not in the contacts.. I accidentally upgraded my rooted froyo phone to gingerbread and hated I did it. got to wait til i can root it again. SO now im back to basic.. Does hard reset even revert to stock flash? Or you have to get technical in doing it?
View 1 Replies
View Related
Jan 23, 2010
Does anyone have any experience using JNI to call native C/C++ libraries in Android? Is the environment suitable for running C/C++ libraries and if so is there anything specific about the environment which you need to accommodate?
View 2 Replies
View Related
Aug 8, 2010
I followed the instructions here on how to create an Android library project, and use it in an Android application:
http://developer.android.com/guide/developing/eclipse-adt.html
But it is not working. I can see the library project is added to my application but I cannot reference anything in it because it won't build. The R.java file from the lib is NOT being added to my application project, so the lib project contains tons of errors, everywhere it tries to reference it's own R.java file.
I don't know if this has anything to do with it, but in the console there are messages stating that the there is "No resource identifier found for attribute 'X' in package 'Lib Package'. My library package has a a few styleable attributes defined for a custom view I made, all of which are being complained about in this console message. The library builds just fine, and I don't get those messages in the console until I hook the library to my application, so I don't know what's up with this.
View 1 Replies
View Related
Jun 15, 2010
Over the last couple of weeks, I've had some problems with Facebook for HTC (between contacts and FriendStream). Through performing some fixes, I've had to remove my Facebook account from the phone, and set it up again twice. Well tonight, after removing the account, I could not get ANY of my contacts to show up at all. This includes my regular Google contacts (not just the ones synced with FB. It looked like the phone was trying to sync and never loading when I opened the people app.Well, this went on for about an hour with no luck, even with rebooting several times. I finally decided to setup my Facebook account again. Sure enough, once I setup the FB account, all of my contacts showed up fine with no syncing issue. The problem is, now when I go into a contact that has no FB contact link, press the "link" icon on the top right, select Facebook, it lists multiples of ALL of my Facebook friends. Almost as if each time I setup my Facebook account again, it just re-imported all of my FB friends without replacing them.How can I delete these duplicates, or even all of my Facebook contacts / friends from my phone, and re-import them? Anyone else have this issue? It seems that removing my Facebook account from my phone not only causes problems with all of my regular Google contacts, but also doesn't delete the Facebook friends left behind on the phone.
View 3 Replies
View Related
Mar 3, 2010
This morning when i woke up..all my contacts were gone for whatever reason..i thought to myself sigh no buggy..ill just re-sync my FB contacts and import my other #s from my old sim card..the FB contacts worked but when i try to import the #s from my Sim card it says "successfully imported" but the Contacts don't show up!! Mind u Ive done this several times before and its worked. Idk why they're not showing up now.
View 9 Replies
View Related
Sep 15, 2010
When I right click the project in the eclipse, select "Properties". In the property page, select Android. According to the document, you can add the library project through that page. But my problem is that, there is no library information on the page. It only lists "project build target"
View 2 Replies
View Related
Jul 19, 2010
I have created a library project. When I use the library project in other project, it compiles. How ever, when I run the application, it always get the error "The application has stopped unexpectly.".
View 4 Replies
View Related