yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] pingpongboss:
That's the bring-to-front behavior. Make sure you are not passing any of the BRING_TO_FRONT flags in your getFlags()

https://github.com/pingpongboss/Sta...ark/standout/constants/StandOutFlags.java#L94
[Android Apps and Games] berkley:
I am playing around with some measurements...

In createAndAttachView() I do the following:

int heightMeasureSpec = frame.getHeight();
int widthMeasureSpec = frame.getWidth();

frame.measure(widthMeasureSpec, heightMeasureSpec);
frame.getMeasuredHeight();
frame.getMeasuredWidth();

SharedPreferences preferences = getSharedPreferences("dimensions", MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();

editor.putLong("height", frame.getMeasuredHeight());
editor.putLong("width", frame.getMeasuredWidth());
editor.commit();

And in StandOutLayoutParams getParams () I load these values:

SharedPreferences preferences = getSharedPreferences("dimensions", MODE_PRIVATE);
Integer width1 = (int) preferences.getLong("width", 400);
width = (Integer) width1;

SharedPreferences preferences = getSharedPreferences("dimensions", MODE_PRIVATE);
Integer height1 = (int) preferences.getLong("height", 300);
height = (Integer) height1;

return StandOutLayoutParams(id, width, height, StandOutLayoutParams.CENTER, StandOutLayoutParams.CENTER);

Only problem left:

getParams() is called before createAndAttachView(). How would I do a simple "refresh" when there are layout changes in createAndAttachView()?
[Android Apps and Games] pingpongboss:
See if you can find a convenient place to do updateViewLayout(id, getParams(...))
[Android Apps and Games] zakiancel:
helpful, thank you!!

helpful, thank you!!:good:
[Android Apps and Games] Duckbone Apps:
Very Nice Work!!

Hey pingpongboss, very nice work and thanks for sharing your talent!! I have an app where I am displaying a system_alert during a phone call for a specific contact. I attach the view when service is started and detach the view when it is stopped (start the service when phone state is ringing and stop service when phone state is idle). I am considering using your library instead to gain some of the capability that you have worked so hard to implement. I currently do not use foreground with a notification because I did not figure I would run into problems with the view only being shown during the duration of a phone call. Do you foresee me running into any issues using your library in the same manner? Thanks again for sharing your skill and knowledge with the rest of us. I have attached a ling to the app in question.

http://tinyurl.com/b4eo6qm
[Android Apps and Games] pingpongboss:
StandOut should be well suited to your application. The only difference is it'll add an extra notification icon.
[Android Apps and Games] Zed is Dead:
call my app from webviewer

Hi, Mark,all,

I am trying to find a solution to call my, from StandOut, made app, from a button in webapp (javascript). I was wondering would there be any known obstacles in StandOut that would disallow me from invoking an app?

Any thoughts appreciated!:good:
[Android Apps and Games] berkley:
How do I obtain xpos and ypos of a window?

---------- Post added at 10:24 PM ---------- Previous post was at 09:53 PM ----------

Stupid me... :eek:

final Window window = getWindow(id);
StandOutLayoutParams params = window.getLayoutParams();

SharedPreferences preferences = getSharedPreferences("dimensions", MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();

editor.putLong("xPos", params.x);
editor.putLong("yPos", params.y);
editor.commit();
[Android Apps and Games] Garrett1976:
Noob Question

So I'm new to java and android and am having a problem figuring out how to access functions in my project from within the StandOut library. For instance, the onClick handling of the close button is within StandOutWindow.java. I need to call a function in one of my classes to stop a service that is running on one of my floating windows whenever that window is closed. But I'm not sure how to call the function, and stop the service, from StandOutWindow.java.

I'm sure this is an obvious answer, but I'm not seeing it at the moment.

Thanks...
[Android Apps and Games] pingpongboss:
Should be no problems. My example FloatingFolders invokes other apps you could check it out.

You are extending StandOutWindow with your own subclass right? Override the onClose(...) method in your subclass. And you can call static methods of other classes there.
[Android Apps and Games] Zed is Dead:
Hi, Mark,

thanks for quick response..I will most surely check it out. :good:
[Android Apps and Games] wutk3ksHD:
My latest project, Smart Launcher:) It's a simple applauncher which is aligned to the left side of the screen. Open it with a slide from left to right or simply tap. However it's not ready to be released :D
[Android Apps and Games] wutk3ksHD:
Floating filemanager In progress :) What do you think of the design?
[Android Apps and Games] Zed is Dead:
would this be cool

