Superpowered plugin with Android Studio - android-studio

May I have a step-by-step tutorial/instructions about how to install superpowered plugin on Android Studio?
I'm new on mobile developer world, and I have no ideia about how to do it.
Thaks a lot and sorry about my English.

Superpowered is not a plugin, it is a library.
First you need to know JNI because android is mainly programed in Java and Superpowered is in C++, so you are going to need the JNI interface (is not really complex but you need your time to learn it)
Few months ago Superpowered was linked with the experimental gradle plugin, and it was very easy to link Superpowered with your project, but now CMake is the "official" mechanism for compile C++ in Android Studio so for new user is a little bit harder, but also is not really complex, so you need to know a little bit of CMake to link superpowered with your project, here are some info
and also watch the examples of Superpowered for Android, there it comes how to link it, is a really good start.
then when you have those 2 elements you can start using Superpowered.
it looks complicated but it worth it.

Related

Android Studio for Dart without emulator

Is it possible to use AndroidStudio (for Dart) withOUT running an emulator?
Context: I am a complete newbie and have started reading some intro books and following online tutorials. I am aiming to learn DART and FLUTTER and have successfully installed AndroidStudio and an emulator and ran some successful test projects like helloworld.
The thing is, these early example projects are VERY basic things, to teaches me about variables and syntax etc and outputs results to the console. At this point, i do not need to boot up an entire emulator (which adds a layer of clunkiness when running)... but AndroidStudio seems to insist on one being activated?
I could use "DartPad" (which i love) for simple stuff - but it's limited and i'd prefer to learn one dedicated IDE if possible.
It depends on what you are actually running. If you are using Dart alone, you should be able to run it. Personally, I do these kinds of projects within IntelliJ Idea - which Android Studio is based on anyway, but doesn't come with the Android "overhead". Microsoft Visual Studio Code is another valid option that many people use.
If your project is based on Flutter (i.e. it contains UI), you need a "device" to run on - it might be the Android emulator, iOS simulator, Chrome or native (experimental).

Intellij Idea Ultimate or Intellij Idea Plus PyCharm and Android Studio

I am coding Android Apps, Server-Side Python Code and using Spring Framework. I have a student license for JetBrains. I like things organized, so should i use Intellij Idea with Android and Python Plug-in or PyCharm, Android Studio and Intellij Idea separated.
Is there too much pros of Android Studio and PyCharm over Intellij Idea plug-ins.
Note: I asked that question 'cause previous questions about this subjects are about android and python separately and also not up-to-date. The nearest question is almost 1 year ago.
Edit: My decision is to go with Intellij Idea Ultimate only. I leave the question open in case some expert want to answer that question detailed. But you can read this answer that help me made my decision.
Long story short: Android Studio and PyCharm can be more up-to-date but the difference is not to much. JetBrains also developing PyCharm, they usually update Python plugin of Idea quickly. Idea is better in terms of Jython. Also, in terms of Android Studio, JetBrains can also add some features that Studio doesn't have. And since new Android Versions are not become widely used too fast, Intellij Idea can apply the changes before it is late. (Both Android Studio and PyCharm based on Intellij Idea.)
For Android development, just use Android Studio. It’s developed by Google’s Android team (instead of JetBrains) and always has the latest Android-specific stuff that IntelliJ IDEA’s Android plugin might not.
(For server-side Python, I’m guessing the choice of PyCharm or IntelliJ IDEA doesn’t really matter much; they mostly have the same features. But I'm no expert there.)

Does Intellij Idea have instant run?

It is some time now since I first heard about instant run in Android Studio 2.0. Is it ever coming to IntelliJ Idea? I have 2016.1.2 and still nothing. I can imagine it can speed up development. I am still tearing my hair every time I press run...
Couldn't find any valuable information about this online. All what google finds is just "IntelliJ and Android Studio is made on the same code base" I guess it is more complicated than that.
Seems like it's going to be released in Intellij 2016.2
Quoting 2016.2 EAP Release Notes:
Android
Android Studio 2.0 features.
Edit:
Looks like it was eventually released and made production ready in Intellij 2017.1
Quoting the What's New page:
Instant run
This release adds many stability and reliability improvements to
Instant Run. If you have previously disabled Instant Run, the Android
team encourages you to re-enable it.
No. From IntelliJ IDEA 2016.2 Notes:
Android
The update includes the Android Studio 2.0 features: faster Emulator, experiment GPU Debugger, faster full builds, and code generation and testing for App Indexing. Note, Instant Run is not fully-merged yet.

Add reference to CMake project in Android Studio

In my particular case, I implemented a cross platform project in C++11 that uses CMake. I initially designed this project to work on PC (Windows, Unix), but now I realized that I can use it on mobile platforms too, without re-implementing the business logic on every platform. The project uses standard libraries: Boost, Poco, OpenSSL, Protobuf.
After a few searches I came to conclusion that this is not even an usual mode to put together native and managed code in Android.
Is it possible to add reference in a Gradle project in Android Studio to a native project that uses CMake?
Can NDK adopt the project in a simple manner if I compile everything in command line (assuming I don't use Android Studio)?
If it is possible, is it recommended at all?
Is it possible to add reference in a Gradle project in Android Studio to a native project that uses CMake?
Since Google announced Android Studio 2.2 that comes with cmake plugin, so it's possible to reference CMake project to android project.
Can NDK adopt the project in a simple manner if I compile everything in command line (assuming I don't use Android Studio)?
In my experience, i compile NDK in separate way and then link the static/shared library (.so file) to be used in android project. I used NDK while developing PDF Reader using mupdf here
Hope this helps.
it would be possible with android studio 2.2, mainly the android plugin for gradle makes it possible. you could look at some examples in:
https://github.com/googlesamples/android-ndk/tree/master-cmake
android studio directly reads-in your cmake scripts -- there is nothing like desktop systems that generate project files for their native IDEs ( Visual Studio or XCode ); so you might have to modify your existing cmake files to eventually make it to work for android studio.
as long as you build to the correct APK, command line or IDE does not matter too much. If you intend to ship source code, having your project ready with an IDE would be attractive.
Please see CMaker_Boost, build the Boost with the CMake at a configure time. Now it is tested on the Linux and Android, gcc and clang. This can be included to the gradle project in the Android Studio. I hope this helps.

MoPub integration with Android Studio and LibGDX

After reading some people talk about how you can suddenly get banned from AdMob I decided to look into other ad networks and MoPub with their mediation looks like a good option.
For the past few hours I've been trying to get it to import into my project for which I use Android Studio and LibGDX, the instructions on their site are only for Eclipse and from Googling I haven't found a solution that works with Android Studio and LibGDX.
I tried a lot of things, but after hours of failing I decided to ask it here, all I have after today is the mopub-sdk folder in the libs folder of the android project. Is it possible to use MoPub with LibGDX or should I find an alternative?
I'm looking forward to your answers and thanks in advance!
Cheers.

Resources