Use WindowManager to Create Floating Apps
We’ve seen much in the way of floating apps recently: Facebook’s Chat Heads, the revolutionary Halo interface by the Paranoid Android team, and all of the various floating mini apps that we’ve covered in the past. How would you like to incorporate similar functionality into your own app?
XDA Senior Member EatHeat presents a way to do so with an additional service that runs over all apps using WindowManager. He does so with a fully open source sample application. The example’s floating blob can be tweaked and its location can be changed to anywhere below the status bar. While the sample application targets API 10+ (Gingerbread MR1), EatHeat says that this should work just fine with older Android versions.
Head over to the example thread in our app development forums to learn more. From there, try out his sample application and visit his Github for the source code.
While you’re at it, make sure to check out EatHeat’s other guides on Robotium and auto-testing apps, as well as his Simple GridLayout library.. If you’re learning app development or would just like to hone your skills further, they’re more than worth a look.
Want something on the XDA Portal? Send us a tip!
The portal’s decentralized XDA office lies in a Hangouts chatroom, where we discuss the latest developments that hit the blogosphere, critique them and figure out what we can do to add a new or original point of view. We came to love this little virtual office, which sees messaging 24/7 due to the international nature of our team. The main problem that we have faced since early on is that Hangouts is not versatile enough for in-depth discussion. What...
With so many different messengers to choose from, it can be tough to find the best one for you and your friends to use. Hangouts, Whatsapp, Telegram and more are all battling it out for the number one spot. Let us know which IM client you think is best on Android and why.
Nvidia is releasing a 500Gb SHIELD TV Pro! That and much more news is covered by Jordan when he reviews all the important stories from this weekend. Included in this weekend's news is the announcement of an Android factory reset security flaw and be sure to check out the article talking about the Nexus Player getting TWRP. That's not all that's covered in today's video! Jordan covered the LG G4 First Impressions and Unboxing video from TK released this weekend...