The XDA LG QPair Developer Challenge Voting Has Begun!

It seems like it was just yesterday that weannounced that we had paired up with LGto … more

Major Update for the Sony Smartwatch 2 Brings DND and More

With the wearables landscape now dominated by Android Wear and Pebble, its … more

How to Root Android Wear 5.0.1 Lollipop Devices – XDA TV

The Lollipop update for Android Wear devices has hit the market and people are … more

Android 5.0.2 and New Factory Images For Nexus 7 (Wi-Fi) Available

Android 5.0 is has been publicly available since early November, and the … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP] Floating Example

OP EatHeat

14th September 2013, 03:51 AM   |  #1  
EatHeat's Avatar
OP Recognized Developer
Flag Calcutta
Thanks Meter: 1,433
 
914 posts
Join Date:Joined: Jan 2013
More
There are a lot of apps coming which float above other apps like Chatheads for Facebook. So I made an example app showing how they work.

It is basically a view in a WindowManager which is inflated in a Service. With a few more tweaks, it can be made to change positions on the fly.

I made this for API 10+ but it should work with lower versions just fine.

Here is how it looks:

Quote:






This is just an example. The possibilites are countless.

Hope it helps developers create other apps like Floating Notifications and such.

Full sources can be found on my Github here.

Sample app can be found here.

Regards.


-----------------------------------

Featured on Portal:

http://www.xda-developers.com/androi...floating-apps/
Last edited by EatHeat; 5th August 2014 at 06:01 PM.
The Following 18 Users Say Thank You to EatHeat For This Useful Post: [ View ]
16th September 2013, 09:57 PM   |  #2  
nikwen's Avatar
Recognized Contributor
Thanks Meter: 1,408
 
2,805 posts
Join Date:Joined: Feb 2013
More
Wow, I really like your guides.

Good job.
17th September 2013, 03:08 PM   |  #3  
EatHeat's Avatar
OP Recognized Developer
Flag Calcutta
Thanks Meter: 1,433
 
914 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by nikwen

Wow, I really like your guides.

Good job.

Thanks.
18th September 2013, 09:46 PM   |  #4  
Member
Thanks Meter: 2
 
32 posts
Join Date:Joined: Jul 2009
This is real good, Are you planning for futher devlopment?

Verstuurd vanaf mijn GT-I9505 met Tapatalk 4
18th September 2013, 10:53 PM   |  #5  
N_otori0us_'s Avatar
Senior Member
Flag █ ▆ ▅ ▄ ▂ ▁ ▂ ▄ ▅ ▆ █`
Thanks Meter: 480
 
1,578 posts
Join Date:Joined: Mar 2013
More
Can anyone make a poweramp version? For some reason I cannot open poweramp and have to use a widget instead
-
Maybe It'll work :P
19th September 2013, 04:15 AM   |  #6  
EatHeat's Avatar
OP Recognized Developer
Flag Calcutta
Thanks Meter: 1,433
 
914 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by misternox

This is real good, Are you planning for futher devlopment?

Verstuurd vanaf mijn GT-I9505 met Tapatalk 4

Yes, if there's something else to fix or add, I'll certainly do it.

Quote:
Originally Posted by N_otori0us_

Can anyone make a poweramp version? For some reason I cannot open poweramp and have to use a widget instead
-
Maybe It'll work :P

Poweramp version of what?
19th September 2013, 04:20 AM   |  #7  
Akshay (Aky)'s Avatar
Senior Member
Flag Pune
Thanks Meter: 579
 
819 posts
Join Date:Joined: Jul 2012
More
Great work.
I had an wish to make an floating apps, using your library this would be surely accomplished.

Sent from my GT-I9300 using XDA Premium 4 mobile app
19th September 2013, 04:44 AM   |  #8  
N_otori0us_'s Avatar
Senior Member
Flag █ ▆ ▅ ▄ ▂ ▁ ▂ ▄ ▅ ▆ █`
Thanks Meter: 480
 
1,578 posts
Join Date:Joined: Mar 2013
More
Quote:
Originally Posted by EatHeat

Yes, if there's something else to fix or add, I'll certainly do it.



Poweramp version of what?

Basically if I press the circle the poweramp app will open in it. That is what I wish

Sent from my myTouch 4g using xda app-developers app
19th September 2013, 06:08 AM   |  #9  
Member
Thanks Meter: 2
 
32 posts
Join Date:Joined: Jul 2009
May be WhatsApp?

Verstuurd vanaf mijn GT-I9505 met Tapatalk 4
Last edited by misternox; 19th September 2013 at 06:46 AM.
19th September 2013, 07:40 AM   |  #10  
arashtarafar's Avatar
Senior Member
Thanks Meter: 43
 
176 posts
Join Date:Joined: Sep 2010
Maybe we can expect some multi-window work from you?
That would be awesome... and after I make myself comfortable with android programming, you may count me in, also!

The Following User Says Thank You to arashtarafar For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes