yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] pingpongboss:
Thanks for playing around with StandOut! For me to help you I'll need some more information.

I need to know how you are setting the text. Can you post your code on http://pastebin.com/? If you don't want to post the entire source code, can you post at least createAndAttachView (or the appropriate method that has the code), or post the button.setOnClickListener( ... ) section?

damn, so it's not perfect yet. Thanks for finding this issue. But the good thing is I actually know how to fix the problem this time (whew). Windows are now in focus due to TYPE_PHONE. When the window is in focus, it eats the KEYCODE_BACK (and MENU) key. What I'll do is unfocus the window when you press Back the first time, so the Activity will receive the key when you press it again. I'll add some visual state to the windows to make this obvious. I'll also allow the developer to choose whether their window can be focused, so that simpler apps can avoid having to press Back twice.
[Android Apps and Games] Mingonet:
hmm..WebView not provide a method to get/set the select element inside the loaded Url.

And other way i will try out is the webview use the main activity's context.

For example:

MainActivity <==the entry point to call Browser Activity, then hide.

BrowserActivity<== a webview will be inflate, but using MainActivity.

Do you think it is works?

:confused:
[Android Apps and Games] SynnyG:
Hi ! First of all a big thanks for your works, it's really awesome ! But I've a (nooby) question: I've seen that the id of the first window is equal to 0 with the DEFAULT_ID variable in StandOutWIndow class. But I don't understand how and where this variable is attached to the "id" variable (the variable that display the window id in the textView) !

I really want understand the whole project before beginning to work on this ! A big thanks for your help :)
[Android Apps and Games] pingpongboss:
Sorry! I don't know the details of how webview works.

StandOutWindow.show(..) is called with a parameter id.

https://github.com/pingpongboss/Sta...rc/wei/mark/standout/StandOutWindow.java#L117

This id eventually gets passed to MultiWindow.createAndAttachView(..) https://github.com/pingpongboss/Sta...ple/src/wei/mark/example/MultiWindow.java#L54
[Android Apps and Games] SynnyG:
Nice, I can go to sleep peacefully ^^. I have a last question related to this: the DEFAULT_ID variable in StandOutWindow.show method is incremented automatically when we press the "open button" in notification center that's true ?
[Android Apps and Games] pingpongboss:
No. That variable is final. Instead, MultiWindow uses getUniqueId() to generate bigger and bigger ids. https://github.com/pingpongboss/Sta...ple/src/wei/mark/example/MultiWindow.java#L97
[Android Apps and Games] SynnyG:
OK !!! I really appreciate your help, thank you very much and have a nice day ;)
[Android Apps and Games] Mingonet:
I have digg on it, you have to pass the window id to the new window and store as variable for later use.
[Android Apps and Games] wutk3ksHD:
hi, it's a while now i have been working with StandOut, but i need to fix a bug within my Tiny Apps now. Several users report freezes of the windows on newer android-versions, e.g. android 4.3 (Nexus 7 2013). Were there any important changes at StandOut that fix this?
[Android Apps and Games] OryonCorp:
adding the same standout window twice

Hi i'm making an app where i want to use the same standout window at least twice ...but when i open it again with another id the old window dosen't work any more
[Android Apps and Games] pingpongboss:
Not that I know of.

You're probably using fields for your windows that don't take the id into account. For example, if your subclass has a field "String title", that field will be shared between all the windows. Instead, you want to have a field ArrayList<String> title, or Hashmap<Integer, String> title, or anything keyed by the window id.
[Android Apps and Games] OryonCorp:
I just have an EditText and a webview... If i open the same window twice only the last one send the text from the edittext to the webview... What can i do??
[Android Apps and Games] pingpongboss:
Do you have any fields? I can't help unless I see your code.
[Android Apps and Games] OryonCorp:
Can i send it on your email ??
[Android Apps and Games] pingpongboss:
Sure. No guarantees that I'll have the time to really look at it. It helps if you send just the subclass.
[Android Apps and Games] pingpongboss:
I'm going to reply publicly on here, since I've seen this mistake happen multiple times. A part of your code looks like

