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.

Android :: Can't use dependent projects in 1.5 / fix this?


Android :: Multiple Dependent Android Projects In Eclipse

Jun 14, 2010

I just started to play with android dev and java+eclipse is pretty new to me. I managed to create simple project and run it on my device. Now I want to create simple game (more of them actually) and I would love to use shared code base for all of them (game loop, initialization, etc..). Problem is that I have no idea how to correctly do this. I created android project called engine with all basic stuff that I need and made it work on device. Now I tried to create another project in same workspace called mygame. Main class (activity) of mygame is MyGameApp which inherits from EngineApp (main activity of my engine project) which inherits from Activity. I added engine project into required projects in mygame build path tab in properties. Problem is that when I try to run this project it crashes on ClassNotFoundException trying to find my MyGameApp class.

View 1 Replies View Related

Android :: Check For Dependent Application During Installation?

Mar 25, 2010

I want to publish my application (ABC). Its an audiobook file(just for example.) wrapped as apk. When the user install this application it needs to check whether another application (XYZ) already installed or not. If not let the user know they have to install the application XYZ first before installing ABC.

View 1 Replies View Related

Android :: Deploy SWIG Dependent Dll's With Droid App?

Nov 17, 2010

I would like to use a .jar file generated by SWIG in an Android application. What is the best way to deploy all of the underlying dll's with the Android application?

In a desktop environment, my PATH variable includes the folder containing these dll's.

View 1 Replies View Related

Android : Way To Manage Orientation Dependent Activities?

Mar 11, 2010

I have two activities, one per orientation - PortraitActivity and LandscapeActivity. They are pretty much different, I can't use one Activity with different layouts. If user changed orientation I have to shutdown one of them and start another. What is the best way to manage them? Does it make sense to create GroupActivity? Or each Activity should check if the current orientation is what it needs? If so, is it save to start new Activity in onCreate method of previous one (which is not actually created yet)?

View 5 Replies View Related

Android :: How To Consume Session Dependent WCF Services Using Ksoap2

Jun 23, 2010

I am using Ksoap2-Android for consuming the WCF Services.

For the dotnet client we keep the allowCookies="true" in our binding configuration and it sends the same sessionid and keeps my sessions intact in my WCF services (My services are
interdependent and use the sessions).

Any one know any such setting for ksoap2-android, that will allow me to consume the
WCF service keeping my session intact on the server.

Currently when i make a new call to the service, the sessionid gets changed and all my
session variables clear out and loose their values.

View 1 Replies View Related

Android : Is Parcel's Data Size Platform Dependent?

Sep 27, 2010

According to the API doc, Android seems to support for changing the data size of Parcel container. And there is no notice limiting the size of Parcel. The document is here http://developer.android.com/reference/android/os/Parcel.html#setData...()

On the other hand, when our developers are doing some tests on this, the size is dependent on the platform and devices.

So i just wonder whether there is any limit on the data size of Parcel. At least this information should be mentioned in the API document.

View 2 Replies View Related

General :: 3G Frequency Of Phone Is Hardware Or Firmware Dependent?

Dec 2, 2012

I am asking this because recently bought a BLU VIVO D910a phone from U.S., it has Android 4.0 firmware and its 3G Network is HSDPA 850 / 1900.

I made a big mistake, because the country where I currently live and work (Montenegro) uses 2100 3G network. I shoud have ordered the international version of BLU Vivo, the D910i which has HSDPA 850 / 2100. So, currently I cannot make use of the 3G data capability of my new phone

My question is: if I get the firmware (or just the modem.bin) of D910i and flash it to my phone will I change by this way the 3G frequency or it is hardware-dependent?

View 4 Replies View Related

Android :: How Can I Debug Hardware Dependent App Without Access To Hardware?

Aug 18, 2010

I have an open-source application on the Android market. It seems to work fine for me (with over 1,000 active installs, I have to presume that it works for most people).I recently got a bug report that indicated a problem for at least three users on Samsung phones (Intercept and Captivate). I have been unable to reproduce the problem on my ADP2 and on the emulator.In order to get enough data to diagnose the problem, I first tried to add logging and then I asked users to submit logs via Log Collector. Each time a user tried to send the log (there were four attempts), it was truncated and I did not get any useful data.I then added ACRA to the project in an attempt to get information, but I don't seem to be able to automatically detect the bug in order to send a report.Since I don't have a Samsung phone and I can't reproduce it on anything where I could connect with the debugger, I am mostly out of ideas. The only idea I have left is to add a button to the UI to generate a report.Are there any other approaches to suggest?

Update: since people are asking for more specifics: essentially, the app reads in text files from the assets and puts them (with some preprocessing) into a TextView in a ScrollView. (The data is prgressively added to a SpannableStringBuffer and then that is passed to TextView's setText() function.) Depending on the options chosen, the text displayed is between 15k-115k. On phones with this issue, only part of the text is displayed. The cutoff point depends on the options, but seems to be somewhere between 17k-18k.

ACRA sends a report for all uncaught exceptions and puts them into a Google Form/Spreadsheet. I've gotten reports from my emulator and from my phone, so I know that end works. (Actually, I've often found it faster to debug from the stack trace in that report than to attach the debugger to the process.)Phone specs: I have exercised the app on emulators running 1.5, 1.6, 2.1, and 2.2. My phone is ADP2 (the developer version of the MyTouch), but I've installed a third-party ROM to jump up to Froyo (2.2). I am unaware of an emulator specifically for the Samsung OS build, although that would be quite helpful here.Since the expected text length is constant, I should be able to detect if it is read correctly or not. I added checks at the end of my text processing, but those never triggered, indicating that the problem was not with reading the file. I then tried adding checks to onPostCreate and onPostResume, but those did not fail either. It seems that the UI thread had not yet actually run at that point, though.I've now done 6 private APK versions attached to the bug in the bug tracker. I frankly am surprised that any users are still trying them. This latest version has a button to force a bug report - that will only be called after the UI thread has laid out the screen. Hopefully that will give me enough variable information to point me in the right direction.

