how can i Take snapshots of my Android application/Layout - android

i am created an application in android.In that i have a doubt,for explaining that i have to show the graphical layout of main.xml. it is possible to copy my code and paste here so that everybody can see the code.Now i want to display my graphical layout along with my code.Is it possible?? if it is possible means how?

I think you want to capture the photos of your application
running inside the emulator.
For taking screen shots of your application, follow the below steps:
click on Window menu -> DDMS
Click on "Devices" icon lying at the left-bottom corner.
It will list out all the devices, select the device from which you want to take screen shots.
click on "Screen capture" button.

Related

How to make android emulator use inside camera?

I was using LDmultiplayer emulator and see that they got a "QR CODE" feature
that automatically opened a second screen and took whatever was ahead, so I just place it on a pic that had the QR and it would detect. Want to do something similar but use the camera only instead of "Qr". Any idea?
TLDR: The emulator need to take a picture of a picture that is inside it
Click on the More button to open the Extended controls window. On it click on the Camera tab. There you will see two options to add images, one on the wall and one on the table.
Add your image/images and they will be displayed in the emulator.

How to display Image on top of every view in android (eg. Like cracked screen app in market)

I want to create something like Better Cracked Screen.
The cracked screen remains top of everything.
I am not able to get how to make such thing which resides top of everything.
Behavior :
For example when cracked screen is displayed, and if i press home button then it shows me the home but the cracked screen remains as it is(here on top of home).. doesnot matter whereever you move.. cracked screen appears intact..
Search Results so far :
Google API Demos : Translucent GLSurfaceView
Can anyone guide me how can i achieve this task ? Or can anyone please provide me a sample code for this ?
Use android.permission.SYSTEM_ALERT_WINDOW.
That will allow you to create a window that is placed on top of all application windows. A key insight to have here is that you can not work on a View level to solve this. A View hierarchy is drawn inside a window, so to place something on top of all windows, you need another window.
I would guess it is an ImageView that is created as the last part of your xml files (meaning it is on top of the stack/ above all other elements). And the Image in this ImageView is mostly transparent so that you see the elements below it

Android avd is off-screen

When I run my Android app in Eclipse I can see the emulator on the toolbar but the window appears to be off the screen. Clicking on the icon in the toolbar makes it flash in or out from the right but I cannot see it.
I have had this problem before but I cannot remember how I resolved it.
You could try this.
or
(Windows 7 only)
Hover over the window icon in the task bar so that the preview appears, right click on the preview and select "move." You should then be able to move the window with the arrow keys. You may have to hold down the arrow key for what seems to be a very long time.
As dell116 said:
Hover over the window icon in the task bar so that the preview
appears, right click on the preview and select "move." You should then
be able to move the window with the arrow keys.
But as soon as you have used one of the arrow keys, then move the mouse, and... voilĂ , the window turns up in front of us, just following the mouse movements. Place the window where you want and click the mouse's left button to release it.
None of the tricks here worked for me. What I had to do was in Windows right click background (desktop) select screen resolution. From there change the resolution to a smaller resolution. The window provided me with the window bar that was cut off, simply drag like normal. After I got it where I got it where I wanted it, I just changed the resolution back.
You can also right click on taskbar->properties change Taskbar location on screen to something else, Apply, and then you can set it back this will put your windows on screen.
Another one is right clicking on the taskbar->Cascade windows - this will put every window together in cascading order which is annoying but it does guarantee all windows will go on the screen.
In Windows 10,I faced the same problem. My solution is like that;
Start Android Studio
Select the Android Studio from ALT+TAB Menu(If'nothing happens,just relax :) )
Now press ALT + Space combination
Click Maximize
Now you may use the ide :)))
I faced the exact same problem. I tried the solutions suggested by Daniel and dell116. At first it did not work as the "Move" option seems to be disabled. However, during my final attempt it worked. I found out that you can only use this method only when the OS is starting up (i.e. when it is showing the android logo).
Good news is that after doing this once, it will stay in the desired position for future runs.

How to insert options in the gallery?

I am working on an Android project and I am now working on the gallery on which I have
created the display of images.
I want to insert the options like View ( Grid view etc.,) , Sending options , Move etc.,
and I want the option menu at the bottom corner of the screen. If so how I should program.
give me your suggestion and sample link also......
Hi i am not gettin your question clearly but i hope you are looking for menus like Options and Exit etc on the bottom of ur screen, am i right?
for that u need to create menu like option for that menu u need to set what it should do in
onOptionItemSelcted...
for creating menu you can use this link : http://developer.android.com/guide/topics/ui/menus.html

How do I create a pull-down/up window in Android GUI?

For Android GUI: I would like to create a window that I can pull up from the bottom of another window, kind of like the Notification bar or the tab in the bottom on Spotify for Android.
I want to be able to grab a small piece of the window and pull it up. Or just click it and it will "pop up". And afterwards be able to pull or click it so it returs to its original space.
Does anyone know a good way to do this?
Use SlidingDrawer

Categories

Resources