This may sound like a stupid question with a "duh" answer but I'm really new to this.
I have a HTML/JS project I created in Eclipse. Can such a project be exported as an Android application or .apk?
Or does a new Android project need to be created and programmed in Java for what I'm trying to achieve?
(I know about Phonegap and it is not suitable for my project as it doesn't have support for WebGL that I need)
There are a few libraries, tools which will pack your code into a webview. So with some work you can create multiplatform web implementation, and the build too, ofc ( apk, ipa )
Check the Google for more, but one is popular: Phonegap.
Google: "platform independent web based mobile" "framework" " solutions"
You can open your eclipse project by Dream Weaver and build it by phone gap .
the integration between phone gap and Dreamweaver support all versions of WebGL .
Since you are using Eclipse (and for all the others who do), the .apk file of the latest compilation you did is always found in the /bin folder of your project
Related
Why don't we have a file similar to the .xcodeproj (for XCode applications) or an .xds (for Sencha Architect Projects) for our Android Studio Project?
I'm pretty sure a good number of you here have experienced the frustration of trying to import a project you see online in order to piece it apart better and learn how it works. I get that we are supposed to Import Android Projects built using Eclipse and Open Android Projects built using Android Studio.
However, why is it that we have to go through File -> Open -> then pick out the directory of the Android Studio app that we want to open? And the thing is, Android Studio doesn't seem to know it's an Android Studio project until it tries to open and build it. In the screenshot I have below, I have the sample Android Studio projects of ARToolKit, but I've only imported two of them.
As you can see, only those I've imported "can be seen as an Android Studio Project" as indicated that they have the Android Studio logo instead of a Folder.
This can be an issue for those just starting to develop in Android Studio on their own and they try and use existing projects (build from Eclipse or Android Studio) and they hit a snag with just trying to import the projects for reference. They might not know that they should import the folder and not the projectname/src subfolder. It adds to the "steep learning curve" that Android Development has if opening/importing projects aren't streamlined to a degree.
To sum up, my question is:
Why don't we have a single file that we can open that would in turn open Android Studio and import and build the project if it isn't built yet?
Android is not iOS. iOS development is only possible in xcode, hence it makes sense they added a shortcut to open it in xcode directly with a .xcodeproj file. Make life easier for iOS developers.
Android development however can be done outside of android studio as well. Eclipse is just one example, there may be other IDE's that support this. This is possible because android has standalone SDKs and tools that third party applications can use. iOS does not.
Imagine you are working on an android project in android studio. Then your boss tells you someone from 3000km away is going to help you. This guy may be using android studio, but maybe he isn't. When there are multiple options that developers can choose from individually, you do not want to pollute version control with files that you are using, but others may not care about. Each their environment.
This is merely a logical conclusion that you can come to by comparing. The "real" reason why this was done can only be answered by the people that created (adapted intellij) android studio.
This has been very frustrating to me too.
I try to give you a "beta" answer, waiting somebody to confirm it to me.
An Android project is just the composition of many parts that in some cases are concurrent to create the apk file.
It's just like what happens for the whole java projects: you have the main/src/java, the main/src/test, the maver or gradle files, the gradle or maven wrapper, the manifest, the configuration etc.
So you won't have a single project, but a series of folders that can contain many "flavours" or "versions" of the product itself.
The only help it is given to us is the Android studio icon that appears if a folder contains an android project in its subfolders.
I don't know if I have really answered to you, I just have given you my impressions and my thought.
I have an android library in the form of an eclipse project that I want to integrate with unity3d. I know I can make a jar from eclipse and drop it in unity's plugins/android folder. However as I understand it that necessarily strips out the resources from the project.
If I export the unity game to an eclipse project, I can right-click and add the android project as a library. However I don't like this approach because it doesn't fit with our current automation process - which basically just script's unity's build dialog.
I'd like a way to tell unity that I want this eclipse project linked as an android library on export. Does anyone know a way to do that, or how to pack the resources into the jar or another way of getting this stuff to talk?
One possible way to go is using Unity's Build Player Pipeline. Depending on the platform you are working on you then have to set up a shell script or do your stuff in C#.
It's some year ago that I were a Java/Eclipse expert as I am working on iOS now. The Android Developers page shows some way to manipulate projects via command line.
Maybe the better way to go is using Eclipse switches like --import (s. 1st answer in Create an Eclipse project on the command line? and the link provided) but on the other hand I can't find the switch in the help pages.
Well, not really a bounty answer but maybe some inspiration :-)
The only real answer I've found is that in 4.2, you can drop an eclipse project in plugins/android and it will be linked correctly. Just have to hang on I suppose. :-/
I am starting with PhoneGap but I am totally lost : I followed the getting started tutorial, so I've got ADT bundle (android SDK + eclipse + ADT plugin), i used create.bat in cordova to create a default project and I can run it on my device from eclipse.
The point is that the tutorial stops there, and in the default project there isn't any HTML/JS file, everything is java/xml like a normal android project.
So i made a new project from existing sources and this time I used PhoneGap (still don't understand what the heck is the difference with Cordova and if I need both or not) so I selected the "example" folder in phonegap for my existing source.
Now I've got a project with some jar files, but also an assets/www folder with index.html and main.js so this seems fine to get started : the point is that I can't find any tutorial for android which explains how to build an app from that.
Also, Ecplise opens index.html in a kind of WYSIWYG view (without editing) and there isn't any switch to html code editor.
Do I need to install Eclipse Web Platform or anything ?
And please can someone here who understands all that more clearly help me out ?
Thanks
Firstly, on the Cordova / PhoneGap thing: originally, a company called Nitobi developed PhoneGap. They were then acquired by Adobe, who open sourced the framework under the Apache Foundation - this is what's known as Cordova. Adobe are continuing to develop the commercially-branded PhoneGap, providing services such as PhoneGapBuild around that, and are also continuing to contribute to the Cordova project which remains at the core of PhoneGap.
You're right that almost all your development once you've got going happens inside the assets/www folder - that's where all your HTML, JavaScript and images etc will live.
In Eclipse, you can install the web developer tools by going to Help -> Install New Software, and expanding the "Web, XML, and Java EE Development" group, then checking "Eclipse Web Developer Tools" and "Web Page Editor (Optional)". Much more detail in: https://stackoverflow.com/questions/54868/what-is-the-best-html-editor-for-eclipse
In terms of an ongoing tutorial, one of my colleagues is currently working his way through blogging an example of building a very simple CRM system using Cordova; you can find these posts at http://www.vsnomad.com/tag/dtw-crm-sample/. The blog assumes you're using Nomad, which lets you develop Cordova projects within Visual Studio, but if you ignore the VS bits, the HTML and JavaScript should still be applicable to you.
(Obvious disclosure: I work on the team building Nomad for Visual Studio. Hopefully the sample is of genuine use even if you're not using the product though!)
I am building a project under netbeans with a lot of preprocessing instructions. Netbeans handle that pretty well but unfortunately it is not very well supported as an IDE for blackberry and android.
So the idea behind this question is to import the project into eclipse in order to get the new features of every plugin and ease the development. I already found a pretty nice solution for handling preprocessing instructions with Antenna, but I would like to know how to handle the multiple facets of the project : an android project with ADT, a blackberry project with its plugin and finally a J2ME project as well. My goal is to taking advantage of the best plugins eclipse has to offer.
(And the project compiles with ant, so no real problem on this side).
Regards,
Stéphane
Well, you would have to create a separate project for each Android, Blackberry etc in the same workspace, then you would have to define the logical dependency between those projects. So if Project A is dependent on Project B, right-click on Project A in the project tree then Properties > Java Build Path > Projects and add the Project B to the list of projects Project A depends on.
This will allow you to work on Project B as if it was a stand alone project and you and work on Project A as if Project B was a part of it.
You can do this with any number of projects.
Regards,
get BB eclipse plugin from Blackberry site
install Android ADT manager from developer.android
install j2me wireless toolkit
create all project separately into same work space
use relative sdk for build path
after creating project you can also copy your source files to your project n file system, you can defile project dependency as Ali said
i reccomend to disable pre-processing, if you are using ant to build, just disabele it from windows > preference
My Suggestion to you is build your project in HTML5.If you are targeting the android as well as Blackberry .I do not Know How you will do it but It will be really easy to transform the the application of Blackberry to Android.
You have to install the BlackBerry plugin from the RIM site and it is a huge download that includes Eclipse itself. Then you can add the Android plugin via the Eclipse "Install New Software" menu.
I personally did it on my home machine and here is how How I had done
First install the the Eclipse plugin provided on blackberry developer site
Next install the android in same eclipse from Android developer site.
And voilla you are ready for android and blackberry development on single eclipse. I dont know about J2ME bcoz I no longer works on it but I think the plugin for Eclipse will do the work
This may not be quite what you're looking for but perhaps use Ant to do the builds, packaging etc. That makes it easier to support multiple platforms, set preprocessor macros etc. So the IDE would be used for mostly editing. Note that on BB you can have the IDE refer to the .jar thus resolving dependencies.
I had faced a similar issue. I installed Android first and was working on Google maps project .Since I shifted to Blackberry for a while, when i tried installing that plug-in,it did not accept it. Later after much research I found out that the Emulator for android was supporting Maps which inturn does not support installation of BlackBerry. Pretty weird. Like ber444 mentioned, BB plugin is a huge download file of 402 MB which consists of eclipse 3.5 support.
I was working on Ganneymede for android and installed indigo for BB but its not supported
I'm really new to android development, and now I'm doing a group project developing an android application and I'm in charge of user interface. My teammates are using eclipse to write code and I'm using App Inventor to design the UI. My question is, how do I export the UI to eclipse? or can I?
http://appinventor.googlelabs.com/learn/userfaq.html
Can I develop in App Inventor and export the source code to Eclipse or some other IDE to work on it further?
No, App Inventor does not generate Java source code.
If you want a dirty hack, create the apk with app inventor, and use APKManager to extract all the xml files from the res folder. You can add then those to the Eclipse project.
APKManager thread
A version of App inventor is being worked on that can export directly to java files and even an Eclipse project.
Check it out here:
https://appinventortojava.appspot.com
The last time that I checked, you cannot export it. The Android plugin for Eclipse does give you a (somewhat unreliable) drag-and-drop interface for the UI layout. You will learn a lot more about Android and programming if you do all the work in Eclipse, too.