[android-developers] drag an object from a view and drop in another view in a viewSwitcher

2011-03-11 Thread Fina Perez
Hi! I have implemented something similar to an agenda. I'm using a viewSwitcher to move between different days. At this moment, I'm able to move a task to a different hour in the same day but If I try to change the day by dragging, the day switch correctly but the object I'm moving reminds in the

[android-developers] Re: onItemLongClick and onItemClick for a gridview

2011-03-18 Thread Fina Perez
Hi! I haven't seen your code, but have you tried using a GestureDetector? (see http://developer.android.com/reference/android/view/GestureDetector.OnGestureListener.html) Using the method onTouchEvent + a gestureDetector, you can be able of detecting a simple click, a long click, or even a

[android-developers] draw text with html format inside a rectangle

2011-03-18 Thread Fina Perez
Hi!! I'm trying to paint a rectangle, and inside it, put some text which is html-format (sorry for my english, it is so bad ) I use CharSequence (because this supports html) instead of String, and I call drawText with those parameters, but the format isn't painted. Any idea? is it possible?

[android-developers] Re: draw text with html format inside a rectangle

2011-03-19 Thread Fina Perez
must, use a webview. On Mar 18, 11:55 am, Fina Perez fina.pere...@gmail.com wrote: Hi!! I'm trying to paint a rectangle, and inside it, put some text which is html-format (sorry for my english, it is so bad ) I use CharSequence (because this supports html) instead of String, and I call

[android-developers] onRestart from Home button or from back button

2011-05-26 Thread Fina Perez
Hi! I need to handle in someway if my activity is being restarted after pressing the home button or is it just happend thanks to the back button. The scenario is as follow: Everytime I go out from my app and then go back, I have to make some security checks. So I override the onRestart()

[android-developers] Re: onRestart from Home button or from back button

2011-05-30 Thread Fina Perez
if onStartActivityForResult waits for the result of the activity it launched or just for a result. On May 26, 7:56 pm, TreKing treking...@gmail.com wrote: On Thu, May 26, 2011 at 3:44 AM, Fina Perez fina.pere...@gmail.com wrote: when I press the back button and navigate from one activity to the previous one inside my

[android-developers] Re: onRestart from Home button or from back button

2011-06-01 Thread Fina Perez
back to the controller that was handling him. That's how I do that. On May 30, 8:43 pm, TreKing treking...@gmail.com wrote: On Mon, May 30, 2011 at 2:22 AM, Fina Perez fina.pere...@gmail.com wrote:  The thing is sometimes I break the normal flow between activities, I mean, from activity A I

[android-developers] Re: onRestart from Home button or from back button

2011-06-02 Thread Fina Perez
override onActivityResult and see if the kill flag is there and the request code matches then call finish(). So pressing back in C will go to A. On May 30, 3:22 pm, Fina Perez fina.pere...@gmail.com wrote: Hi! I thought to use that, but I'm not sure if it's going to work. The thing is sometimes

[android-developers] Adding a bookmark different behavior on Galaxy S

2011-06-06 Thread Fina Perez
Hi all! I wanted to add a bookmark to the default browser of the phone from my app with an url where the client can download an app. So the url ends with .../myApp.apk It's working perfect in almost all the devices except in the Samsung. I have to add an/ after .apk to make the bookmark visible

[android-developers] Camera bitmap too small

2011-06-14 Thread Fina Perez
Hi all! I'm using the built-in camera app and in every phone I test it, I receive a bitmap really small (for example, samsung galaxy mini: 256x192, htc wildfire: 324x244). How can I get the picture in the real size? I searched in Google but nothing seems to be clear, some people says it is a bug.

[android-developers] Re: Camera bitmap too small

2011-06-15 Thread Fina Perez
Thanks for your reply. I tried to get the Uri but I'm facing the same problem I had a few months ago. In the Samsung, when I try to get Uri, the result is null... I really have no idea how to get the uri from this device. This is my intent: Intent camara = new

[android-developers] Re: Camera bitmap too small

2011-06-16 Thread Fina Perez
Hi! If you are using the same intent and if you dont specify any new place to save the pictures, they will be automatically saved by default in the same place that the camera usually uses and they will appear automatically in the gallery app, so you dont need to do anything special. About the

[android-developers] Re: Camera bitmap too small

2011-06-16 Thread Fina Perez
Hi! If you are using the same intent and if you dont specify any new place to save the pictures, they will be automatically saved by default in the same place that the camera usually uses and they will appear automatically in the gallery app, so you dont need to do anything special. About the

