yashsingh1/xdaforums huggingface dataset:
[Xperia Arc Q&A, Help & Troubleshooting] shantusingh:
thanks for understanding and for letting me know, though hope one simple way comes out soon..

my basic idea is as like many others, we try different generic and in end we would only want our generic to be running when it officially comes because maybe we get less bloatware, better performance or could be anything..

so i want when i get 4.0.4 update then i cleanely update with root one click way... to get everything my generic with root in the end, even if other generic's kernel verison,etc be the same...

So i am counting on the genius devs here!

if we don't get root one click way for 4.0.4, then my other idea is i will officially update 4.0.4 via pc camp when it comes to india .. and when i get it i will check it with the 4.0.3's kernel version screenshot that i will already save to pc. So if they will be the same.... i will then only flash 4.0.3's kernel then will root my phone the old one click way ....

after that then will flash my phone with 4.0.4's kernel from 4.0.4 update ftf which was leaked on xda as i wont mind flashing other generic if everything matches. So i then will get it confirmed everything from stock that what i got in my region was the same aswell i didn't missed anything and will in end have stock 4.0.4 with stock 4.0.4 kernel(of other generic, but if version and everything will be same so can say indian kernel aswell) rooted! this way. Will do all this only if root one click simple way isn't developed for 4.0.4

Hope people understood what i am tring to explain the logic, it is very complex and absurd but all in the end all i am asking is to get same simple way to root 4.0.4 in the end :)
[Xperia Arc Q&A, Help & Troubleshooting] arpith.fbi:
the title of the thread said so..so i directed him to that thread..
[Xperia Arc Q&A, Help & Troubleshooting] shantusingh:
thank you arpith.fbi for that, but i have already done that even before that thread was posted..

so no prob just hope its ur wish that u still find the easy way out as i asked n i would ofcourse appreciate the same...
[Xperia Arc Q&A, Help & Troubleshooting] arpith.fbi:
wait for few days...updated oneclick root will come..
[Xperia Arc Q&A, Help & Troubleshooting] shantusingh:
yes i am waiting, i'll be glad if you or anyone will update me about it... as if i be unaware of it being posted somewhere :)

Regards
[Xperia Arc Q&A, Help & Troubleshooting] xtacy!:
@Ardith.fbi,

Didn't you say it was possible to get your hands on the Generic World from your contact at Sony India over the weekend? Any luck regarding that?

Swyped from my SE Xperia arc (LT15i) using Tapatalk 2
[Xperia Arc Q&A, Help & Troubleshooting] arpith.fbi:
I am not in Blore dude..will be going back dere only on thursday..
[Android Apps and Games] rangerelf:
This is awesome :-) I for one welcome our new floating-window overlords.

Sent from my SGH-T959 running SlimICS.
[Android Apps and Games] pingpongboss:
Awesome, thanks for your input!
[Android Apps and Games] traumatism:
hope to see this implemented into future apps as it looks like it could be really useful. would be great for notes.
[Android Apps and Games] SWFlyerUK:
This has to be one of the best idea's i've seen from a community.

Is it hard to implement into any custom app built with eclipse?
[Android Apps and Games] john9:
Awesome post! Thanks for your contribution .
[Android Apps and Games] pingpongboss:
I've put a lot of effort into making it easy for developers to incorporate StandOut into their apps.

The most basic windows only need to implement 4 methods to make them float.

See: https://github.com/pingpongboss/Sta...ple/src/wei/mark/example/MostBasicWindow.java

which becomes this
[Android Apps and Games] SWFlyerUK:
So how do I go about implementing this?

I'm an app designer, but not sure when it comes to this? Thanks!
[Android Apps and Games] pingpongboss:
Have you used eclipse to make an Android application before?

The steps are:

Download the library: git clone my repo, or click "Download as zip" at https://github.com/pingpongboss/StandOut/downloads and unarchive

Import the folder (created from the previous step) into Eclipse: http://stackoverflow.com/a/5450375/450396. This will create 2 projects in Eclipse for you.

To start, open the StandOutExample project (created from the previous step). Edit StandOutMultiWindow.java and replace the contents of createAndAttachView(int id, ViewGroup root) with your own views.

Run the StandOutExample project to see your own floating windows on your phone or emulator.
[Android Apps and Games] xdaid:
Amazing.

This is so nice and helpful, thank you!!

I will try it soon on a new app :)
[Android Apps and Games] pingpongboss:
Feel free to let me know when you have something to show! StandOut is still in development so i'd be glad to listen to any concerns you have while using it.
[Android Apps and Games] SWFlyerUK:
So can we create a full blown app with this?

Could you proved an example of an alternative view?

