[android-developers] Re: Fail to connect to camera service

2011-12-25 Thread Pedro Teixeira
... the condition/trigger if(distancia0.05 ar.equals(1)) turns true and I get the error. I hope I made myself clear, I guess this is as hard to understand as it is to explain. Thank you very much for your time and thanks in advance. Pedro On Dec 4, 3:29 pm, Pedro Teixeira pedroteixeir...@gmail.com

[android-developers] Re: Fail to connect to camera service

2011-12-04 Thread Pedro Teixeira
on thedevice). On Sun, Nov 27, 2011 at 7:33 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi, I have a location based application that depending on the position of the use relating to a certain spot it turns on thecamera. In layman terms, when there's proximity to a place

[android-developers] Re: Fail to connect to camera service

2011-12-04 Thread Pedro Teixeira
Yes that's the only way I know how to do it. I'll try to contact them and hear what they have to say about it. Thank you On Dec 4, 3:20 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Dec 4, 2011 at 10:10 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I'm almost sure the problem

[android-developers] Re: Informations about Dev Phone 1 characteristics (for Wikitude use)

2011-11-29 Thread Pedro Teixeira
offered OpenGL ES 1.1, though, and I'll be surprised if a ROM can fix that. On Sun, Nov 20, 2011 at 7:01 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi, Is anyone familiar with wikitude? I'm trying to build a simple AR mode activity and I would like to try Wikitude ARchitect since

[android-developers] Re: Fail to connect to camera service

2011-11-29 Thread Pedro Teixeira
encountered that error is if the Camera is already in use (by you or another app on the device). On Sun, Nov 27, 2011 at 7:33 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi, I have a location based application that depending on the position of the use relating to a certain

[android-developers] Fail to connect to camera service

2011-11-27 Thread Pedro Teixeira
Hi, I have a location based application that depending on the position of the use relating to a certain spot it turns on the camera. In layman terms, when there's proximity to a place it triggers the camera. If I'm already near the sport when it's suppose to trigger ( I've build a proximity

[android-developers] Informations about Dev Phone 1 characteristics (for Wikitude use)

2011-11-20 Thread Pedro Teixeira
Hi, Is anyone familiar with wikitude? I'm trying to build a simple AR mode activity and I would like to try Wikitude ARchitect since it has the feature I'd like to implement: An overlaid picture instead of an overlaid icon. This are the requirements they say I need: Android 2.2 or higher support

[android-developers] Questions about SDK and SDK update

2011-11-13 Thread Pedro Teixeira
Hello. I have a probably silly question but programming have never been my strongest area..definitely. I started programming 2 years ago and I was using Google APIs - Android 1.6 I get that the SDK has evolved much more ever since. Can I update the SDK? Is it possible to do it from Eclipe? I

[android-developers] getting Latitude and Longitude from MyLocationOverlay

2011-09-24 Thread Pedro Teixeira
Hi there, This is probably linear, but I can't seem to find the answer around. I'm using the class MyLocationOverlay to represent the user on the map. mlo = new MyLocationOverlay(this, mapView) ; mlo.enableCompass(); mlo.enableMyLocation();

[android-developers] NullPointerException when trying to write a log into the SDcard

2011-09-17 Thread Pedro Teixeira
Hello there, hope you can help me somehow. I've got this class example which used to work just fine. Basiclly it just writes to the sd card a log file with some of my device information. public class LogToSD { static PrintWriter outFile = null; private static void

[android-developers] Make and Imageview go in Fullscreen mode

2011-03-20 Thread Pedro Teixeira
Hi there, I wonder if you could help me. Is there any piece of code that I can use on an ImageView, so that when the users taps and image it shows a fullscreen preview? What I mean is that, in my application at some point I have small images with limited visibility but I'd like to give the

[android-developers] Make buttons invisible/disable with XML

2011-03-20 Thread Pedro Teixeira
Hi there, I wonder if there's any quick XML way on making a button invisible and disabled for an user. I have my application ready for user testing, but some of the functionalities won't be used on the testing so I'd like them not to be visible or functional while doing the experience. I know I