private EditText editText;
private List<Link> history;

This will NOT work. These fields do not belong to a single "window", they belong to the entire class of windows. So when you set these fields in createAndAttachView(), you are actually overwriting the previous values that you've set. To fix this, change it to this:

private SparseArray<EditText> editTexts;
private SparseArray<List<Link>> histories;

And when you are reading or writing to these fields, do:

EditText myEditText = editTexts.get(0);
editTexts.put(id, findViewById(R.id.edit_text));
[Android Apps and Games] OryonCorp:
Help

Something is still wrong ...i tried your method but it crushed my app so I thought it was because of my code but than i tried on your example "MultiWindow" but it still crushed... Please help :)
[Android Apps and Games] pingpongboss:
If the MultiWindow example is crashing, then something might be wrong with your set up. Try Eclipse > Build > Clean and restart Eclipse.
[Android Apps and Games] OryonCorp:
Helppp

Still nothing maybe i'am still making a mistake so if is not to much to ask, could you please post here a copy of MultiWindow with the updated code of how i should have done it .... Please !
[Android Apps and Games] pingpongboss:
The copy of MultiWindow is on git. You should've followed the directions on page 1 http://xdaforums.com/showthread.php?t=1688531

Can you build and run MultiWindow example?
[Android Apps and Games] OryonCorp:
help

Yes i know but the original copy dosen't use "private SparseArray<TextView> textview" it uses "TextView mytext" .

Yes i can run it but when it opens it crushes .
[Android Apps and Games] pingpongboss:
I don't see "TextView mytext" here https://github.com/pingpongboss/StandOut/blob/master/example/src/wei/mark/example/MultiWindow.java
[Android Apps and Games] OryonCorp:
I know but what i meant is that in the MultiWindow the textview is defined like this "TextView idtext= (textview) view.findviewbyid(R.id.id)

But you said that i shouldn't do it like this if i want it to support the same window being opened twice.You said i should do it like this:

private SparseArray<TextView> textviews

TextView idtext = textviews.get(0);

textviews.put(id, findViewById(R.id.id));

But when i do it like this the app crushes
[Android Apps and Games] pingpongboss:
I said that about fields. MultiWindow only has local vars.
[Android Apps and Games] OryonCorp:
Yes but how would i do if i want to change the multiwindow than when i click on the textview the numbee that is shows to increase and to support to be opened twice
[Android Apps and Games] wutk3ksHD:
onShow() is where you need to initialize your fields. Don't use any global fields. Instead, do everything in onShow().

Regarding the freezing of windows: Removing the flag StandOutFlags.FLAG_WINDOW_BRING_TO_FRONT_ON_TAP fixes it.
[Android Apps and Games] pingpongboss:
Well, you can still have global fields. Just key them by id https://github.com/pingpongboss/Sta.../mark/floatingfolders/FloatingFolder.java#L60
[Android Apps and Games] OryonCorp:
Ok... So this is how i modified MultiWindow so that when i pres on the textview to show one the when i press again to show two and so on... and i made it to suppot to be oppened twice....but there is sill a problem if i open it let's say 2 times..let's say i click 3 times on the textview it shows 2 but then if i click on the second one it dosent start from 0 it starts from 2 ...why is that ??

Here is my code:
[Android Apps and Games] OryonCorp:
Hey guys do you know why youtube videos work in an activty but in standoutwindow no???
[Android Apps and Games] pingpongboss:
I don't know what you're trying to do anymore. Maybe take a look at the advanced example to see if it can help https://github.com/pingpongboss/StandOut/tree/master/advanced/floatingfolders

Probably because youtube uses a SurfaceView (or similar) to draw the video, which assumes a backing Activity. You can trick it to think you have an activity though. I have not played around with this, but I've seen other devs do it.
[Android Apps and Games] wutk3ksHD:
I tried to play youtube videos too. However, i didnt make them work in a webview, but you can embed a VideoView into your StandOutWindow and start streaming youtubevideos by knowing the rtsp-stream. however, i never got it working :)
[Android Apps and Games] roshga:
Hi there mark,

