yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] brandall:
:) Well it's much better now with your inclusion! I was looking for a way to display the voice results for the user to check before updating Facebook etc and this is just perfect :good: Would you prefer I linked this thread or github?

If you're really running out of ideas for further enhancements, I have a few requests that would make it 'ideal' for my usage:

1) In the editText onclicklistener, I would like to resize the window to make it larger (on click) without the user needing to manually expand the view. This is perhaps already an option somewhere that I haven't come across yet in my reading of your code - but, I would need to be able to retrieve the current window size to make sure the user hadn't manually increased the size since I displayed it - and I may therefore end up shrinking it!

I was also wondering if you would be able to return/set view dimensions proportionally to the screen size of the device? I would be able to expand the window to a larger fixed size on a tablet for example - it may be easier if I could just define 50% width and 40% height? But if the view was already at 60% & 50%, I would just leave it alone... I hope that made sense!?

Finally, I don't know if animating between the size changes is an easy implementation for you!? :eek:

Obviously no worries if you don't want to or it can't be done! I just thought I'd throw out there what would make it absolutely perfect for me...

Again, fantastic work.

EDIT: I thought of one more thing! Possible to increase the window transparency when it's not in focus?
[Android Apps and Games] pingpongboss:
I'd love it if you could link to this thread!

If I'm reading this correctly, this comes down to the question of "can I get the current window size"? Right now you can do this with:

Window window = getWindow(id);
LayoutParams params = window.getLayoutParams();
int width = params.width;
...

Hmm, this may be useful. I think I'll add convenience methods to Window that allows you to set the width/height/x/y, etc. Right now for percentages, you would have to manually do it with:

.50 * windowManager.getDefaultDisplay().getWidth()

Another good idea. Should be doable.

I'll have to think about what's the best way to do this. People will want to customize by how much should non-focused windows by transparent.

Thanks for your suggestions.

And hopefully I'll see some of you at Google IO!
[Android Apps and Games] brandall:
Done here and here! :) When I sort an About/Credits page in the app, I'll link from there too.

Thank you, great - Sorry I hadn't spotted it.

Thank you thank you! I'll check it out.

Cool.

Pleasure!

Wish I was there... Have a good one.
[Android Apps and Games] pingpongboss:
Pushed the initial version of pinch-to-resize. Set the FLAG_WINDOW_PINCH_RESIZE_ENABLE to try it out. I'll fix the resizing so that the point in between your fingers will be at a constant point in the window.

Thanks. Can you take a screenshot of utter! where the floating StandOut window is visible? I'll put utter! up on the original post too.

Edit: Version 1.2 of FloatingFolders and StandOutExample have been uploaded to the original post.
[Android Apps and Games] acquariusoft:
Is possible to remove the persistent icon?

I try to remove the override to getPersistentNotificationTitle but the icon is show
[Android Apps and Games] pingpongboss:
It gets the icon from getAppIcon(). I tried setting it to 0, but then it seemed to somehow avoid showing the Notification all together. It seems to be a bug though, since android popped up a "System has froze. Wait or Kill" dialog. You can add your own transparent PNG and set that as the icon if you wish.
[Android Apps and Games] acquariusoft:
Sorry i dont want show the notification not show only text

Inviato dal mio GT-S5830 con Tapatalk 2
[Android Apps and Games] pingpongboss:
You don't want a notification? That's impossible, because Android will kill your Service if it's not in "foreground". It can only be in foreground if you show a notification.
[Android Apps and Games] acquariusoft:
ok, tnx to clarify the question!!
[Android Apps and Games] acquariusoft:
Tested on android 4.1 emulator and works great!!

good work!!
[Android Apps and Games] pingpongboss:
StandOut looks beautiful on the Nexus 7 ;)
[Android Apps and Games] acquariusoft:
A little question,

i try to create an AlertDialog but i obtain the exception

06-28 17:10:46.389: E/AndroidRuntime(12654): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

i use

AlertDialog ad = new AlertDialog.Builder(getApplicationContext()).create();

and also

AlertDialog ad = new AlertDialog.Builder(myclass.this).create();

How can i show a confirm dialog with this library
[Android Apps and Games] theos0o:
Impressive work mr. pingpongboss.