Thanks!
[Android Apps and Games] pingpongboss:
The idea is that you can stick any kind of view or layout into a floating window. For example, here is google's map view inside of a StandOut window.
[Android Apps and Games] SWFlyerUK:
Have you got the code for the map view please?
[Android Apps and Games] pingpongboss:
Sure, i can put it on github, but are you SURE you want it?

It's super buggy and only half works because a MapView is kind of special.. it's restricted by Google to run in a MapActivity so I'm using some half-working workaround to get it to display inside of a window.

Do you want to do something with maps or something?

Or can i show you another custom layout.
[Android Apps and Games] SWFlyerUK:
Another custom layout would be fab please.
[Android Apps and Games] pingpongboss:
sure, what kind of layout are looking for, specifically? what are you trying to do?

And just so you know, the MultiWindows that you see in the demo video are using a "custom" layout. They are using the following: https://github.com/pingpongboss/StandOut/blob/master/example/res/layout/body.xml
[Android Apps and Games] SWFlyerUK:
Is there a list online anywhere containing information of various views that android can use?
[Android Apps and Games] pingpongboss:
Is this your first Android application? You can follow Google's tutorials here http://developer.android.com/training/basics/firstapp/index.html

Or you can import and open the StandOutExample project, then open res/layout/simple.xml and look at the visual layout editor. You can see all the views you can use in your layout.
[Android Apps and Games] xdaid:
Of course! thank you again.

@SWFlyerUK

Look at the example provided, you just need to extend the StandOutWindow.

So, import library and example projects into Eclipse and open at the "StandOutMultiWindow" class, you will see that "createAndAttachView" method, replace the R.layout.body with your own layout and you're (almost) done. Pretty straightforward, isn't it?

For a list of the views Android can use... hmm better you take a look at the Android documentation first.
[Android Apps and Games] wutk3ksHD:
Of course you get the full version for free! I'll send you the apk later as an email.

I noticed all comments on Google Play and implemented these things, but noone changed his rating yet. I'll hope this will change :confused:

It is great to get emails from several cutomers with suggestions. I never expected such a great community on Google Play :good:
[Android Apps and Games] Oscar-Mark:
Hey have you seen the new Xperia phone?

It has some kind of floating apps called mini apps that looks exaxtly like these apps.

Also notice the "get mini apps from play store".

Have Sony made their own "floating apps" Open-Source library, that they will also share for developers to make their own "mini apps".

Edit: forgot link http://www.xperiablog.net/2012/07/26/sony-lt30p-mint-fully-unveiled-and-previewed/
[Android Apps and Games] acquariusoft:
I have publish my app on market in beta stage

https://play.google.com/store/apps/details?id=com.acquariusoft.floatingcommunication

- gmail chat

- facebook chat

- gmail email reader

tnx to your library!!!!

Inviato dal mio Transformer TF101 con Tapatalk 2
[Android Apps and Games] wutk3ksHD:
Sounds great. I just downloaded it from Google Play, set my username and password but i get always Force-Closes. Logcat says it is a RemoteServiceException.
[Android Apps and Games] qhe:
Wow thats pretty cool. I'm getting the same problem as the person above me
[Android Apps and Games] acquariusoft:
can you send me you logcat nd you android version?

Inviato dal mio Transformer TF101 con Tapatalk 2
[Android Apps and Games] xpresotw:
Trying it ouy
[Android Apps and Games] cody_04l:
I was unable to connect to gmail using my full email address but when I removed @gmail.com it connects no problem.
[Android Apps and Games] wutk3ksHD:
Back to Standout: Did anybody experience forceclose by tapping "close" multiple times? It says that Standout wants to close a window which doesnt exist. Heres the error:

java.lang.IllegalArgumentException: Tried to focus(1) a null window.
at wei.mark.standout.StandOutWindow.focus(StandOutWindow.java:1790)
at wei.mark.standout.StandOutWindow$Window.onInterceptTouchEvent(StandOutWindow.java:2245)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:843)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1785)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4635)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)
at dalvik.system.NativeStart.main(Native Method)

May we have to close the window after the closeanimation?

EDIT: If you tapped close multiple times, the app crashed. To fix this, change StandOutWindow.java in line 2482:
[Android Apps and Games] xdaid:
Occasionally i got the very same error. Did you experience blocks other than FCs? I got blocks as well. I remember the FCs/blocks occurred even with a SINGLE tap on the close icon but i could be wrong, i didn't pay so much attention on this (i thought it was my code).
[Android Apps and Games] pingpongboss:
A little competition is good haha. Did I miss the open-source part? Does that link talk about where I can look at the source code?

woohoo! Definitely checking this out when I have some time.

I have StandOut crash when it encounters an error like this on purpose, because I was trying to debug the asynchronous stuff. In the future I'll add a way to switch between debug and release modes so that StandOut would just ignore the error when you want to release your app.
[Android Apps and Games] Oscar-Mark:
No that's just an unofficial Blog, try talking to Sony Devs.