You probably don't remember that, but after I've came out with my app 'Swapps' you've emailed me asking if I've used StandOut with it.

Well, I've got to say I'm happy you did, getting to know this library was great a time-saver!

I've came out with a new app, Snapy, The Floating Camera.

this time with StandOut running inside, and of course a warm thanks in the 'Thanks' section in the app.

you can see it here:

http://xdaforums.com/showthread.php?t=2522939

or here:

https://play.google.com/store/apps/details?id=com.schiztech.snapy

Once again, Thanks for the hard work. It's a great lib!
[Android Apps and Games] pingpongboss:
Wow, a very novel idea. I have to say, it is really polished and well-made. Nice work! And thank you very much for the shout out :)
[Android Apps and Games] OryonCorp:
PingPongBoss if you find out how we can make standout window to support playing internet videos could you please let us know !
[Android Apps and Games] megasoft78:
Hi pingpongboss,

thank you for sharing this amazing library!

I'm trying to integrate admob into my little app but I can't.

I'd like to integrate a banner and run an interstitial at a specific action but I don't know how to do it.

I tried to put banner in xml and at runtime but it doesn't work.

Every time I get the following error:

I also tried to open an interstitial but because I'm from a Service I should eventually send a message to an Activity to run the interstitial.

Not sure how to do it and if that will work! :(

Could you please provide in one of your examples the code to integrage admob (banners and interstitials)?
[Android Apps and Games] addemod:
Are you able to have a "Most Simple Window" on top of everything that has filled the full screen and then interact with everything behind it?

If so, can I have an example how to do it?
[Android Apps and Games] SynnyG:
A big big thanks for the solution regarding the freeze issue ! If I well understand, with this flag, if we tap on a window it bring the window on top of everything like it's already the case that's true ?
[Android Apps and Games] wutk3ksHD:
In case you have multiple floating windows running, tapping on a window will redraw this window on top of the other windows.
[Android Apps and Games] SynnyG:
Hi all !

I've an issue:

I have to start an Activity from my window by clicking on a button. For this, in StandOutFlag class I've added the FLAG_ACTIVITY_NEW_TASK flag, in getFlags method (in MultiWindow class) I've added this line

| StandOutFlags.FLAG_ACTIVITY_NEW_TASK

but when I click on the button I got a fc ><

There is my method for starting an activity with my button:

public void settings(View v){
Intent settings = new Intent(this, settingsActivity.class);
startActivity(settings);
}

I suppose that I have to add something related to the flag in my settings method that's true ?

Thanks in advance for your help !
[Android Apps and Games] wutk3ksHD:
1. in getFlags(), you return the Flags the window will have, you don't add FLAG_AVTIVITY_NEW_TASK here. Simply remove it :cool:

2. to start an activity out of a floating window, you need to do something like this:

Intent i = new Intent(getApplicationContext(), settingsActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
[Android Apps and Games] OryonCorp:
help

Does anybody knows why if i try to open an alert dialog from the standout window my app crushes
[Android Apps and Games] SynnyG:
Thanks for the explanation !!!! Working now :)
[Android Apps and Games] wutk3ksHD:
You simply cannot use AlertDialogs yet, because of the missing context.
[Android Apps and Games] aldolo:
i'm using custom build popup from scratch. the popup issue is really bad, as all the other missing standard features not working in the unusual standout application context. have a look to my fork https://github.com/aldolo69/Yaaic. there is a "standout" folder with popup samples and a cut&past functionality
[Android Apps and Games] andmau90:
bringOnFront

i have a problem with bringOnFront function, when i tap or touch on window usually crashes but an other window do very well.

How can i solve this problem? thank.

This library is very beautiful.;););)
[Android Apps and Games] kuight:
Remove touch listener

Hey someone knows how to disable touch listener of the simplewindow on foreground and yet the device touch listener still working?