[android-developers] Re: draw text with html format inside a rectangle

2011-03-25 Thread Fina Perez
Thanks a lot Kostya, that helped so much! DynamicLayout was what I need, and now it is working. And lbendin, your list is really usefull too, thanks! On Mar 19, 8:11 pm, Kostya Vasilyev kmans...@gmail.com wrote: Fina, TextView draws text using this:

[android-developers] Re: move view on touch

2011-04-12 Thread Fina Perez
In this link http://blahti.wordpress.com/2011/02/10/moving-views-part-3/ you will have a really good tutorial about that. On Apr 11, 1:35 pm, Y@g*E!s^H SARKAR yog16pa...@gmail.com wrote: i am using android-2.1, is it possible to move one view over other view with finger touch on one screen? i

[android-developers] Built-in camera problem deleting files

2011-04-21 Thread Fina Perez
Hi all! I'm using the built-in camera in my app to take a picture and to save it in a database. So, from my activity, I launch the camera, take a picture and go back to the activity (thanks to onActivityResult method). Here, I store the picture in the database and I delete it from the phone.

[android-developers] Re: Built-in camera problem deleting files

2011-04-22 Thread Fina Perez
=android.intent.action.MEDIA_MOUNTED / data android:scheme=file / /intent-filter (I found the solution here: http://stackoverflow.com/questions/4430888/android-file-delete-leaves-empty-placeholder-in-gallery) On Apr 21, 11:32 am, Fina Perez fina.pere...@gmail.com wrote: Hi all! I'm using

[android-developers] Re: Built-in camera problem deleting files

2011-04-26 Thread Fina Perez
,                         new Intent(inline-data).putExtra(data, bitmap));                 finish();             } On Fri, Apr 22, 2011 at 4:51 PM, Fina Perez fina.pere...@gmail.com wrote: Hi! I answer myself: maybe is not the best solution but after deleting the file, this is what I do: sendBroadcast(new

[android-developers] Re: Built-in camera problem deleting files

2011-04-26 Thread Fina Perez
in onActivityResult(). The code you mentioned is from android built-in Camera application. There you can see how camera app give result to you. From that you can get how to handle the result. On Tue, Apr 26, 2011 at 3:51 PM, Fina Perez fina.pere...@gmail.com wrote: Hi Liang! thanks a lot for your

[android-developers] Re: Built-in camera problem deleting files

2011-04-26 Thread Fina Perez
I read about Mediastore functions, and the one that I thought it could fit is for API 9, and I'm developing for api 8... Seriously, it's seems to be a really stupid problem but I can't do it work! On Apr 26, 1:11 pm, lbendlin l...@bendlin.us wrote: I believe you have to use Mediastore functions

[android-developers] Re: Built-in camera problem deleting files

2011-04-26 Thread Fina Perez
. Hope these are helpful. But camera implementation of different phones may differ. I'm not sure if above can work. On Tue, Apr 26, 2011 at 6:42 PM, Fina Perez fina.pere...@gmail.com wrote: Hi,  that's what I'm using now, because I cannot make the first option runs. But I'm having problems

[android-developers] Re: Mapactivity

2011-04-28 Thread Fina Perez
check the manifest, to see if you have the library and the mapactivity there. But as Mark says, look at the stack treace in the logcat, it's really helpful On Apr 28, 1:42 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Apr 28, 2011 at 7:30 AM, kaushik p kaushiks...@gmail.com wrote: I

[android-developers] Re: Built-in camera problem deleting files

2011-04-29 Thread Fina Perez
try to use ContentResolver.delete(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI, ...) to match and delete that record. Or you can query that record firstly then delete it using ContentResolver.delete(). On Tue, Apr 26, 2011 at 9:39 PM, Fina Perez fina.pere...@gmail.com wrote

[android-developers] Re: can i use google maps api for free in my company's inner using android app?

2011-10-12 Thread Fina Perez
http://code.google.com/android/add-ons/google-apis/maps-overview.html get a debug certificate On Oct 12, 7:28 am, Jimmy Don dongjim...@gmail.com wrote: i am developing an android  app for my company .  it's for our inner using. can i use google maps api for free? or i need pay to google? --

[android-developers] Re: Camera application

2011-10-13 Thread Fina Perez
Can you provide some logcat or some code? What's the error you get on htc? On Oct 12, 10:29 am, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi,     I developed an application on 2.1, i integrated built-in camera app in my application.     Its working perfectly on Samsung pop device but

[android-developers] Re: Etends two activity in one class file

2012-03-27 Thread Fina Perez
you mean extending from two classes into one? That's not possible in Java. Try using interfaces or think again about your structure. If you reached the necessity of extending two classes, I'm pretty sure your structure is not well-orientated. On márc. 27, 08:10, jugni jugni1sm...@gmail.com

[android-developers] LocationListener Network provider not called

2012-04-19 Thread Fina Perez
Hi all, I'm facing a really annoying problem. In some point of the program, I need to track the user position. For that I register a listener for all the providers available and request updates. This was working really good until I updated my phone to Android 4.0. But the same code is working

[android-developers] Re: Calculate Distance like GoogleMap

2011-07-04 Thread Fina Perez
Hi, you can get a kml file from google maps, parse it onto your application and paint the result in the map. Check the links below: http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html http://stackoverflow.com/questions/3109158/how-to-draw-a-path-on-a-map-using-kml-file

[android-developers] Re: Geocoder nightmare

2011-07-04 Thread Fina Perez
which exception do you have? And about the thing with the AVD 7 and 8, I use 8 and for me it works. Of course, check the manifest and the internet connection. On Jul 3, 9:56 pm, bob b...@coolgroups.com wrote: Yes, I did this. I read in a book that geocoding doesn't work in AVD 7 and 8.  It

[android-developers] Re: Geocoder nightmare

2011-07-05 Thread Fina Perez
):     at dalvik.system.NativeStart.main(Native Method) Here's what I read about 7 and 8 http://s1190.photobucket.com/albums/z449/m75214/?action=viewcurrent=... On Jul 4, 9:43 am, Fina Perez fina.pere...@gmail.com wrote: which exception do you have? And about the thing with the AVD 7 and 8, I use 8 and for me it works