Re: [android-developers] Make buttons invisible/disable with XML

2011-03-20 Thread Pedro Teixeira
to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira Website/Portefolio: www.pedroteixeira.org Facebook: http://www.facebook.com/JosePedroSousaTeixeira -- You received this message because you

[android-developers] Re: Log every action/event to an external file

2011-03-13 Thread Pedro Teixeira
: On Sat, Mar 12, 2011 at 11:52 AM, Pedro Teixeira pedroteixeir...@gmail.comwrote: I'd like to store events like pressing buttons but also store the location and orientation of the device while using my application as well as the time between this actions. Stuff like this you'd have to have

[android-developers] Re: Log every action/event to an external file

2011-03-13 Thread Pedro Teixeira
. P On Mar 12, 7:43 pm, TreKing treking...@gmail.com wrote: On Sat, Mar 12, 2011 at 11:52 AM, Pedro Teixeira pedroteixeir...@gmail.comwrote: I'd like to store events like pressing buttons but also store the location and orientation of the device while using my application

[android-developers] Re: Log every action/event to an external file

2011-03-13 Thread Pedro Teixeira
On Mar 13, 12:43 pm, Pedro Teixeira pedroteixeir...@gmail.com wrote: This is a thesis project so I'm actually conducting the user testing on a singular device that I will have access to the information I need. That's a thing to consider then. Thanks for the feedback On Mar 13, 12:23 pm

[android-developers] Log every action/event to an external file

2011-03-12 Thread Pedro Teixeira
Hi there, I've been searching around the web some easy and straight forward solution to LOG everything that a user does while using my application for a user testing and I can't find a simple solution. I don't want to see it on the logcat but keep it ..let's say on a TXT file or something

[android-developers] Re: Logging actions

2010-12-28 Thread Pedro Teixeira
AM, Pedro Teixeira pedroteixeir...@gmail.comwrote: Help please ... Help with what? Kostya posted links related to pretty much every point you raised. You covered a bunch of different topics and didn't really elaborate on what specifically you're stuck on. ... so ... again ... help

Re: [android-developers] Logging actions

2010-12-06 Thread Pedro Teixeira
Help please ... On Dec 3, 2010, at 11:30 PM, Pedro Teixeira wrote: Hello, I'd like to make a user test with my application. In order to not be following the user or make him write things down I would like to implement some kind of logging system. This logging would be triggered

Re: [android-developers] Logging actions

2010-12-04 Thread Pedro Teixeira
need the position/orientation and time. On Dec 3, 2010, at 11:30 PM, Pedro Teixeira wrote: Hello, I'd like to make a user test with my application. In order to not be following the user or make him write things down I would like to implement some kind of logging system. This logging would

[android-developers] Logging actions

2010-12-03 Thread Pedro Teixeira
Hello, I'd like to make a user test with my application. In order to not be following the user or make him write things down I would like to implement some kind of logging system. This logging would be triggered by pressing a button and stopped by taking a picture which are actions that I have

[android-developers] Newbiew question: authoroties

2010-09-27 Thread Pedro Teixeira
Hi all, I know this will be elementray but I'm not finding anywhere for a straightforward answer... I'm getting this : Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER Which apparentlly seems I'm I give the provider an authority which is already being used by another app on the system. I

Re: [android-developers] Newbiew question: authoroties

2010-09-27 Thread Pedro Teixeira
@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira www.pedroteixeira.org -- You received this message because you are subscribed

Re: [android-developers] Re: Layar API

2010-09-24 Thread Pedro Teixeira
own app though. Generally, I am not aware of any easy AR API. There's a few you could check out, like ARToolKit and spinoffs (mind the licensing), or perhaps Qualcomm's brand spanking but still in private Beta API. On Sep 23, 4:20 am, Pedro Teixeira pedroteixeir...@gmail.com wrote: I'm sorry.. I

Re: [android-developers] Re: Layar API

2010-09-24 Thread Pedro Teixeira
:20 am, Pedro Teixeira pedroteixeir...@gmail.com wrote: I'm sorry.. I also would like to know, if anyone has used Layar.. and even if I can't custumize it and have to use their API. Can I include it in my application as a ''background'' service ? I'd like to be able for example to add a POI from my

