Android :: Inconsistent Results From Date Additions Loop

Dec 6, 2009

I am running code to return date-based calculations. The method is designed to calculate the number of work days given a beginning and ending date and I pass in the elements of the dates, create two calendar objects from the two dates and compare them.

Tell me if there is a bug causing inconsistent results from

c2.add(Calendar.DATE, 1);

or possibly the Calendar.after method ...?

c2.set(ccyy, mm, dd); c4.set(ccyyNew,mmNew, ddNew);

c4.after(c2)

Android :: Inconsistent results from date additions loop


Android :: Same Code & Phone Models - Inconsistent Results

Dec 14, 2009

I recently added a feature to my app that allows the user to send a report via a message chooser (all have chosen gmail) that helps mitigate the fact that I don't have all the physical phones to test on. Execution worked as expected on my G1 and the emulator, however, to my horror as users began sending them in most of them were incomplete! Pseudo-code of what I am doing is as follows: On my phone and the emulator, all of the packages are inserted into the email. However, most of the emails I get, even from the same exact phone model/carrier/OS version, only contain "Text1". Users that have automatic signature insertions even have that at the bottom, so it's not that the email is being cut off somehow, it's that size is apparently 0. That is the only thing I can think of. Every once and a while I will get a full email though. This frightens me because what other APIs run fine in my testing but not user phones? What's going on here?

View 2 Replies View Related

Android :: Calendar Control - After Selecting Date Can Also Be Able To Event On That Selected Date

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

Android :: Why Docs Are Inconsistent

May 27, 2009

I have looking for something and found these inconsistencies in the online documentation

Now when I try to find the 'notifyWithText' api, I could not find it.

Another example is IntentReciever. I just want to know is this class exists? As I found code in this forum itself using IntentReciever, but I cant find this class in the doc.

And why standard intents like action android:name="android.provider.Telephony.SMS_RECEIVED are not documented?

View 11 Replies View Related

Android :: Inconsistent Naming For SDK 2.1

Apr 6, 2010

I find that the name of google maps api directory in 2.1 platform is wrong google_apis-3-r03 while all others google_apis-4_r02 i.e - prefixed instead of _ used for release.

View 2 Replies View Related

Android :: Inconsistent Handler Behavior

Sep 30, 2010

I am using a handler inside my service to display notifications at a certain time using the Handler.postDelayed method. My application runs fine on the emulator just as expected satisfying all cases. But when I installed the same on my HTC Wildfire, it simply doesn't happen as anticipated. Notifications are displayed at a random manner after the scheduled time and some notifications even fail. I'm monitoring my service from the Applications > Running Services and still my service is active.

View 1 Replies View Related

Android :: Inconsistent Ringtone Behavior

Mar 16, 2009

I am trying to add ringtones to the media/ringtones folder from my application. If the phone is connected via USB to a computer or mounted on my Mac, the ringtones do not show up in the SD Card, nor in the Ringtone settings.

But if I run the application with the USB unplugged, the ringtones appear ok. This is not a problem with Ringdroid which does the same thing.

View 2 Replies View Related

Android :: Inconsistent Premultiply Behavior In Bitmap

Sep 28, 2010

I have noticed that loading an image into a GLTexture using

CODE:........

Will create a texture with premultiplied alpha. Not a problem, as long as I use glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA) to blend instead of glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) which will cause dark borders.

However, I've found that if I render text onto the Bitmap and convert to glTexture using:

CODE:........

The resultant texture is NOT premultiplied, and using glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA) will cause ugly over- saturated edges when blended into the 3D world. Blending using glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) makes it look right again.

To confirm this, I saved the bitmap into a PNG file and load it as a resource into a texture, and the resultant texture is premultiplied and renders correctly using glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA)

Is there a way to force the text rendering onto the bitmap to be pre- multiplied?

View 2 Replies View Related

Android :: IME Options Behavior Is Inconsistent Across Different Devices

Jun 4, 2009

I noticed that the imeOptions attribute on TextViews behaves inconsistently across different devices. For instance, setting imeOptions to "normal" has the following effects:

1) On the emulator and G1s running 1.5: The OSK will have a "Done" key and clicking it will simply close the OSK with no further action taken (this is exactly what I need)

2) On my HTC Magic (G2), also running 1.5 (of course): The OSK will have an enter key (showing the enter symbol instead of "Done") and when clicking it, the OSK will close and bring up the context menu of the text view... I mean, seriously. That is the last thing any user or developer would expect it to do.

