Android :: Objective-C To Java Cross Compiler

May 7, 2010

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.

Android :: Objective-C to Java cross compiler


Android : App Crashes - Can't Find A Java Method Despite - No Compiler Error

Aug 20, 2010

My Android app runs fine, but: If I insert a call to WebView.setScrollbarFadingEnabled, it crashes saying:

Could not find method android.webkit.WebView.setScrollbarFadingEnabled, referenced from [my class]
VFY: unable to resolve virtual method 289: Landroid/webkit/WebView;.setScrollbarFadingEnabled (Z)V


I am using Android 1.5, not a custom ROM. My app defines minSdkVersion="3" I always clean before compiling.

Is setScrollbarFadingEnabled unavailable in Android 1.5? If so, why don't I receive a compiler error?

View 1 Replies View Related

Android :: Differences Between Objective-c And Java, Or IPhone And Android

Jul 24, 2010

I meant objective-c, not c#. Some reason I got it into my head it was c# the iphone used. So the answers for c# were great, thanks, but theyre a bit irrelevant, sorry about that.

I've had a look but can't find anything that answers this, though a few have shortened the question by answering parts of it. Between a small group, we were planning on doing some work on iPhone and Android, the 2 seperate for the most part but helping each other out, and with some guys doing graphics work split between them.

But we were thinking about the possibilities of moving things between the two, not necessarily apps, maybe just useful classes or something. Looking at objective-c and Java, they seem to have about the same features that the biggest obstacle would be system interface stuff, so we were wondering whether, if we created an abstraction over these on each system so they could be given the same input (which unless I'm wrong wouldn't put too much strain on the system?), would there be any problems in writing something to convert between objective-c and Java, worse than the locations of methods in the sdks? Or are there key features or something in one language that the other doesn't have which we've missed that would mean the only way to do it would be rewriting from scratch.

View 8 Replies View Related

Android :: Cross Platform Java?

Oct 8, 2010

We have a desktop/web java application and also getting into Android development.Ideally we would like one app that runs both on desktop and android.From what we can tell, it's not much possible to run normal java apps on android. But wondering if it can do it the other way? That is, run android apps easily on the desktop (without the user install the sdk or android emulator)?In a prefect world we'd like one app for both platforms. Realistically though it seems like we're going to have to have one app with two front ends?

View 4 Replies View Related

Android :: Static Logger For Cross-plattform - E.g. Java - Applet

Nov 19, 2010

I want to use somthing like: MyLogger.e("MyApp","I have an error.");

In a cross-plattform project, where MyLogger should be static to make it available in the whole project.

So I was trying something like:

CODE:.........

The compiler complains about the static. How do I do this? Is it possible at all? If not, what's the right approach?

View 2 Replies View Related

Android :: Objective Of Setting The Minimum Heap Size In An App

Oct 5, 2009

In google's Calendar app for Android OS, you will encounter this line in the onCreate method of CalendarActivity.

// Eliminate extra GCs during startup by setting the initial heap size to 4MB.
VMRuntime.getRuntime().setMinimumHeapSize(INITIAL_HEAP_SIZE)

Can someone explain why setting it to 4MB will eliminate GCs ? Thanks

View 1 Replies View Related

Android :: Off Screen Drawing In Droid Like A ImageContext In Objective C?

Sep 17, 2010

Is there off screen drawing possible in android like a imageContext in objective C. if it is kindly tell me the link or some kind of hint.

View 2 Replies View Related

Android :: JIT Compiler Explanation

May 3, 2010

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?

View 2 Replies View Related

Android :: Does Compiler Detect Dead Code?

Feb 8, 2009

For example, will this result in any performance gain:
-- public static final boolean DEV_MODE = false;
if(DEV_MODE){ // log stuff, compute debug values etc. }

View 2 Replies View Related

Android :: How A JIT Compiler Helps Performance Of Applications?

May 13, 2010

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).

View 5 Replies View Related

Android :: How To Explicitly Invoke AIDL Compiler?

Jul 26, 2010

I'm using Eclipse with ADT to develop my project, but for some reason my AIDL files are not getting compiled into Java files. Is there a way to explicitly invoked the conversion of my AIDL files?

View 2 Replies View Related

Android :: Controlling Compiler Options In Eclipse

Oct 7, 2009

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.

View 1 Replies View Related

Android :: Dalvik JIT Compiler On Linux X86 Or Mac Build

Jul 1, 2010

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?

View 2 Replies View Related

Android :: Add Compiler Flags To Standard Build.xml

May 17, 2010

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.

View 1 Replies View Related

Android :: Code Works In One Project But Won't Compiler

Oct 14, 2010

The following code was copied from one project to another. No errors in project one.

In project 2 I get:
-The method onClick(View) of type new View.OnClickListener((){} must override a superclass method
-implements androd.view.View.OnClickListener.onClick

View 1 Replies View Related

Android :: Internal Compiler Error When Compiling Native Code

Aug 9, 2010

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:

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

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.

View 1 Replies View Related

Android :: Buildsystem On Ubuntu 10.04 X86-64 Occrur Internal Compiler Error

Jul 22, 2010

I'm trying to build android system ; enviroment: ubuntu 10.04, gcc-4.4 jdk 1.6-0-20
get source code follows http://source.android.com/source/download.html

$ . build/envsetup.sh

$ choosecombo

$ make

then compiler error occurs:

CODE:........

In line 554: the code below:

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

View 2 Replies View Related

Android : Extending Parcelables - Got Syntax Error From Aidl Compiler

Jul 15, 2009

I've run into the following issue:

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:

sendAnimals(List<Animal> animals);

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)

View 7 Replies View Related

Android :: Cross Platform IM?

Jul 23, 2010

