Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I wrote a c++ project on my computer for stabilizing a video using OpenCV. But I want to write this project to android using Opencv4Android. For doing this, should I make new project or Is any way to convert that project for android by using NDK? If I can use project of mycompter, Did need many changes on that c++ codes? What steps need to convert or porting a computer opencv project to android opencv project?
This is a really general question, so I will try to break it down a bit.
First, lets forget about the openCV for a second.
You want to create a c++ project for Android. When building a c++ code for Android, you build it by means of NDK. I suggest you start with this tutorial, and first try to build a very simple C++ project with NDK, that compiles, and see that you're able to run on an Android device.
Things will get much clearer for you then.
After you mastered that, I suggest you start moving your code in small bits to that project, meanwhile replacing the OpenCV functions with stubs, and have that code compile and run (doing nothing) on Android.
After that, read about integrating OpenCV dependancy into an NDK project, this is not that hard (at least it wasn't in my case).
This step-by-step was pretty usefull for me.
As to the question whether you can "automagically" translate your (probably visual studio) project files into an Android NDK make files -- the answer is usually no. There are tools that'll claim to be able to do just that, but I was never successful with any of them.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I would like to know if there is any command to create a Java Web Project like the command Create Java Project , in Visual Studio Code.
I need to create a Java Web Application from scratch and I don't know the folder structure that Visual Studio Code uses.
Thanks
There is no direct template available in Visual Studio Code that does this. One option is to clone an existing GIT repo with a skeleton that matches the stack you need. For example like they explain in Java Web Apps with Visual Studio Code.
Another option is you visit a generator like JHipster or Yeoman and let them generate a project and folder structure for you which you in turn load in Visual Studio Code. Note that Visual Studio Code can load any folder structure and does not mandate a folder structure itself.
P.s. you might need to install a number of extensions in Visual Studio Code to work properly with Java based web projects. A quick scan reveals plenty of those in the marketplace.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
UPDATE: Todays time android automatic suggest and check marked the required packages.
I am so much confuse about installing Android SDK packages. What packages should I install from this long list. I am beginner student and it not make any sense to me what things does what.
I need a minimalistic setup for very basic or beginner level app development.
what the best installation for eclipse (minimum packages).
Give me best idea for this install packages.
If you are planning to develop for API 15 and above, then just download API 15-23 to get the minimum download as well as maximum tools. API 15 is what I use as it takes up 90+% of the Android market, and is a good choice.
I would recommend you download all the Extras, especially the HAXM if you are planning to use the Android emulator to develop instead of testing your app on a real device.
For the Tools/Build-Tools/Platform-Tools, I suggest only downloading the latest version, and if you are planning to save space, delete it and download the next latest version which can be seen in the Rev. column. As a beginner, I recommend you don't try out the Tools(Preview Channel) as they can still contain glitches or are unstable as they are still in alpha.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can I build Android apps using C# in visual studio ?
If there is a way of doing that, what is the better using java or C# ?
In my opinion i always have to fight with myself and about the languages. C# and java are two totally different languages with similar syntax. The question you should really be asking is "what do i want to do". then debate over the language. I would say stick to java for android applications. However if you want to use c#. You cannot use Visual studios for this. However there is an alternative to visual studios and its Xamarin. I haven't personally used it though i know people who have and its very good.
But yes, Figure out what you want to do and which language would be best doing that.
Yes and no. You can use Cordova/PhoneGap with Visual Studio to build apps.
Cordova for VS
This does not use C# (apart from your back end services, which can be anything really). I use this with Angular.js and [ngcordova] to build apps and it works nicely.
You can have a "more C#" experience using Xamarin, there is a simple free version but a really rich experience requires a license purchase. Explore it further at Xamarin
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I created this game using java in eclipse (Kepler) JDK, but I want to publish it on android. I am completely new to this subject. I downloaded Android Studio as a friend suggested me to, and he told me that there were new libraries that i had to import. The game is quite complex and i imported a lot of things like color mouseevents sound and other various things , and I just want some guidelines on what i am supposed to change, or if its possible to run my game on android without changing anything from my java eclipse program.
thank you for any help in advance
You're going to have to rewrite the entire UI and input handling code. Android does not use the standard Java UI. You should start out by reading tutorials on basic android architecture, the activity lifecycle, and views.
Totally agreed with #Gabe Sechan that you have to rewrite most of the code which would be compatible with Android. One of framework which support Java language and used to create games(mostly 2D) for most of the platforms is Libgdx. You can go through that framework if it can help.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
So I got this idea that I want to implement as an Android application. Now what I have learned so far is Java, C and C++. As I understand, Java would be the smartest choice right? Have to mention tough, my experience is of a 1st year CS student's.
So I basically want to make a application that you can launch from the phone and it will also have a little database and fetch info into it from the users Facebook account.
So my questions are these:
The facebook part seems to be the hardest one to me. How is this done? Are there any articles around where I could read about it.
Second is, should I develop the application in Java?
And third one is... If I do it in Java, I see that Google has a lot of stuff up for learning all of it. It also features two development kits. One is a stable version which works with eclipse and the other one is a preview thing which is a 0.xx version.
The second one seems to have all thoes fancy thing tough like having the phone preview on the screen all the time so that you can see how it looks like on the phone. And it seems to me that the Eclipse version does not have such features. So which one would be smarter to pick?
Today, most apps for android are written in Java and with Eclipse. I would recommend you to do the same, because it is the easiest way at the moment (IMHO).
The Android Studio is still in the alpha state (as you said), so it can have some bugs. That's why you should use Eclipse (Android Studio looks great though).
Two simple links to put you in the right direction ;)
https://developer.android.com/training/basics/firstapp/index.html?hl=cn
https://developers.facebook.com/docs/android/getting-started/
Edit for "how apps looks like in eclipse":
You have 3 options in eclipse to get a view of your app:
1. The xml-layout builder: in Android, you can create the layout of the app via xml or code. In Eclipse you have a preview of your applayout which you designed in xml (How it looks like)
2. Upload the app on your phone and watch it
3. Upload it on an android-emulator, so you don't have to use a phone
Follow this link for starting android apps development https://developer.android.com/training/basics/firstapp/index.html?hl=cn
Facebook is providing separate SDK for integrating with android apps & this link will help you https://developers.facebook.com/docs/android/scrumptious/