There seems to be no way to simply close the OSK after entering some text on the G2, *except* when specifying flagNoEnterAction in imeOptions, which on the G2 does what "normal" does on the G1, but on the G1, this will lead to the OSK to not respond at all to the enter key (user has to hit "back" to close the OSK).

This is a complete mess, is there any way to have the OSK behave in a sane manner without resorting to hacks (like checking for device models and setting imeOptions programmatically)? Didn't Google say they cared about backwards compatibility before releasing Cupcake? I have nothing but trouble getting my app to look and behave identical on different Android models.

View 4 Replies View Related

Android :: SetChoiceMode - GetSelectedItemPosition & Inconsistent Behaviour

Feb 18, 2009

Got an activity that extends ListActivity. The list is backed up by a custom adapter that extends BaseAdapter. -- getListView().setFocusable(true); getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE); -- I do a simple (getSelectedItemPosition() == == ListView.INVALID_POSITION) check in onPrepareOptionsMenu() to disable the items that require an item to be selected.

Now, what I do after launching the activity (the action takes place under emulator, ver.1.1) an what it looks like: 1) Hit menu - the menu items are disabled - OK 2) Select an item with mouse wheel and hit menu - the items get enabled - OK 3) Click anywhere outside the list, repeat 2). The items don't get enabled - WTF? 4) Start from scratch, select an item hitting Del and moving mouse. The result is the same as for 3).

Why do these (3, 4) things keep happening to me?

View 3 Replies View Related

Android :: G1 System UIDs Inconsistent - None Of The Apps Work

Jul 2, 2009

About two days ago my phone started receiving and making all calls as 'unknown'. I decided to wait to go straight to a T-mobile retail store. But today July 2 at 10 am. none of the apps where working, the browser, text messages, none. the phone became crazy I started to receive error messages on the screen. Finally decided to restart the phone, when it turned on again i received the message" g1 system UIDs inconsistent, you need to wipe your data partition or you device will be unstable." it had the I'm feeling lucky button, when pressed, the phone reset itself, most of my apps where gone, but it did not help or fixed anything. Im desperate I love my G1 phone i bought it the next day of the release, it worked great, got my 1.5 update worked fine, 'till now. the problem is where to go for help. If it is an OS problem is it google's fault or T-mobile? I have a flex pay account when i bought the phone. I bought it full price almost $ 500 so to get a new G1 since i am a student i cant afford it. I feel very sad not being able to use it or fix the problem now all my data is gone all my apps, :( i cant even go on the market app to donwload them because i receive the error message of force close.

View 2 Replies View Related

Android :: Layout Weight Is Inconsistent For Horizontal And Vertical Orientation

Apr 8, 2009

I have played around a bit with the xml files for creating layouts and can't explain the behaviour of layout_weight when using it in a LinearLayout that has orientation="vertical"

When creating a layout that is horizontal everything follows the documentation, that a child would get more space if it's has the highest value.

But the following code for vertical orientation, give more space to the item with lowest weight.

CODE:..........

And the question is: Is this a bug or just a feature that maybe need more documentation?

View 2 Replies View Related

Android :: How To Convert Date Saved In String Format To Date Format

Jun 29, 2010

I am trying to convert string to date, and then I ma saving this date in a file , which saves in the following format:Mon Jun 21 16:31:24 Asia/Karachi 2010.and then when later I read this date from file as a String, I again want to save it to a Date,

View 2 Replies View Related

HTC Legend :: Inconsistent Wifi

May 10, 2010

I recently bought a HTC Legend off ebay since it's not available in Australia but I'm having trouble with the wifi on my home network. It works on occasion but fails most of the time. Sometimes it won't connect at all and just says "unsuccessful" whereas other times it might tell me it's trying to obtain an ip address and then not work.

I've got two computers connected to my wifi as well so it's not my actual connection. Is there such thing as devices competing for wifi? because the few times it's worked was when I was changing my computer's wifi but it sometimes doesn't work even with my computer off!

View 3 Replies View Related

Samsung Captivate :: Inconsistent USB Behavior

Aug 10, 2010

Sometimes when I plug into my USB car charger, it seems to detect it as a computer, and asks what USB mode I want to use. I can only choose "mass storage", because anything else causes the phone to go into MTP mode & won't go away until I unplug the USB cable. Other times, it just starts charging & doesn't ask for a USB mode. The big issue is that when it does ask for a USB mode, and I set it to Mass Storage, apps like Listen suddenly can't "see" or use the internal SD card & bitches, "No SD card" and stops playing. Can't listen to podcasts in my car? Deal breaker! Why is this so random?

View 6 Replies View Related

KitKat 4.4 :: Why Microphone Icon So Inconsistent

Oct 25, 2013