Re: [android-developers] Method called after release()

2010-09-23 Thread Pedro Teixeira
No ideias for this? I just keep reading on google to release the camera.. and I've just done that but I get the error anyway.. On Sep 22, 2010, at 11:43 PM, Pedro Teixeira wrote: Hi, I'm getting this error ( in the end of this post)... which I guess I understand it's because I'm calling

[android-developers] Layar API

2010-09-23 Thread Pedro Teixeira
Hi.. I've been trying to find Layar API but I don't see it anywhere.. Isn't the API free to download as Wikitude? I was hopping to add an AR feature on my application using Layar API, but I'd like to use my own server, design, etc .. can I do that? Is that possible with Layar? Or if not.. is

Re: [android-developers] Layar API

2010-09-23 Thread Pedro Teixeira
, 2010, at 11:29 AM, Pedro Teixeira wrote: Hi.. I've been trying to find Layar API but I don't see it anywhere.. Isn't the API free to download as Wikitude? I was hopping to add an AR feature on my application using Layar API, but I'd like to use my own server, design, etc .. can I do

Re: [android-developers] Re: Method called after release()

2010-09-23 Thread Pedro Teixeira
. Difficult to debug. You can try inserting mCamera.setPreviewCallback(null) in between mCamera.stopPreview() and mCamera.release(), ending it all with setting mCamera=null and wrapping everything in a mCamera!=null check and see if that works for you. Regards On Sep 23, 10:35 am, Pedro Teixeira

Re: [android-developers] Please help me with calculating direction from point A to B

2010-09-22 Thread Pedro Teixeira
with rotations the same way you can work with vectors: add / subtract, interpolate. -- Kostya 18.09.2010 0:56, Pedro Teixeira пишет: Hi everyone... I'm back with the same issue for the last couple of days… I'm trying to create a compass for my application BUT the difference is that, instead

Re: [android-developers] Please help me with calculating direction from point A to B

2010-09-22 Thread Pedro Teixeira
to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira www.pedroteixeira.org -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Please help me with calculating direction from point A to B

2010-09-22 Thread Pedro Teixeira
Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira

Re: [android-developers] Re: Please help me with calculating direction from point A to B

2010-09-22 Thread Pedro Teixeira
the arrow vector onto this plane, in the plane's coordinates. You might want to start with compensating just for the vertical axis (the device's rotation from the true north direction), it might be enough. -- Kostya 22.09.2010 13:02, Pedro Teixeira пишет: I'm really not understanding

Re: [android-developers] Re: Please help me with calculating direction from point A to B

2010-09-22 Thread Pedro Teixeira
. -- Kostya 22.09.2010 13:02, Pedro Teixeira пишет: I'm really not understanding how to go with this... I've been reading and reading.. I can find all kind of algorithms.. I can find a haversin algorithm that points me to the correct direction if my device is pointing north

[android-developers] Method called after release()

2010-09-22 Thread Pedro Teixeira
Hi, I'm getting this error ( in the end of this post)... which I guess I understand it's because I'm calling something after releasing it.. but I can't find a wy to work it around... Here is the method: public void surfaceDestroyed(SurfaceHolder holder) { mPreviewRunning = false;

Re: [android-developers] Please help me with calculating direction from point A to B

2010-09-18 Thread Pedro Teixeira
Well.. I'm guessing it's to hard or impossible then.. :/ On Sep 17, 2010, at 9:56 PM, Pedro Teixeira wrote: Hi everyone... I'm back with the same issue for the last couple of days… I'm trying to create a compass for my application BUT the difference is that, instead of having a line always

[android-developers] Please help me with calculating direction from point A to B

2010-09-17 Thread Pedro Teixeira
Hi everyone... I'm back with the same issue for the last couple of days… I'm trying to create a compass for my application BUT the difference is that, instead of having a line always pointing to north, I want this line to point for a specific point. I've been trying dozens of algorithms and

[android-developers] Compass pointing a direction other than North

2010-09-16 Thread Pedro Teixeira
Hi everyone..I'm trying to implement spomething that I don't even know if it's possible.. So I have this class which implements a SensorEventListener like this: private SensorEventListener mySensorEventListener = new SensorEventListener(){ @Override public

Re: [android-developers] Re: Compass pointing a direction other than North

2010-09-16 Thread Pedro Teixeira
done any debugging? Looked at the raw sensor readings to make sure they make sense? Implemented the algorithm in Java on a desktop, fed in sensor numbers, and checked whether it produced what you expected? On Sep 16, 11:26 am, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi everyone..I'm

Re: [android-developers] Re: Compass pointing a direction other than North

2010-09-16 Thread Pedro Teixeira
compass is subject to substantial interference from nearby objects.) On Sep 16, 1:58 pm, Pedro Teixeira pedroteixeir...@gmail.com wrote: I'm actually not positivlly sure about the algorythm since it will return always the same value if I'm on the same position... so it doesn't make sense because