Well done!
[Android Apps and Games] pingpongboss:
You'll have to start a custom Activity with android:theme="@android:style/Theme.Dialog"

http://stackoverflow.com/a/3599764/450396

You can't start a AlertDialog from a Service. I've used the above workaround before, and it is fairly easy to emulate a dialog.
[Android Apps and Games] xdaid:
It's because the dialog is not properly attached to the StandOutWindow, and unfortunately, there's no way to attach it properly (at least i was not able to achieve it).

I solved by using PopupWindows instead of Dialogs, they work great and you can attach them to the StandOutWindow.

start from here

Edit: LOL Mark answered while i was writing, it is happened again :) :) Obviously, it's better you listem at him :)
[Android Apps and Games] acquariusoft:
tnx to all suggestions ;,D

Inviato dal mio Transformer TF101 con Tapatalk 2
[Android Apps and Games] pingpongboss:
LOL not intended. Thanks for your help, too. I've looked at PopupWindow briefly before but never used it so I'd like to see it as well.
[Android Apps and Games] short_sam:
floating messages app

I think a really cool idea for a floating app would be a messages extension that lets you reply from that floating app... Now that would be legit
[Android Apps and Games] xdaid:
I put together a tiny example, inside the zip the source code to build a very basic dialog based on PopupWindow and the integration with StandOut.

Unless a proper Dialog this "dialog" can be shown from any of the views you attach via createAndAttachView method.

Pros:

No need for workarounds such as invisible activities. Dialogs stay anchored and resize along with the view attached to the floating window.

Cons:

A bit of coding, you have to build your own PopupWindow-based dialog. Not hard though, starting by the PopupDialog class in the example it's quite easy to implement more complex layouts, add buttons, etc.

Simple PopupDialog example project (.zip)
[Android Apps and Games] dgcruzing:
Can we pleebs...

have a list of some of the apps you guys are working on.

Plenty of us are reading with interest..

Also as it sounds like Jellybean is still a branch of ICS without windowed multitasking..

we are looking to you guys to crack the golden goose for us..

Ultimately it would be nice to have a tool like this to be able to have a floating window that you could have an option to

drop any program into.. i.e.. start any program in it.. then move it around.. I know, I know.. wishful thinking.. but....
[Android Apps and Games] pingpongboss:
Hey guys I've been out of town until maybe Tuesday or so, in case you were wondering where I went

Thanks a lot! I'll check it out and if it's worthwhile, I'll put a wrapper around PopupWindow so you can just make something easily with showDialog() or something.

This sounds like a good idea. I'll put something together.
[Android Apps and Games] Varience:
Thanks a lot for doing this

It'll be very helpful for any future apps I work on.
[Android Apps and Games] brandall:
Hey pingpongboss, thanks for the inclusion of pinch to resize - it's works well, unless.... the window is displaying a listView... then it's not happy.

Have you any bright ideas as to how you could avoid conflict with the list scrolling events...? I don't!

Also, is there any issue you can think of (or anything I need to consider) by killing the window (when in focus) inside onBackPressed?
[Android Apps and Games] pingpongboss:
Is the conflict you're talking about how it will both resize AND scroll the list at the same time? I don't have an example to test on yet. There is a way to prevent dispatching the touch event to the ListView child by returning true from Window's onInterceptTouchEvent(). Maybe look into that.

Everything should be fine if you just call close(id). I just modified close(id) so that it calls unfocus(id) inside. But you cannot use onBackPressed(). It is an Activity method, not something you can use with windows. Make sure you override onKeyEvent(int id, Window window, KeyEvent event) in your implementation, and handle the KEYCODE_BACK + ACTION_UP over there instead.
[Android Apps and Games] brandall:
Yes, it's not intentional to do both touch events, but it just happens... I'll check out your solution. Thanks.

