[android-developers] Re: How to parse Json file (Which is output of http://maps.googleapis.com/maps/api/geocode/json.....)

2012-01-28 Thread Greivin Lopez
Hi, I suggest you to take a look at the Gson library from Google to parse the JSON response from the service: http://code.google.com/p/google-gson/ It has a very competitive performance according to this resource: http://martinadamek.com/2011/02/01/adding-gson-to-android-json-parser-comparison/

[android-developers] How to downgrade T-Mobile G1 from Donut to Cupcake?

2009-12-18 Thread Greivin Lopez
Hi, I need to support Android 1.5 (Cupcake) for my application but I don't have any 1.5 device. I currently have a Motorola Droid with 2.0.1 and the T-Mobile G1 (HTC Dream) with 1.6 (Donut). What I want to do is to downgrade my G1 to the previous official OTA release of Cupcake. I have no

[android-developers] Re: Samsung Behold II Info

2009-12-04 Thread Greivin Lopez
By reading this thread I suspect it currently running Android 1.5. http://forums.t-mobile.com/t5/Samsung-Behold-2/1-6-or-2-0-Upgrade-in-the-Works/m-p/263944 But I'm not sure. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: video recording issue

2009-11-19 Thread Greivin Lopez
I think you don't have to open and set parameters for the camera when recording video, at least it never work for me, try to remove this code: camera = Camera.open(); Camera.Parameters parameters = camera.getParameters(); parameters.setPreviewSize(352, 288); parameters.set(orientation, portrait);

[android-developers] Re: Camera Picture Size on Samsung i7500 Galaxy

2009-10-28 Thread Greivin Lopez
It is possible that you are facing the same problem described in this post: http://groups.google.com/group/android-developers/browse_thread/thread/d050a50bacdf3c08/da7b9f10cfcfbb18?hl=enlnk=gstq=Greivin+Lopez#da7b9f10cfcfbb18 If you are using camera.setPreviewSize in your code then just remove

[android-developers] Re: Showing application version

2009-10-26 Thread Greivin Lopez
Or just use the following code snippet: /** * Gets the software version and version name for this application */ private void getSoftwareVersion() { try { PackageInfo pi = getPackageManager().getPackageInfo (getPackageName(), 0); // Store the software version

[android-developers] Re: 1.6 vs setPictureSize

2009-10-26 Thread Greivin Lopez
Hi! I was having a similar issue on my application. Later I found that setPictureSize actually works well but the problem was in the setPreviewSize. When I called setParameters it was failing because the setPreviewSize, so the other parameters wasn't really being set. If you are calling

[android-developers] Re: Numeric-only soft keyboard

2009-10-21 Thread Greivin Lopez
I am also looking for this. In my application I have a four digits code users needs to provide so it could be very nice if I have an specialized numbers-only soft keyboard. It could be a nice API addition for feature releases of the SDK as well (If there isn't yet) to allow developers to create

[android-developers] Re: android.os.Build.MANUFACTURER

2009-10-20 Thread Greivin Lopez
Ok I see IMEI is not valid as a device identifier for Android devices. What do you guys suggest to use instead of the IMEI to identify the device? Is there any best practice in Android environment to do that? I'm asking because I also working on that part of my application right now. Thanks

[android-developers] Re: android.os.Build.MANUFACTURER

2009-10-19 Thread Greivin Lopez
I think you could use IMEI value. IMEI = International Mobile Equipment Identity which is a unique number for every GSM, WCDMA, IDEN phone. The way to retrieve the value is by using something like this: import android.telephony.TelephonyManager; TelephonyManager telephonyManager =

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-16 Thread Greivin Lopez
Thank you Mark. It sounds very interesting!, specially the JavaPP link. --~--~-~--~~~---~--~~ 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] Re: Rotating Camera Preview

2009-10-16 Thread Greivin Lopez
Actually it does not work as I expected!! I've tested it in a G1 and it work great for the camera preview, but when you take the picture the JPEG is still in landscape mode. Anybody knows how to set the camera to get the image as you see it in your preview? I know that the Camera application

[android-developers] Re: Rotating Camera Preview

2009-10-15 Thread Greivin Lopez
Thank you very much Anirudh!!! This is exactly what I was looking for!. --~--~-~--~~~---~--~~ 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] Re: Unable to write text file to sdcard on physical G1 device

2009-10-15 Thread Greivin Lopez
I think you only need to add the permission as suggested by androiduser mobile to be able to write to the SD Card. uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE/ --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-14 Thread Greivin Lopez
Thanks to jotobjects and EboMike for their responses. I will try to describe my situation better: I have an application that send SMS messages by using SmsManager class. In the SDK 1.5 version of the application (I mean I set 1.5 as the Project Build Target) everything works fine because I use

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-14 Thread Greivin Lopez
jotobjects I'm going to try what you suggest. It seems more like what I'm looking for. And also let you know what was the result. Thanks. With conditional compilation I refer of something more like an attribute that let you tell the compiler to either use one method or another. I would like to

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-09 Thread Greivin Lopez
I have a question related to backward compatibility in Android. My applications uses SmsManager class that was deprecated in SDK 1.5 and moved to other package in SDK 1.6 to support CDMA. That's OK. The problem is I want to support 1.5 SDK and also being able to use the new SmsManager class. I

[android-developers] Re: Should we still force our apps to API level 2?

2009-10-09 Thread Greivin Lopez
Thanks Mike. Your answer was very useful. I think I'm going to keep a version supporting CDMA and another one for GSM. At least until new CDMA Android devices reach the market. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Application Developers??

2009-09-24 Thread Greivin Lopez
Brittany and everyone else! We have developed the application you are mentioning, actually it has more capabilities such as a private web account, video and picture uploading, Geo-tagging and an alert system built into the mobile application, so if a user is assaulted or in danger, an alert can

[android-developers] Re: Get Device Name

2009-09-09 Thread Greivin Lopez
I tried using this: Settings.System.getString (this.getContentResolver(), ro.product.device); but it returns null. Somebody knows how to get the device name programatically??? On Aug 2, 1:59 pm, dan raaka danra...@gmail.com wrote: try reading it from system properties .. you can see them

[android-developers] Re: MediaRecorder API: preview is not happening and audio sounds muffled

2009-08-21 Thread Greivin Lopez
Hi, sreeram. A lot of people here is facing problems with video capture! There is a thread about the video capture topic which has a lot of information, but seems to be only one person that has succeeded doing video capture. Check this out:

[android-developers] Re: Video with MediaRecorder

2009-08-20 Thread Greivin Lopez
Hi greatinnovus. I could not give you any suggestions because I'm still getting errors. In fact, I supposed is the your same error as our codes are very similar. At the moment Jason Proctor is the only one who claims to be successful in video capturing, maybe he could help us resolve the issue.

[android-developers] Re: get version from apk

2009-08-17 Thread Greivin Lopez
Hi, you could use PackageInfo class to retrieve some information from Manifest.xml. Try to use this code: /** * Gets the software version retrieved from the Manifest. */ private String getSoftwareVersion() { try { PackageInfo packageInfo =

[android-developers] Re: Video with MediaRecorder

2009-08-17 Thread Greivin Lopez
Hi Jason, perhaps you could help me with my code. I was trying to capture video for two weeks now without success :( This is my complete code public class VideoCapture extends Activity implements SurfaceHolder.Callback { private static final String TAG

[android-developers] Re: Video with MediaRecorder

2009-08-12 Thread Greivin Lopez
Hi Jason. What do you mean with my own MediaRecorder code? On Jul 17, 11:50 am, Jason Proctor jason.android.li...@gmail.com wrote: if you're using the camera on the emulator, then you have to disable auto orientation changes to get it to work. at least, i picked this info off the network