Cut the phone screen into two parts that simultaneously do two things

Can I create a program that cuts the phone screen into two parts.

These two screens will do two things at the same time, for example, for viewing a clip and for reading and writing SMS.

I think that: 1) First I need to create an application for the home luncher. How to create a custom screen replacement app for Android?

2) Then I can run two fragments in my activity. http://developer.android.com/guide/components/fragments.html

3) Finally, I open application 1 in the first fragment and application 2 in the second fragment. Can I do this, open the application in a snippet?

Any other ideas would be helpful.

+7
source share
3 answers

I think you will need a modified version of Android-ROM to do this. With standard ROM, you can only have one application running in the foreground at any given time.

Samsung has done something similar in the Galaxy Note, allowing you to watch videos while doing other things.

If you do not want to change ROM , you can implement this in your applications, but not in all applications.

+3
source

You can configure the launcher and desktop and locator, see the links below

https://android.googlesource.com/platform/packages/apps/Launcher2.git

How to create a custom screen replacement app for Android?

Compile Launcher / AOSP from Eclipse:

Compiling Android Launcher Applications on Eclipse

Read this for information on how to compile and run your launcher. https://groups.google.com/forum/?fromgroups=#!topic/android-developers/zI9LPeU1mbc

+2
source

I am not an expert, but it seems to me that you can have one application with two fragments. The upper fragment will display the video, and the lower fragment will have a message exchange. Since fragments are just API 11 and you don’t have to worry about the old phones being able to handle it.

Your step 3 says that you will open applications in your fragments, and I do not think that they work.

You can think of the fragment as a modular section of the action, which has its own life cycle, receives its own input events and which you can add or remove at runtime (sort of like “auxiliary activity” that you can reuse in different actions).

More details about the fragments here: http://developer.android.com/guide/components/fragments.html

+1
source

All Articles