Chaquopy 9.1 Setup | Python With Android Studio | 2021
HTML-код
- Опубликовано: 16 сен 2024
- In this video I will show you how you can use python with android studio.
By the end of this video you will understand how to integrate python in android studio using chaquopy 9.
Chaquopy is python sdk for android studio.
Direct to point, short to minuts, eficient to the core!!! man!!! Just saved my skin!!!! thank's a lot !
Thanks a lot man 😊
Explanations is simple and straight forward. It helped me a lot.
thanks so helpful for me thanks a lot
Welcome 😊
Amazing and great detailed tutorial! Thanks and wish you the best
Excellent...thank you so much
Thank you 😊
@@ProgrammingFever it is not working with python 3.9
@@parthapaul1249 check the compatibility on chaquopy official page
@@ProgrammingFever okay ji
thank you dude
this vid helps a lot.
Thank you
Really you saved my time thanks
Thanks a lot. Its working
Thanks brother
You’re welcome
Excellent, Thank you so much :)
thank you for kindly movie.
if it's possible , I want you to question.
if app run on android OS (without Windows or Mac) , what should I choose to python.exe's URL ?
Make as video of java projects more
i am doing an android studio app(face recognition app) , i coded everything in python, am using android studio just as a UI so how can i integrate my python script to a button in android studio ( when i press the button my script starts how??) please i would be so grateful if u helped me
did you learn to do so?? if yes kindly help me I also need the same thing...
Hi sir, did you get the solution for your question?
Very useful video. How can I get the source code ?
you can download language translator source code from programmingfever.in , language translator is the extension of this project source code...of if you find any problem related to this project then you can contact me on insta @__programmingfever__
ThanksAlot Dear
Most welcome
I used the same python version and all verfied but showing incompatable ....plz help me
3.9…check comparability page on chaquopy official website for more information
i am a beginner ,its too complex for me.... i need more instructions
Contact on Instagram __programmingfever__
Hi, sorry for this question as I am only a beginner. If I download it as the above video, can I use python in other files or do I need to do this with each separate file? Again sorry for the silly question, just need clarification.
It's not a silly question dont worry...You can use this same file for all purpose...
@@ProgrammingFever thank you!!
I followed it step-by-step, but its not running on my emulator. I see the files are uploaded on my computer, but it keeps telling me that "Unforunately Chaquopy has stopped". Is there any other video you'd recommend me watching inorder to find out what the problem is or where I've gone wrong?
@@jaym.8805 watch previous video of python integration on my channel...
Bro how to get open source chaquopy licence
Plze make a video on dis licences concept bro
i am developing application in java ,xml in android stdio .. can i use some Python Code for any functionality or module along with java & xml ?
Yes you can with the help of this chaquopy.
@@ProgrammingFever thanks ❤️
@@ProgrammingFever my Programs folder (C:\Users\hp\AppData\Local\Programs) is empty only have folder "Common" which is also empty... what should i do
@@MustafaSahil for me python path was this ... check your python path in your system and paste respectively.
@@ProgrammingFever thank yu sir my machine was not having Python installed so i installed it.. but now Facing another error i followed the video three times but every time this error
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes. (I have also tried to delete the whole Gradle folders from system then re-downloaded them but still) ..
I have source code of python so I can build an app for Android right? Sorry, I am totally newbie to python programming.... help plz
Yes you can make android app from your python file....
Are u using Kivy which is a python Framework to build Mobile UI?
I'm having errors regarding sync of the project. It says "Could not compile build file 'C:\Users\dever\AndroidStudioProjects\PyIntegrationOnApp\app\build.gradle'" what can I do to fix this or will it affect my app?
What if we want to add some parameters to be processed in the python script?
You can add
Wow thanks
I have also tried to add parameters, but I haven't succeeded. I tried to add parameters into the parenthesis in py.callAttr() after the key. I separated the parameters from the key with a comma. I feel like I've added them to the wrong place. Can either of you give advice?
Thanks! great job! I tell you that I'm developing a mobile app which calls a python script, which apparently it finish, but i cannot see result on my web platform, like it never execute. However when I run the same script via PyCharm, it works fine. The script has about 1200 lines of code, could that affect chaquopy's sdk and that is why it won't run?
is there any way to debug python from Android Studio? THX Again!
Chaquopy will definitely run your code..otherwise another option is APIs...
Return all results as a string whether it is an array or number. Even ProgrammingFever returns a string in his examples with his python script. Try to insert results of important steps into Firebase which are before return keyword(less effort than REST API for testing) whether it is an image,string or number.If there is test content u don't like to show in App,use loggers from Android Studio.
Debugging Python code directly in Android Studio is not possible.
Bro can you guide me for which python is best one for the android app development?
What if I need to return a graph?
Check my matplotlib video in chaquopy playlist
When will the tutorial on chaquopy with flutter come?
In MainActivity.java file TextView is showing redundant 😭 error and
What is the error ?
So after creating an apk will it work ? how it will take reference of python.exe in apk ?
Can someone guide me for which framework is best for the android apps development for python???
If what you are developing are simple apps and does not involve tensorflow like libraries then kivy will be good, also beeware is actually a better option
How can i configure my python interpreter in android studio ?
is Chaquopy fast enough for image processing?
In this we can able to import py packages?
expecting member declaration in textview
Hi sir, can you please respond to the question please. I am working on the similar project, image processing in python and UI using android studio. I will be very grateful, sir.
"i am doing an android studio app(face recognition app) , i coded everything in python, am using android studio just as a UI so how can i integrate my python script to a button in android studio ( when i press the button my script starts how??) please i would be so grateful if u helped me" John Deezer.
Check my chaquopy tutorial series..that function I already covered in that series
@@ProgrammingFever Thank you..
Can I runin android studio python webserver using flask with chaquopy?
Can I use Kotlin or just Works with Java?
Sir i have a little problem, when i run chaquopy in emulator it work fine, but when i run the application in device it's does not work.
i have the same problem
7.42 how to remove red test
just hit alt + shift + enter, it will add the import class for you
App name please sir rly
Can i use pygame in Android stadio?
No
Please provide the code for MainActivity,java file please
package com.andro.andro01.chaquopylatestversion;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import com.chaquo.python.PyObject;
import com.chaquo.python.Python;
import com.chaquo.python.android.AndroidPlatform;
public class MainActivity extends AppCompatActivity {
TextView textView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
textView = (TextView)findViewById(R.id.textview);
if (! Python.isStarted()) {
Python.start(new AndroidPlatform(this));
}
//this will start python
//now create python instance
Python py = Python.getInstance();
//now create python object
PyObject pyobj = py.getModule("myscript"); //give python script name
//now call this function
PyObject obj = pyobj.callAttr("main");
//now set returned text to textview
textView.setText(obj.toString());
}
}
Thankyou so much, you are doing a great job! Just one request, if possible could you make a video on how to import and use text-to-speech or Natural Language Processing feature for android studio integrated with chaquopy. If you could, that would be of great help. Thankyou so much once again!
@@abhinavupadhyay9083 yes I will try to cover your topic...btw nice idea...thank you :)
Does this work fine for ML scripts??
It’s Depend upon your library...first check the compatibility of your ml script library with chaquopy
@@ProgrammingFever Could u fshare ur mail id sir.. I want ur help.
@@lavanyanaik272 you can contact me on Insta __programmingfever__
Please make a fresh video on this with more details.. it is not working .. i just wasted my 6 hours
It is on latest version chaquopy 9.1
If your issue not solved yet you can contact me on Insta __programmingfever__ I will help you...
@@ProgrammingFever Sir thanks alot I will be really great full.. i am sending you a message there
there are beginners watching so try to explain our videos well
I will try my best
Please make video again please