View 2 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 :: 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 :: 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 :: 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 :: 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 ?

View 16 Replies View Related

Android :: Import Package Default Projects To Eclipse?

Apr 27, 2009

how to import the Android Default projects into our Eclipse. E.g androidsourcerootpackagesappsAlarmClock. I want to import this project to my eclipse work space, I tried with import projects and open excisting Android Projects. But that two are not working.

View 5 Replies View Related

Android :: New Projects In Eclipse - Cannot Create Linked Resource

Jan 19, 2009

For some unknown reason when I now try to create a new Android project in Eclipse (Ganymede running on Windows) it fails to link to the android.jar in the SDK (1.0_r1). This has never happened before, and all my existing projects continue to resolve Android components just fine.
Error: "Cannot create linked resource '/.org.eclipse.jdt.core.external.folders/.link0'. The parent resource is not accessible."

View 2 Replies View Related

Android :: Attaching Java Source To Projects In Eclipse

Jul 6, 2010

How can I attach Java source to an Android project? I'm able to browse java source for a Java project, but not for an Android project. I modified project properties and add Java source in "Libraries" section, still not working.

View 1 Replies View Related

Android :: Speed Up Builds On Large Projects - Renaming PNG

Sep 16, 2010

I ran into a problem of slow builds and thought I'd share the solution. I'm porting an iPhone app to Android, and as soon as I added the images to the project (400+ pngs), build time went from about 5 seconds to about 40 seconds. This is on a new machine, quad core i7, 8GB ram. The resource processor (aapt) was to blame. Every time I made a change to a layout xml file and hit save - bam, wait 40 seconds. After running aapt in verbose mode, it was obvious what was happening - aapt does png optimization every single time. Optimization is slow, and aapt only used one core. So it makes sense to turn this optimization off. Just run optipng once, no need to optimize every build or every time I save a layout xml file.

So how do you turn png optimization off? You can't. There is no Eclipse setting, no command line option for aapt. Digging around the aapt source, I noticed something funny though - it only optimizes images in the "drawable" folders that end in ".png". http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
Solution: rename all the pngs to end in uppercase ".PNG". Then aapt simply copies the files without optimizing. My build time is back to 5 seconds!
(Caveat: this won't work for nine-patch files - they still need to end in lowercase ".9.png".)

View 2 Replies View Related

Android :: Reusing Java Source In Multiple Projects

Nov 24, 2009

I'm currently developing for Android using Eclipse. I have a lexicon viewer application (with package name "com.mycompany.myviewer") that I want to reuse multiple times, just changing specific resources such as app name and icons.For example, I have a certain publisher "Publisher1", who publishes the lexicons "Lexicon1" and "Lexicon2". I would need to two applications: App1 with certain name and icon, and App2 with another name and icon.What is the best way of doing this in Java? In visual Studio (and C++) I could create two projects based on the lexikon viewer app and use conditional resources to get the right name and icon. Is there some way of doing something similar in Java?

View 2 Replies View Related

Android :: How To Import Individual Projects From Source Code?

Jul 13, 2010

As far as I understand, all the built-in standard apps like (email, music, calendar etc) are built using the same API. So I should be able to import a project like mail / music etc without checking out the full source repository of android. I'v been trying that but I am getting compilation problems like class resolve failure. Am I doing it wrong? What do I have to do to import a project in eclipse without compilation error. I am interested in the Music application.I have setup the latest android eclipse plugin and run test applications with it, so my setup is OK.

View 3 Replies View Related

Android :: Share Resources Between The Different Eclipse Projects - So As To Avoid Duplication

Jul 27, 2010

I have 2 android applications that share 95% of their resources, layouts, strings etc. only a few jpg's are different.

How can I share resources between the different Eclipse Android projects, so as to avoid resource duplication ?

View 2 Replies View Related

Android :: Improve Eclipse Performance For Projects With Lots Of Resources

Sep 13, 2009

I have notices following:

If I have a project with minimum files in res folder, the project saves quickly, compiles quickly and launches quickly. But if I have a lot of resources, my project is saving, compiling and launching during relatively long period of time. This is really frustrating if you do some minor UI updates, and you have always wait Eclipse to generate R file etc.

View 1 Replies View Related

Android :: Building Phone Library Projects From Command Line

Jul 29, 2010

I'm updating my application to take advantage of Android library projects. While I can get everything to build fine within Eclipse, I'm stuck trying to update my build.sh script to support library projects. At the moment, I can't figure out what options to pass to appt to tell it to look at my library projects when building my main project. Checking aapt--help has not been illuminating so far. Any suggestions?

View 3 Replies View Related







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