Android :: Way To Restore Old Behavior On Other Projects In Build Path?

Apr 28, 2009

We have an application cut into 3 android projects: * Project REAL (the real android project) * Project LIB1 (an android project without any activity, just to make android reusable classes) * Project LIB2 (same as LIB1) LIB1 and LIB2 are android projects rather than J2SE ones because LIB1 and LIB2 use Android classes. Project REAL has LIB1 and LIB2 in its project build path in Eclipse. In SDK 1.0 and 1.1, no problem at all when running the project REAL from Eclipse, it mixes the code of the 3 projects and produces one big APK with everything in it. But now in SDK 1.5, it installs 3 different APKs on the emulator or on the phone (I tested both), and the project REAL immediately crashes because of a Verify Error: it does not find a class that is in LIB1. The size of the produced APK is smaller, indeed LIB1 and LIB2 classes are not in it... I tried using uses-library in the manifest like google maps library but it complains at installing, we have a "missing shared library" error. I tried adding class folders in build path, it compiles in Eclipse but we still have a Verify Error. Same thing if we use external class folders in build path. The only thing that worked for me was to add an eclipse folder, which is in fact a symbolic link, and to make it a source folder. But that solution is not convenient for us because when we share the projects in SVN, the referenced paths are different for each developer. Using eclipse path variables can do the trick but it is far from being convenient. Indeed, if we have to reinstall Eclipse or if we move the place we check out the code in our developer station we have to reconfigure all these messy path variables in Eclipse. Is there a way to restore the old behavior on other android projects in build path ?

Android :: Way to restore old behavior on other projects in build path?


Android :: Referencing Projects Under Java Build Path In Eclipse

Jul 27, 2009

I'm working on two projects. One is essentially a library, and the other is an application using that library. Now from the application project, I want to use the library's classes, so I added that project to the "required projects" under java build path. It seems to compile fine, but at runtime, I get this error:

07-27 11:26:57.037: ERROR/dalvikvm(741): Could not find class 'interdroid.contextframework.ContextManager', referenced from method com.bartvanwissen.contextframeworktest.MainActivity.onCreate

Apparently, the library project's classes are not added to the apk file. How can I make sure they are included? Since I'm working on both projects at the same time, I would like to prevent having to create a jar file every time I want to test something.

View 4 Replies View Related

Android :: Build 2 Projects In On Apk

Mar 30, 2010

I seperate my application into 2 projects. one for UI,the other is for service.How can I build these 2 applications into one apk?

View 9 Replies View Related

Android :: How To Build APK From Multiple Eclipse Projects?

Nov 11, 2009

Does anyone know of suggestions/recommendations on how to structure Eclipse projects in order to build an apk from multiple projects? I would like to share classes & resources (strings, layouts, etc.) across multiple apps. How to structure Eclipse projects to do such a thing!

View 8 Replies View Related

Android :: Adding One Project To Another Build Path?

Jul 4, 2010

I'm developing an application that is supposed to run on both Android as well as regular Java SE. I have an eclipse project called foobar-core which contains code that is used both by the Android and the SE version. I have another project called foobar-android, which contains all android-specific code. I need to reference some of the foobar-core code in the foobar-android project, so I added foobar-core to foobar-android in Settings -> Java Build path -> Projects -> Required projects on the build path. This works fine, as I can use code from foobare-core in foobar-android now.

Here's the problem: Both foobar-core and foobar-android are independent git repositories, which means they both have a .git subdirectory. Now I get a lot of warnings on the "Console" tab whenever I compile foobar-android. They look like this:
/foobar-core/src/.git/HEAD conflicts with another file already put at .git/HEAD
/foobar-core/src/.git/config conflicts with another file already put at .git/config
/foobar-core/src/.git/description conflicts with another file already put at > .git/description
/foobar-core/src/.git/hooks/applypatch-msg.sample conflicts with another file already > put at .git/hooks/applypatch-msg.sample

How can I tell Eclipse to ignore the .git files when importing sources from the foobar-core project?

View 1 Replies View Related

Android :: Eclipse 3.5 And ADT - Build Path Errors

Jul 9, 2010

I am using Eclipse 3.5 for Jave EE Developers. Plugins installed include: Android Development Tools, Adobe Flash Builder 4, PDT, PyDev. I have problem with running the application I built. I can start a new project, add a button, and run it on an AVD. Then I add another button, try to run it on AVD, and Eclipse says 1) gen folder is missing, 2) there are errors with build path.

