I split my LinearLayout into two. Is there any possibility to show the other application on the layouts ? When I search with Google it's not possible. I need to know is there any possibility to show the other application view with my application.
no its not possible to displays 2 activities at the same time however,fragments will do the job.
here is a good example for you:
http://examples.javacodegeeks.com/android/core/app/fragment/android-fragments-example/
Is there any possibility to show the other application view with my
application
Only one application can be shown at a time on the screen. It is possible to run multiple applications but impossible to show multiple applications on the screen at the same time.
However, you can create own application to show different functionalities/ widgets on one screen by using Fragments
Related
I have an android application working in mobile, this app has two types of activities ones that loads a list of items, and forms that open when you touch one item.
Now I have to port the app to tablet and the layouts need to be fully restructured to fit big screens, so much that the java code has to be heavily changed so i thought to merge both activities in one as shown below
Is that possible?
And if its what i need to use, fragments?
Can each activity still in its own class?(this is critical)
Can each activity have its own network operations and AsyncTasks?
Yes as you said you can use fragments for your situation (Infact their main purpose is to support different screens without code duplication). So you'll have only 1 Activity class and 2 layouts for different devices and you just need to do some run time checks and perform actions according to them.
Here you can find tutorial :- https://developer.android.com/training/basics/fragments/index.html
is not possible because only one activity working in single screen in android. i have one idea to put two fragment in single activity then use your own AsyncTasks network operation.
I am developing an Application from which on click of a button I wanted to open an another application or TV in exactly half of the screen. How can I split the Display for 2 separate applications.
Please help me in this case.
I only wanted to show 2 applications at a time using any way.
Thanks in advance.
Have a look at this project.Here
This is similar to what you want.You can't show two applications but you can show two screens of one app at same time.
I'm trying to build an application that would run at the same time as another one, on top of it (hiding only partially the original app), that would display useful information for the user of the main app.
But it seems that 2 activities cannot run at the same time, overlap, etc...
For argument sake, lets say the app would be displaying date & time in a corner of the screen, while playing a specific game.
Anyone got any doc or sample code on how to achieve such a result ?
I'm also interested in how to know which app is currently running in order to decide in my app-on-top to be visible or invisible.
Any help appreciated :)
Thx
Looks like you are in need of Fragments: Fragments
The Android system is designed to be user friendly, and two activities at same time is not, so only one activity is on foreground at once. if you need the other to be running in background make it a Service, if you want to show some data and get back first one use a Dialog, finally if you want both you can either put them in one activity or use Fragments as #Tooroop suggsets.
Its propably too late ... but for others with the same problem:
check out how-to-draw-on-top-of-other-applications
and maybe also this if your app need to be on top on fullscreen apps
I am building my first Android application that will guide the user through a series if listViews containing categories until the user reaches the final activity where a large block of text will be displayed.
My question is:
Can and should I build the listViews dynamically in one activity or should I build them all in eclipse manually?
There will be a lot of activities. I dont mind building them, i just dont want to bog down the application. From what I understand Android does a pretty good job of destroying old activities, but I am not sure the impact of having hundreds of activities would be.
Thanks in advance for your advice.
Sounds like one activity containing a ViewFlipper to hold the list(s). Presumably the list isn't the only thing you'll be wanting to display. You'll probably want to show a heading of some kind, and the user's location in the hierarchy.
What if the user hits back button? Will the app navigate to the previous activity?? Or will it be disabled?
I would suggest you make different activities since its the easiest way to do
Were looking into Android for writing a tablet based system. Part of the design is for the system to be as modular as possible. One aspect of this is to display any "STATUS" activities in a side view on the screen. It looks like I can use PackageManager queryIntentActivities() to find the activities that show status information. But, can I display these in a single view all at the same time (via a linear layout)? The activities would be installed in separate apk's (features).
Can this be accomplished using ActivityGroup? Is this even allowed in Android? Everything I've read implies that Activities take the whole screen or float on top. This implies only one activity can be active at a time where as the design I'm thinking of uses the activities more like widgets.
You should be to be able to do what you want with just one activity, plus multiple (background) Services (on different threads) for your status updates.
Don't worry, you can still package them in different apks. You'll just need to sign them the same way, and your apks won't even be sandboxed from each other, so they'll be able to share the same data and share the same memory footprint of just one apk.
Also, take a look at NotificationManager, I know you want to roll your own solution, and you can certainly do that if you want, but you could also just reuse/extend NotificationManager and save yourself a bunch of work.