Got it. Thanks, I'll give it a whirl!
[Android Apps and Games] pingpongboss:
I should have fixed this in the latest push. Can you check it out? Also, I made it resize from the center rather than from the top-left corner. Is this behavior better?
[Android Apps and Games] appelflap:
Nice job man. These kind of "hacks" should be covered in Android books :D Thanks
[Android Apps and Games] pingpongboss:
I've started work on StandOut again. Let the feature requests come! :laugh:
[Android Apps and Games] appelflap:
Great. Just an idea to complete the library: A normal window to start with, with a standard "go float" or "switch to float" button (like switching to the Mini Player in iTunes). No idea if this is feasible in the sense that more users want this, but I think it would be a nice and consistent addition to the standard UI library.

(But I would give this a low priority. Maybe something to add in the future. Problem with the whole float paradigm is that it should be an additional feature instead of a replacement. )
[Android Apps and Games] xdaid:
It would be nice, being able to implement a "full screen to windowed" (and viceversa) button would be cool!

Just tried StandOut with the latest updates, WOW, pintch to zoom is working a lot better than before, not tested in depth yet but it looks like perfect now. Thanks!
[Android Apps and Games] pingpongboss:
I don't really see how I can make such a "pop out" button in the library, and how people would actually use it. I mean, I can provide the button graphics (I suck at this), and people can create their own Buttons in their Activities, but there's nothing I can do to make it easy for devs to do so.

If you have ideas let me know!
[Android Apps and Games] pingpongboss:
Thanks so much for this! After playing with it for a while, I've decided not to use PopupWindow to do any dialogs. But I did take inspiration from your example project: Now You can click the window's icon, and a list of customizable menu items will be shown, powered by a PopupWindow.

Edit: wow, this was a feature request all the way back in page 4 http://xdaforums.com/showthread.php?p=27158318#post27158318