Thanks!
[Android Apps and Games] SynnyG:
The solution is to remove the flag StandOutFlags.FLAG_WINDOW_BRING_TO_FRONT_ON_TAP but you'll loose this possibility
[Android Apps and Games] aldolo:
i've got an idea for a SO apps. i really need to replace the standard softbuttons because i hate to have them in the middle (jb 4.2).

the idea is to overlay the standard bar with another custom bar.

maybe someone is already working on it and (i'm lazy).

the bar must be opaque to hide the standard one, so on KK 4.4 the softbuttons transparency is lost. BUT it is possible to create some type of personalization, theming and so on.
[Android Apps and Games] megasoft78:
I just released my first floating app using Standout! :)

It's a floating app to get 4 Pics 1 Word answers! :)

It's still in BETA and I need some help to test it.

If you want to try it check the following thread:

http://xdaforums.com/showthread.php?t=2560678

Thank you! :)
[Android Apps and Games] OryonCorp:
help

Hey guys ... Is it possible that on close the standout window to animate to the top left corner of the screen??
[Android Apps and Games] albstein2000:
NoClassDefFound: wei.mark.standout.R$id

hi ssuukk,

Did you figure out how to fix this. I have tried restarting eclipse, starting from a clean build. I am still getting the "NoClassDefFound: wei.mark.standout.R$id" error.

Please let me know if you made headway on this..
[Android Apps and Games] megasoft78:
Hi guys,

Do you think is possibile to take a screenshot of the app below my floating app (Without root permissions)?

I'd like to make some magic! :)
[Android Apps and Games] yashade2001:
Gr8 work man! But where can I download .jar lib ?
[Android Apps and Games] Killafish:
Hey guys, I'm having some trouble implementing objectaninmator with standout window to create smooth translations as you drag the window around the screen. Does anyone have any advice or example code?
[Android Apps and Games] danaimset:
Window rotation

Hi pingpongboss,

What about configuration changes: portrait/landscape mode, keyboard.

Does your solution provide way to transform position of popup window between different configurations ?
[Android Apps and Games] Killafish:
I implemented this myself using the onConfigurationChanged(Configuration newConfig) method in the class and putting android:configChanges="keyboardHidden|orientation" in the manifest within each activity/service tag that needs to be monitored for orientation changes.
[Android Apps and Games] MrChops:
I'm back with another recurring error I'm seeing, and again it's something that I just can't replicate.

java.lang.IllegalArgumentException: Tried to close(0) a null window.
at wei.mark.standout.StandOutWindow.close(StandOutWindow.java:1247)
at wei.mark.standout.ui.Window$5.onClick(Window.java:453)
at android.view.View.performClick(View.java:2485)
at android.view.View$PerformClick.run(View.java:9080)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3714)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:647)
at dalvik.system.NativeStart.main(Native Method)

Anyone else seeing these or know how I can avoid them happening?
[Android Apps and Games] handnf:
GoogleTV Dev?

I played around with the library today and built a simple app that works as expected on my Nexus 7. My hope was to port that to my Logitech Revue and use the app there. However, I cannot get any window to appear on the box. The notifications appear, but I can't clear the simple window nor spawn a different type of window from the notification shade.

Has anyone else gotten StandOut to appear on a GoogleTV device? It runs Android 3.2, so it should technically be able to run. Is there some sort of platform specific barrier?

Thanks.
[Android Apps and Games] Fossor coding:
Great library!

Can I hide a window without getting notification?
[Android Apps and Games] aldolo:
i'read somewhere in the thread that a service (like a standout popup) without a notification can be wiped by android at anytime.
[Android Apps and Games] freakxapps:
got to know about so cool apps here :good: to standout
[Android Apps and Games] Fossor coding:
Yeah, I saw it too. Thing is, each window hiding adds another notification. This coupling of window and notification complicates things.
[Android Apps and Games] andob0:
You should take a look at Full!Screen . It does what you're looking for (at least partially) :D
[Android Apps and Games] aldolo:
i know it but it is not what i need. i really hate jb 4.2.
[Android Apps and Games] Zed is Dead:
MultiWindow for Samsung devices in 2014.