Is there any decent application for cross platform instant messaging? My wife has an iPhone and I have a Samsung Captivate.I really don't see the point in using SMS to send quick messages back and forth while I'm at work or wherever when we could easily use some IM client.

View 4 Replies View Related

Android :: SDK Over Cross Platform

Nov 4, 2010

I am trying to install Android on Beagleboard (TI's OMAP35x chip). They have provided toolchain to build the OS and port it on the chip. Now the next question is developing Android apps. I am interested in knowing about the Java SDK for android. So can I use the standard SDK provided by google, so far I cannot find any SDK provided by TI for Java.Putting it in simple terms, will an application developed on standard Android SDK work on beagleboard.

View 2 Replies View Related

Motorola Droid :: New JIT Compiler For 2.2 Be Faster Than Overclocking?

May 20, 2010

Let's discuss board. Will the new JIT Compiler for 2.2 (FroYo) be faster than overclocking? And when we have 2.2 can we over clock?

View 4 Replies View Related

Android :: Cross Activity Listeners

Sep 14, 2010

Can I have one Activity listen for a message from another?I have a TabActivity and I need to call a function/send a message to the associated tabs.How do I go about doing that?

View 9 Replies View Related

Android :: Best Cross-mobile Javascript Framework

Jan 18, 2010

Id like to create a small cross-mobile javascript application, which consists of a form and a grid as result. I also want to display some images, with something similar to lightbox. I coded an home maded prototype but id like to add 'touch' effects and support multiple screens easyly.I looked at JqTouch but its very slow on my HTC magic/android. Also found XuiJs but cant find any working example.Anyone found something light, nice, and iPhone+Android compatible ?

View 7 Replies View Related

Android :: Way To Collaborate On Notes / Cross-platform?

Jan 16, 2010

I'm looking for a way to collaborate on a "note" with a friend of mine on a Palm Pre. In our case, we want to maintain a collection of quotes together. It'd be nice if we could maintain updates in the same place and have them be in sync. Not necessarily looking for an "app," but a mobile site that would let us accomplish this would work as well. Does anyone have any ideas?

View 4 Replies View Related

Android :: Cross Platform Video Chat (EVO To PC)

Oct 19, 2010

i need an app that has a pc counterpart for video chat. i want top be able to get in touch with my momma via my EVO as soon as i get out of Basic Training. i have been trying every app. fring does not have a working pc app, qik does not seem to plan on this either. skype just released a app who only supports Voip phone calls no video(fail) and none of the conventional im apps are supporting video either: aim, talk, yahoo. did i miss something? is there one?

View 6 Replies View Related

Android :: Lightweight Cross Platform C GUI (OpenGL)

Nov 4, 2010

I am looking for a lightweight cross platform GUI library for different signal-processing applications. An ANSI-C program must be statically linked with it and the size matters. A finished application must have the same look on any platform like iPad, iPhone, Android, Ubuntu, Leopard, Windows, etc.Qt is not appropriate, because it is C++, too big, and doesn't work on iOS devices. I lean toward OpenGL-based GUI library, because OpenGL is supported by every modern target platform and an OpenGL application will have the same look and feel on every device. Preferably, such GUI must support forms definitions using the declarative semantics, e.g. from C strings or from external textual files.

View 2 Replies View Related

Android :: Bluetooth Cross Platform Interoperability

Feb 15, 2010

I have a Bluetooth service that I programmed for .Net on a Windows machine and I would like my Android 2.1 phone to connect to it. The server is listening for the same UUID which the Android is using to connect. But the connection is failing.When I try to connect to devices that are not listening for that UUID, I get an exception with the message "Service discovery failed", but when I try to connect to the server that is listening for the right UUID a message box pops up saying:"There was a problem pairing with bluetooth device."And I get an exception with the message "Connection timed out." So it looks like the server and the Android are communicating, but there is some sort of failure during handshaking. I know that the Android requires that the server is paired with the phone and also encrypts the communication channel. Does anyone know which specifications are used to do this? I would love to get my server to respond properly to the connection attempt.

View 3 Replies View Related

Android :: Ajax Cross Domain Requests

Nov 7, 2010

The behavior of XMLHttpRequests in Android is very odd when doing cross domain requests. The browser should either fail with an error and not perform the request, or it should follow CORS (http:// www.w3.org/TR/access-control/) and start with an OPTIONS request to the remote domain. The Android browser (2.1 and 2.2) instead performs the request, which is received by the remote server (and this is the dangerous part both for data leaking and remote attacks), but the response is not set in the javascript (status of 0 and responseText null)

View 4 Replies View Related

Android :: Developing Cross Platform Mobile Application

Jul 30, 2010

More and more mobile platforms are being launched and sdk's are available to developers. There are various mobile platform are available,Android,iOS,Moblin,Windows mobile 7,RIM,symbian,bada,maemo etc.

And making of corss platform application is headache for developers. I am searching common thing across the platforms which will help to developers who want to port application to all platforms.Like what is the diff screen resolution, input methods, open gl support etc. please share details that you know for the any of platform . or is there possibilities , by writing code in html (widget type of thing) and load it into native application. I know about the android , in which we can add the web view into application. by calling setContentView(view)

Please share the class details where we can add the html view into native application of different type of platforms that you know.

Purpose of this thread is share common details across developers. marking as community wiki.

Cross platform tools & library

View 5 Replies View Related

Android :: IPhone Single Codebase Cross Development

Jun 15, 2010

Is there a way, apart from using HTML and JavaScript on a web control, to have an (almost) single codebase for an application that should run on iOS and Android?The big issue is of course that they use a different language (Java for Android, Objective-C for iOS) for application development. It would be nice to have some sort of meta-language that will be translated in Java and in Objective-C.What about Flash? Adobe wasn't supposed to release a tool to create flash-based apps in iOS?

View 5 Replies View Related







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