I still think PopupWindows are not meant for dialogs though. The PopupWindow moves with the window underneath and can't be larger than that window either. If people want to make dialogs I'd still suggest them to use a new Activity with android:style/Theme.Dialog.
[Android Apps and Games] appelflap:
Again, it is not of utmost importance, because we developers can basically integrate your library the way we want. But maybe it is a good idea to start on a standardization. An idea would be to integrate a action bar for the standard activity view and add a button to it. You could use ActionBarSherlock (http://actionbarsherlock.com/) for backward compatibility with Android 2.3 and lower. For 3.x and 4.x action bar integration is a new design requirement anyway :) (http://developer.android.com/design/patterns/actionbar.html). You can also add it as a menu option to the action bar menu.

How the switching back from mini (float) to standard is handled is more optional, but because of the the tiny space on the floating windows I would opt for a notification switch.

(BTW to make the float window behavior more consistent and less intrusive for the user, it would also be great to add an toggle "stay on top". I think there's no reason to push the float windows on top. Users can choose so, but it is by no means mandatory. If I want to make a note in a floating window I don't necessary want the window on top while I switch to the app I want on the background. While navigating to for example the launcher to launch the app I need while taking notes in my floating app, I don't need the floating notes app to stay on top continuously. It would be better to get it back to the top when I have switched to the app I want to run parallel with it. Hope you get the idea :) ..)

Just some ideas. I would love to see a standard framework for floating apps with a behavior that is consistent with the rest of the Android design.

But, again, your library already contains good building blocks. It is flexible enough for developers to use it the way they want.
[Android Apps and Games] Matze2402:
Hell yeah this looks nice! great Job! :-)

Maybe you know how I can start an activity (PreferenceSreen) when I click an item in the popup??
[Android Apps and Games] pingpongboss:
Thanks for your ideas! I know how to create my own Activity which would have an action bar item (or whatever) that launches a StandOut window, but here's the problem: I don't know how to create a reusable library that people can use so that their own Activities can have the same functionality.

If you think about it, I can subclass Activity into a StandOutActivity and tell ppl to then subclass StandOutActivity in their own implementations, but then there is ListActivity, MapActivity, ExpandableListActivity, FragmentActivity, NativeActivity, etc that I'll also have to subclass.

What you're saying with "integrate a action bar for the standard activity view" is just not possible from a library's standpoint. If you figured something out that I'm not seeing please let me know!

Switching back from floating to standard is a good idea, and can accomplished with an extra optional icon that I'll add to the system window decorations.

Your last idea about having floating windows BEHIND Activities is doable with the current version of StandOut. In your implementation, override onFocusChange(). Inside that method, do a hide(id) which will hide the window until the user clicks the restore notification later. But I don't really see people doing this enough to automate it in the library.

does startActivity() not work?
[Android Apps and Games] xdaid:
Nice work on the drop down menu, well done!

About the "PopupWindow dialogs", they can even be larger than the floating window but the "Activity way" is much simpler, you're right actually there's no point in making a change unless you have the need to keep them always inside the window (very rare case happened to me).

Probably (99% chance) i am just missing something but it looks like the drop down menu can't be disabled by setting FLAG_ADD_FUNCTIONALITY_DROP_DOWN_DISABLE.

Maybe some code is missing at the end of getSystemDecorations()

private View getSystemDecorations()
{
.
.
.
if (Utils.isSet(flags, StandOutFlags.FLAG_ADD_FUNCTIONALITY_DROP_DOWN_DISABLE))
{
icon.setOnClickListener(null);
}
}

or even better

private View getSystemDecorations()
{
final View decorations = mLayoutInflater.inflate(R.layout.standout_system_window_decorators, null);
// icon
final ImageView icon = (ImageView) decorations.findViewById(R.id.window_icon);
icon.setImageResource(getAppIcon());
if (!Utils.isSet(flags, StandOutFlags.FLAG_ADD_FUNCTIONALITY_DROP_DOWN_DISABLE))
{
icon.setOnClickListener(new OnClickListener()
{
@Override public void onClick(View v)
{
PopupWindow dropDown = getDropDown(id);
if (dropDown != null) { dropDown.showAsDropDown(icon); }
}
});
}
.
.
.
}

this way the icon does not steal the touch and behaves exactly like the rest of the title bar
[Android Apps and Games] pingpongboss:
oh, good catch. Let me explain.

So I was actually thinking about this before I pushed out the code: "Do people need an easy way to close every window of a certain application?" For example, if you open 3 floating browser windows, is it useful to be able to close every browser window (like Quit Command-Q on mac). So I decided that the window icon drop down will always have a "Quit" + getAppName() item that closes all windows.

I will add a FLAG_DROP_DOWN_DEFAULTS_DISABLE to remove the default Quit item (and any default items I may add in the future). I still want it there by default tho, as a service to users.

You are a little confused by the meaning of FLAG_ADD_FUNCTIONALITY_DROP_DOWN_DISABLE. I've updated the javadoc of FLAG_ADD_FUNCTIONALITY_DROP_DOWN_DISABLE to be more clear that this flag only affects custom Views with id R.id.window_icon.

Thanks!
[Android Apps and Games] xdaid:
Here we go, i applied StandOut to Logcat Extreme, it's a minor implementation but it turns the app into a pretty cool tool since for the first time the user is able to watch at the logcat right while she/he is working on the device. I'm even working on another app, something bigger :) but it'll comes later.

http://xdaforums.com/showthread.php?p=22876680#post22876680

EDIT: forgot to say, inside the app (menu -> info) i put a link to this discussion
[Android Apps and Games] Matze2402:
Now I solved the problem:

Intent settingsActivity = new Intent(getBaseContext(), Prefs.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getBaseContext().startActivity(settingsActivity);
[Android Apps and Games] pingpongboss:
I'm trying it out and it's looking great so far :good: Let me know when you have something to preview for your new app hahah

Ahhh, the FLAG_ACTIVITY_NEW_TASK. I forgot about that. You should be able to replace getBaseContext() with this, as long as you have that important flag it should still work. (not 100% sure tho)

Edit: If the code is in an anonymous class, you'll have to do ImplementationClass.this
[Android Apps and Games] Matze2402:
Sorry I put an old Code here, I replaced it before ;-)

But I have never had a situation before that I had to use this flag. So i needed a long time to remind me :D
[Android Apps and Games] pingpongboss:
That flag always trips me up! Good thing logcat always tells you exactly what's wrong though.
[Android Apps and Games] brandall:
Hey PingPingBoss, can you take a look at this for me please.

At the same time I built in Standout, I also updated (n)utter to show an icon from a background service when the user was speaking. I couldn't solve the damn bug and assumed it was a problem with (n)utter using a notification from a background service, but I couldn't replicate.

Anyway, friend shows up yesterday with her Gingerbread device who has the issue - I remove all (n)utter notifications, but it still happens, so it's actually Standout/my implementation of the Standout notification, that's causing the bug (removed and re-added to confirm) for a small number of my users.

I might need to send you my set-up?

Cheers

brandall
[Android Apps and Games] pingpongboss:
Hey brandall, if you could just email me your implementation (the java class that extends StandOutWindow) then I can try to sort it out for you.

Also if you could tell me if you use gchat/aim/fbchat so I can ask some questions. I don't really understand the error right now, so it might be a lot faster than email.
[Android Apps and Games] brandall:
Thanks mate, I'll catch you on gtalk later - I'll find you from your email address.
[Android Apps and Games] fivef:
Copy paste

Has anyone got copy paste/ selection mode working in edittext?
[Android Apps and Games] wutk3ksHD:
You cant use copy and paste, because you cant select text (thats my experience). However you can use ClipBoardManager to copy and paste.
[Android Apps and Games] acquariusoft:
yes, this is a big bug.

boss, is not possible to solve ;D
[Android Apps and Games] pingpongboss:
Hm I never realized you can't copy and paste from a text box with StandOut.. I haven't looked into it much, but so far I can't think of why this would be. Anyone have any clues?

I'm traveling through Canada and Europe for another week and a half. Sorry for lack of updates! :cowboy:
[Android Apps and Games] gudved:
float stopwatch

can some one develop a float stopwatch or timer, it is so useful i think
[Android Apps and Games] wutk3ksHD:
I dont see any need in it, but i got so much free time... I ll think about it, especially because it is a good exercise to improve my java skills.
[Android Apps and Games] acquariusoft:
Two little question.

How can i know if my window is minimized? I have a listener and i must choose btween 2 action.

is possible launch a notification and when i click on it reopen the window, like default notification?

I have create a notification but when i click on it it not reopen the window

tnx
[Android Apps and Games] acquariusoft:
i'm trying also to add admob to my app, but i cannot instantiate thru code why i haven't activity to create AdView object and if i add to xml i obtain a

07-24 14:50:50.862: E/AndroidRuntime(1281): Caused by: java.lang.ClassNotFoundException: com.admob.android.ads.AdView

someone can help me?
[Android Apps and Games] Oscar-Mark:
When I learn how to code I will make a StandOut app. :)
[Android Apps and Games] wutk3ksHD:
Attached an image. This app will be on the market soon. There is also anohter app i am working on, but this will take some more time.
[Android Apps and Games] pingpongboss:
Whoa, that looks super slick. Nice!

Apologies to everyone, I'm on vacation in Europe right now so haven't had time to work on standout recently!
[Android Apps and Games] wutk3ksHD:
Floating Notes

Since i am not allowed to post a new thread in the subforum for paid apps, i have to show my app here.

First of all: Mark. Your library is awesome and your support helped me out several times. Thanks to you!

FLOATING NOTES

Floating Notes is an application to take notes whatever you do. Created with StandOut :D!

Download on Google Play

Sorry. Its not for free. I have to pay my driver license :eek: . Contact me if you want a free version with less functions.

Some features:

- Up to 4 windows

- save and open as .txt file

- send/rename/delete/append notes

- create new calendar entries with a note

- open every txt file on your storage

- set transparency of each window
[Android Apps and Games] pingpongboss:
I love how you made floating controls in addition to the floating notes. Looks like all the comments on the Play Store complain about valid things. I get a free version right? ;)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] 0xD34D:
MIUI.us Is Proud To Present

MIUI v4 2.6.8 For AT&T SGS 2 aka Skyrocket

Note: This is currently a WIP as I own the T-Mobile version (hercules) and cannot debug this ROM on my own device. Since the skyrocket and hercules are almost identical, I have built this ROM using my hercules version as a template. The items I have listed as not working are from my T-Mobile ROM and I am assuming they are the same for the skyrocket. For those of you that want to give this a try, I ask that if you are going to report an issue please do so by also providing a logcat of when the issue occurs. Without that I am not going to be able to debug the problem unless it is reproducible on the T-Mobile variant.