can I make an app to automate WhatsApp using python? - android

Is there a way to use python and maybe kivy or pyqt to build an app that runs from an android phone that automates WhatsApp. I have seen apps(like automate) on the play store that do it yet I want to do it myself plus most likely those apps aren't built in python. Can anybody point me in the right direction?

Related

Developing in Android with Python 2.7

I want to develop a Android app using Python 2.7.
I read about it online but I couldn't find good answers, I saw Kivy. But I also saw a way to develop python via google.
I want to show a webpage (not sure if its going to be online or offline), in a app, without the user having to download anything except the app.
I saw Webview, but I coulnd't find how to implement it.
In short:
How do I develop a android app that shows a webpage with python 2.7, without the user having to download anything except the app.
You can create a Kivy app that displays and manages a webview using something like https://github.com/kivy/kivy/wiki/Android-native-embedded-browser, though this requires some interaction with the java api (done via python as in the link) because we don't have a way to stream the webview content to a kivy widget.
A webview-only app is something kivy is not that well suited for, you might be better off learning to make a normal java app.

Does an end user need sl4a installed to use python-android apps?

I am currently learning how to code in Python. My goal as of right now is to learn how to write apps for Android.
Recently, I have been thinking about switching over to Java. However, since I am a beginner I find Python comes relatively easy to me. If I write an Android app in Python using sl4a, does the end user need to have sl4a installed for the app to work?
If so, I think I am just going to start learning Java. Thanks for the help!
Yes. sl4a requires the sl4a app to be installed on the user's Android device.
sl4a is essentially a runtime application that needs to be installed before the user can run your app built and run on top of sl4a.
AFAIK sl4a is not just for Python but other languages too.
Update:
If you're looking to build cross-paltform (Mobile) apps in Python; IHMO the best option for this right now is Kivy. I'd encourage any Python developer wanting to get into the Mobile platform space to look at this :)

iPhone Automation for 3rd party/built in apps

I'm trying to find an automation framework for iOS and/or Android that allows me to automate actions on a real device using 3rd party/built-in apps. For example, I want to be able to automate: Browse these websites with Safari, watch these videos with the Youtube app, et al.
The automation frameworks I've encountered in my search seem to be focused on testing out your own app, in which you provide hooks in your own code to the framework in question.
I won't be testing out my own app (I'm testing out a proxy that the devices send traffic through), and thus won't have access to the source code to the apps on the device. I'm new to this, apologies in advance if there's a way obvious answer right under my nose.
For android automation you can use UIAutomator. It doesn't require source code. It uses in built uiautomator jar file which is present in android SDK. For more information you can refer http://developer.android.com/tools/testing-support-library/index.html

integrate matplotlib into android app?

I've been playing for some time with python and matplotlib and managed to create some neat desktop applications. [like graphical analysis tool for linear algebra, rendering engine for maps etc.
I was wondering if I could turn these applications into android apps. I'am completely new to android. I plan to use python (though I'm good with java) for the coding (I know this is possible with tools such as kivy or SL4P).
I want to know the limitations for using these tools in android. Can I even get matplotlib into android? I searched everywhere, but couldn't find how to go about a matplotlib based android app.
Any kind of pointers would be helpful.
I doubt you can embed matplotlib on an Android device (or any other kind of smartphone or tablet).
One alternative possibility would be to make your app connect to a back-end server that has matplotlib, and use that to generate the figures and send back images to the client.
Advantage: Can potentially get a working mobile prototype finished somewhat quickly by reusing existing code.
Disadvantage: The app cannot work offline since it relies on your central server.
Matplotlib cannot be compiled for android, numpy can though:
https://code.google.com/p/android-scripting/issues/detail?id=260

How to demonstrate android app on website?

Does anyone know of an easy way to present an android app through a website? Maybe the equivalent of an emulator running on a webpage. It would be great for demonstrating app functionality via the web and doing basic initial customer design approval without them having to install an app. It would also be good for marketing existing apps.
I think creating a video is the best way. If you are on a mac, try this:
Screenflow
If you are on Windows, try this:
Camtasia
I use ScreenFlow and then put the video on my website for clients to see.
You can use Droid VNC Server on your own handset and connect an android handset to your Network, then give them a webpage with the HTML web viewer of Droid VNC server. That would probably give you the best solution and would be transparent for the customer.
Do this
Install the ADB Driver to directly debug the app in Android Phone
Open Android Studio, directly run your app in Android phone.
Click the Capture icon. its capture the screenshot of android phone.
4.See the images , Android Studio have own Screenshoter, Video Recorder.
5.No Need of Third party Softwares.
Hope this helpful.
Happy Coding :)
Android being based on Java, I guess one could adapt the emulator for a webbrowser version, but this would be quite long, and inefficient.
If you forced your user to download the emulator (you could package it without the whole sdk), you could make a batch script to launch it and install your apk, but for a lambda user this would be too much trouble to test one app.
The only solutions left are
making a video of your app's features (you could then add subtitles and graphic design to enhance a point in the video)
make a fake version using flash or HTML5 / javascript
make a java applet (you could then reuse some of your code, and only redesign the GUI)
I would recommed using TeamViewer or other simmilar remote access/remote desktop sharing solution.
Teamviewer is free.
ps.
i know this is not on webpage, but i figure if you'll be presenting this could be a good option.

Categories

Resources