How to run linphone in android studio - android

I want to integrate android video chat in my app.I am trying out linphone but they just have provided source code with no documentation and no sample modules.I imported project in android studio just to get lot of errors.I did not find any tutorial on how to run it in android studio all the tutorials are outdated using eclipse.So,is there any link on to run linphone in android studio so that i can start to explore it.Please help

Did work for me on mac on this
Note :- the build script tries to read a file RELEASE.txt in the root of /ndk-bundle/. It has been removed since >= ndk 15.
You need add a RELEASE.TXT in the root with text containing following
r15c (64-bit).
Rest is all the same.

Related

How to debug NativeScript java code in Android Studio?

I'm quite new to NativeScript. Currently, one of my projects is using NativeScript to develop cross-platform app. It has a 3rd-party lib which is written in java. But the result is not as good as I expected. I was struggling to find the problem since the console didn't log valuable info regarding to native code.
Instead, I import the project to Android Studio which is under the folder of platform/android. But it logs error when I hit the "run" button.
I want to know:
Is it possible to debug native code directly with VS Code. At least print out java native error or cat log.
How can I debug native code in Android Studio? How to solve the problem I ran into?
I'd be very appreciated, if anyone can answer my questions. Thanks!
Let me start off by saying there's no official integration with Android Studio. All I can provide is a workaround that will make it possible.
Note: The steps provided below are tested with NativeScript CLI 3.1.1 and will probably work also with 3.2.0.
The first problem is you don't have "node" set in your global path so first of all, you need to add it to PATH. Node required for NativeScript to run. You can look at how to set it up here
If you want to be able to run the project with Android Studio you can follow these steps:
After you've done that you need to change the <app_name>/platforms/android/build.gradle file as described here
The above change will enable you to open <app_name>/platforms/android in Android Studio
Run <app_name>:clean task from gradle
Run the task default for Android Studio, that will prompt you for emulator or device on which to run:

Xamarin:Render pdf by MuPDF in Xamarin android

I want to use MuPDF reader for my Xamarin Android project .
In all pdf reader i found this free PDF plugin that has ported from java to xamarin . When i compile the project in viusal studio 2015(compiled with 23 api) and run it on emulator , it stops working .
Actually at first i rendered pdf with MuPDF without any problem, but after one day . i can't run it on emulator(or android device).
You can download or see my project here .
Main site : www.mupdf.com
Followed instruction for this project : xamarin forum
At last i add MuPDF ported library from nuget.org
Just run following command in the Package Manager Console(the latest update).
Install-Package Askaiser.Android.MuPDF
that works correctly for Xamarin .

ARToolKIT for android issues in examples

I copy whole code base of ARToolkit and try to run android studio examples but each example just crashed on start. Than I download android sdk bundle from Artoolkit website, in this only eclipse examples are included so I migrate it into android studio(using default android studio migration). Now ARSimple is running but for any example including native code it gives linking error. For exaple for ARSimpleNativeCars i got the following error while making in android studio.
Error:(49, 24) AR/gsub_es.h: No such file or directory
in order to run the native examples you need to run the build script first. Unfortunately they are currently only working on OSX and Linux. You can find them in this directory in your GitHub clone:
https://github.com/artoolkit/artoolkit5/tree/master/android
Also you can find a documentation on how to port projects from Eclipse to AS here:
https://github.com/artoolkit/artoolkit5/tree/master/AndroidStudioProjects/Docs

Where to get copy of Android Studio's WiFiDirectDemo code?

Where can I get a copy of Android Studio's WiFiDirectDemo source code? I see lots of tech articles with broken links to http://developer.android.com/resources/samples/WiFiDirectDemo/index.html. Much of Android documentation (such as http://developer.android.com/reference/android/net/wifi/p2p/package-summary.html) also have this broken link. I have downloaded the latest Android Studio and the SDK Manager, and I cannot find any sample/demo code within the SDK's installation directory nor the Android Studio's installation directory. A 'Net search for "WiFiDirectDemo" isn't finding much either. Has this sample code been pulled for some reason?
They changed the project name to the "Beam Large Files". This project is not using Wifi p2p.
Screenshot for Sample Project

Sync android framework code and build with custom changes

I'm a Java developer and now exploring android.. I've learnt developing Apps but want to customize the framework and build it and deploy on my phone.. Web says a Linux machine is needed. I installed Ubuntu virtual machine on my windows 7 Machine..
How do I now sync the code and carry development?
Installing stuff and building android from source code
Installing the repo client.
Time to create a working directory so you can put the downloaded code there . Now If you know the branch/version of android you want to download you can initialize the repo and start downloading.
Follow the links below for more details on how to setup the repo (wrapper around git) and start downloading the source code.
Finally when the source code download finishes , start building the source code .
Finally run it...
emulator
FYI :
Make sure you have java (the version mentioned on the links) is in your system path.
Here are some resources to try building android from source code.
Android source code page
I wrote something on it as well...Read it here

Categories

Resources