[android-developers] MapView and terms of service

2011-07-07 Thread Fina Perez
Hi all! I use the Google API in my app and I have a question about the logo on the map. I don't modify it when I display the map, but If I display the route between two points, I paint two buttons onto the map. One of this buttons is drawn over the logo (left corner on the bottom of the screen)

[android-developers] Re: MapView and terms of service

2011-07-07 Thread Fina Perez
AM, Fina Perez fina.pere...@gmail.com wrote: Hi all! I use the Google API in my app and I have a question about the logo on the map. I don't modify it when I display the map, but If I display the route between two points, I paint two buttons onto the map. One of this buttons is drawn over

[android-developers] restart application after Android's killed it

2011-07-20 Thread Fina Perez
Hi all! As far as I know, Android kills an application after sometime if the user is not interacting with it, in order to save memory. If the user goes back to the application, the last activity is displayed again. What I would like to do is that when this situations occurs, I always would like

[android-developers] Re: restart application after Android's killed it

2011-07-20 Thread Fina Perez
in the main activity. On Jul 20, 3:24 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jul 20, 2011 at 7:02 AM, Fina Perez fina.pere...@gmail.com wrote: As far as I know, Android kills an application after sometime if the user is not interacting with it, in order to save memory

[android-developers] Alert dialog shown but not visible

2011-07-28 Thread Fina Perez
I have an activity where I start the built-in camera using onActivityResult. After taking a picture, I go back to my application and show a pop up asking to the user if he wants to take more pictures or no. It works fine, but after taking the picture, when I press the save button on the built-in

[android-developers] Re: Open Google Maps with Route In Tab Using Activity

2011-08-01 Thread Fina Perez
This link may help http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html On Jul 31, 8:40 pm, usafrmajor usafrma...@gmail.com wrote: Great for understanding what is happening.  Just wondering if you, or anyone else, knows of any good android code examples on how to

[android-developers] Re: Heap Memory and avoiding a crash

2012-06-12 Thread Fina Perez
Well, it is true there is no fix answer for that problem. I used to have to deal with this exception quite a lot at the beginning. Then I discovered the magic tool memory analysis and cleaned my code. So now, I'm not getting that OutOfMemoryException due to my code. Mostly, what I did was

[android-developers] Re: startActivityforResult does not return any result on Samsung Galaxy

2012-06-14 Thread Fina Perez
I had some problems with Samsung also, and it is due to getExternalStorageDirectory() . I cant find the link now but I read that Samsung threats the external storage differently so you have to hack your code or create your specific path. This code gives you the right path: try { path =