I came across a Google Play Store app named DevAppsDirect it's very awesome app.
Installing and running this app on my mobile I got a question ::
How DevAppsDirect Runs Android library demos without installing them?
Before running any Demo the app(DevAppsDirect) downloads it and then runs it.
I am wondering what is happening under the hood?
Can anyone please give a hint or explanation how it is done?
Thank You.
It is done by DexClassLoader. It is a nice feature but u must be aware of the security risk if you are building production grade system. what basically happens they download the compiled dex at runtime and load it.
Related
We are building a mobile application in React Native, with the support of Expo. After some time we decided to detach the expo to use other native benefits along with expo. It supports both the platforms, Android and IOS
I was able to detach our application successfully from the expo, using the instructions mentioned here. We have got android and ios folder with us and everything is working fine.
Now, we want to generate a standalone signed APK from the application. I am referring this for the steps. It does produce the APK but, somehow, its not working after installation on the device. Post install, if I try to open the app it gives error screen with the message,
could not load the app
Sharing the screenshot below
I am not sure what I am doing wrong
Before coming to StackOverflow's Aks Question stage, I did follow many post/questions but seems like unfortunately, they ain't helping me.
here are few,
https://facebook.github.io/react-native/docs/signed-apk-android.html
How can I generate an apk that can run without server with react-native?
[this does not use expo..]
https://github.com/expo/expo/issues/212 [this guy plays with emotion...
he said he was able to resolve the issue but, he ain't willing to share
the solution]
https://forums.expo.io/t/could-not-load-app-signed-apk-in-app-store-internal-testing-detached-app/9855
and many more...
How can I resolve this issue? Any suggestions/pointers would be highly appreciated.
Okay, after spending a couple of more hours I got the root cause of the issue. It was a minor one but, there are high chances to happen while development.
Actually, our application was containing two expo accounts in it. This happened mistakenly while development. Having the unique expo account in the application did solve my issue.
I know that Flash has been abandoned on the Android platform. But for a special reason, I still need to use Flash (SWF file) on an application that is used internally. So, now is there a way to make my application play Flash(has ActionScript) without installing other APK?
The minimum version of the target device is Android 4.4 (API 19)
Thanks a lot.
I was investigating same thing recently. Adobe AIR seems to be able to do it so I was pretty sure it's possible. After quite a lot of googling I found some useful info and proof of concept on some Chinese website (unfortunately it's already down :( ).
Fortunately they also linked a Github repository with that example. I was able to fork it and add some instructions about which files do you need to update if you want to use latest AIR SDK or see flash traces.
So there you go. You can use SWF file in your Android app (on new Intent) through AIR-runtime, without installing other APK:
android-invoke-adobe-AIR
There's one problem tho. You can pass some parameters from Java to AS3, but I couldn't find easy way for communicating between them later on. In AIR you could do that via ANE's and I was trying to extract some APKs to see how it works, but no luck. I did end up using socket communication (it's on feature/SocketConnection branch).
Hope you find it usefull.
I am building an android application where my app user can do video chat with browser based user. For that, I have followed instruction on this link. But I think documentation on this link is very old.
So I checkout webRTC source code from here which is from Google repository. After that I have copied "talk" android sample example into my Eclipse workspace and run it. But I am getting error as "Could not load jingle_peerconnection_so".
Please help me.
Your question is not clear. You need to provide more information to allow people to give you a clear answer.
If you follow the guide on http://www.webrtc.org/native-code/android, you will be able to build the app.
I've got the same error when I tried to deploy on the emulator (kitkat version). But if I deploy the app on my device (Android 4.1), it's work perfectly.
So, in order to solve your problem (if it's really that), try to use your android device and not the emulator.
Sorry but I don't know why isn't working on the emulator.
I made an application using App Inventor and now I want to add Admob advertising to it. I need to change manifest and some "activity".
How I could open apk in Eclipse to cahnge it? If someone added admob advertising to application made in app inventor?
Please, help
I think that this isn't possible, because an apk doesn't contain source files but compiled bytecode files. So if you would want to edit such a project in eclipse, you would have to obtain the sourcecode of your app, which isn't possible in App Inventor AFAIK.
If you want to have full control over your source code, you should consider learning to program natively on android.
If you are really interested in android development, check out the official Android Developer's Guide at
http://developer.android.com/guide/index.html .
A good tutorial can also be found at
http://www.vogella.de/articles/Android/article.html .
Is there a better way to test apk files without actually having to buy an Android phone?
I have to test several apk files and i don't want to use the Eclipse to do this as it would be a lot of downloading just for testing as i don't even want to code.
I am looking for an application which would provide an interface which would ask me which version of Android do i want to run and what screen size do i want and then install the apk for me that i want to test?
Is there such a software available?
thank you in advance.
You don't need Eclipse to run the emulator. You can simply download the android SDK HERE. After you've extracted the SDK, run the file "android" in the tools folder (in linux at least), download which platforms you want to use (1.6, 2.1, etc) and create an emulator. It's fairly simple to do.
Many phone makers offer such a service...
Here's one to start you out:
http://developer.motorola.com/testing/
-I_Artist
This looks like what you are looking for. I never used it myelf though. The reviews seem to be ok as well. not sure if you can choose what api's you want to use though.
http://www.addictivetips.com/windows-tips/download-google-android-emulator/