Hi, would not this be cool? I think StandOut has this kind of future.. (I appologize if taking some of this photos was not allowed, used them just to create a sample)

In this picture I am listening Gangam style on youtube, writing email to my girfriend in Gmail, taking notes not to forget something today and serching for a picture on sd card at the same time..
[Android Apps and Games] m4tz3m4tz3:
Hello I'm getting the following Error, when I want to Run the ExampleProject on my Device

02-14 18:06:13.940: E/AndroidRuntime(25062): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{wei.mark.example/wei.mark.example.StandOutExampleActivity}: java.lang.ClassNotFoundException: Didn't find class "wei.mark.example.StandOutExampleActivity" on path: /data/app/wei.mark.example-1.apk

EDIT: okhad to restart Eclipse :)
[Android Apps and Games] mb-14:
Floating Battery Meter

I made this app using the StandOut library.Thanks Mark:good:
[Android Apps and Games] dgcruzing:
Re: [APP][2.1+] StandOut - Create Floating Apps [Updated 7/8: Window Editor]

Cornerstone tried but failed..

If it has to be floating apps so be it.. :thumbup:
[Android Apps and Games] guisalless:
Develop beauty float apps

Hello guys!

I think the "float apps" are large differentials on Android devices. But I don't see anyone investing in them really. The only "float apps" that I find interesting are on the tablet from Samsung. I'm very interested in contributing to Play Store have better applications and so I invite a competent programmer to work with me to develop a brand that have quality "float apps". I am designer by hobby and, therefore, I will not charge anything for the service. The credit will go all to the programmer. Those interested please contact me by email guisalles95@gmail.com. It is the opportunity to make you successful in Play Store.

Attached I show you my work with the app AirCalc.

Sorry by my English, I'm brazilian.

View attachment 1735346
[Android Apps and Games] pingpongboss:
Oh nice, I like your mockups. So you want to give floating windows a clean UI? Sounds like a good idea, good luck!
[Android Apps and Games] tldr23:
this will really help me to create more creative applications.. :D
[Android Apps and Games] Mohammad_Adib:
[APP][2.1+] Sidebar

Introducing Sidebar - A brilliant new way of multitasking on Android.

It's fast, functional, fluid, and customizable to your liking. Populate the sidebar with your favorite apps, and simply swipe in from the edge of the screen to gain instant access to the apps you use most. Simple - yet elegant.

- Fast, fluid, and immersive animations are integrated within Sidebar that keep it as quick as possible, yet help to add a dash of elegance to its presence.

- A simple Add button appended at the end of the sidebar summons a menu listing all the apps installed on your system. Simply pick an app, and it will be added to the sidebar for quick access.

- To dock the sidebar, simply select an app or touch outside

- To remove an app, simply swipe it out of the sidebar! Alternatively, long pressing will bring up further options such as inserting and replacing.

Customization:

- Starting on boot

- Adjusting the width & opacity of the bar

- Adjusting the color scheme & position

- Enabling/Disabling animations

- Adjusting the swipe sensitivity

- Enabling/Disabling vibration

Sidebar Pro

Sidebar Pro lifts the limitations put on the lite version and opens access to new customizability as well as functionality - elevating sidebar, to its most impeccable and pure state.

Development

Sidebar is in constant development. Development began as soon as the idea stemmed well before the debut of Ubuntu Phone and recent such apps. The developer ensures a smooth and polished experience to every single user. User experience is key in making Sidebar the perfect multitasking app for Android. Credit goes to Mark Wei for his StandOut Library.

Download

Sidebar Lite

Sidebar Pro
[Android Apps and Games] wutk3ksHD:
Nice. How do you detect the swipe in?
[Android Apps and Games] Mohammad_Adib:
Sorcery.
[Android Apps and Games] guisalless:
Yeah, but i'm not a developer, i'm just a designer. I'm searching someone to help me on this idea, if you know someone, please, contact me! All the credits will go to developer!
[Android Apps and Games] pingpongboss:
Wow! :fingers-crossed: amazing!

I can see an amazing future for this. You could extend Sidebar so that it contains the currently running tasks, so that it is even more similar to the Ubuntu side bar http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks(int)

It could even be a replacement for the Recent Apps menu.

