[android-developers] Re: cropped picture with ImageView?

2010-02-27 Thread Albert
You can use Bitmap.createBitmap(.); http://developer.android.com/reference/android/graphics/Bitmap.html#createBitmap%28android.graphics.Bitmap,%20int,%20int,%20int,%20int%29 I don't think you can do it from xml On Feb 27, 4:30 pm, Marco Alexander Schmitz

[android-developers] Re: Knowing current country

2010-02-22 Thread Albert
OK I've found the answer in the TelephonyManager class On Feb 21, 9:26 pm, Albert albert8...@googlemail.com wrote: Hi all, Is there any way at all where you can find in which country the phone is currently in, let's say if I travel to Spain can I in code know this information somehow

[android-developers] Knowing current country

2010-02-21 Thread Albert
Hi all, Is there any way at all where you can find in which country the phone is currently in, let's say if I travel to Spain can I in code know this information somehow. Using GPS is not good for me, but I know the phone reconizes where it is, but I dont know if I can access that info in code.

[android-developers] ProgressDialog question

2010-02-03 Thread Albert
Hi there, Can someone tell me how to create a progressDialog without the background just with the spinner and the text(which is how the android market when loading apps does it). Also is it even possible to change the position of the dialog to for example at the bottom instead of the middle???

[android-developers] Re: Service Context.stopSelf() does not work!

2010-01-31 Thread Albert
Process.killProcess(pid); is killing the whole process stopSelf() and stopService() stops the service but the process which is still in the background and Android will kill it when needed. You don't need to kill your process to stop a service, if you read through the docs or this forum you will

[android-developers] Re: Desarrollar para diferentes modelos

2010-01-30 Thread Albert
hice una aplicacion para los moviles G1, usa un timer ya que muestra un reloj, en este telefono me funciona a la perfeccion, se probo esta misma aplicacion en un Nexus One, y cuando cambia a otra vista, la aplicacion falla, Make sure you change you manifest to support the latest SDKs,

[android-developers] Re: Activity.finish() x System.exit

2010-01-22 Thread Albert
What about this: int pid = android.os.Process.myPid(); android.os.Process.killProcess(pid); You exit the app asking android to kill your process. I think that what is used in 3D games as most of them have and exit button, you kill the process so that it wont drain battery and use memory. Anyway

[android-developers] Upgrading code to 2.1

2010-01-18 Thread Albert
Hi there, I have a widget which I developed using the 1.5 SDK, I am now looking to make the necessary changes to make it work on 2.1. I have read the docs regarding this and I have set my manifest as uses-sdk android:minSdkVersion=3 / so that it can be used from 3 upwards. What is unclear to me

[android-developers] Re: Broadcast Receiver not getting called when expected

2010-01-17 Thread Albert
, Albert albert8...@googlemail.com wrote: solved! it appears that the emulator would not send the broadcast only by not being connected, you also have to disconect it on the emulator. Maybe in the future releases it will be better sync with the pc... -- You received this message because you

[android-developers] Re: process has died after exiting app

2010-01-15 Thread Albert
Also I am implementing LocationListener() and I am updating my location by requestLocationUpdates(...), so if my process gets killed then I won't receive more location updates untill the alarm manager fires the service again. Is this correct? How can I deal with this? Thanks, Alberto -- You

[android-developers] process has died after exiting app

2010-01-14 Thread Albert
Hi there, I am seeing a curious behaviour in my app. I have a widget that gets updated by a service every # hours, when the service finishes I stop it, using stopService(new Intent(this, MyService.class));, the widget if pressed launches an Activity. Now it gets interesting, while im on the

[android-developers] Re: process has died after exiting app

2010-01-14 Thread Albert
Thanks String for your reply, I have indeed changed my approach there and I am sending everything I need for my activity as Extras in the intent. Still I find it a bit strange that the process gets killed right after I exit the activity, it happens quite often and I do not see on the log the same

[android-developers] (SIGSEGV) fault when create and exit app a few times

