Can we open an android apk in the browser? - android

Hi People I have an apk file that is made using phonegap and I need to test it using selenium so that I can get the id's of the components in the application and feed them into the scripts, can you tell that is there any way to open the apk file in the browser so that the process becomes easier or is there any app that can do that? any suggestions will be appreciated.

APK is just a ZIP-file, so you can rename it into .zip and open in a browser.
Though, you cannot add files into APK this way easily, because the content of APK is signed and aligned.

Yes it is possible first unzip your apk and remove "onDeviceReady"(Related to phone gap events) event and then try in browser

Related

Where is the .exe in flutter?

I am new to programming my own apps, since I used to work on old programs on the pc. Is there a file like the .exe in my old programs? Little backround information: I need to execute the app on a phone without a physical connection and without the typical appstores. In my imagination I can store something like the release file online and my users can download it?
Thanks for teaching me.
Hello and welcome to the community! On Android, the file you are looking for is called an APK, you can take that file and install it on other devices easily. For iOS it's a bit more complicated and you can't share the IPA files and install them as for android, you are confined to using a physical device or sending it over using testflight, which is provided by Apple for testers.
You can find those APK files inside your project's folder in the following path:
build/app/outputs/flutter-apk

How to protect phonegap application source code?

I want to know whether when I upload my phonegap application on play store then anyone can view source code after they install my application or not.
If the source code is viewable, what steps can I take to protect it?
Basically a PhoneGap application is html/css and javascript codes wrapped in a native Android WebView. So in order to protect your source code from others, you can encode it using techniques like uglify. To a normal user, this would be enough. It is similar to what Proguard does for native Android apk. However if you want total secrecy of some part of your code logic, keep it at the server end itself. Any client facing application is readable (eg- Webpages, executable files etc).
As you may know, an apk file is actually just a zip archive, so you can try to rename (or simply force your decompressing tool to open the apk file) the file to appname.apk.zip and extract it with any zip utility.
You can however encryption your source code checkout here https://ourcodeworld.com/articles/read/386/how-to-encrypt-protect-the-source-code-of-an-android-cordova-app

Run APK File in Flex Mobile

I have an app that needs to be updated. To make the update, I'll download the app inside a directory of the user and then I'll need to open it. Well, that's the problem. I can't open the .apk in the mobile application, it does not allow to use the openWithDefaultApplication and neither have NativeProcess.
I've searched a lot for some ANE, but without lucky. Any suggestion?

Android APK file download stuck on 0.00B/0.00B

I'm trying to download an apk file that I've signed and exported using the Android wizard in Eclipse in the release mode. I've hosted it on IIS with and set the MIME types as .apk and application/vnd.android.package-archive. I try to open this file on a test Android tablet that I have with me and the download is stuck on 0.00B / 0.00B with filename as <Unknown> and options to pause or cancel downloads.
It's not giving me any errors, so I'm not sure what I'm doing wrong here. Has anyone encountered a similar situation before?
Thanks,
Teja.
Turns out having a self signed (untrusted) certificate for the server you've hosted your app at can cause the problem. Changing servers to one that has the right certificate let me download the app fine.
I'm sure there's a browser setting somewhere that lets you download files from untrusted servers, if anyone can point that out, I'd gladly mark that as the answer.

How can I send an Android app that I'm developing to someone over e-mail?

This is my first Android app. I need to email what I have so far to someone for testing.
How should I do I export the app and attach it, so it is not being treated as Junk?
Much simpler method:
Put the apk on your web server
Create a QR Barcode image using:
http://chart.apis.google.com/chart?cht=qr&chs=150x150&chld=H|1&chl=http://myserver/myapp.apk
Then send him that barcode in an email and tell him to scan it using the barcode reader app.
The barcode reader app will see the barcode and provide a hyperlink for the user to click. They click the link and the app downloads and installs.
compile/build your app, it should produce a file like myAppName.apk, just send it via email to your friend
try to look in yourProjectPath/bin folder
If you are using Eclipse run the app on the emulator to test it. Now Eclipse should have created a bin folder in your project folder. In this folder you will find an apk file that contains your app.
Just send this file to your friend via email. He know can install the file on the emulator if he has one running. If not he can just plugin his phone via usb move the file to the SD-Card remove the USB connection and then navigate to the file on his SD-Card with a file browser like ASTRO and select the, item now the application manager should show up and he can install the app. If this does not work he has to go to settings -> applications -> and enable unknown sources.
I assume you are using Android Studio for application development.
Follow these steps:
Go to "build" from the navigation bar in Android Studio.
Go to "build bundle(s)/APK(s)" from the drop down that appears.
Click on "build APK(s)". You will get a notification box at the bottom right of your screen.
Click on "locate". Two files will appear. One is a ".json" file and one is an ".apk" file.
Send these files to your friends on WhatsApp and tell them to download the JSON file and install the APK file. Now your application is running.
You are done.
You can also right-click on your project (in eclipse) and click on export
then select "Export Android Application" and give all the details...
after you finish you will have a myAppName.apk, which you can email
Export Android Application would be the correct way to generate the apk. Using the one that eclipse uses has debugging info, plus it is signed with debug key, not an actual key. If you install an application signed with one key, and then later try to install an application (same package name) with a different key, you will first have to uninstall the original application first.
The simple answer is it is very simple, Droid devices understand what an APK is. So, tell your friend to Check "Enable Unknown Sources" currently in Settings->Security (not Settings-> Applications as of now.) Then email them the APK. Upon receiving it, Droid will either get it installed, or they can download it to downloads, where they can also install it from. Accept the Permissions, and off you go.
You can use the Microsoft App Center to build and distribute your Signed/Unsigned APK with your beta testers.
Or you can also use Google Drive, DropBox, Amazon S3 to distribute your APK
In Android Studio build with "build"->"Build Bundle"->"Build APKs" which you'll find in the folder app/build/outputs/apk/debug then.
You cannot attach the file in your email directly, since APKs are treated as junk by most email providers. So upload the apk somewhere and send the link to your co-worker.
If a link is not enough, with a simple trick, you can send the file anyway:
Rename the file: attach .bin at the end of the filename (i.e. myApp.apk.bin)
send the fake .bin file
Tell the receiver, that they have to rename it to plain .apk before installing. (On android renaming is possible with a file-manager, i.e. like Totalcommander)
If you are using Android Studio for application development
now your apk is ready to share. Go to email and attach the apk file and enjoy.[note:Maximum Email Size Limits maybe 25MB]

Categories

Resources