You could even create your own version of Blackberry Peek with this.
[Android Apps and Games] Mohammad_Adib:
Thanks mark. How do i get you the paid version apk?
[Android Apps and Games] pingpongboss:
You can email me at markwei@gmail.com
[Android Apps and Games] WildmanJoe:
Hi, just saw a similar prog called "Swapps" found here: http://xdaforums.com/showthread.php?t=2130082

How is Sidebar different?
[Android Apps and Games] Mohammad_Adib:
The differences are gigantic :confused: .. Sidebar is an animated slim dock for apps just like ubuntu. Swapps is...some app drawer type thing.
[Android Apps and Games] Mohammad_Adib:
Sidebar won Best Application at CodeDay Seattle hosted by StudentRND!

Here was my prize

The CodeDay Keynote

[YOUTUBE]BPym0P3hlx8[/YOUTUBE]

Another huge thanks to Mark Wei.
[Android Apps and Games] kirakun:
Wow thats great dude! I'm using ur sticky notes and i love it! ill give side bar a try :) Thnx Mark too :D without u it wouldn't be possible :)
[Android Apps and Games] pingpongboss:
Wow great job! Did you build Sidebar during CodeDay?
[Android Apps and Games] wutk3ksHD:
I've been to Hogwards and they taught me how to get it working. So simple!

Furthermore, your app is working fantastic. You deserved the award :)
[Android Apps and Games] Mohammad_Adib:
Yes, this version. I had been working on a really crap version with a tab (like the Galaxy Note 2 sidebar) and it had no opacity cuz i used 2 simple windows. One for the tab and one for the bar. so the tab wud set the bar's position (drag it along with it) and that wud cause nasty jagged movement, so that was just horrid. It was stupid because the code was like edited in the library more than the actual sidebar project... Here try it out - see for yourself: https://www.dropbox.com/s/pltw4vui9e2gbpl/Sidebar.apk <--- OLD VERSION THAT SUCKS (BEFORE CODEDAY)

So in codeday, I started fresh (This time not mucking around in the library and just overriding the methods) and built the sidebar that has swipe detection so no more jaggies and could have opacity because there was no tab that wud show below the sidebar if it was transparent. I borrowed code from the old one only for the stacking of imageviews and also the code for the app selector (the list) straight from Mark's floating folders (lol).

But yeah, it wasnt that hard. Pretty simple. The longest time was taken making the stupid settings >.< but it worked out well. Animations were all xml - so not much time there, i borrowed some of those too from the old sidebar. I told the judges all this :good:

Btw, Mark - there was a CodeDay SanFran happening at the same time as CodeDaySEA. You should come to the next one when it happens since I know you are in Mountain View or close to there. Those are fun :)
[Android Apps and Games] Garrett1976:
Starting new activities

I have a question about starting new activities, which in turn load a new layout view. With a normal, non-floating application, you would use startActivityForResult() to start a new activity which would in turn use setContentView() to display the new layout. This would replace the existing view with the new one. I'm not quite sure how to go about this process with a StandOutWindow. Basically, I'd like to start a ListActivity that replaces the view of the StandOutWindow with a list view layout for item selection...and so on down to final selection and item level display.

How would I go about doing this with StandOut? Do I need to just use StandOutWindow.hide() on the existing class, and then StandOutWindow.show() on the ListActivity class to replace it? Also, is it possible to use the hardware/android back button to navigate back through the activity chain?

Thanks
[Android Apps and Games] joshua764:
Re: [APP][2.1+] StandOut - Create Floating Apps [Updated 7/8: Window Editor]

I follow closely the issue because I love

Enviado desde mi MB855 usando Tapatalk 2
[Android Apps and Games] Mohammad_Adib:
Hey Mark, why is the app_selector (from Floating Folders) so laggy? Other lists dont lag even with images. How can i make it smooth? (Because sidebar uses it)

EDIT: Nevermind, the high res background was the culprit.
[Android Apps and Games] pingpongboss:
You cannot use any kind of Activities with StandOut windows. Instead, you will need to switch in and switch out views yourself.

For example, in createAndAttachView(), make sure the view you are attaching has id my_body or something. Then when you want to switch views, do

(ViewGroup) myBody = getWindow(id).findViewById(R.id.my_body);
myBody.#remove_all_children()#; // remove your old view
myBody.#add_new_child()#; // replace with a new view

You can implement onKeyEvent() and catch KEYCODE_BACK. Be aware that you'll want to unset FLAG_WINDOW_FOCUSABLE_DISABLE because it treats BACK as unfocus. You'll have to keep your own "view stack" though if you want to emulate how the back button controls Activities.