2010-01-10 Thread Albert
Hi, Im getting this error caused by VM( logcat below from emulator, it also happens on the device) This is a know bug filed at least 3 times with different issues http://code.google.com/p/android/issues/detail?id=4450can=4colspec=ID%20Type%20Status%20Owner%20Summary%20Stars#c4

[android-developers] Null Pointer Exception with getIntent().Extras....

2010-01-09 Thread Albert
Hi, Can someone see what I am doing wrong here, when I try to get the extras I sent on my intent it always returns null Intent activityIntent = new Intent(context, TopImage.class); activityIntent.putStringArrayListExtra(com.mobile.dev.LIST, mStringList); //mStringList is not null for sure

[android-developers] Re: Null Pointer Exception with getIntent().Extras....

2010-01-09 Thread Albert
thanks is working now, it was exactly what you said, I was looking into Intent and put/get Extras... I had no clue of this PendingIntent behavior. On Jan 9, 10:06 pm, Mark Murphy mmur...@commonsware.com wrote: Albert wrote: Hi, Can someone see what I am doing wrong here, when I try to get

[android-developers] Re: create app that comes with a widget and the program

2010-01-08 Thread Albert
to communicate with the AppWidget There are many examples given,you can check the android developer site for this.. On Jan 6, 5:54 pm, Albert albert8...@googlemail.com wrote: Does anyone knows how to achieve this??? Thanks, Alberto -- You received this message because you are subscribed

[android-developers] Re: create app that comes with a widget and the program

2010-01-06 Thread Albert
Does anyone knows how to achieve this??? Thanks, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Problems with the JavaBinder (!!! FAILED BINDER TRANSACTION!!!)

2010-01-05 Thread Albert
The problem is probably that the images are too big and android cant handle it. Try this solution I used when I had the same problem: http://groups.google.com/group/android-developers/browse_thread/thread/6e9f1d7541871a11/49e961dd26ea544e#49e961dd26ea544e Hope it helps, Alberto On Jan 5, 4:17 

[android-developers] create app that comes with a widget and the program

2010-01-04 Thread Albert
Hi there! I am trying to find a way to create a widget and the program on the same app so that i can give the user the choice to add to the home screen either the dynamic widget or the normal program, same functionality for both except that the widget would run a service to update every x hours

[android-developers] Re: create app that comes with a widget and the program

2010-01-04 Thread Albert
Thanks Mark for your answer, maybe I didn't make myself very clear, the widget is the application, when added to home screen it launches a configuration activity to let the user set his/her preferences, after that's done it will run a service updating the widget. If you click the widget you will

[android-developers] Re: Broadcast Receiver not getting called when expected

2009-12-28 Thread Albert
solved! it appears that the emulator would not send the broadcast only by not being connected, you also have to disconect it on the emulator. Maybe in the future releases it will be better sync with the pc... -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Broadcast Receiver not getting called when expected

2009-12-27 Thread Albert
Hi everyone, I have a service that gets updated every x minutes depending on the user preferences. This service connects to a web service and pulls some data. If during an update the user has no connection I register my receiver and start listening for changes

