I'm trying to run an android application inside my application in small window. I have searched threads but can't find an answer.
There is no way for you to embed another application in your application in standard Android. A custom ROM could do this, though.
Related
im making a app that observes for some apps that are runing or not and execute it if dont
i dont know how to oberserve other apps processes and how to start another app that wasnt maked by me.
all that i got for now is run it as system service.
another possibility is create a self app that restart it own when it crashes or be closed.
there is any way to do it ?
My cell is not rooted
For your question, you can learn the application sandbox.
https://source.android.com/security/app-sandbox
When the developer makes an application, they can define their intent filter and tt is some way to let another application invoke it.
You can uncompress .apk from another application and find out the file AndroidManifest.xml. And then you can try it.
But you can just control the part of door they open to you.
I found some launchers that are able to run installed apps inside their own activity. ( https://play.google.com/store/apps/details?id=com.lwi.android.flapps )
This launcher adds their own functions like maximize, minimize etc. I guess they are creating widgets (because they need drawing over apps permission) and running inside them. But how :)
Can you show me how I can run another android application inside my own activity, widget etc. like this app did ?
Best,
Kerg
I think the following documentation should help you out with learning how to get your app to interact with other apps: https://developer.android.com/training/basics/intents
Especially interesting to you would be the section on sending the user to another app: https://developer.android.com/training/basics/intents/sending
I want to be able to run my Android code/app on Windows/Mac/Linux/etc. but not use an emulator, as they are slow/cumbersome.
I want a real Java SE app, but to reuse my Android code.
My idea is to make an Android emulator using Swing, read the layout files and create the widgets in Swing and map between the 2 UI event models, life cycle, and library classes.
Question is, does such a thing exist already, I googled it, but could not find anything.
Otherwise I will start an open source project for it myself. Anyone interested in helping is more than welcome.
So I created an open source project "Swingdroid" that lets you run Android apps and Java swing desktop applications.
You don't need to use an emulator or change any code. It loads Android layout files and activities and renders them using Swing.
On GitHub here,
https://github.com/BotLibre/BotLibre/tree/master/swingdroid
I totally agree with #muratgu. But, if you just want to parse Android layouts (views) xml files and render them using Java Swing, this is possible and this has already been implemented, before deciding to make your own implementation, you'd better check the wysiwyg feature of UI editor in Android Studio.
I am new to creating Java apps for Android, and I already know that you cannot run Java applets within a web browser on Android.
With that being said, is there anyway you could run an applet within another app on Android?
Is there anyway to run the applet in a new activity for the app?
is there anyway you could run an applet within another app on android?
Applets use APIs, like AWT for their UI, that do not exist in Android. You would need to see if anyone has created an applet container for Android (possible but unlikely) or rewrite the applet.
No, you canĀ“t.
Java use Java Virtual Machine.
Android use Dalvyk or ART.(Another virtual machine.)
Android use Java to code and some same classes... but has own classes to some stuff.
I know that questions like this have been asked before, and I have been sifting through them. So here is my situation: I have a decent amount of experience using Java, specifically Eclipse, and I have a game ready that from my current standards, could be uploaded to the Google marketplace.
However, I have the project saved as a Java project. How do I make this project into an android app? I have attempted using the ADT plugin for Ecclipse, and changing the nature of the project file but I am beyond confused regarding how to proceed.
Right now I can click: Run < Run as < Java application.
The goal is to be able to click: Run < Run as < Android application.
I don't know of a streamlined way of doing it. Is your game using Swing as a UI? JavaFX? Is it text?
Regardless, I imagine your game would need to be wrapped in an android activity in some way. e.g. The activity can invoke the browser to run your applet (if your game is an applet).
I'd first create an android project, then copy your source from the java project into the android project. The manifest (R) will be updated with the new resources, etc.
Then you have to finish wiring everything up.
It's going to take more than that. Android has it's own UI system and lifecycle that differs from raw Java. Depending on how you've written the game you may be able to reuse a lot of the drawing and logic code but you going to need to make a lot of changes to the input and allowing multiple screen sizes.
Without seeing your code I can say exactly what you'll need to do but I can tell you it's not going to be as simple as Run As... Android Application.
Although android apps are written in Java code, this doesn't means that it is possible to "translate" a java program or a game in an android app simply clicking a button.
If the game are complex I suggest that you rewrite the game using a framework for develop android game!! You can reuse some logic but sure you have to create all the graphics and readapt the game to run in android devices.
GOOD WORK!!
Be patient and star from here:
Androi Developers
It is not possible. You can implement the application logic in Android in the same way that you used in Java, but you cannot simply convert the java project into Android project. Some packages used in your java project (like swing) can't be used in Android.