But to be honest, I don't suggest you switch out views like this. It's better to have 2 subclasses of StandOutWindow. The first subclass is your first view, and the 2nd subclass is your list view. Then when you click a button on your first window, it closes itself, and opens a new window of the 2nd subclass type.
[Android Apps and Games] Garrett1976:
Thanks

Thanks Mark. That makes sense. I was thinking that the nature of StandOut might preclude activities in the traditional sense. Two follow up questions:

1) What is the drawback of the first option that makes you advise against it?

2) Would the latter option use SOW.hide() and SOW.show() or is there a better way I'm unaware of. (Doh! Ended on a preposition..lol)
[Android Apps and Games] Mohammad_Adib:
Hey mark, can you please update the 1st post with this image for Sidebar?

Thanks!

And for floating stickies, this one. Thanks
[Android Apps and Games] pingpongboss:
I just think it'd be a pain in the ass. That's just a 5 second evaluation though. Maybe it'll turn out to be a good idea.

Sorry I can't give you any more pros and cons. I'd have to mess with it myself to be able to.

Edit: If you go with the 2nd option, you'll want to either hide() the first window, or leave it on the screen. I believe the way Floating Folders works is it leaves the folder on the screen while the app selector list window stays on top.

BTW, instead of having a different implementations of StandOutWindow for each view, you could do what Floating Folders does, and have just one implementation, but distinguish based on the window id.

Sweet. I'm hoping more people can give me "official" images so I don't have to go hack one up myself.
[Android Apps and Games] Mohammad_Adib:
Just updated the post with Floating Stickies. Could you update that one too maybe? Thanks http://puu.sh/260HF
[Android Apps and Games] Mohammad_Adib:
LOL Made another app.

aSNAP - A lightweight & snappy screenshot app

aSNAP lives up to its name; this application is lightweight, extremely snappy, functional, and easy to use.

It doesn't have a large interface, but within the tiny user interface is a screen capturing workhorse.

This application requires root for its underlying workings.

Features

- Floating screen capture icon

- Tap icon to take a screenshot

- Hold icon to select a region to screenshot

- Extremely intuitive, fast, and functional

- Ability to save & share the screenshot

- Adds the screenshot to the gallery

-

Requires root!

The purpose of aSNAP is lightweightedness; its ability to quickly snap a part of the screen and share it is key to it's functionality and a fundamental reason behind its development.

Development:

Over the course of the near future, aSNAP will be in development and new features will be added such as extensive settings and new functions.

aSNAP Trial is limited to a maximum of 10 screenshots. Reinstalling the application won't reset this limit.

Download aSNAP Trial below (Google Play still busy publishing).
[Android Apps and Games] pingpongboss:
Woow! Nice man. You're pumping these out. Can't wait for it to be published on the Play Store. This app may be one-of-a-kind :good:
[Android Apps and Games] Zed is Dead:
Hi, Mohammad, I ve showed FS to my GF, she needed something similar...and the first thing after trying FS, she asked: "OH, it is a really good app...Can I choose the color of stickies? :eek: so, girls and colors :) will it be an option maybe in future?

:good:
[Android Apps and Games] Zed is Dead:
my app

Here is finalized app I worked on.Basically it is gathering scanned barcodes via clipboard and then after collecting passes them back to clipboard for use anywhere..
[Android Apps and Games] Mohammad_Adib:
My GF asked for pink lol. Sure, maybe in the future. I don't really care about it for now. lol
[Android Apps and Games] Zed is Dead:
Thanks, I will stall her a while :laugh::good:
[Android Apps and Games] mDroidd:
This is totally amazing!!!

Gonna try to implement this in my app right away!

Sent from my Galaxy Nexus running Android 4.2 JB

---------- Post added at 10:32 AM ---------- Previous post was at 10:18 AM ----------

Found one little "bug":

When you rotate your device to landscape, enlarge the floating window to the whole screen and then rotate back to portrait, the "Resize" button isn't visible anymore: it is out of the window bounds.

Sent from my Galaxy Nexus running Android 4.2 JB
[Android Apps and Games] Mohammad_Adib:
Hey Mark, Sidebar has a XDA Forums Post: http://xdaforums.com/showthread.php?p=38104067#post38104067

Could you update the OP? Thanks
[Android Apps and Games] astarman:
does anyone have a floating gallery app? i really want one but cant seem to understand the instructions!!

