last day (16 days later) » 

07:54
0
A: Adding TextureView to main xml : Android

SathishCheck this code this is working for me. MainActivity.java. import java.io.IOException; import android.annotation.SuppressLint; import android.app.Activity; import android.graphics.SurfaceTexture; import android.hardware.Camera; import android.os.Bundle; import android.view.Gravity; import andr...

butif we use setContentView(myTexture); after setContentView(R.layout.activity_main); the entire layout will be gone. i want to see the texture view as well as the layout. when i run this program it will show only the texture view.
Y are you using setcontentview after loading the layout? Your textureview with in the layout right. Then its sufficient to load only layout
look the answer that u gave me super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
myTexture = new TextureView(this);
myTexture.setSurfaceTextureListener(this);
setContentView(myTexture);
yeah now i got it. Camera is not opened. Sorry I haven't used textureview so got confused.
But i used it in my code...still invisible. in my xml there is a texture view as well as a textview "Hello world". I want to display both of this. But for now only Hello world is displayed
07:54
remove that layout from setcontentview
i sisnt get u
didnt
remove this line setcontentview(R.layout.activity_main);
if so then how can i display the hello world
but still camera is not opened. right?
07:57
first lets preview camera ,then proceed next
but if setContentView(myTexture); is there it is open
i already checked that
with fullscreen right?
movin for lunch c u @ 2 o clk
08:31
am here
am also
shall we continue?
ok do u knw abt USB HID devices in Android
OMG nope pls am nt a software professional dont ask me such hard questions
ha ha. jus USB devices?
08:40
Ya ok
i am askin u knw r not?
s i kno
i have a code to list the usb devices. but its not listed, can you help me
nw i get what u asked
and the answer is no
Sathish i told u am nt a software proffesional
am handling android for first time
even me too :P
08:45
hahhahha
grt
wr r u workin??
cochin
working in Android?
working in Android?
nope
not in android. then?
08:50
am an optical engineer....currently i built a hardware device and i to handle the device programatically....i built the code for it also
i was using surface view instead of textureview bt then according to the requirement i have to step in to texture view
and der i am stuck stuck stuck
developing android application for hardware?
its an imaging system
image is viewed in android device
actually this s new terms for me.
and so to vview it i need android code
wat imaging system?
image or videos?
08:53
i wanna caputre images
capture
you need to receive the image in android or you need to capture the image from android camera?
i need to capture image from android camera
ok fine. after capturing the image what will you do?
i ll b back in 5 mins
nothing just some processing saving etc etc
09:12
i am having code to open the camera and click the pic and save it in sd card
shal i share d code
i do have it
is it using texturview
then make it in simple manner.
nope not in textureview. using imageview
der is the problem i made it in simple manner but since am using a front facing camera..i had to use textureview
09:20
texture view?
ya textureview is use to view the image where u can easily rotate and flip the image
rotating the image?
thats our requirement dont get much into it it will confuse you
just help me to add textureview in layout
ok .
got any solutions?
09:41
nope
there is no error so am nt able to trouble shoot it
09:55
what about surface texture?
ya dat is what am doing
bt in dat hw to add texture view in layout
have u got any ideas?
i added and showing like loading in top left corner.
cn u explain bit more
can u post ur xml code
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >

<SurfaceView
android:id="@+id/surfaceView1"
android:layout_width="wrap_content"
its a surface view
bot a texture view
10:02
7
Q: Example of Camera preview using SurfaceTexture in Android

AndroDevI am trying to render camera preview using SurfaceTexture. I read the document but unable to understand how it works. Can anyone provide one sample example(very basic one) or link which uses SurfaceTexture to preview camera. I googled this but not found what I am looking for. Thanks in advance.

yeah chk tis
pls post the code this example does not involve layout
here where is the textview?
same pblm here too.
hahahha
omg if it had shown sm errori cud ve track it...bt here nothing is der
10:22
can u c the image here.
oh god, both are not workin wt to do :(
11:04
wrkd??
11:21
gone?? @Aswathy
11:35
nope
my senior was near to me
oh did he solve?
12:02
there?
12:30
s it worked
it was already solved..its a bug of eclipse..when the code was built with a new created proj..it worked :-) bingo
ha ha tats grt..
but stil dint worked fr me
:-)
dats ok u got ur one
usb list
i said that ly stil i cant find soln
oh k if i get smthin ill help out
hmm k :)
12:50
k den me going hm cya
home ah
thn wil u cum tmrw
ya i do ve office
shal we chat?
lets c got loads of wrlk
12:56
:-) ok den bye complete ur wrk
hmm ok bye c u

  last day (16 days later) »