[android-developers] Playing with List

2010-09-15 Thread Pedro Teixeira
Hi, I have an overlay list which I retrieve it like this: ListOverlay overlays = mapView.getOverlays(); So in this list I have elements of the type userOverlay and picOverlay.. How can I do to erase ALL occurences of userOverlay but leave all the others? I've been playing around with the List

[android-developers] trigonometry

2010-09-15 Thread Pedro Teixeira
Hi, I'm having problems with JAva and trigonometry to calculate a direction from a point to a certain point... I want to translate this equation to Java-wise: tg^-1 = |value1-value2| / |value3-value4| And I'd like the result in degrees.. how can I do this? any ideia? -- You received this

Re: [android-developers] Playing with List

2010-09-15 Thread Pedro Teixeira
15.09.2010 20:06, Pedro Teixeira пишет: Hi, I have an overlay list which I retrieve it like this: ListOverlay overlays = mapView.getOverlays(); So in this list I have elements of the type userOverlay and picOverlay.. How can I do to erase ALL occurences of userOverlay but leave all the others? I've

Re: [android-developers] Re: trigonometry

2010-09-15 Thread Pedro Teixeira
by 180 / 3,1415926 (in Java, that's Math.PI). Or just call Math.toDegrees. Better yet - use Math.atan2 ( difference along Y, different along X). This one correctly handles the case of value3-value4 being zero (or very close thereof). -- Kostya 15.09.2010 20:22, Pedro Teixeira пишет: Hi

Re: [android-developers] Re: trigonometry

2010-09-15 Thread Pedro Teixeira
On Sep 15, 11:56 am, Pedro Teixeira pedroteixeir...@gmail.com wrote: Geez this is even better than I expected. I was worried with negative values hence the Math.abs and I wasn't sure how to express in degrees. Thank you very much for your answers guys, the atan2 is completely new to me

[android-developers] duplicated entries?!

2010-09-14 Thread Pedro Teixeira
The strangest thing is happening in my application. I have a map overlay for various pictures, and another overlay for a drawing representing the user.. They all are at a certain position. The thing is, all information is appearing duplicated some pixeis down and some pixeis to the right. I have

Re: [android-developers] duplicated entries?!

2010-09-14 Thread Pedro Teixeira
, at 5:45 PM, TreKing wrote: On Tue, Sep 14, 2010 at 11:26 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I have no ideia why is this happening since the information is used just once. Funny how these problems always come in pairs ... I assume you're overriding onDraw? Did you look

Re: [android-developers] duplicated entries?!

2010-09-14 Thread Pedro Teixeira
oh god.. how can I put this back to normal without shadow? Sorry I'm not very experienced in programming.. I'm just trying to connect the dots of many tutorials and build something to use.. On Sep 14, 2010, at 6:13 PM, TreKing wrote: On Tue, Sep 14, 2010 at 12:08 PM, Pedro Teixeira

Re: [android-developers] duplicated entries?!

2010-09-14 Thread Pedro Teixeira
at 12:23 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: how can I put this back to normal without shadow? OK, this: public void draw(Canvas canvas, MapView mapView, boolean shadow) { super.draw(canvas, mapView, false); boundCenter(marker

[android-developers] Getting compass values and use it on map overlay

2010-09-13 Thread Pedro Teixeira
Hi there, I have a marker on the map using an Overlay.. I also have access to the compass sensor which I'm able to show a textView with the orientation values ( 0 to 359 ) .. how can I apply this values to the marker? (which is a drawable) I already have a MAtrix created but when I insert the

Re: [android-developers] Getting compass values and use it on map overlay

2010-09-13 Thread Pedro Teixeira
Basiclly.. I want to do the same as in Maps application for android... When the user moves the device, a marker on the map follows the movement in relation to the map ( I'm guessing the north ) On Sep 13, 2010, at 10:03 PM, TreKing wrote: On Mon, Sep 13, 2010 at 3:30 PM, Pedro Teixeira

Re: [android-developers] Getting compass values and use it on map overlay

2010-09-13 Thread Pedro Teixeira
Never mind, I found the value I had to use is azimuth. Thank you anyway On Sep 13, 2010, at 10:03 PM, TreKing wrote: On Mon, Sep 13, 2010 at 3:30 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I already have a MAtrix created but when I insert the orientation value gives me an error

[android-developers] Little help with view

2010-09-10 Thread Pedro Teixeira
Hi there, I have a class which is called cameraView and inside I have another which is called compassLook...goes like this: public class compassLook extends View { private float direction = 0; etc etc I use the compassLook view in my cameraView layout... I'm

Re: [android-developers] Little help with view

2010-09-10 Thread Pedro Teixeira
didn't work :/ On Sep 10, 2010, at 9:51 PM, Mark Murphy wrote: Try com.pedroteixeira.thennnow.Cameraview$compassLook. On Fri, Sep 10, 2010 at 4:47 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi there, I have a class which is called cameraView and inside I have another which

Re: [android-developers] Little help with view

2010-09-10 Thread Pedro Teixeira
a stub, so you can reference it by name in the XML file. Not sure if the Java compiler actually allows this, but it should only take a few minutes to try out... -- Kostya Vasilyev -- http://kmansoft.wordpress.com 11.09.2010 1:21 пользователь Pedro Teixeira pedroteixeir...@gmail.com написал

Re: [android-developers] Little help with view

2010-09-10 Thread Pedro Teixeira
пользователь Pedro Teixeira pedroteixeir...@gmail.com написал: didn't work :/ On Sep 10, 2010, at 9:51 PM, Mark Murphy wrote: Try com.pedroteixeira.thennnow.Cameraview$com... Pedro Teixeira www.pedroteixeira.org -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Taking a Picture

2010-09-05 Thread Pedro Teixeira
the picture in the gallery, it's seems like its not saving the picture in the sdcard/download folder.. On Aug 29, 2010, at 9:50 AM, Mark Murphy wrote: On Fri, Aug 27, 2010 at 12:52 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I'm wondering.. is a SurfaceView still tappable even if we

[android-developers] Picking two pictures at once

2010-09-05 Thread Pedro Teixeira
Hi, this snippet of code allows me to pick a picture and choose from a list of options to send them.. I'm wondering if it'spossible to pick 2 pictures instead of just one? Is it possible? thnk you Uri U = Uri.fromFile(F); Intent i = new Intent(Intent.ACTION_SEND);

[android-developers] Split Path to get filename and extension

2010-09-03 Thread Pedro Teixeira
hi there.. I have a file path to the SD card on a String.. like this : /sdcard/ download/recentPic.jpg And I'd like to get just the filename and extension recentPic.jpg Is there any simple way to do this ? Thank you -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: Split Path to get filename and extension

2010-09-03 Thread Pedro Teixeira
, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira www.pedroteixeira.org -- You received

Re: [android-developers] Re: Split Path to get filename and extension

2010-09-03 Thread Pedro Teixeira
(lastDotPosition + 1); } -- Jeremy Wadsack On Fri, Sep 3, 2010 at 11:57 AM, Pedro Teixeira pedroteixeir...@gmail.comwrote: And how is that done? I found examples in javascript using the lastindexof ...but cant find anything for android java.. On Sep 3, 2010, at 6:52 PM, Filip Havlicek wrote

Re: [android-developers] Help with simple Bitmap issue

2010-09-01 Thread Pedro Teixeira
The same old error... NullPoinerException which is strange considering I have the correct values on the variables when I run them on the debugger.. any suggestion? On Aug 31, 2010, at 4:26 PM, Pedro Teixeira wrote: Hi there... I'm having an issue with a Bitmap which is giving me an error

Re: [android-developers] Help with simple Bitmap issue

2010-09-01 Thread Pedro Teixeira
): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 09-01 15:29:03.367: ERROR/AndroidRuntime(5057): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2364) 09-01 15:29:03.367: ERROR/AndroidRuntime(5057): ... 11 more On Aug 31, 2010, at 4:26 PM, Pedro Teixeira

[android-developers] Help with simple Bitmap issue

2010-08-31 Thread Pedro Teixeira
Hi there... I'm having an issue with a Bitmap which is giving me an error but any kind of report so I can understand it.. The code is simpley this this: - I get a image path from a bundle: Bundle w = getIntent().getExtras(); final String thenPicPath= w.getString(oldpicpath); -

Re: [android-developers] Help with simple Bitmap issue

2010-08-31 Thread Pedro Teixeira
Any clue about this? anyone? On Aug 31, 2010, at 4:26 PM, Pedro Teixeira wrote: Hi there... I'm having an issue with a Bitmap which is giving me an error but any kind of report so I can understand it.. The code is simpley this this: - I get a image path from a bundle: Bundle w

Re: [android-developers] Taking a Picture

2010-08-27 Thread Pedro Teixeira
a picture, or a piece of text? Does that work ? Maybe I'm loosing my time with an impossible thing.. On Aug 27, 2010, at 12:28 AM, Mark Murphy wrote: On Thu, Aug 26, 2010 at 5:50 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Can anyone help? I just have the camera working

Re: [android-developers] Taking a Picture

2010-08-26 Thread Pedro Teixeira
Does anybody has a clue? no one had implemented a camera on surfaceview and take a picture? On Aug 25, 2010, at 10:35 PM, Pedro Teixeira wrote: I have my code all set and done.. no errors at all..everything looks fine.. how/where/why doesnt takes a picture? Can anyone help me

Re: [android-developers] Taking a Picture

2010-08-26 Thread Pedro Teixeira
, 2010, at 12:36 PM, Mark Murphy wrote: On Thu, Aug 26, 2010 at 4:04 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Does anybody has a clue? no one had implemented a camera on surfaceview and take a picture? http://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture/ -- Mark

Re: [android-developers] Taking a Picture

2010-08-26 Thread Pedro Teixeira
@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Pedro Teixeira www.pedroteixeira.org -- You received this message because you are subscribed

Re: [android-developers] Taking a Picture

2010-08-26 Thread Pedro Teixeira
Can anyone help? I just have the camera working.. and nothing more.. my device doesnt react to anything, touch, click.. whatever On Aug 26, 2010, at 12:36 PM, Mark Murphy wrote: On Thu, Aug 26, 2010 at 4:04 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Does anybody has a clue? no one

Re: [android-developers] Re: onClick for the whole screen?

2010-08-25 Thread Pedro Teixeira
, but on the other hand I'm sure you can put the SurfaceHolder inside some View that supports the onClick method. Then just override it to take a picture. Best regards, Filip Havlicek 2010/8/24 Pedro Teixeira pedroteixeir...@gmail.com I have a CameraPicture.Callback and the onClick method

[android-developers] Taking a Picture

2010-08-25 Thread Pedro Teixeira
I have my code all set and done.. no errors at all..everything looks fine.. how/where/why doesnt takes a picture? Can anyone help me with this? this is a internet tutorial custumized for needs.. public class thenNnowMode extends Activity implements SurfaceHolder.Callback{ SurfaceView

[android-developers] onClick for the whole screen?

2010-08-24 Thread Pedro Teixeira
Hi, My question is a little bit silly but.. I know how to set a listener for.. let's say a button or a editext so that when clicked some action happens: buttonOReditextl.setOnClickListener(new View.OnClickListener() { @Override public void

Re: [android-developers] Re: onClick for the whole screen?

2010-08-24 Thread Pedro Teixeira
this.. On Aug 24, 2010, at 4:21 PM, nikhil wrote: your class should implement Gesture Listener and then override onClickEvent On Aug 24, 9:56 am, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi, My question is a little bit silly but.. I know how to set a listener for.. let's say a button

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
(getContext(), AddPic.class)); Also some code from the mentioned classes may help solve your problem. On Aug 22, 11:39 pm, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hello, I'm having a struggle understanding why my intent is not working.. I basically just copied paste from other examples in my

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
). Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira pedroteixeir...@gmail.com Hi, No I don't want to start in that manner... the explanation for that String is that I have two distinct classes that have an intent that direct them to thenNnowMode. So in the thenNnowMode class I retrieve

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
22, 11:39 pm, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hello, I'm having a struggle understanding why my intent is not working.. I basically just copied paste from other examples in my code that work perfectly like this.. here it is: Intent addIntent = new Intent(v.getContext

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
/reference/android/content/Intent.html#setComponent(android.content.ComponentName) and see if it makes any difference. Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira pedroteixeir...@gmail.com And here is my intent on the debugger showing the correct info: Intent { cmp

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
, but comment everything in your main activity's onCreate method and put just the Intent build code you have. Does it still call wrong activity? Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira pedroteixeir...@gmail.com I'm sorry, I wasn't explicit, that's true. The intent is inside a dialog

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
23, 2010, at 1:43 PM, Filip Havlicek wrote: Hi, I think something is wrong with the context you are passing to the Intent in the onClick method. Try to put getApplicationContext instead of v.getContext() and see if that works. Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
think something is wrong with the context you are passing to the Intent in the onClick method. Try to put getApplicationContext instead of v.getContext() and see if that works. Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira pedroteixeir...@gmail.com If I place just the intent as I have

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
. Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira pedroteixeir...@gmail.com I get this message on the logcat: 08-23 13:57:35.947: INFO/ActivityManager(76): Process com.android.camera (pid 2030) has died. Do you think is related? Since my activity which Im trying to open (thenNnowMode) uses

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
as v.getContext. What might be happening is your code crashing and Android restarting next-to-last known activity. You could also use an activity in place of a dialog, using startActivityForResult. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 23.08.2010 15:25 пользователь Pedro Teixeira

Re: [android-developers] Re: Intent not opening correct ativity

2010-08-23 Thread Pedro Teixeira
a bitmap, or convert it to byte something like that. On Aug 23, 2010, at 4:45 PM, Filip Havlicek wrote: Hi Pedro, glad I could help. Dunno about the bitmap from imageview, Drawable isn't enough? Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira pedroteixeir...@gmail.com I figured

[android-developers] decodeFile to bitmap problem

2010-08-23 Thread Pedro Teixeira
Hi... I have an activity that passes a bundle to another one with a path for a bitmap... In the activity that receives the bundle I do it like this: Bundle w = getIntent().getExtras(); if (w!=null){ String activityName =

Re: [android-developers] decodeFile to bitmap problem

2010-08-23 Thread Pedro Teixeira
Pedro Teixeira pedroteixeir...@gmail.com Hi... I have an activity that passes a bundle to another one with a path for a bitmap... In the activity that receives the bundle I do it like this: Bundle w = getIntent().getExtras(); if (w!=null

Re: [android-developers] decodeFile to bitmap problem

2010-08-23 Thread Pedro Teixeira
to help you with this. Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira pedroteixeir...@gmail.com Hi... I have an activity that passes a bundle to another one with a path for a bitmap... In the activity that receives the bundle I do it like this: Bundle w = getIntent

Re: [android-developers] decodeFile to bitmap problem

2010-08-23 Thread Pedro Teixeira
have in your manifest? Do you have CAMERA permission? http://developer.android.com/reference/android/Manifest.permission.html#CAMERA Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira pedroteixeir...@gmail.com Ok.. I think I traced this Path problem... If I do: BitmapFactory.decodeFile

[android-developers] Intent not opening correct ativity

2010-08-22 Thread Pedro Teixeira
Hello, I'm having a struggle understanding why my intent is not working.. I basically just copied paste from other examples in my code that work perfectly like this.. here it is: Intent addIntent = new Intent(v.getContext(), thenNnowMode.class);

[android-developers] Submit a Picture to server

2010-08-21 Thread Pedro Teixeira
Hi everyone... I wouldn't post about this again if I really wasn't frustrated about it.. I've been going through this for a whole week and still I'm not able to do an image upload... My code doesn't report any errors.. but not even the intent is working.. please take a minute to go through it..

Re: [android-developers] Submit a Picture to server

2010-08-21 Thread Pedro Teixeira
by your code as rn. Should be \r\n - did the email client eat it, or are you really missing the backslashes in your code? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 21.08.2010 14:07 пользователь Pedro Teixeira pedroteixeira 0...@gmail.com написал: Hi everyone... I wouldn't post about

[android-developers] store bitmaps

2010-08-19 Thread Pedro Teixeira
Hello everyone, I could really use some help with this... I have this HTTP code snippet which gives me back a bitmap from the internet. ( I set a preview also ) myFileUrl =null; String URL = http://www.whatever.com/picture.png; try { myFileUrl = new URL(URL);

[android-developers] Re: make automatic login on application

2010-08-18 Thread Pedro Teixeira
thank you very much for the replies, I'll digg up on the SharedPreferences. Sarwar you are right, I want the user to be able to use the application in any device with his email. I would just like him not to perform login every time. Basically like danH mentioned about a browser. Lets say a website

[android-developers] make automatic login on application

2010-08-17 Thread Pedro Teixeira
Hi everyone, I'm trying to create a registration on my application activity with only the user having to insert his name and email. I want to add this values to my server database. Which is already working fine, The user inserts the name and email and android sends a http request to a php on my

Re: [android-developers] Hi, really need help with Android Camera

2010-08-13 Thread Pedro Teixeira
surfaceDestroyed(). Call stopPreview() before release()-ing the Camera. On Wed, Aug 11, 2010 at 12:24 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I've tried stop the cam preview and release it before calling the intent.. it actually goes to the other activity now. but gives an error 1 second after

Re: [android-developers] Hi, really need help with Android Camera

2010-08-13 Thread Pedro Teixeira
. On Wed, Aug 11, 2010 at 12:24 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I've tried stop the cam preview and release it before calling the intent.. it actually goes to the other activity now. but gives an error 1 second after This is the errors on the logcat: 08-11 17:22:06.943

[android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Pedro Teixeira
Hi there, I have a cameraView class which shows me the Cam View with a button placed on the corner. Once I click that button I'd like to go to another activity which also contains the camera view but some other properties. My code is giving me an undetectable error. I'm not sure what to do. Here

Re: [android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Pedro Teixeira
with pictures, gps, compass = AR .. so I really want to keep this separate so at some point the code can be too much overwhelming. Thank you again On Aug 11, 2010, at 3:32 PM, Mark Murphy wrote: On Wed, Aug 11, 2010 at 10:25 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hi there, I

Re: [android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Pedro Teixeira
(720): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 08-11 17:23:08.733: ERROR/AndroidRuntime(720): at dalvik.system.NativeStart.main(Native Method) :S On Aug 11, 2010, at 3:32 PM, Mark Murphy wrote: On Wed, Aug 11, 2010 at 10:25 AM, Pedro Teixeira

Re: [android-developers] Hi, really need help with Android Camera

2010-08-11 Thread Pedro Teixeira
: You are getting Method called after release() triggered by a call to stopPreview() from your surfaceDestroyed(). Call stopPreview() before release()-ing the Camera. On Wed, Aug 11, 2010 at 12:24 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I've tried stop the cam preview and release

  1   2   >