thanks!
[Android Apps and Games] Mohammad_Adib:
Oooooh. What would you use it for though? Does it really need to be "Floating"?
[Android Apps and Games] pingpongboss:
Thanks for that bug report. It is related to this one that I know about https://github.com/pingpongboss/StandOut/issues/13
[Android Apps and Games] astarman:
because i lot of the time i take a photo with text on it! and i want to copy / write it into a document or broswer and its just easier if it was floating!

another instance was when i take a picture of a wifi password and i want to enter it!
[Android Apps and Games] Zed is Dead:
+ me, l think that "floating" makes everything much easier, in every direction of Android..
[Android Apps and Games] Mohammad_Adib:
I just use the old StandOut library from October. The rotation thing was soo crucial for Sidebar. It has a background thread checking device orientation every 500 milliseconds and upon change, it updates the layout.
[Android Apps and Games] dancer_69:
I just downloaded and import standout project on eclipse, but I get a lot of errors on standout example project.

In fact the following error appears in every import of standout in every activity:

The import wei.mark.standout cannot be resolved

and similar errors on all other methods.

Do I need to do something more?

EDIT:

Found it, just need it to fix setup.
[Android Apps and Games] pingpongboss:
You may want to try something like this http://stackoverflow.com/questions/...vice-to-monitor-orientation-change-in-android
[Android Apps and Games] Mohammad_Adib:
Is that gonna make it faster?
[Android Apps and Games] pingpongboss:
It avoids the while(true) busy loop that may potentially affect battery life. It's also the "right" way to detect orientation.
[Android Apps and Games] Mohammad_Adib:
:eek: interesting... darnit -.- why is android so haaaardd

---------- Post added at 10:04 AM ---------- Previous post was at 09:49 AM ----------

hey Mark, any idea how to drag and drop sort a bunch of imageviews stacked together?
[Android Apps and Games] icarmel:
StandOut Presentation on external display

Hi,

Thanks for all the StandOut info. I found your library very useful!

I'm trying to float a Presentation and run it on an external display and I'm getting an exception

In my StandOutWindow derived, in createAndAttachView() I'm doing:

Display[] presentations = dm.getDisplays(DisplayManager.DISPLAY_CATEGORY_PRESENTATION);

if (presentations.length>0){

for (Display pres : presentations){

mPresentation = new MyPresentation(this, pres, android.R.style.Theme_Holo_Light_NoActionBar, frame);

mPresentation.show();

}

}

Where MyPresentation is defined as:

@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)

public class MyPresentation extends Presentation {

private FrameLayout mFrameLayout = null;

public MyPresentation(Context outerContext, Display display, int theme, FrameLayout frame){

super(outerContext, display, theme);

mFrameLayout = frame;

}

@Override

protected void onCreate(Bundle savedInstanceState){

super.onCreate(savedInstanceState);

LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);

View v = inflater.inflate(com.floatingvideo.example.R.layout.simple, mFrameLayout, true);

VideoView videoView = (VideoView)v.findViewById(com.floatingvideo.example.R.id.videoView1);

videoView.setVideoPath(Environment.getExternalStorageDirectory().getPath() + "/Movies/TalkingDog.mp4");

videoView.start();

//setContentView(v);

}

}

I'm getting the following exception:

02-28 09:47:58.495: E/AndroidRuntime(4462): Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

02-28 09:47:58.495: E/AndroidRuntime(4462):	at android.view.ViewRootImpl.setView(ViewRootImpl.java:571)

02-28 09:47:58.495: E/AndroidRuntime(4462):	at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:246)

Apparently the Context that I'm using is incorrect.

Are you familiar with this use?

Could you please advise on what's wrong with the view?

Thanks.
[Android Apps and Games] pingpongboss:
I'd imagine you will have to implement something like this http://developer.android.com/guide/topics/ui/drag-drop.html

I've never done it before though.

If I had to take a guess I'd say that it has to do with your VideoView. I know those historically have been hard to deal with. They usually assume that they belong in an Activity. You can take out the VideoView and see if your app works. If it turns out that VideoView is the problem, maybe you could ask this guy how he did it for his youtube app

http://xdaforums.com/showpost.php?p=37338112&postcount=379
[Android Apps and Games] Mohammad_Adib:
Dude Mark, check it out :D

[YOUTUBE]vPYAVzkFKTo[/YOUTUBE]

What the f... :eek: