Run APK File in Flex Mobile - android

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?

Related

Android APK using external data

Hi i am looking into an android development , as we all know when we build the project it makes an APK that is the whole program. but is it possible to make a an android project / APK that would be able to use external files to include more info into the project.
like say for example i have a list commands or functions in my list , but i dont want it to be added into my APK build , is it possible to use it externally?
i was curious because something like COC and other games after downloading it , then downloads extra data from the net , more into updates for the whole game.
how is this possible or is it possible to do , and use functions or source codes externally and not include it into the APK , and also the proper usage of it
Any Android App can connect to the Internet and save downloaded data files to use as they need, without requiring to include them inside the APK. Indeed, for many games (and other Apps having large data sets), it's a sensible option.
There are a couple of things to be aware of:
Android restricts where (on the filesystem) you can save files. And no matter where you save the files, the user can delete them at any
time. Your App should be able to cope with this.
The files should only ever be data files - not executable code. Attempting to
execute downloaded files is likely to put your users at risk
(depending on the permissions your App was installed with) and is also likely to get your App marked as malware.
You should read the Android documentation on Data Storage to learn a bit more about it.

How to install an AIR android app without deleting the data generated by the previous version

I have an android app developed using adobe AIR SDK 16 and Flash CS6. Every time i publish/debug the app directly in the connected device. But every time i publish the app the data(image, text files) saved in the application storage directory including the sqlite file is removed. Hence i have to recreate all the data again to test. Is there a way to install/public an apk without losing the data created by the installed app? I tried with changing the version number. But it did not work. Please help me
thanks
thanks for the replay, I found a way (from adobe forum). When we update an app from google play, the data will not be deleted. In my case the data is deleted because flash will first uninstall the app(this will clear the data) then install the new app again. To solve this, one way is instead of publishing directly use flash to publish the app and copy the apk into the android device and use any file explorer software to install it manually. This will not delete the data

Android - Installing apk from SD cord

I'm distributing my android application (apk) along with some encrypted audio files in SD card. After installing the apk on the android phone, i want the apk to be deleted automatically. Actually I dont want the apk to be copied by others.
Is there any solution such that apk cant be installed or copied by others?
By distributing it on an SD card you're making it very easy for people to copy. What's to stop them from just copying the card? Even if you come up with a way to prevent this from being done on Android, they could just insert the card into any other type of computer.
i want the apk to be deleted automatically
Automatic deleting no , you can prompt the user for for that at max.
I do not why you want to do this but you can definitely make your app inactive, implement :
x times run policy or implement run for x days only depending on your need but then again when they reinstall the app will work.
So add an online activation module and keep phone details to avoid reactivation

Android Over the Air (OTA) installation

I have developed an android .apk file and I need to put it on my website for OTA installation (For some reasons, I cannot put it on Android Market). The idea is, I will send sms with the link of .apk file to the android device and by clicking the application should start download and installation process.
At the moment, when I try, it is a two step process -
1. it downloads the .apk file
2. I need to click on .apk file to install it.
Is there anyway to remove step 2 (click on .apk file to install it) and by clicking on url of .apk file, it gets downloaded and installed (of course by asking all the necessary permission from user so it is not a security threat to user).
I have done similar thing on Blackberry/Symbian/Winmo and it is just one step process (clicking on the link downloads and runs the installer) so I thought there should be a way on android as well.
Any help would be appreciated.
Regards
Simple answer: No.
If you already have an application running on the user's device, you could register for a special URI and download and open the file yourself. Android itself does not have such an option (for obivous reasons).

Cant find my phonegap app in the android file system after installing the apk file

Im currently in the process of byuilding an app with phonegap on android.
I Prepared a "spoof app " with tests of some functionnalities i wanted to try before starting to develop fully.
I built my app and signed it so i may install it on my phone with the apk.
The problem is , my app works fine but i cant find the file system of the app in any of the devices i tested the app on. I wanted to retrieve the SQLite database or a file i created but i cant because i cant find the filesystem of the app in the device.
Is there anyway other than rooting the device to see my app in the phone filesystem when plugged with usb?
Or is there any way i can retrieve easily the databases my app created on the phone?
EDIT: my devices dont have SDCARDS and doesnt support SDCARDS either.
PROBLEM SOLVED
Since i found out that i would have to root the phone or the tablet to acess the filesystem i review my app functionnalities and i found out i could create a foler on the phone with phonegap , but still i couldnt see it.
I then opened the DDMS perspective in eclipse and looked throught the filesystem and found out that the folders i saw in my phone were in the mnt folder, in the sdcard directory. (mnt/sdcard)
I then used the filesystem acess of phonegap to create a directory on my phone.
fileSystem.root.getDirectory("**/mnt/sdcard/com.seventest.com**",{create:true, exclusive: false},gotDir,fails);
So now i can access a directory and push anything in it i need to access for my app to work with.

Categories

Resources