I can get ride of the first error by simply refreshing the project in the left pane, but the second error always sticks around. I searched online and on StackOverflow here and here, although several people have the same problem, there is no definite solution I can find.

View 1 Replies View Related

Android :: Project Cannot Built Until Build Path Errors Are Resolved

Oct 10, 2009

I'm having "The project cannot be built until build path errors are resolved" after each Project->clean in eclipse. I have two projects with one referencing another. The error appears in the project referencing the another one. When the error appears I go to the 'configure build path' and then remove and re-add the referenced project and then magically the build is done fine.

View 2 Replies View Related

Android :: Project Missing Gen Folder Or Build Path Error In Eclipse

Mar 31, 2010

Whenever I do a Clean on my project, I get 2 errors:
1.) The project is missing gen folder.
2.) There is a build path error.
I go to "Configure build path" and uncheck "Android 1.6". It works. If I do this again, I go and this time check "Android 1.6". It again works.

View 1 Replies View Related

Android :: ADT Causing CDT To Build All C Projects On Android Application Launch?

Aug 27, 2010

I doubt there are too many people who run CDT in eclipse for native apps also with ADT installed for Android, but in the off-chance that someone here knows anything about this, my problem is that any time I run any android app, my C builder kicks in for projects totally unrelated. I have no idea why and have been digging through settings on everything, unable to find out why. All I can think is that the ADT pre-launch process triggers it via a refresh or some kind of catch- all type call in eclipse API land that I'm unaware of. Does anyone know anything about this? It's very annoying to have a C builder run for a different project than the one you're working on every time you launch the app.

View 4 Replies View Related

Android :: Android Hello World Build Path Error

Jun 12, 2010

On my Mac I installed Eclipse, the SDK and created a new project, then hit build expecting to see my first helloworld app.I got the error "the project cannot be built until build path errors are fixed".After going thru all the path-like options in Preferences, I noticed that on the tab "Java Build Path" the "Google APIs [Android 2.2]" option did not have its check box checked.Checking it made the problem go away.It works now and I can see the app in the Emulator Have I not set up my environment correctly? I used all the defaults in Eclipse and the Android SDK.

View 2 Replies View Related

Android :: Path To Array / Read Points On Path?

Jul 5, 2010

Is there a way to read the points created when drawing a path? It seems silly to me that a path cannot be readable.Or is it just better to manually write the current finger position to an array?

View 1 Replies View Related

Android :: Build Error Build/core/java.mk:20 On 2.2

Jun 24, 2010

I downloaded the Android 2.2 source code and try to build it. When I executed the make command, I got an error here like this build/core/java.mk:20: *** frameworks/ex/common: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. Then I changed the frameworks/ex/common/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7. Next place, build/core/java.mk:20: *** external/jsr305: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/jsr305/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7

Last one, build/core/java.mk:20: *** external/guava: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/guava/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
By these changes the code started the compilation.

1. Why the error occured?
2. Changes which I did is correct or not?

View 3 Replies View Related

General :: Build Kernel MT6577 - Can't Boot After Build

Feb 21, 2013

I have a phone with a MT6577. The vendor (Wiko) published the kernel source code. So, i'm trying to build it. I can get the zImage. I converted it to boot.img but i can't boot with it on my phone.build a good zImage? (if you want to try) : URL...

cp mediatek-configs .config
TARGET_PRODUCT=s9081 MTK_ROOT_CUSTOM=../mediatek/custom make
# sudo mtk-tools/repack-MT65xx.pl -boot zImage boot.img-ramdisk boot.img
MTK-Tools by Bruno MartinsMT65xx repack script (last update: 27-01-2013)
Repacking boot image...
Ramdisk size: 2046 blocs
Repacked boot image into 'boot.img'.

Here are the Warnings I got when compiling

mediatek/platform/mt6577/kernel/drivers/video/tvc_drv.c:61:5: warning: "FIXED_WVGA_PARAMS" is not defined
net/ipv4/tcp.c: In function 'tcp_nuke_addr':
include/net/ipv6.h:338: warning: 'in6' may be used uninitialized in this function
net/ipv4/tcp.c:3367: note: 'in6' was declared here
In file included from net/ipv4/netfilter/ipt_LOG.c:27:
include/net/netfilter/xt_log.h: In function 'sb_close':
[code]....

View 9 Replies View Related

Sony Ericsson Xperia X10 :: Back Up Restore Failed On Restore Function

Nov 18, 2010

