How to make android emulator use inside camera? - android

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.

Related

Android : How can I implement user manual or app instruction on start up of app

I am new to Android development, I need to show user manual like Flip-kart app on start-up of app.
Please refer the image below, You will get an idea about, What actually I want to achieve....
Is there any standard way to achieve this?
You can do the whole stuff manually.
Or use a prebuilt library called ShowcaseView.
You'll find details, code and guide here http://www.xda-developers.com/android/create-holo-themed-demo-overlays-with-showcaseview/
Here is my suggestion
Get the semi-transparent images of manual pages. Keep the Images in your res/drawable.
Use sharedpreference to maintain the status whether this manual is shown to user on startup or not (Depending on your requirement). Check the status when the app is launched, to decide whether to show this to user or bypass it.
Use a fragment or Activity to display this manual images in sequence one after another.
for this you can use viewpager, swipe animation or simple buttons.
just use one Gallery view and skip button on it.Show that gallery on the first installation.For that you can set flag value in sharedpreference.Also shows a button for virtrual tour in Left drawer,

Loading dialog size does not update correctly on Android 4.0.2/WebKit 534.30

I'm trying to display two loading dialogs in succession, calling one after the other.
The problem is that the second dialog retains the dimensions of the first one, so its contents do not fit.
It can be reproduced with the default browser in Android version 4.0.2 : AppleWebKit/534.30. Other browsers do not seem to have this problem. Steps to reproduce:
Go to http://demos.jquerymobile.com/1.2.1/docs/pages/loader.html
Click "Default loader"
Click "Text only"
Second loading message is not fully visible. Example:
If I click somewhere after that, the size is corrected.
What could be causing this? How could I get the second dialog to be shown with correct size in this browser? Thank You.

how to implement a custom camera with buttons?

I want to develop an application with a custom camera with one button over it. when i click on that button the picture should be clicked. once the picture is clicked there should be two buttons 'save' and 'retake'. If i click on save button the captured image should be saved to specified directory. if i click on retake button it should navigate to previous screen(camera with button).
I have gone through many sites and links.but nothing helped me.please help me..
Follow this link. You'll get a basic idea as to how to go about creating a custom camera app. Once you've assigned the image capture intent to the capture button, then you can go ahead. Suggest you to take one step at a time if you're new to Android. You can find more info on building Camera apps here.

Making specific parts of an image into clickable buttons for android app

(I am an extreme newbie, my knowledge is of basic programming ideas, i.e. a click executes a command, basic cause and effect)
I am wanting to test out a simple idea of having an image (for example sake imagine one page of "Where's Waldo!?") where you open the app and you have an image, (also this is aimed at android tablets) and this image has many details and lots of different focal points going on, so i want the end-user to be able to look through this image and see, (again for example sake) waldo, and then to be able to click on waldo and a text bubble to pop up with "you win!
" or some info about waldo, or any other details on the page.
so far all i have been able to do is make the entire image one button, which is undesirable seeing as i would prefer there to be about 20-30 randomly placed buttons each with their own synopsis of the section of the image being clicked on.
using android app inventor...
A site explaining how to make specific parts of an image into clickable areas can be found here...it worked for me..
The link is also summarized at this SO question.
How about add a small 'Buttons' on the image with transparent background and make sure you add button after image so that it will not be covered by image. Then try and see if you get onClick when you hit button. If this works, may be you can have such multiple buttons over image and user will not notice that he is actually hitting button instead of image.
A button with a transparent background will surely work.
<Button
android:layout_height="50dip"
android:layout_width="50dip"
android:background="#00000000">
</Button>

how can i Take snapshots of my Android application/Layout

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.

Categories

Resources