Maybe not Open-Source but in one pic it says download from Play Store.

Maybe they just put their own mini apps on Play Store, or maybe they'll release Open Source code.

Here's image.

I'll try and contact the Devs @ Sony.
[Android Apps and Games] wutk3ksHD:
I have still problems with playing youtube videos in a webview. the mobile site loads perfectly but youtubevideos will not be played if i press play. I enabled javascript yet. Any idea?
[Android Apps and Games] pingpongboss:
Sorry for not being able to solve your issue. Are you able to get the youtube videos to play in a webview that's NOT in a StandOut window?

Also as an update to everyone else: I've started my full-time job at Google, so it's hard to find time to work on StandOut. I'm currently in the process of adding tiling support, where if you drag a window to an edge, it will fill up that portion of the screen, kind of like how Windows 7 works. No ETA tho :)

Some enterprising young guy is actually porting the StandOut library to Basic4Android. It really blows my mind and I really have no idea how that works.
[Android Apps and Games] brandall:
Congratulations! Put a good word in for me! ;)

Sent via xda premium
[Android Apps and Games] pingpongboss:
Google's always looking for more engineers, so if anyone's interested, talk to me ;)
[Android Apps and Games] xdaid:
Congrats! all my best wishes for your new job!

Oh expect some bothering then, i will contact you sooner or later:laugh:
[Android Apps and Games] jsxgt:
Problems with keyboard

Hello, and thank you very much for this library.

I was actually working on a floating app before, but since finding out about your library, things went much smoother. It's really great!

I do have a small issue, however.

In my floating app, which is a small memo app, I have a ListView containing all of the stored memos, and an EditText, that can be used to edit or create a new memo. These two elements are visible only in turn, either the ListView or the EditText, depending on what you need to do.

The problem I'm having is that I have absolutely no keyboard input for my EditText. I did search this thread and saw that there were some keyboard issues, but about it interfering with other running apps. My problem is that I cannot get any keyboard input inside my floating app. I forced the keyboard to show up using the InputMethodManager, but even when it did show up, all the keyboard events went to the application below.

Do you have any sugestions which I could try, to be able to type into that EditText?

As a sidenote, in case it helps, my test phone is a Galaxy S with an ICS MIUI ROM.

Thank you very much, and I hope you can help me :).
[Android Apps and Games] pingpongboss:
Works for me :)

Hmm we haven't had a keyboard issue in a long time. What version of standout are you running, and are you (or a super class) perhaps disabling focus through getFlags() ?
[Android Apps and Games] jsxgt:
Thanks a lot for your very fast response!

I am using the version from the library folder on github(source files, not jar package). Manifest file says 1.0, but I'm not sure if that's the actual version.

I have only modified the graphical assets, and left the source code mostly the same, with one exception. On my notes app, I use an ArrayList to store my note objects. Everything works fine, except I noticed that if I close the app, and open it again, the notes are being inserted into the ArrayList again, and that happened on every close and open. The ArrayList is not static so it should not have persisted(though the fact that the app that launches the floating window is still opened), so I took a look inside the code, and noticed on the close and closeAll methods that startService is being used. I was not sure exactly how that worked, so to fix it, I replaced them with stopService, and my ArrayList issue was fixed. However, since I did not take very close look at the code, so I'm not sure if I broke something else, or even if all of the memory used by the service is cleared after closing.

Do you think my changes somehow broke something in another place, or something else is wrong?

Edit:

Wow! I feel really stupid now. Just figured out what you meant with getFlags, and indeed, FLAG_WINDOW_FOCUSABLE_DISABLE was there. I must have checked out every other piece of code, except what was actually the first place I should have checked. I checked out my code for bugs, the StandOut code, the Manifest file, and all the while it was just a simple flag.

Thanks a lot for helping me with this, and sorry for disturbing you with such a stupid mistake :P.

I would still like to find out about my second question though. Does changing the code for the close and closeAll methods possibly affect the workings of your code? And if I want to completely remove my floating app from memory when it's closed, is there some other, better way of doing it, and have possibly missed the obvious on that issue as well, somehow? :)
[Android Apps and Games] pingpongboss:
close() and closeAll() use startService() as intended. It passes a specially formatted Intent to the StandOutWindow service, which is handled in onStartCommand(). If you take a look at onStartCommand() you'll see how it works.

You're not quite clear on what happens. When you close and open the floating note, you are seeing DUPLICATE notes? Are the old notes still in the ArrayList? The way closing a floating window works is that the window (a View essentially) is removed from the WindowManager with

mWindowManager.removeView(window)

Each window has an id, so you should save the data associated with that window id somewhere (sql, sdcard file, SharedPreferences, etc), then when you want to show that window again, do a

show(context, class, id)

with the same id. Then createAndAttachView() will be called, and you should put data in your view that you attach to the frame, based on the id that is requested.

