I'm starting on a project with Nativescript. I want to create an app for Android and iOS. I want to create a navigation bar at the bottom of the screen.. I used a github project for Android for this in another project, but since this is different from native Android I don't know if I can use this..
The github project I mean is: https://github.com/roughike/BottomBar
Is it possible to use this in my Nativescript project and on both Android and iOS?
Yes you can use it in your project. I almost made a plugin using this lib months ago but no time :) I did start here wih another bottom bar library https://github.com/bradmartin/nativescript-bottomnavigation reusing native libs is the greatest thing about NativeScript for me and it's pretty easy once you know how to include the library into your project. Which it seems you might know about gradle and android projects so you shouldn't have much trouble :) feel free to look at my plugins or the hundreds of others for help.
I just finished, (in the last hour that is), struggling through getting my first NativeScript plugin going and this post was the piece that really helped me. Like Brad said, once you have the right bits in place, it goes fairly well. :)
Related
I want to make an android app using Kotlin for the back end and Android Studio. For the front end, I understand that React Native would be a powerful choice, however I cannot figure out how to add ReactN to my Kotlin project.
I also tried creating a project in ReactN and then adding Kotlin: installed nodejs, npm and create-react-native-app, made the project. Then I tried opening it in Android Studio, but I wasn't getting any options to actually compile and run the project. So another question would be: can you work on ReactN projects in Android Studio or not?
If you could give me some resources on how exactly to do this, or if you can walk me through it step by step, it would be very helpful. I want to mention that I've never developed for Android or Web before (I'm mentioning about Web because I cannot rely on any Reactjs knowledge from Web dev).
React Native is whole framework, for front and back end, and have nothing to do with Kotlin (well, some Kotlin snippets may be integrated into RN app, thats all). RN projects are in fact multiplatform web/js based apps and Kotlin is used for writing pure Android apps, so this isn't a front/back end separation in here, these are just different approaches to development. Mixing both, while possible, makes no sense in most cases
I have a project that I have been working on which is a standard android application that does not include any other external libraries at this time. I am now looking at making a game at the end of the app(its a quiz so after the questions I want to make a mini game).
So what I am trying to find out is can I just import the libraries that it uses and connect them to my project rather than creating a LibGDX project and importing that?
What it comes down to is your personal preference. In answer to your question, yes you could just add in the jar files and such into your current project, however you are going to have to edit your manifest and some add in some other stuff besides jars using this Setup. In my personal opinion it would be easier to create a libgdx project using the tutorial found here, but in the end as I said before it all depends on what exactly you want to do.
Before deciding, ask yourself.
Do I want to have everything in one project, or can it be in more than one?
What would be better in the long run for managing my app.
Do I want ease now or later?
Cheers!
I'm trying to make an android application which includes two different projects created and exported from Uniy3d, one is a simple interactive 3d environment while the other is an AR application based on Vuforia's extension. I tried many tutorials in unity Forum and vuforia too but it doesn't seem to work... maybe because it's outdated since you can just export the unity project to eclipse in the last releases.
Do you have any idea on how I can possibly do this ?? Any help would be appreciated...
Unity3D 3.5.7 and blow will generate apk directly, you can try Unity4 and it will generate an android project which can be import into eclipse.
The best thing to do is to create the whole application in Unity3D since it's possible to have a good User interface with it and not divide it into parts....
In my recently started internship (I'm studying computer science), I have to port a somewhat big existing Project to Android. It is a Visual C/C++ Project which in the end should run on Android using of course the NDK. The problem is that I don't know a thing about porting software, since this is not covered in my studies...
I had a few days to get to know the project I will be working with a little.
A few words about the complexity:
It is a Visual Studio solution which consists of 28 projects of which most are kind of big...
And now I need to develop a concept for porting it to Android, and this is why I'm writing this. I have absolutely no idea know where to start, also I don't know how to get to a concept for porting it. I tried searching online for some stuff or for some books covering this, but I found nothing.
Of course I know, that basically I have to remove everything that is Visual/Windows specific and replace it with appropriate Android/Linux functions or implement something new if there is nothing corresponding on Android.
But since this project is somewhat huge, I can't just try to compile it with the correct compiler and work through the error messages, this will lead to nowhere, I guess...
So now my actual question:
Is anybody experienced about this or something similar and can give some tips how to start with it? As I said, I first need a concept. Something more general about how to start and deal with porting a software project of this size is also very welcome, since I don't know nothing about it...
I think that you're approaching the whole matter in the wrong way. There are several tools that will allow you to compile C# and visual C++ and other visual languages from their respected IDEs to the android platform. For example there is mono for android . Mono is a plugin for visual studio which helps you create android projects using visual studio and .net technologies. I think you should focus your research on tools like this because changing all of the code manually is nearly impossible and too time consuming. Here is a page that will help you get started with mono for android. Good luck.
See this answer Android NDK with Visual Studio.
Personally I don't use this, but It seems to be a nice solution to your problem.
Like you, in the past, we had to port a big Visual C++ library project to Android, we proceeded in this way:
Try to compile the main library interface (by creating the relative Android.mk)
By using linking errors, you should guess other projects to be compiled and create the mks for them
Cycle until you have no more linking errors.
You didn't tell about the source code size of the project (how many thousands of lines of source code).
If the code size is big enough (e.g. at least 100 KLOC), you could consider customizing the GCC compiler (assuming a recent 4.6 or 4.7 version), perhaps using MELT (a high level domain specific language to extend GCC), or painfully coding in C a GCC plugin. This GCC customizing approach is worthwhile only for large code bases (you'll need several days to master GCC internals).
On the other hand, many well designed applications may have packaged their operating system functions inside a well defined interface and library. You might consider porting your application to Qt or some other cross-platform library.
We need more details about your project to help you more.
I'd like to bring out an Android app in the near future, so I was wondering
how to support a couple of funcitonalities I have got used whilst
developing for J2ME and iPhone
first the versioning. With J2ME (using NetBeans as IDE) I had the
option to auto-increment the softwwares version every time I compiled
it. I was wondering if something like this is available for Eclipse
and if so how to use it ?
secondly a common code base. Is it possible to have a common code
base for several projects ? For example I might have a game which
actually uses the same code but needs different graphic resources. I'd
hate to have a different project for every game/app and have to
manually edit every project's source every time I want to submit a new
code-change. Any solution for this ?
Thanks in advance for every kind of help/hints/tips !
Another idea:
If you can package the common code into Classes then a library approach would help.
In eclipse under project properties you can add a library to your project.
Hope this helps you on.