Take a look at the microphone icon on a stock 4.3 Jelly Bean home screen. Open up Google now and the same icon is there. Now take a look at the Play Store. In Play Magazines as well you the mic icon from Ice Cream Sandwich. The Play Store has (somewhat) recently undergone a significant upgrade when Jelly Bean was at a mature age of version 4.2. It will updated again in time for 4.4 KitKat, evolving into line with current Android design guidelines featuring the sliding navigation drawer. Will Google then update the mic icon or will they revert it back to the ICS style in the future?

View 2 Replies View Related

General :: Push Notifications Inconsistent?

Dec 13, 2012

any Android device I had had never really has had good push notifications. Basically, it is hit or miss, mostly a miss. Various apps I never seem to get notifications, such as the eBay app. Notifications are enabled and it seems like they only work if I am actually in the app, but if it is not open, no notifications. Or same with Words with Friends, it pretty much never sends me a notification and when it does, it could take 30 minutes for it to show up while my iPhone would show up immediately. Even when using the Lumia 920 for a few weeks, the notifications came through with out delay.

View 2 Replies View Related

Motorola Droid :: Inconsistent Sd Card Mounting Via Usb

Jun 9, 2010

I have the latest Motorola drivers on two different laptops, but sometimes my SD fails to mount on the PC when I plug it into the USB. I am able to mount most of the time and do normal file operations, no problem. But sometimes I go into failure mode where no matter what I try the SD won't mount. I try rebooting the phone and laptop, trying my other laptop, uninstalling an app I suspect is causing a problem, but probably isn't, etc. Then, sometime later, for no apparent reason, I'll plug the phone into the laptop and suddenly it's working again. I see threads about SD mounting difficulties, but none that address an intermittent problem like I'm having. Any ideas about diagnostics, fixes, or preventive measures?

When it fails to mount, the symptom is that with many attempts, the phone will make the mounting sound repeatedly, but never mounts. Other times, it makes the sound once, as if it succeeded, but it doesn't mount. I've checked the log with aLogcat, but I see nothing that I can tell might be informative, but then I'm not an expert with that stuff.

I must say, the error is really vexing. Mounting works well enough to use the SD card for transferring files, but then just when you need it (to transfer something back) it fails.

View 7 Replies View Related

HTC Desire :: Inconsistent Data Access On Unrooted?

Jun 17, 2010

Having really inconsistent data access on my unrooted HTC Desire/Orange.

Normally either 4 things happen:

1. The phone constantly flicks between 3G and H.
2. The phone will just hang in 3G/H
3. The phone says there is no data connection.
4. Reluctant to use G when 3G appears to be unavailable.

At first I thought it was my phone but really it only happens in certain places which indicates a signal issue. This is North London though, not countryside.

However sometimes rebooting the phone or reconnecting the data works, which indicates a phone problem. However reconnecting the mobile can take a very long time which indicates a signal problem.

Then the other day I was playing with other SIMs when mine just would not connect. My friend's Virgin Mobile worked fine. Then I tried a spare Orange SIM card and it went straight into G and stayed there. I think it could be a 2G SIM card. The SIM card appeared to get a higher signal strength as well. Could my SIM really cause a difference?

It might be an app, but if is it will be hard to track down.

Changing my phone will be a hassle i'm sure so only want to do this in the last resort. I can't seem to nail the problem down. Does anyone else have data problems with their Desire on Orange? Especially in London?

View 49 Replies View Related

Samsung Epic 4G :: Battery Meters - All So Inconsistent Or Buggy

Sep 3, 2010

I've had my phone unplugged since 11AM this morning. It's now 8PM. My battery meter shows 1h 30m since unplugged (I think this is the built-in status from the OS). Additionally my battery widget shows 26% but the blue batter in the top corner shows 1/2 full. Are there any good battery meters out there that I can trust? Is anyone else noticing wild inconsistencies in time's and battery meters?

View 15 Replies View Related

HTC Incredible :: Inconsistent Delivery Of Texting/sharing Photos

May 22, 2010

I am having inconsistent delivery of photos via text/mms.

I am using Handcent.

After the picture resizes and I click send I initially get a message in the notification bar telling me that it was Unable to Deliver - Retrying.

This happens EVERY time, however, in some cases the picture/mms seems to go through while other times it doesn't. I check the delivery reports and there is no confirmation that these mms messages either get delivered or not.

Has anyone experienced this and is there a solution? Using the settings, I've decreased the default picture size and I increased the allowable size of the file able to be delivered. This hasn't made a difference.

View 15 Replies View Related

Android :: Get Web Results From HttpClient?

Jun 19, 2010