If this doesn't make sense, look in the advanced folder for the FloatingFolder sample project. It is fairly close to what you want to accomplish, since it saves app icons (your notes) into folders (your ArrayList) and needs to be able to be closed and reopened with the data intact.
[Android Apps and Games] pingpongboss:
LOL glad u figured it out. And thank goodness you are still interested in an explanation, since I saw this after I replied :P

I made it so that when you close the LAST window, stopForeground() is called, so that Android will kill the service and reclaim the memory if needed. If you REALLY want, you could do a stopService() instead of a stopForeground(). Though it probably won't do anything: Android will kill a Service that ran stopForeground() pretty much whenever it wants to.
[Android Apps and Games] jsxgt:
Thanks again for the quick response!

I did notice that the intent was specially formatted, but I gave it a shot to see what would happen, and it did what I needed.

To explain, my app uses a database to store the notes. On createAndAttachView, I load the data from the database into the previously mentioned ArrayList. On the first run it worked as it should, showing me the notes. On the second run though, it added the notes again, next to the existing ones, thus duplicating them. And on every run adding another copy of the notes, until I force close the service) that runs the floating window. So I figured that the data must be persisting in memory for some reason. I used a Close All to make sure all instances are closed, but data still persisted. So I changed the code for the closing methods, hoping it would help. I thought either that or making all my variables null manually on exit.

I want to completely remove the floating window from memory, since I want to make this part of a larger app, that uses other services, and opens other floating windows, and would not like to have the other services closed by the operating system if memory is low, so I would like to keep the application memory footprint as low as possible while it's running. What would you recommend for such a situation?
[Android Apps and Games] xdaid:
Consider this:

public class MyStandOutWindow extends StandOutWindow
{
.
.
.
@Override
protected boolean onClose(int id, Window window)
{
this.stopSelf();
return false;
}
.
.
.
}

It works pretty well for me, in my app i need to completely kill and/or (re)open the StandOut service on (user) demand.
[Android Apps and Games] jsxgt:
Thanks, xdaid!

That works great. I can see the memory being cleared, and the variables seem to be removed at closing time as well, since there's no duplication of notes.

Thank you very much, to both pingpongboss and xdaid for helping me out! You're great! :D
[Android Apps and Games] wutk3ksHD:
I still didnt get youtubevideos to work. The same code works in a non-floating app.

:confused:
[Android Apps and Games] Alexintosh:
awesome, thanks for sharing, I'll try it as soon as possible
[Android Apps and Games] pingpongboss:
Perhaps there is some issue that arises when standout, webviews, and html5 video are used together.

As a workaround, are there any native clients you could use? Either official or third party.
[Android Apps and Games] jsxgt:
I can confirm that HTML5 video(from youtube.com at least) does not load in a WebView(javascrip in a StandOut window. Another thing I noticed(again, just on youtube.com), is that the video controls will not resize well, if the window is resized. That's more than likely something that has to do with the way the player is coded, but it might be good to remember, if someone plans on running the youtube(or possibly other) HTML5 player, and also give the ability to resize the window. It's not really a problem for me, at least not now. I just wanted to give a confirmation for the situation.

Why that is the case I don't know. Maybe the system does not assign some resources like the hardware acceleration, or video decoders to services, only to activities.
[Android Apps and Games] psx2pal:
Hey, i have code optimizing for you in StandOutWindow.java.

Replace:

icon.setImageResource(item.icon);

with

BitmapFactory.Options options;
options=new BitmapFactory.Options();
options.inSampleSize = 8;

Bitmap preview = BitmapFactory.decodeResource(getResources(), item.icon, options);
icon.setImageBitmap(preview);

it save ram for images. If you have many menus, you get out of memory exception, without this optimizing.

But you must use new images, if you want good quality.
[Android Apps and Games] pingpongboss:
I reread your post and suddenly I remembered something I had trouble with before. I believe anything that uses a SurfaceView (displaying videos for example) will work only if you have a backing Activity. It will not work in StandOut with the default way of doing things, but it can be done if you do a little tweaking.

I'm guessing the reason HTML5 video does not load in StandOut is due to this SurfaceView incompatibility. I know someone here is working on a floating video player, so he might be able to chime in. One thing I tried before (with MapView - a little different but it also needed a backing Activity) was to start a new Activity, but keep it hidden in the background. It kind of worked, but also ate up all the touches so you couldn't touch anything behind the window. I'm sure there's a better way to do it.

If we could figure out how, I'll add it into StandOut as a compatibility fix (see fixCompatibility(View root) ) so other people don't have to worry about it in the future.

Thanks so much for looking into StandOut! Can you explain real quick why this is optimized. Is it because of the low sample size + small icon? Is setImageResource() decoding with an unnecessarily high sample size by default? Also what is meant by "new images" in your last sentence?