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/
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
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
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);
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
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
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
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
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
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 =
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
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
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
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
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
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
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
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
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
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
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:
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.
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 =
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
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
25 matches
Mail list logo