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.

Android :: Inconsistent Handler behavior

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


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:


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

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

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 :: 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 :: 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 :: 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 :: 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);


View 6 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.


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

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

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 :: Set URI Handler ?

Aug 12, 2010

I am working on an application wich has its own URI prefix. (dchub:// in this case) is there a way when someone open his browser, clicks on a link starting with dchub:// my app starts using this address? so far found a lot of examples the otherway around opening the browser from your app but thats not what i'm looking for.

View 1 Replies View Related

Android :: How To Set Notifications Behavior On EVO?

Jul 13, 2010

Does anyone know how to set the notifications behavior on the EVO? Specifically with Google Talk? I would like the phone to beep at me only once when someone sends a google talk message, and then not ever again for the following messages until I unlock the phone's screen and reactivate the google talk app. I think it already works this way for email, but not for Gtalk. Can this be done? And, I already know that if I open up the chat session, the sounds shut off on successive messages. However I would like it to stop the beeping without opening the chat window.

View 1 Replies View Related

Android :: How To Implement A Handler

Jul 20, 2010

I've got 2 classes GLLayer and GLCamTest. I'm attempting to run a method located in GLCamTest...


I'm looking to run in on a thread from GLLayer but from what I understand I need a Handler..


I'm starting the Thread from within public void onDrawFrame(GL10 gl) { my question is how would I implement said handler? I've read but I still don't really understand how I'd implement it.

View 1 Replies View Related

Android :: What Exactly Is Handler And Loopers

Jun 29, 2010

I am very confused about handlers and looper can anyone plz explain it in simple terms to me any good links would be great.

View 3 Replies View Related

Android :: Handler Vs AsyncTask

Mar 26, 2010

I'm confused as to when one would choose AsyncTask over a Handler. Say I have some code I want to run every n seconds which will update the UI. Why would I choose one over the other?

View 3 Replies View Related

Android :: Customize Spinner Behavior

Apr 21, 2010

I want to customize the spinner behavior a little bit. I want to add a couple of buttons at the end of the drop down menu that is displayed when the user selects the control. Any idea how this could be done?

View 4 Replies View Related

Android :: Odd Behavior With A Search Activity

Oct 24, 2009

I have a package with two activities

1. A main activity 2. A search activity

The search activity is invoked by a search suggestion provider in two possible ways

1. By clicking directly on a suggestion invoking the search activity through a VIEW action 2. By clicking on the explicit search icon invoking the activity through SEARCH action

If it is invoked through SEARCH I stay on the search activity and show some text to the user. Now when I click the back button I go back CORRECTLY to the home page.

ODD Behaviour: However if I came to the search activity through the VIEW, I invoke a browser activity and call finish() on the search activity. Now I have the browser in my view. If I now go back I would expect to go back to teh device home page. But from now where the "main activity" is showing up.

I see in the logcat a message from ActivityManager indicating

moveTaskToBack: 8

I have tried various flags to invoke the browser activity the tried flags include new task previous is top and I have also tried both a singleTop and otherwise with the SearchActivity as well. Same end result.

View 2 Replies View Related

Android :: Behavior Of Activity For Cases

Mar 18, 2010

1. I want to know the behavior of activity for the cases where onStop and on Destroy were not called like low memory situations.
2. I was registered my handler in on Create() and unregistering in on Destroy, what is the behavior if other thread sends messages to the registrants after the activity was killed by android without calling on Destroy. I know that those handler were not removed by GC as they are still referring by the thread.
3. Also suggest me to handle the above situations.

View 3 Replies View Related

Android :: Getting Right Highlighting Behavior In ListView

Sep 20, 2010

I have a ListView set up in single-choice mode like this:

<ListView android:id="@id/android:list"android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="#ff444444" android:layout_weight="1"
android:drawSelectorOnTop="false" android:choiceMode="singleChoice" android:scrollbars="vertical"

When I press my finger on a choice, the selection changes from white text on light gray to black text on orange. But as soon as I lift my finger, the selection reverts to the original state. I'd like that chosen row to remain in the black-text-on-orange mode when I lift my finger so that the user knows what was selected in the list (my onClickListener has captured the selected row, of course). Is there a way I can tell the ListView that I want this behavior or something similar so the user knows what item has been selected?

View 6 Replies View Related

Android :: Select Behavior Of TextView

Oct 18, 2010

I have a TextView which is inside a LinearLayout which is in the child position of an ExpandableListView. Without assigning a color state selector to the text view, the following behavior is observed:Text unselected - text paints as white Text selected - text paints as black.If I add a color state selector with a call to text.setTextColor(R.color.textcolorstatelist) then the following behavior is observed:Text unselected - text paints as black Text selected - text paints as black.I tried two versions of textcolorstatelist.xml and both produced the results above.

View 9 Replies View Related

Android :: AddHeaderView Changes Behavior On ListView / Way To Fix?

Jul 10, 2010

I got two kind of lists on 4 different views. All lists are clickable and starts an activity to read the clicked record. One is just a listview populated from the DB and works fine. The second is also a listview populated from a DB but has a addHeaderView. This makes the list forget where it was when you return from the listview's intent. If I remove the addHeaderView(); it works fine. Why does AddHeaderView changes or even malfunctions ListView's behavior?

View 2 Replies View Related

Copyrights 2005-15, All rights reserved