Anyone else had abny issues with the back up restore function? I tried to do a software update, to which something seems to have happened. All i can see for the time being is an update to the virtual keyboard. Anyway, lost apps, contacts etc, so went into the menu on the handset and selected back up, restore. Restored numbers etc to phone book and over 150 number details are missing. The back up utility doesn't seem to have backed up all my numbers. Also, any personal photo's of callers etc have either vanished or the photo's are now against the wrong people. So much for this back up service, it's going to take hours, if not days to try to get the phone back tot he way it was!

View 5 Replies View Related

HTC Eris :: How To Restore Market Links After NAND Restore?

Aug 9, 2010

Today the rom bug bit me and I tried about 3 or 4 different roms (after TIbackup and nand backup of course) including xtrROM and ELB, hated them all, and decided to go back to my beloved sense-able 3.1 nand backup.
wiped, restored, and now all my market links are gone. (except for gmaps, for some reason). TIbackup refuses to even install again from the market because the package signature is incorrect, or something. TIb said it was supposed to restore market links.any suggestions? is there even any way to restore a market link besides just reinstalling the program outright? I found this thread http://androidforums.com/all-things-root-hero/81290-market-does-not-see-all-my-downloads-after-nandroid-restore.html as reference. All my programs will show as "installed" if I search them in market.either way, sense-able was definitely the sexiest-out of the box ROM I tried. everything else without sense was just ugh, looked like I'd loaded up a G1. couldn't tell a speed difference at all with the same setCPU profile, and xtrROM was so bad on battery I only made it through few hours before uninstalling. I cannot live with the sense keyboard and search-dialer.

View 1 Replies View Related

Motorola Droid :: Backup / Restore / Get My Files Restore?

Mar 7, 2010

I Installed Smoked Glass V5.0 from V4.5. I ended up doing it twice, and to make a long story short I lost my files in AK Notebook.
Here's my question:
1. Should I backup my current configuration
2. Then "Restore" my backup prior to upgrade
3. Grab my files (hoping they will be there) toss them on my mac
4. Then just "Restore" back to where I am now?
Need those files by tomorrow, any assistance is much appreciated. It's not that it's an emergency without them, but I will have to do some legwork to gather that info again.

View 8 Replies View Related

Android :: Can't Use Dependent Projects In 1.5 / Fix This?

May 5, 2009

I have 2 projects in the following layout

MainActivityProject -> BaseProject

(i.e. MainActivityProject depends on the other project). Both are android projects created with the eclipse "New Android project functionality) however, the BaseProject does not have an activity defined. However, in BaseProject I define an activity base class where MainActivityProject's Activity derives from. This used to work fine up until 1.1 but now with the 1.5 SDK I get ClassNotFoundExceptions when launching the app.

Any suggestion on how to fix this? I obviously dont want to copy all the sources to a single project as I intend to reuse my Activity base class for other things (it contains some boiler plate stuff that I dont want to have in each and every activity.

View 3 Replies View Related

2.1 Update :: I Can't Restore My Data Via Backup & Restore

Nov 8, 2010

I recently updated my Mini Pro to Android 2.1, I followed the steps on the sonyericssonsupport YouTube video. I did a Backup of all my stuff on the phone, when I'd updated my phone and turned it on it asked me to setup the phone again with the Language, Time & Date etc and now when I try to restore my settings it says "Could Not Restore" when it is almost done.

View 1 Replies View Related

General :: Nabi 2 - No Images To Restore Under Restore Tab?

Mar 26, 2014

I have a Nabi 2 that was rooted almost a year ago to gain access to the Google Play store.My needs have changed since then and I wanted to restore it to factory settings.

If I boot normally the Nabi is stuck here:

I have managed to get it to boot to TRWP by pressing the power and + keys. I see this:

There are no images to "restore" under the restore tab. This is what I see:

provide me with a kernel file or some tips on how to restore the machine to it's 'out-of-the-box' configuration. I want to donate this device to a young child and need to get it back into a kid friendly mode.

View 9 Replies View Related

Android :: How To Set Notifications Behavior On EVO?

Jul 13, 2010

Does anyone know how to set the notifications behavior on the EVO? Specifically with Google Talk? I would like the phone to beep at me only once when someone sends a google talk message, and then not ever again for the following messages until I unlock the phone's screen and reactivate the google talk app. I think it already works this way for email, but not for Gtalk. Can this be done? And, I already know that if I open up the chat session, the sounds shut off on successive messages. However I would like it to stop the beeping without opening the chat window.

View 1 Replies View Related

Android :: Projects In Two Different Locations And Importing In Eclipse?

Mar 10, 2010

I always face this problem in my eclipse. I would like have a copy of the apps in all the versions of SDKs/NDKs. And once I have a project in eclipse, and if I have to import the same project from a new location, I get the message saying "Can't import, project of the same name already exists". Is this how it is? We cant import the same project from its 2nd location in eclipse? Everytime I delete the project from old location and put it in new. I know, it is a very unacceptable approach).

