Currently I am trying to compile native code for Android. The code is from the OpenCV port for Android. I pasted all the code correctly in my project and edited my make files accordingly. When I set android:debuggable to false everything works fine and I get my native library. When I try while android:debuggable is set to true I get an error.
Here is a part of the log:
From what I have found on the internet this is caused by the optimization level of the compilation. As long as the code isn't compiled so that is is debuggable afterwards everything should be fine.
Now apparently it is possible to avoid this by setting APP-OPTIM := release in the Application.mk or adding -O2 to LOCAL_CFLAGS. I have tried both and still I get this error.
Right now I don't really care that much about debugging my native code, but I would like to have basic debugging enabled. And I don't want to keep switching android:debuggable in my manifest every time I want to compile. I'm not even sure if it is okay at all if I just set android:debuggable to false pre compiling and to true post compiling, but I am sure I will forget it every second run.
I have an AIDL service that is intended to be used by both out-of- process remote users and in-process local users. As a result, my common interface methods will either be invoked on the UI thread or in a binder background thread. The logic between the two is not the same. How do I distinguish between these two cases?
Is there any way to detect whether an android phone is in sleep mode (screen is black) in the code?I wrote a home screen widget. I don't want the widget gets updated when the screen is black to save the battery consumption.
Is anyone able to explain to me exactly what the upcoming JIT compiler will provide? For example, I have Java programs that generate bytecode at runtime which I would like to port to android. Will the JIT compiler make this possible by converting the runtime generated Java byte code to Dalvik at runtime as required?
I just read that Android has a 450% performance improvement because it added a JIT compiler, I know what JIT is, but I don't really understand why is it faster than normal compiled code? or what's the difference with the older approach from the Android platform (the Java like run compiled bytecode).
Is there a way to control the optimization level of the java compiler that Eclipse uses when building a project?Or is this question not relevant anymore, is all optimization deferred to the vm? The results of this tests imples test_f() is not being inlined, even though it really is a prime candidate for it. It should also be possible to do this inlining at compile time.I investigated this further, and it turns out Dalvik doesn't do inlining at this date.
It is clear that cross compilers will not be allowed by the Apple App Store, so a developer will need to be familiar with Objective-C to create applications for the iPhone.I was wondering, is there a cross compiler that will take Objective-C application code and rebuild it into a similar Java application that can be packaged for Android? That way, a developer could still learn just one language (obj-c) but put out applications on many devices.I understand that the Java port would be less optimal than a natively coded application, but could conceivably save a developer some time.
As I've heard from Google IO 2010 session, Dalvik JIT compiler just support ARM processor.Do this mean my own build of Android source on Linux X86 or Mac OS X can not support JIT compiler?Should I use some target board with ARM processor to test Dalvik JIT compiler?
I want to add -Xlint:deprecated to the java compiler while building android app.I've seen the compilerarg tag inside javac tags, but the generated build.xml for the standard project doesn't have such a tag.
Say I have an Animal class, which is parcelable, and I have a Dog class and a Cat class, which are subclasses of Animal and also implement Parcelable.
Say I have a service with the following AIDL interface:
Now I'm calling this remote interface from some client application, passing it a List containing Cats and Dogs. What happens now is that android calls the Cat's and the Dog's writeToParcel() methods at the client side, but at the server side, the Animal's CREATOR is used, which calls Animal's readFromParcel() method. So the right data is sent from the client, but the wrong unmarshalling code is executed at the server.
I have tried to put this in the AIDL file:
sendAnimals(List<T extends Animal> animals);
This results in a syntax error from the aidl compiler though.
My current workaround is as follows: - In each specific Animal subtype's writeToParcel() method, I write the class name as a String into the Parcel as the first element. - In the Animal's CREATOR.createFromParcel() I read the first String out of the parcel, and based on that I create the appropriate type and call the appropriate readFromParcel() method.
I think this is kind of ugly though. I would expect the android framework to take care of this for me.
(My application is not actually dealing with animals, this is just to make it simpler to explain the issue)
I wanna to add some code in Camera Apps code , so that it will invoke my Application and do the thing as per my desier. Is it possible to change the Application code? If any one already tried this then plz let me know, how to proceed and build if i change some code. How to integrate my application with camera apps.
I am trying to integrate my code to the android Home Screen code. I want to launch my activity frm the HomeScreen by click of a button. I Did the code & then build it but when i click the button i m getting error as Application not installed on phone.
I just bought a second hand Samsung Galaxy Portal, and it's a great phone and works fine, but the battery is dead 12 hours after a full charge. I had a task killer installed at first but I removed it after reading about how it drains the battery, so I'm wondering what else it could be? I know it might just be an old battery that's lost it's will to hold charge, but what can I check on the phone before I have to splash out on a battery or take the phone back? I know it has some decent tools for monitoring battery usage so what should I be looking for?
I've used Google Nav a few times and I like it. However, I live in an area where I never lose service.
What happens if you are on a long road trip and you drive through a small area (say a mile or two) where you lose service? Does Google Nav continue to work, or does it die until you get back into a service area?
Is there any way to control from outside an Android which screen has become nuts ?
I have a chinesse phone ( and MTK 6573) which touch screen has become nuts (most of it has become unresponsive and often a continuos touch imput is detected in the center-left side of the screen). So, it has become useless...
The thing is, I would like to access to it, in any way, to recover some of the data I have on it. Also, becouse I try to disasemble, volumen key seem not working. How could I connect to it ?
I tought of the mimobiler, but I need to enable it trought touch and hadn't been able I tought backing up and restoring in another mobile (an MTK6577), but volumen key not working for ColckWorkRecovery would be to control it from mouse or similar, in a way that does not affect the missfuncionality of the touch screen (should be disable I presume). But anything that allows me to recover the saved phones (several got stored in mobile instead of google account), and a couple of apps data (a fianace data and a notes app) would be great something like remote-titanium-backup ?
I have HTC desire and find my battery life from fully charged to dead is between 4 hours to 6 hours. Is anybody else having this problem or do you think the battery is faulty ? I've only had the phone 4 months and find it annoying that i have to turn phone off to save battery. What's point having it as a phone if you have to turn it off..
GOT A Problem On your G1 Magic or Other Android Phones? If you expect or would like answers from our Seniors Members ? Go into you phone settings in the "About Phone" and let us know : Code... Is the phone SIM registered in T-Mobile as the Correct phone? android market app is missing too, so I cannot reload the apps. The browser is working fine, videos are streaming, calls are OK, bluetooth. No google maps also.
I picked up the Sprint HTC Evo. This is my first android phone and it's a big upgrade from the windows based HTC Touch Pro that I used to put up with. However, every single notification makes a massive, loud, Beep And I can't figure out how to turn the volume down on it, except to put the phone in vibrate mode. Windows had two volumes: one for system, and one for the ringer. That made a lot of sense.
I think my co-workers are going to get really angry with me if I don't figure this out soon. At first, it was just text messages, but now it's facebook and everything else. Can someone please tell me how to shut up this dumb robot?
I'm not sure what info I need to give you about this, but it's the launch version of the Evo, I did not change anything related to this problem - still using the default applications and such.
I have a problem with a suddenly dead(?) OpenGL Thread. After an indeterminate time (30 seconds to a couple of minutes) the onDrawFrame of the Renderer simply doesn't get called anymore. I get no exception, no ForceClose, no ActivityNotResponding, no nothing! I can still open the Menu, have another Handler/Runnable-cycle logging out "Alive", etc Recently I introduced some native stuff (physics-library). But I can verify that there is no native problem, as there is obviously no native crash and after the GLThread died, I can still do like: Log.d("Before native call") nativeCall(); Log.d("After native call") Maybe anyone of you experienced something similar to this?