Is it possible to write closed source android program with python? - android

I am making an android game using Python.An i was wondering if it is possible to write closed source android program with python?

Assuming you aren't re-using code under some sort of open-source license you don't have to post your code for anyone to see.
I believe you mean that you want to write Python code that can't be read by humans. That is pretty difficult in Python and the best you can really hope for is obfuscation.

Related

How to open my Android native application with Xamarin.forms?

I've been developing an Android application with Android Studio and now I need to be able to open it with Xamarin.forms in Visual Studio (it's a task that my teacher gave me, and it's because a classmate has been creating the iOS version and now we will combine them into one project).
I have to say that I'm pretty much a noob and been looking a few tutorials that talk about Dependency Service and other stuff, but don't seem to quite cover what I'm looking for (or, at least, not clearly enough).
If you have a precise video that explains simply how to do this, I would be grateful if you share it with me.
I thank you for your time and wish you a great day :)
It is impossible at even now in current version of Visual Srudio .
Every file in Xamain is different with Native Android . The Java code can not be directly copyed to use in Xamarin , you should translate them to C#.
Having a look at this document: Porting Java to C# for Xamarin.Android .
There are two ways to port Java code to C#. The first way is to port the code manually. ..The second porting methodology is to try and automate the process by using a code converter...There is often a non-trivial amount of work involved with bootstrapping an automated code conversion tool, and this may prove to be a barrier to use. In many cases, it may be simpler and easier to port Java to C# by hand.

How to automate calculations in an Android calculator app using selenium or selendroid

I would like to automate the big calculation matrix[excel] which I have for testing using 'Selenium' in the native calculator app.
Could you provide more information please about what you're wanting to do?
From the information provided all I can suggest is you want to be creating a Selendroid Driver and using it to find and click the relevant elements for your calculation test. Possibly something along these lines (although I can only guess with the current info):
WebDriver driver = new SelendroidDriver(*capabilities*)
driver.findElement(By.id("number1Elementinput")).sendkeys("number");
// possibly use a wait method to wait for keys to be sent into input
driver.findElement(By.id("calculateElementId")).click;
Unfortunately I have to guess at what you're after, try and provide some more information and I can try and improve my answer (or someone else might provide a better one).
Please provide more information for the question. This question is so broad.
Based on the information provided by you all I can guess is that you want to automate a calculator app testing and the test values are provided in an excel file.
For that I would suggest that first you use POI apache to read the excel file values and then please if you can go through Selendroid documentation http://selendroid.io/setup.html to set up the testing environment. And then you can proceed with writing the testing scripts in the languages that are supported by Selendroid. And I hope that you provide more information about your problem and where you are stuck so that an improved answer can be provided.

is it possible to run simple python games on android os

I started learning programming recently using python and have always had a keen interest in the android os and hope to do more with it when I get more experienced.
I have SL4A and python installed on my tablet. I have spent a lot of time trying to figure out how run simple games written in python on my tablet.
For instance, I made a simple hangman game as an assignment: is it possible to run that on my tablet, and if so what do I need to do?
I have seen a lot of python and android related stuff online but I find it hard to get a simple example about how exactly to use python with android. Furthermore, what exactly are the limitations/best uses for python in relation to android devices? Any help or pointers in the right direction would be appreciated. Thanks.
I know of Kivi (http://kivy.org/). Going this route may help you.

Android AIML BOT?

I have a few Questions related to AIML integration in the Android OS. I know not much of Java but I do know a lot about AIML. I made the AIML files and now what I want to do is to make one app which can load the files and run them in a GUI. Please tell me a way to do this. If AIML is not possible, is there a C++ way to do it? Please reply fast. I know C++, C and AIML. Not much JAVA or other programming Languages. I am not interested in hosting a web based application as I don't have a site and can't get one.
FYI- AIML stands for 'Artificial Intelligence Markup Language'.
natarajadithyan.
The chatterbots use a complicated algorithm. Simply, the chatterbot executable searches for categories with the underscore wildcard. Next, categories with no wildcard are searched. Last, the star wildcards are checked. When the pattern matches the input, then the AIML interpreter handles the code in the template tags. You may want to look at the source code for this chatterbot to get an idea about how they work.
http://sourceforge.net/projects/qaiml/
Try program-ab.
It's written in java and very easy to integrate in an android app.
I don't know if there is any c/c++ chatbots. If it's available then you can try integrating them using Android Native development kit(called NDK).
NDK is used to write android apps in c++. I personally wont be able to help you with NDK.
But I have integrated program-ab into android app using java. Its pretty simple.

Hachoir Parser in Android

I need to implement the Hachoir framework in the android phone. I am lost as to where to start and how to go about understanding the framework. Is there anyway to call the python files into my android code or some other documentation which will help me get started ? I appreciate the help !
You asked a general question, so the best I can do is give you a general answer. On android, you can't execute python as far as I know. The only thing that comes close is Android Scripting Environment.

Categories

Resources