HTC Desire :: How To Get Photo's Named By Date Instead Of Image Number?
Aug 2, 2010
I am taking a lot of pictures on my Desire, but having them names IGM1 IMG 2 etc isn't very helpful. Is there any way of changing some settings so the phone automatically names the pictures with the date instead?
View 1 Replies
Jun 3, 2010
I ask the above because I have put a couple of photo albums on my Desire and noticed that the first photo is the "oldest" photo. However, I have just renamed an album of 100 pictures into a specific numerical order and my Desire places them back into the order of "date picture taken" Does anyone know of a way I can get the pictures to be in the order of file name?
View 2 Replies
View Related
Aug 24, 2010
I deleted 5 or 6 photos from my gallery. Now when I scroll through my gallery where the photos were, is just a blank space. I deleted the pics thinking it would automatically compress the gallery together, not leave me with the blanks.
View 4 Replies
View Related
Mar 9, 2012
is there any way to make Android shows the date on the photo?
View 3 Replies
View Related
Jan 19, 2010
Android:how do i retrieve the contact photo,name,number from the address book and display it using a list view
View 2 Replies
View Related
Apr 9, 2010
i am implementing photoimage upload in sdcard in sdcard jpg image getting and in image uri retrieve data in bitmap in bitmap converting byte code this byte code sending to the database how can implemented this problem please some suggestion of implementation some example of source i am new in android t's very urgent , if anybody knows the solution.
View 2 Replies
View Related
Jun 2, 2010
I have a simple task (simple in other platforms, not in Android :-( ): take a photo and return its pathname to the caller. I searched a lot the net and tried many variants to the code. I'm aware of the "thumbnail image" bug and am trying to bypass it. The following code works, but its somewhat dificult to get the photo: the guy has to go to the media picker, click menu button, select "camera capture", take the photo, click back, and finally select the photo from the list. The good thing: the photo returned is BIG.
Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*");
startActivityForResult(intent, TAKE_PHOTO);
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
switch (requestCode) { case TAKE_PHOTO: if (resultCode == RESULT_OK)
try { Uri uri = data.getData(); java.io.InputStream is = getContentResolver().openInputStream(uri);
java.io.FileOutputStream os = new java.io.FileOutputStream(targetPhotoName);
byte[] buf = new byte[4096]; int r; while ((r = is.read(buf)) > 0) os.write(buf,0,r);
is.close(); os.close(); Launcher4A.pictureTaken(0,null);
} catch (Exception e) { String stack = Log.getStackTraceString(e);
AndroidUtils.debug(stack); } break; }
I also saw a code that (in theory) would do exactly what I need:
sourcePhotoName = Environment.getExternalStorageDirectory() + java.io.File.separator + "tmpPhoto.jpg"; targetPhotoName = s;
Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
Uri uri = Uri.fromFile(new java.io.File(sourcePhotoName));
i.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri);
startActivityForResult(i, TAKE_PHOTO);
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{ switch (requestCode) { case TAKE_PHOTO: if (resultCode == RESULT_OK)
try { java.io.InputStream is = new FileInputStream(sourcePhotoName);
java.io.FileOutputStream os = new java.io.FileOutputStream(targetPhotoName);
byte[] buf = new byte[4096]; int r; while ((r = is.read(buf)) > 0) os.write(buf,0,r);
is.close(); os.close(); } catch (Exception e) {
String stack = Log.getStackTraceString(e); AndroidUtils.debug(stack);
} break; } }
It works (almost) as expected: the camera application is shown, and after the photo is taken, the photo is returned to the application. However, it has two problems:
1. If I pass a folder inside my application's directory, when I press "done" button, the camera application does not return; it stays in the same screen until I press cancel. Seems that the camera application does not have permissions to write to my folder.
2. The image returned from this code is the Small Image (Thumbnail).
So, I now have a code that works and return a big image, but is somewhat burocratic to the guy to use (and also can lead to errors, if he selects the wrong picture), and a code that does what i want but returns a small picture. I'm using a HTC G2 with Android 1.6, and I have to use it because 1.6 is the requirement for my system. Ok, now the question: is there something I can do in code #2 to make it return the big picture?
View 4 Replies
View Related
Jun 21, 2010
You know when you call someone who doesn't have a photo linked to their contact it displays the green android guy. Well I really like what forum member sprint fun did with his avatar by making it into a OSU buckeye. I would much rather see that image rather then the green default android guy. Sprint fun has already said I could use the image, but I have no idea how or if its possible to set it as the default image for callers with no photo linked to their account.
View 11 Replies
View Related
Sep 5, 2010
I'm looking for an app that will allow me to view photos stored on my computer. I can access the computers on my home network from my Incredible using Astro or ES File Explorer "LAN" and open various file formats such as .pdf, .doc, .xls fine on my Droid; however, I am unable to open and view any type of image files (.jpg, .bmp, .gif, etc.) unless they are stored on my SD card or in the Droid memory itself.
When I try to open a image file stored outside the Droid, nothing appears on the Droid screen. I have installed several "image viewer" apps, such as Astro and 3D Gallery, none of which seem to be able to open remotely stored files. When I "click" on an image file, I see "Loading Image", but all that appears is a black screen with left and right arrow scroll buttons -- no pictures. Any advice, other than to copy and paste image files to my SD card, which then allows me to open and view them? I did get the 2.2 update.
View 1 Replies
View Related
Apr 8, 2010
I want to write a short app for getting some info from contacts, the first list screen I have should display the user Image (or an Image from resources if no such image exists) an the user display name. The problem is I don't seem to find a query that will provide me with the display name and a user id And the image URI in the same query. Moreover I'm aware of the fact that if the user has no image and the URI is empty or null i will most likely to get an exception while the adapter calls setViewImage(). Is there a simple way around it or should I override the setViewImage() or bindView() methods?
Also about the query, any chance I can make a single query for contact URI, _ID, contact_id and display name? my current queries: To get the contacts:
private Cursor getContacts() { Uri uri = ContactsContract.Data.CONTENT_URI;
String[] projection = new String[] ContactsContract.Data._ID,ContactsContract.Data.CONTACT_ID,
ContactsContract.Data.DISPLAY_NAME };
String selection = ContactsContract.Data.MIMETYPE + " = ?";
String[] selectionArgs = {ContactsContract.CommonDataKinds.StructuredPostal.CONTENT_ITEM_TYPE};
String sortOrder = ContactsContract.Contacts.DISPLAY_NAME + " ASC";
return managedQuery(uri, projection, selection, selectionArgs, sortOrder); }
If I have a contact id and want the image:
int _id = m_cursor.getColumnIndex(ContactsContract.Contacts._ID);
//try to retrieve the photo, if exists.
Uri photoUri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI,
m_cursor.getLong(_id)); InputStream is = ContactsContract.Contacts.openContactPhotoInputStream(m_context.getContentResolver(), photoUri);
Here I get from a cursor with _ID column the id and then creating the uri, I know I can get a row number but I'm not familiar enough with contentProvider to know how to join tables to get it all in one query (if even possible).
View 2 Replies
View Related
Nov 18, 2010
I would like an html5 page that runs in Android 2.2 Browser that I can take a picture using the phone's built-in camera and save it to a sqlite database as a blob.
View 2 Replies
View Related
Apr 29, 2010
I can't figure out exactly why this fails. The application has android.permission.WRITE_EXTERNAL_STORAGE permissions. I can create normal files with exactly the same name in the same location, but pipe creation fails. The pipe in question should be accessible from multiple applications. I suspect that noone can create pipes in /sdcard. Where would it be the best location to do so? What mode mast should I set (2nd parameter) Does application need any extra permissions?
View 4 Replies
View Related
Dec 29, 2009
Most samples that I see appear to use an anonymous method in a call like button.setOnClickListener(). Instead, I'd like to pass in a method defined on the Activity class that I'm working in. What's the Java/Android equivalent of the following event handler wiring in C#?
View 4 Replies
View Related
Nov 14, 2009
For some reason, many of my Apps and programs have been renamed: It now appears that most are back to normal, but the Meebo App I downloaded still has the funny/odd name, com.something. Is there any way to fix this?
View 4 Replies
View Related
Nov 5, 2010
I can create a new preferences file by calling Context.getSharedPreferences(String name, int mode), putting some values in the returned preferences' editor, and committing. However, I don't see an interface in the API to remove the created file when I no longer need it. I've tried Context.deleteFile(String name), passing in the same name argument from above, but that returns false, indicating the file wasn't actually deleted. I'm using MODE_PRIVATE, if that makes a difference. Browsing the source for context's implementation of the editor doesn't reveal any clues either, as far as I can tell. Any ideas? The background here is that I'm allowing my users to save copies of their "current" preferences so that they can restore previously saved settings. When they don't want those settings anymore, I want to remove the saved preferences file so it doesn't take up space. At the moment the best I can do is an edit().clear().commit on the file, which I believe will remove most of the contents. Not as good as delete, though.
View 1 Replies
View Related
Sep 30, 2010
On my Vibrant, I created a file called .nomedia with a view to place a ringtone file in it so that the ringtone file would not show in the music player library. However it has had the effect of hiding ALL my media files from my phone - non are accessible. When I mount (to a Mac) I cannot see a file named .nomedia and so cannot delete it, but all my media files are there. How to I get rid of the .nomedia file i cannot see?
View 11 Replies
View Related
May 12, 2010
check out the (pre desire,was on Nexus) gallery app for your photo's desireables..have just added it and it moved my pics over and is a much nicer layout.
View 2 Replies
View Related
Nov 17, 2010
I have referred the article (at http://www.developer.com/article.php/3850276 ) for implementing the native calendar control, but i would like to display calendar also on the screen and also User can able to select date, and after selecting date user can also be able to event on that selected date.
So is there any way to display calendar (month view) in Android ?
View 2 Replies
View Related
Nov 1, 2010
Relatively new Desire owner here (nearly two weeks). I got the Desire as a replacement for my first Android phone, the Samsung i7500 Galaxy (grrrrrrr) as I complained about the ongoing issues with that handset (dialpad issues, lack of support from the manufacturer, etc).As it was a replacement during my contract they provided an as-new handset (refurb/return under O2s 14 day return period). Phone is def as-new, not a mark on it, screen protector, new battery and charger etc. However it came in a plain box, and so I don't know if it's an AMOLED or SLCD handset. Also, I have no idea when it was manufactured. Not an issue as I have a warranty, but it's a point of curiosity. Anyone know how I can find out both of these points?
View 12 Replies
View Related
Apr 18, 2010
I hope someone can help, I appear to have deleted my date & weather widget from my home screen I was touching the screen to scroll but for some reason it dragged the widget and binned it.I have to admit Im still getting used to having a touch screen.is there any way that I can get this back without having to do a factory reset I tried to add the weather widget to the home screen but its not showing as the one that was there.
View 2 Replies
View Related
Sep 23, 2010
On my previous phones whenever an alarm is due to go off the next morning an alarm icon is shown on the desktop and when you view the keypad lock screen you get the same thing. This meant that last thing at night I could just press a key to get the lock screen and confirm my alarm was set to go off and at what time.
I can't seem to find a way to see this easily on my Desire.
On my lock screen I get an alarm icon to show that an alarm is set, along side the current time in the notifications bar along the top and then I simply have T-Mobile, Current Time, and the current date on the lock bar.
Now I have just disabled all my alarms except for one on Monday morning (this is Thursday as I type) and I still have the same icon in the notification bar and if i click on the HTC Sense clock widget I simply get told that there is an alarm on again coupled with the current date. This means that if i glance at my phone I can't immediately see that my morning alarm for Friday isn't actually set, I have to go into the alarm clock set screen to check.
I have read on another site that one of the changes in froyo was "Lock Screen - Instead of just the time of the next alarm time. It also shows which day."
Does this mean T-mobile have disabled that feature?
Does anyone else see the date of the next scheduled alarm on the lock screen?
I will have to look to see if there are any apps which can do this although I wonder if an app that messes with the lock screen will also affect battery life.
Now that I think about it I am not sure at what point my previous phones (Sony Ericsson k800i and C905) showed an alarm icon again. So if on Saturday night it showed no alarm for Sunday, but on Sunday morning 00:01 would it then display the icon for Monday? I can't remember ever having noticed one way or another.
View 6 Replies
View Related
Jun 28, 2010
On my Palm Treo 680, I was able to type a keyboard shortcut or macro to put in the current date and time in a string of text.On the Palm, I typed ".dts" and it returned a macro of "@@ds @@ts", which then returned the current date and time, using ShortCut5 in Prefs. Even on the PC, I use "zds" to return a similar date and time stream - this is using "autoworkers" - 28/6/2010 2:21 PM.Is there some sort of keyboard macro or auto text or shortcut method to do this with the HTC Desire ?(I will probably be asking a lot of "on the Palm Treo 680 I could, how do I on HTC Desire" questions, as I migrate to my new device. Please bear with me)
View 2 Replies
View Related
Sep 9, 2010
My messages are showing the date as 09/05/2010, not 05/09/2010. how I change this?
View 4 Replies
View Related
Aug 5, 2010
A few days ago my Desire flashed up a warning that in future I should unmount my SD card correctly to avoid losing date. I hadn't touched it or even connected the phone to the PC.
Two days later and I wake up to find my phone has gone flat overnight and turned off, when I turned it back on it warned me that my SD card is blank and displays a permanent SD card symbol with question mark at the top of the screen.
Apart from my photos/music/video clips etc, what else should be on the card? I've noticed voice navigation doesn't work any more, the turn-by-turn just chimes at me to tell me a junction is coming up, also I've lost all my bookmark screenshots. I'm guessing there is a load of software on there such as HTC Sync?
I was hoping to use one of the free data recovery programs to see if I can recover my stuff...but tried a Sandisk demo one and it said it couldn't find any files to recover.
Only other possibility is I have 'wavesecure' installed, but once I realised you had to pay for it I left it alone. Only the backup facility is available on the demo mode, will it have done this automatically meaning I could pay for the app and be able to restore the data, or do you have to instigate the backup manually?
View 4 Replies
View Related
Jun 5, 2010
I can't seem to figure out how to get the date beneath the time on the home screen displayed. Any ideas?
View 2 Replies
View Related
Jun 17, 2010
Do anyone have a file in the root directory of your SD card named search.trace? I have one that is about 8.5 megs. I took a look at it but it didn't look like the entries were specific to a particular app. Looks like some system log. Anyone know if there would be a problem deleting it?
View 2 Replies
View Related
May 8, 2010
When I enter new events in the PC-sync calendar on the phone, I can enter (or modify) the date. The dialogue box that appears when I do this shows the date in MM-DD-YYYY format. I've checked all the settings that I can find, and I'm sure they're all set to UK/British. Am I missing something, or is it not possible to change this?
View 2 Replies
View Related
Aug 16, 2010
First time visitor to this forum. And yes, I tried searching but my PC is slowwwwww and was taking a while to get a page loaded.
I am about to go an pick up my new HTC Desire and wanted to know what the easiest way would be for me to transfer my Contacts/Emails to the new Desire from my iPhone 3gs.
Also, I play World War on iPhone, do you know if World War is available in the App store for the Desire?
View 1 Replies
View Related
Jul 18, 2010
My friend just lost his Desire at an airport. The pattern lock is active, but that does nothing but protect the data on the phone - Not SD. The first thing they would do is to switch the phone off and replace the sim.
Now here is my question : Is there an app that will send an sms to a preallocated number if the phone is booted up with a different sim? I know some Samsung phones can do this. But having an app that requires your own sim to be able to find it if stolen is quite pointless.
View 7 Replies
View Related
Aug 17, 2010
When I try to send a photo by MMS the phone compresses the image to 8kb when it can send up to 300kb, obviously the image quality is rubbish then.
View 1 Replies
View Related