View 2 Replies View Related

Android :: AIDL In Multiple Projects In Eclipse

Mar 16, 2010

I have problems with the following: I want to create to applications. One with a Android service and one with a Activity that will use functions on the Service. Before I splitted this in to applications I got everything working in one application. I can call functions (that are definned in the aidl - file) on the service without problems.

Now the problems coms. I splitted the application into two parts, a Service application and Gui application. The bindins to the service (in the gui application) works and I see that the service is getting created. Then in the onServiceConnected function of the ServiceConnection class I created the following:

mService = IMyService.Stub.asInterface(service);
And this gives me the following exception:
03-16 13:53:05.549: ERROR/AndroidRuntime(881): java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub

It looks like he can't find the Stub class in IMyService. But the Stub is part of the java file generated out of the aidl-file. Why I get this exception or how I can resolve this?

View 9 Replies View Related

Android :: Eclipse Not Importing Jar Dependencies Between Two Projects

Jun 7, 2010

Here is the situation.
I have a java project "LicenseGenerator" in eclipse that depends on commons-codec. I have therefore added the commons-codec jar file to the build path. I have Junit tests and everything is working fine. I have made a different project in the same workspace - which happens to be an Android project - that needs to use my LicenseGenerator classes. I added LicenseGenerator to the "projects" tab in the build path - the classes were recognized and I was able to use them.

Everything compiled and ran. However, when the part of the LicenseGenerator that used the commons-codec was called from my Android project I got the following error.
Could not find method
org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString,
Referenced from method
This basically tells me that the commons-codec was not packaged which the Android project, so I added the commons-codec to the android project as well but the same error appears.

View 2 Replies View Related

Android :: Including Other Eclipse Projects In Application

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

Android :: Way To Share Strings.xml File Between Projects?

Oct 23, 2010

I have several projects which contain the same strings. Is there a way to share the strings.xml file between projects? I have a library project where I put shared .java code which has a strings.xml, but is the data in the library strings.xml added to the including project's strings.xml at build time?

View 2 Replies View Related

Android :: Error Using InstrumentationTestRunner With Multiple Projects

Oct 8, 2009

My application is seperated into three projects in eclipse. The first one is a client Android Project called "Project A". The second is a server Android Project called "ProjectB". Lastly, I have "ProjectATest" for testing that has references dependencies to "ProjectA" and "ProjectB".

When excuting InstrumentationTestRunner in "ProjectATest," I get the following error message:

CODE:.........

This is the error as pulled from LogCat:

CODE:......................

View 5 Replies View Related

Android :: Best App For Keeping Track Of Writers' Projects?

Jun 1, 2010

Just got the incredible and I need an app that will help me with work because that's the main reason I got a smartphone. I use to use Google Apps spreadsheets to keep track of all my writers projects, but it seems that would be harder on the incredible. Basically I need something where I can know which client the project is for, which writers are working on it, a short description of the project, if it's done, been paid for, etc. Any app that could help me with this?

View 1 Replies View Related

Android : Custom Attributes In Library Projects?

Jul 8, 2010

Having custom attribute (in attrs.xml) in library project leads to compilation fail of the project dependent of that library.Code...

How to avoid this except for no having custom attributes in library?

View 7 Replies View Related

Android :: Unable To Import Example Projects From Book

Jun 17, 2010

I am trying to import projects from a book "Beginning Android 2" but when I choose the root directory the "Finish" button is still grayed out. I've tried importing the project from scratch with no success, and I've also tried to create a template project with the same name and everything and then importing into that (Import existing projects into workspace) but it always says "No projects are found to import".

The contents of the folder are: Res folder, src folder with .java file, the manifest, build, and default.properties files.

View 1 Replies View Related

Android :: Customize Spinner Behavior

Apr 21, 2010

I want to customize the spinner behavior a little bit. I want to add a couple of buttons at the end of the drop down menu that is displayed when the user selects the control. Any idea how this could be done?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved