I'm a beginner trying to learn my way through making my first real Android app. I actually started an app using Eclipse and have gotten pretty far with it. I'd like to be able to continue its development using B4A. Is it possible to bring my work from Eclipse into B4A?
What you can do, is to wrap your existing code as a library and then reference it from Basic4android. See this video tutorial.
B4A is a language on its own and it has its own editor.
While, in theory, you can edit project files of a B4A application with any editor, I would assume that you used JAVA as your main programming language.
As B4A uses a language that close resembles (Visual) Basic that, in turns gets converted into JAVA while compiling, you have actually 2 choices in front of you if you want to use B4A:
1) the first is to port your project to B4A but this means that you will need to rewrite the code according to the B4A language specifications;
2) the second option would be to integrate your JAVA code running it inline : see this forum post on the topic
2) if you can pack whatever you wrote as a library module to be used later on by B4A, you could opt to do that: see this forum post on the topic
Related
I found this project on github https://github.com/noio/kingdom, and i was wondering how I would compile it. Im somewhat new to coding, so if you could answer it simply and clearly that would be great.
The project is written in ActionScript (by Adobe) and I recommend you to use FlashDevelop, a free code editor. Give a look to their ActionScript 3 wiki, which gives you a full overview of what you need to get started and compile your code. Since you are new to programming I suggest you to start from the very beginning, within a simple Hello world! before messing which such big projects (it's a lot of fun, I know :P).
Does anyone have any experience combining React Native and Unity? I'm looking to start a Unity project that's very UI Heavy and I'm thinking about using React Native to take advantage of its UI capabilities on mobile and web.
I'm curious what the workflow for such an approach would be.
Finally after a lot of trials managed to do this. These are the steps.
1) Using this link, export android project for Gradle.
Select Gradle in the Build Settings window and check the Export Project checkbox.
Click Export and select the destination folder.
2) Import the generated folder in Android studio. Select ok whenever prompted. In this process, you will encounter following issues
2a) Gradle Sync Failed due to org.gradle.api.internal.tasks issues. Resolve using this link
3) Create React Native App using this link
4) Start Integrating Android exported folder inside created react native app using this link. Don't upgrade Gradle as Android studio will ask you again and again. You will encounter following issues. Don't go through "Test Integration" until you are finished with #5 here.
4a) While configuring maven, use this url for maven url "$rootDir/../node_modules/react-native/android" .
4b) While configuring maven, if you encounter problem related to javax.inject:javax.inject". Use this link.
4c) You may also encounter this error "Conflict with dependency 'com.google.code.findbugs:jsr305'". You can solve this link.
4d) During Code integration section of this link, focus on the following section: If you are using a starter kit for React Native, replace the "HelloWorld" string with the one in your index.android.js file (it’s the first argument to the AppRegistry.registerComponent() method). Here you have to replace with project name.
5) Before going through "Test your Integration" section, you have to add code to call MyReactActivity from UnityActivity. This link will help.
6) Go through "Test your Integration" section of link provided in #4. You may encounter following problems.
6a) unable to load script from assets index.android.bundle. Use this link.
6b) could not connect to development server on android. Use this link.
Check my article on Medium
I've shown with an example on How to integrate react native with Unity 3D step by step. My aim was to use the react native within the Unity3D like a module which is quite convenient if you're gonna heavily work on Unity 3D. Hope this helps for someone who comes here later.
I'm unsure as how a Unity game is built for iOS, if it uses Cocoa Touch for rendering its core classes.
If it does, and you have access or ability to render a UIViewController then you can render your React Native application. The only thing you would have to facilitate is setting up communication between the two applications.
Here is an example of rendering a native UI Component inside a React Native app that may help. http://moduscreate.com/leverage-existing-ios-views-react-native-app/
I was curious as well, and created an example project of how to do this for Android: https://github.com/marijnz/unity-react.
If this is a viable option, at least depends on:
How long the project will be running, both React and Unity have to be updated and this gets probably tougher over time.
The amount of sdk's/dependencies the project has.
If you want to do iOS as well.
In general, I'd probably avoid going this way.
Even though the example seems pretty simple now, it was a pain to get to that (as Shaunak's answer already hints at ;))
I want to use Eclipse to develop code I will be uploading to my Atmega 2560 microcontroller. I could easily use the Arduino IDE to do this, but in my opinion, developing on Eclipse is a whole lot easier.
So, I followed this guide.
I get to the step where I have to add a programmer, but when I click on the Add button, nothing happens.
Does anyone have an idea as to what might be the problem?
The issue here is that 6.0.x series of avrdude uses a different configuration file which the avr-eclipse plugin is not able to parse. There is a ticket filed for this in the bug tracker in SourceForge.
A temporary solution would be to downgrade to avrdude 5.11.x.
Cheers.
I tried to use Eclipse for Arduino development and I followed this tutorial too but it didn't work for me. Also I couldn't find normal description of how I have to use it. From the other side so called Arduino IDE in my opinion isn't IDE it's very primitive buggy editor(looks like amateur product).
To upload my program to Atmega controller I decided to use avrdude direct from the console, where I specify programmer type and hex file that I want to upload. In this case I write program in c and use avrgcc toolchain for compiling and linking. However the question about IDE is still opened for me(the main problem for me that I don't know how to debug my code without IDE).
Also exist Atmel IDE AVrStudio. I didn'y try to use it, my I will mention it like a variant that you can try if you want.
Getting AVRDude (used by the AVR-ecplipse plugin) running on Windows with USB connected AVR programmers can be a real pain, often involving very specific driver uninstall/install sequences, such as those described at the bottom of this forum topic. I used to use Eclipse for my AVR programming, but have since moved to the new iteration of Atmel Studio. Version 6 is now available, and its relatively straight forward to get everything working well. There are a few things odd about it, but it has improved a lot since AS4.
Exists some way to do hot redeploy when developing with gwt 2.4 in eclipse so i can make some change in the view like the text of a label and then press refresh or something like that and the modification appear? that problem is because the project i'm running takes at least 50 minutes to compile and wait 50 minutes just for one text of a label for example is hard...
Well ok, you're question is somewhat vague, but here's some points that hopefuly will help:
Yep, GWT compilation is slow. If you have a big GWT project, it might take good minutes for it to compile. This is sort of a known issue. What you can do to solve this is split your project into multiple GWT libraries and just compile the library you're currently working with.
Regarding hot deploy: your gwt project has two types of code: client code and server side code. The client side code (which is translated to Javascript by the GWT compiler) is hot-deployable. If you follow the instructions here:
https://developers.google.com/web-toolkit/gettingstarted
you'll have a "magic button" that lets you hot deploy your project into any of the more popular browsers. This means that you can modify your client-side code, refresh your browser and it's updated.
For the server-side code that doesn't work. AFAIK, you need to re-compile your project for those modification to be taken into account.
Have you tried GWT Designer?
Read more : https://developers.google.com/web-toolkit/tools/gwtdesigner/
I'm evaluating the possibility of developing an Eclipse plugin to modify the source code of some Java files.
The Eclipse plugin should:
add one menu option or context menu option to launch the modification process.
add a key binding
only alter the UI in that way when an editor has been open on a Java file.
the modification process would not open a dialog, or maybe, a very simple one.
the modification process would traverse the AST of the Java file and would modify it.
Considering that we have no experience with Eclipse plugins and we need spend time in reading docs, how much time do you estimate in developing that plugin?
Thanks in advance.
It's really not that difficult at all... I had students in my design patterns class doing it for an assignment (adding/removing javabean getters and setters)
See http://help.eclipse.org/ganymede/topic/org.eclipse.jdt.doc.isv/guide/jdt_api_manip.htm
[EDIT: added the following article reference]
And a great article on it at http://www.eclipse.org/articles/article.php?file=Article-JavaCodeManipulation_AST/index.html (from 2006 -- there may be a few API changes since)
Yes, writing plugins takes a little getting used to, but so does any API.
And you can modify the AST -- see the page I reference above.
(I should note that the above link is from the eclipse help, which can also be accessed via Help->Help Contents inside Eclipse -- there's a lot of good info in there, but it's just a starting point)
You'll probably spend quite some time cursing the complexity of the eclipse plugin system. There are some example plugin development projects that can be very helpful if they cover the area you're working in.
I'd say you're looking at 2-4 days of work, spent mainly getting familiar with the platform - someone with a lot of experience writing eclipse plugins would probably take no more than an hour.
However, your step 5 could be tricky. I don't know how easy it is to access and change the Java AST; my experience is based on developing an editor plugin for an exotic file format rather than Java code.
Well, the four first points are easy to achieve, even by monkey coders that look at the eclipse PDE documentation shipped with Eclipse. These can be achieve in 1 day of work, maybe 2.
The hardest point is really the fifth one and the kind of modification you expect to do. Acting directly on the editor content is simple, accessing the editor internal AST and modifying it is really a bigger challenge and I doubt that it could be achieve in less than a week by unexperimented people (it can take longer, depending of what kind of modification you want to apply).