Android :: Api I Can Use To Prepare VCard In Droid?
May 18, 2010I am preparing a contacts application and would like to support the VCard export. Can anyone tell me if there is any API I can use to create a VCard.
View 4 RepliesI am preparing a contacts application and would like to support the VCard export. Can anyone tell me if there is any API I can use to create a VCard.
View 4 RepliesSince no one knows when the update is going to come to the Droid. Could be tomorrow or in three months. Its all up in the air. It could happen anytime. Anyways, What do you need to do?
Have a battery near full all the time?
Backup your Aps?
Backup contacts?
Since I am assuming you can get the update without warning, I just wanted to know what steps to take, so I can have no problems with an OTA update.
I am trying to test my application with location information.
You know the Emulator Control has an ability to load from KML file. (Eclipse -> DDMS -> Emulator Control -> Location Controls -> KML -> Load KML...)
I've prepared KML file using Google earth application with its "Add path". Then saved it by .kml extension and load it on the Eclipse. Eclipse didn't load this KML file.
How to prepare KML file for Android Emulator Control?
can't seem to send or receive vCard over sms?
View 12 Replies View RelatedI'm trying to import a vcard (vers. 3.0) automatically into the android contacts.Within the contact manager there is an option to import a vcf file stored on the sd-card into the contacts. How can I trigger this function with handing over a file?
View 1 Replies View RelatedI'm trying to import and export contact on an Android phone as vCards. Export works fine and i get the vCard string.
But how can i insert a contact from a vCard string? I wasn't able to find any sample code .
How can i make contacts backups to vcard file through programming?
View 2 Replies View RelatedI'm trying to initialize OpenFeint in my game like this:
CODE:...........
Result: 1. OpenFeint initialization sometimes take so song(network actions?). It blocks the main thread. 2. My application remains in onCreate() for too long. 3. My Dev Phone One display ANR(application not responding) dialog prompting me to choose between 'Force Close' and 'Wait' 4. Soon after that, OpenFeint has done its things and my game shows up behind the dialog. 5. Now pressing 'Wait' will dismiss the ANR dialog and I can continue my game properly.
But obviously we don't want ANR dialog. So now I put it in a Thread like this:
CODE:...............
----------------------------------------------------------------------------- Result: Problem solved. Everything seems to run fine now.
I put Looper.prepare() there because my game will crash if I don't. The log message told me to put it there. I put Looper.loop(); there because OpenFeint will not initialize at all if I don't. I've read the doc about Looper but honestly I don't understand what the doc says.
Question 1. The doc also tell me this: ------------------------------------------------- public static final void loop ()
Since: API Level 1 Run the message queue in this thread. Be sure to call quit() to end the loop. -------------------------------------------------- Can anyone explain when & where should I call quit()?
Question 2 What will happen if I don't call Looper.quit()?
Question 3 Let me ask this straight. Am I taking the correct approach? Is there some kind of loop running alongside my game all the time if I do this?
Playing around with the UI and SQLLite for a while and it looks pretty good to me . We have a requirement that for the App that all the questions would be coming from the server through REST / Web service which would be displayed on the App..
say for e.g if there are 4 questions
1) Enter your Name -- Text Box
2) Did you sleep well last night -- YES / NO
3) How many hours did you sleep - Text Box
4) How did you hear about us -- Drop down
So the requirement is that the Questions would be displayed on the App after doing a SYNC with the server during the SYNC with the server the Questions would be downloaded from the SERVER through REST / Web service..if the phone is not connected then pull the questions from the Database...
These questions are simple questions and they change quite often and we have a similar app which is there for iphone which does this ....
I'm trying to build a simple video recorder for an Android device and I've had limited success and mixed results. It worked once, but now, without changing anything, I'm getting a "Camera is not available" error followed by "prepare failed -2147483648" error.
View 1 Replies View RelatedI am trying to develop an application with Android 1.5(cupcake_r1) for a week but always get an error reported in prepare of MediaRecorder. Can anybody help me to figure out the problem I got in the code below:
PS. In order to figure out the problem, I suppressed the audio recording, and the SDcard is installed in the phone.code...
Someone sent me a vCard by SMS.. I can see it in my messages, and when I click on it, it says "Imported".. But it doesn't get saved in the contacts...
The only way I can retrieve the number is by going to forward the sms and copy the number out...
In the API Demo, there is example on using Simple Cursor Adapter. However, it is using the MediaS tore cursor. Is there any method so that I can use other external cursor prepare by SQL database. I don't know what should I input to the from String.
View 2 Replies View RelatedI have a situation where my MediaRecorder instance causes a segfault. I'm working with a HTC Hero, Android 1.5+APIs. In the log i see (after the segfault announcement) a register dump and then a numbered list #00 libmedia_jni.so to #18 linker, then a stack trace. My Eclipse won't let me copy the log buffer, but I've done three screen captures that sum it up. If you have time to examine, send me a direct e-mail.<pre><code> if (mRecorder == null) mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);// mRecorder.setVideoSize(640, 480); // mRecorder.setVideoFrameRate(20); mRecorder.setPreviewDisplay(surfaceHolder.getSurface()); mRecorder.prepare();mRecorder.start(); </code></pre> I've tried other variants, including H263 and 3gp. What else can I do to debug this? Everythin g seems fine up to prepare(). I tried adding the onErrorListener, but it seems to interfere with the MediaPlayer's onErrorListener. I'm using a 4-second beep-count to prepare for auto triggering of the camera, and when I enable the error handler for the MR everything in my handler state machines goes awry.
View 4 Replies View RelatedI got the desire sometime back, awesome phone, has everything one wants.
But I have not been able to send vcard from the phone, pls anyone help. Everytime I try to send it shows generic failure.
I have a HTC Desire When I recieve vcard's via sms text messages I open the message and touch the vcard, it says "the vcard has been imported successfully". When I go to my contacts list the supposed vcard entry does not show up in the list.
View 21 Replies View RelatedSaved all my contacts through import option on droid phone to the sd card.. Moved the vcf file to the pc.. Did a fresh install on my LG Optimus s phone.. and now cant import any contacts.. Its not displaying in contacts.. But if i go to text someone.. I type the first 3 letters and the full name and number displays. Just not in the contacts.. I accidentally upgraded my rooted froyo phone to gingerbread and hated I did it. got to wait til i can root it again. SO now im back to basic.. Does hard reset even revert to stock flash? Or you have to get technical in doing it?
View 1 Replies View RelatedWhat is the preferred way of reusing a MediaPlayer when using resources? My try looks a bit ... too complicated... so maybe I should be happy to see that it didn't work. (I run the Android 1.5 SDK and emulator.)
According to this thread my problem may be a permission problem. http://groups.google.se/group/android-developers/browse_thread/thread...
I get the same error. But in my case it only occurs when I use FileDescriptor!?! The use case differs however, because I use a resource stored in the bundle. I have s0.mp3 safely stored in the project /res/raw and it successfully plays when I use SoundPool or MediaPlayer.create. And the log print tells me I referenced the correct file and stay safely in my package.
I'm sure my way of getting the fd out from a package resource is the problem, I didn't find any other way... But why didn't setDataSource throw the exception instead of a printout? And why on earth is the same resource happily played one way but not the other? Seems like a design flaw rather than a security raise. Should I look in the MediaPlayer.create code to see how they get around the problem or can you help me understand how it works?
This is a test code snippet: (from onCreate of a simple Activity)
CODE:...........
And the error:
CODE;..............
I am trying to write a sample program to record the video (say camcorder application). When i run my program using the emulator (I have android-sdk- windows-1.5_r3) I see java.io.IOException: prepare failed. error in logcat output.
Further I can see that I have came across this error when i call MediaRecorder.prepare() from CamcorderActivity.surfaceCreated() But I am surprised to see that activity got launched and I am seeing the camera preview! Again the preview is seen only in half of the screen! Its weird!!!
Further when i do recorder.start() to record the video I get java.lang.IllegalStateException. Yes this is obvious since the prepare () has failed. But the question is why prepare() has failed ?
Here is my code ... package com.example;
CODE:................
What does the following exception mean? And how can I fix it?
This is the code:Toast toast = Toast.makeText(mContext, 'Somthing', Toast.LENGTH_SHORT);
This is the exception:
D/VVM ( 684): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
D/VVM ( 684): at android.os.Handler.(Handler.java:121)
D/VVM ( 684): at android.widget.Toast.(Toast.java:68)
D/VVM ( 684): at android.widget.Toast.makeText(Toast.java:231)
Over the last week I've had two different people attempt to send me a contact's information from their phone via text message. In both cases I see a text that says just:
Quote:
Looker, lookie, new Aria ROM to allow OTA firmware updates, plus two other bug fixes. I think they are gearing up for Android 2.2, HTC Mobile Phone Support - HTC Aria? (AT&T) - Downloads
View 1 Replies View RelatedRunning KK and trying to export some contacts using the stock export function in contacts - problem is that the generated vcf is in 2.1 format. This is not good, the export lost some info, such as custom labels of phone numbers.
Then I tried to found an app on the market that does that - not ONE have i found. All of them either do the export in 2.1 format; or they backup on the cloud; or send the contacts by mail; or use proprietary format.I just want to backup my contacts with all the info on my sdcard and be able to restore them.
What's strange is that the stock import contacts knows how to read 3.0 vcards and that I was able to do this thing I'm looking so hard now on my ancient SGS1 running GB.
i have no idea why it is turning off i got the phone yesterday. would it be because it is trying to prepare my sd card?it started when i put the card in.
View 4 Replies View RelatedI've been having an issue with my headphone jack and finally called into Tmobile tech support.
They are going to be sending a replacement phone, so I would like some help on how I can get my current phone ready to be sent back to them.
Currently it is rooted stock 2.1 and has ryanza lag fix applied.
Most of my files are on the SD.
I know I need to unroot, how would I proceed to do that and would unrooting get rid of the lag fix?
I am trying to import a vcard into the contacts on my android phone.I have problems with some fields, e.g Family Name, Job title, Company,With fields like phone and email it is already working.
View 1 Replies View RelatedCould any one please tell me whether Android is complaint with VCARD 2.1 specification?I could not see, fields like DOB (Date Of Birth , location etc.,) in Contacts Application as well Contact Provider.
View 3 Replies View RelatedI am getting reports of 'Can't create handler inside thread that has not called Looper.prepare()' once I added ScoreNinja to my Android app, and released it to the market. It seems that it isn't happening all the time as the ScoreNinja highscore has lots of entries from users. I have looked on the web for help but there are no clear directions on what to do. I have used the ScoreNinja code exactly as shown on the scoreninja website. BTW If anyone is having problems with ScoreNinja only displaying one score, check to see if the launchmode is not set to 'singleinstance' in your manifest. This fixed it for me!
View 6 Replies View RelatedAttempted to update to 2.1 , everything appeared to go ok , but after restarting i saw that firmware was still in 1.6 .
The only effect was that my intended apps etc. were gone.
According to SE PC Companion the phone is up to date.
According to the phone's software update a new version of Android is available ..
Using the SE PC Companion to repair ( ca'nt install since aIready have the latest sw according to SE-PCC )
results in installation error when reaching close to the end of the prepare phase.
I'm considering the possibility of selling my Behold 2 phone and getting something a little better supported (anything HTC, for example). I know how to flash the ROM back to the Stock, but, how do I re-format/prepare my MicroSD card in the phone back to it's factory settings?
And is there anything else that anyone thinks I will need to do in preparation for selling it?