Hi,Mark,all...it was just a matter of time? http://www.ibtimes.com/samsung-ces-2014-galaxy-note-pro-galaxy-tab-pro-series-unveiled-recap-samsungs-press-conference :good: MultiWindow feature
[Android Apps and Games] Sess:
Im having a little trouble getting a popup, im sure im doing something stupid. When i compile, deploy and run, i get a normal activity window with nothing in it, and the header with my icon and application title. If anyone can point out where i went wrong, i'd appreciate any help you can offer!

I built my project source as follows, and linked the standout.jar to my projects libraries in the project properties.

here's a screenshot of the output: https://lh5.googleusercontent.com/-...61-h597-no/Screenshot_2014-01-07-15-14-15.png

main_activity.java:

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

package com.example.org.wiredbrain.shieldcomms;

import wei.mark.standout.StandOutWindow;

import android.os.Bundle;

import android.app.Activity;

public class MainActivity extends Activity {

[MENTION=439709]override[/MENTION]

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

StandOutWindow.closeAll(this, CommOverlay.class);

StandOutWindow.show(this, CommOverlay.class, StandOutWindow.DEFAULT_ID);

}

}

CommOverlay.java:

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

package com.example.org.wiredbrain.shieldcomms;

import wei.mark.standout.StandOutWindow;

import wei.mark.standout.constants.StandOutFlags;

import wei.mark.standout.ui.Window;

import android.content.Intent;

import android.view.LayoutInflater;

import android.widget.FrameLayout;

public class CommOverlay extends StandOutWindow {

[MENTION=439709]override[/MENTION]

public String getAppName() {

// TODO Auto-generated method stub

return "Shield Comm";

}

[MENTION=439709]override[/MENTION]

public int getAppIcon() {

// TODO Auto-generated method stub

return R.drawable.ic_launcher;

}

[MENTION=439709]override[/MENTION]

public void createAndAttachView(int id, FrameLayout frame) {

// TODO Auto-generated method stub

LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);

inflater.inflate(R.layout.overlay, frame, true);

}

[MENTION=439709]override[/MENTION]

public StandOutLayoutParams getParams(int id, Window window) {

return new StandOutLayoutParams(id, 250, 300,

StandOutLayoutParams.CENTER, StandOutLayoutParams.CENTER);

}

// move the window by dragging the view

[MENTION=439709]override[/MENTION]

public int getFlags(int id) {

return super.getFlags(id) | StandOutFlags.FLAG_BODY_MOVE_ENABLE

| StandOutFlags.FLAG_WINDOW_FOCUSABLE_DISABLE;

}

[MENTION=439709]override[/MENTION]

public String getPersistentNotificationMessage(int id) {

return "- Terminate Comm Overlay -";

}

[MENTION=439709]override[/MENTION]

public Intent getPersistentNotificationIntent(int id) {

return StandOutWindow.getCloseIntent(this, CommOverlay.class, id);

}

}

My overlay.xml is a copy of simplewindow.xml from teh example renamed.
[Android Apps and Games] Sess:
Took a little time away. Then came back and sat down again this morning. Im sure im still not using the libs properly, but I ended up just staging the src packages in my project, and then merging the res files with my project files. Added a few manifest changes to remove the activity theme and presto, its working as expected. If someone can still provide me with the appropriate method of linking the library externally in eclipse, i'd most appreciate the learning op.
[Android Apps and Games] Acela1230:
I was wondering if anyone knew if there was a way to have the standout window not receive touch events. What I want to do is show the window but allow the user to touch things underneath the window. I have been looking though the library and can't seem to find it. I know its possible but not sure if it is written into the standout code or not. Any help you guys can provide would be appreciated as it will allow me to add the feature to my app.
[Android Apps and Games] aldolo:
have you changed the androidmanifest.xml to declare your own service? like this:

<service android:name="org.yaaic.standout.SoTerminalWindow"

>

</service>
[Android Apps and Games] aldolo:
check the dump. maybe you are using a forbidden (in the popup context) class. a floating app is not a regular app.