[android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

2009-12-18 Thread Albert
I am experiencing the same issue, i have been testing my app on my phone(HTC Hero 1.5) and it would give me a UnknownHostException from time to time, I can only fix it by restarting the phone. I hope they have a team working on this as this is very critical to the development on Android as it's

[android-developers] Re: Overlay images in layout

2009-12-14 Thread Albert
Thanks Mark for your fast replay, I will give it a try... Alberto On Dec 10, 11:50 am, Mark Murphy mmur...@commonsware.com wrote: Hello there! Im making an app that displays some text at the top, an image then a couple of buttons. I got the design in a linear layout, and I need to place

[android-developers] Rotate TextView to x degrees

2009-12-14 Thread Albert
Hello there! Is there an easy way to rotate a text to some degree as with bitmaps?? Matrix matrix = new Matrix(); matrix.postRotate(15); Bitmap rotated = Bitmap.createBitmap(originalBitmap, 0, 0, width, height, matrix, true); If there is not, can you

[android-developers] Overlay images in layout

2009-12-10 Thread Albert
Hello there! Im making an app that displays some text at the top, an image then a couple of buttons. I got the design in a linear layout, and I need to place the text at the top partially overlaying the image which is in the middle. I have tried the frame layout but is very unflexible and it pins

[android-developers] Re: Inserting Photo to Contacts

2009-09-01 Thread Michel Albert
On Aug 29, 2:49 pm, Michel Albert exh...@gmail.com wrote: Hmmm... I am trying the same thing. The method with setPhotoData does indeed run without a hitch. Except that the photo does not show on the contact when displaying it with the default Contacts application. I double checked both

[android-developers] Re: Contacts photos does not work after insert

2009-09-01 Thread Michel Albert
Incidentally, I am also writing a small backup tool and had a problem that sounds very similar to yours. I figured out, that adding photos does not work properly on the emulator. I added a new menu option which, when clicked, added a photo from a binary stream to a hard-coded contact URI. When I

[android-developers] Re: Inserting a new contact is not working

2009-08-29 Thread Michel Albert
Nevermind. I got it to work. The new way to insert contacts is: Uri newPersonUri = Contacts.People .createPersonInMyContactsGroup(getContentResolver(), values); On Aug 28, 4:45 pm, Michel Albert exh...@gmail.com wrote: I am trying to insert a new contact, but, even though I get

[android-developers] Re: Inserting Photo to Contacts

2009-08-29 Thread Michel Albert
Hmmm... I am trying the same thing. The method with setPhotoData does indeed run without a hitch. Except that the photo does not show on the contact when displaying it with the default Contacts application. I double checked both the Uri and the bytearray. Both are perfectly fine. The whole thing

[android-developers] Inserting a new contact is not working

2009-08-28 Thread Michel Albert
I am trying to insert a new contact, but, even though I get a valid URI back, the Contacts do not appear in the Contacts application. Code: ContentValues values = new ContentValues(); values.put( People.NAME, contact.getString(name) ); Uri uri =

[android-developers] query regarding InputMethodManager

2009-07-11 Thread Albert Pinto
, Albert Pinto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] How to draw curve smoothly

2009-06-22 Thread Albert
I have lots of discrete points and want to link them together smoothly. How to do that? Is there any api to call ? Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] How to get the screen dimension?

2009-05-28 Thread Albert
Hi everybody, Does anybody know how to get the screen dimension? Is there any difference between the emulator and the real mobile on the screen dimension? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Projection Question

2009-04-12 Thread Albert Hernández
Don't you have any idea? Thanks On Apr 6, 10:41 am, Albert Hernández albert.hernan...@gmail.com wrote: I've a doubt related with the Projection class. As I understand this class translate beetween Lat/Lon to coordinate system in the screen. In which format is the coordinate system

[android-developers] Re: Transparent Canvas?

2009-04-06 Thread Albert Hernández
Hi Henry, Check this link, maybe it can help you: http://blog.pocketjourney.com/2008/03/15/tutorial-1-transparent-panel-linear-layout-on-mapview-google-map/ On Apr 4, 10:46 am, Henry hsen...@gmail.com wrote: I'm trying to make an app that requires me to draw over a layout with buttons, etc.  

[android-developers] Projection Question

2009-04-06 Thread Albert Hernández
I've a doubt related with the Projection class. As I understand this class translate beetween Lat/Lon to coordinate system in the screen. In which format is the coordinate system in the screen? Pixels? If I want to calculate some geometrical calculations, will I be able? For example a distance,

[android-developers] regarding sqlite query

2009-02-02 Thread Albert
Hi, We are using cupcake source for MMS . My query is regarding database. senario is like this. In canonical address already one address is stored ( ex ). and when i am trying to send a SMS/MMS to 33 TO field it is adding this message to the message with 3. I have

<    1   2