For example: Say I searched something on the Walmart homepage. Like this. How would I retrieve the information from the first product listed. Information like product name, price, details, rating, model. And how would I search in the box.

The only way it seems like to me is to replace http://www.walmart.com/search/search-ng.do?

search_constraint=0&ic=48_0&search_query=someProduct&Find.x=0&Find.y=0&Find=Find.

Then replace someProduct with the seach and call it in an HttpClient.

View 1 Replies View Related

Android :: Parsing Kml And Null Results

Sep 7, 2010

I changed test.kml to test.xml.

When i tried this XmlResourceParser x = this.getResources().getXml(R.xml.test);

It returns null.

What am i missing?

Below is the kml.

CODE:.....................

View 2 Replies View Related

Android :: Backflip Testing Results

Apr 1, 2010

I got my app to install on the Backflip and started testing it. On the emulator everything appeared ok but on the Backflip there are a few notable differences.

I have edittext boxes which on the emulator automatically vary in size to accommodate the text. The text is a number, the max being two digits, i.e., 1-99. On the Backflip the edit boxes seem to be a fixed width and that width is larger than needed. Consequently some of the edittext boxes go past the end of the screen and can't be used or seen. This doesn't happen on the emulator.

I also have spinners. One set of spinners is created using android.R.layout.simple_spinner_dropdown_item populated by an array from array.xml. These spinners have the radio button showing and they work on both the emulator and the Backflip displaying a white background with black text.

The other spinner is created using int layoutID = android.R.layout.simple_spinner_item and is populated with strings from the database using an ArrayAdapter. This spinner displays ok on the emulator with a white background with black text. On the Backflip however, it displays the white background but with white text making the list essentially impossible to see. The list is populated because when I press on an item the background color changes to red, the text is white, and the program works ok.

My question is: Are these discrepancies peculiar to the Backflip or am I doing something wrong in the code? I'd hate to think all devices come with peculiarities that require workarounds. Hopefully I'm doing something wrong and hope someone can point out what it is. I'll post any code someone wants to see but right now I don't know what to post. Thanks.

I should add that when I use android.R.layout.simple_spinner_dropdown_item for the other spinner the text shows up ok but I now have the radio buttons which I don't want.

View 1 Replies View Related

Android :: When We See Results For ADC2 First Round?

Oct 21, 2009

Do you have any idea when we see the results for ADC2 first round? The official google log said that in several days we are able to continue with ADC2 phase 2 judging. 15 days has past since then and now news about the start of second round. Has someone any idea about this?

View 2 Replies View Related

Android : Couldn't Find Any Results / How To Get?

Nov 10, 2009

I did a search around but couldn't find any results which is surprising. Or it could be me just not searching correctly. Is there an App that allows me to blog via Blogger?

View 2 Replies View Related

Android :: Results From Alert Dialog Inline

Oct 10, 2010

Is there a way to get alert dialog results inline (like you can with most dialogs)? I want to determine what to do next inwith a dialog, but I can't figure out how to get the results back in the same method that I create the dialog from thus allowing me to continue in my logic flow.

void doStuff() { dlg = CreateDialog() dlg.show(); // shows the dialog and doesn't return till the dialog is dismissed

if dlg.getResults() == this) { doThis(); } else { doThat(); }

}

View 4 Replies View Related

Android :: Geocoder Not Returning Results In 1.5 Preview

Apr 16, 2009

I do not get any results from the Geocoder in the 1.5 preview release. Any information on this? In the maps application it works but my calls simply return an empty list (no exception, all permissions I know of (in this case only Internet) are set.

View 7 Replies View Related

Android :: Go Back To Search Results In Contacts?

Oct 26, 2010

Can anyone offer any advice on how to go back to search results in contacts? You do a search for a name and get 2 or 3 contacts with the same name, you look at one but its not the one you wanted, you want to go back to the search results to look at the other option but you can't, it takes you back to all contacts, you are left cursing that you have to re-enter cuz now you are driving. What is a girl to do?

View 4 Replies View Related

Android :: Getting Magnetic Field Results As Degrees

Dec 12, 2009

I'm working on an application that will randomly point an arrow in a direction, and have that arrow maintain it's direction if the device is moved. All I want to do it get the magnetic field readings as degrees and I can do it from there. The problem I'm having is getting the magnetic field readings. I can't find any tutorials on it and the API demo on google's dev site uses deprecated code (figures, google's sample code is never n00b friendly).

At this point I've got this together but I don't know what I'm missing, all the examples I can find are using SensorListener which has onSensorChanged(int sensor, float[] values) but SensorEventListener does not support "float[] values"

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved