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?

Android :: setChoiceMode - getSelectedItemPosition & inconsistent behaviour


Android :: Linkify Stops GetSelectedItemPosition() From Working?

Aug 13, 2010

I have a ListView which has a TextView in the row. The TextView has been Linkified and has had setMovementMethod(LinkMovementMethod.getInstance()) set on it.

The ListView is no longer selectable and the ListView's getSelectedItemPosition() always return -1 .

Is there a way to know where the ListView has scrolled to in this case?

View 1 Replies View Related

Android : K-9 Notification Behaviour Change

Jun 15, 2010

In an older version of k9, when tapping onto a notification, it would open k9 but it would only show the unread emails.

for some reason its showing all emails including read emails, how'd i change it back to show only unread emails (across all accounts)?

View 2 Replies View Related

Android :: Default Behaviour Of The Back Button

Sep 17, 2009

what the default behaviour of the back button is, as far as the Android platform is concerned.

For example, in the Contacts Application, if I am creating a contact, I just key in a name, and the press back button, the contact is saved with only the name. Fair enough. But, I then edit this contact to include a phone number and press back button. This contact is updated which now includes the phone number. I again edit this contact. This time I remove the name, as well as the phone number and press the back button. I get a message saying, "Contact doesn't exist". In this case, it deletes the contact. :(

In the mail appllication, while composing, when I press back, it goes to the drafts folder. Thats good. But, if I just have to cancel this, and I don't want this to go to drafts folder. For this, I have to open the menu, and select "Cancel".

View 4 Replies View Related

Android :: Regarding Search Hard Key Behaviour With Progress Bar

Jul 28, 2010

When a progress dialog is displaying and we press search hard key it closes and moves to search bar of phone, even if if the progress Dialog setcancellable value is set false.

View 1 Replies View Related

Android :: SensorManager Strange Behaviour Of GetOrientation

Jul 7, 2010

I need to retrieve the orientation of my phone. At the moment i wrote this :

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

This code allows me to get the orientation of the phone if i leave the phone on a flat surface and i rotate it over the surface.

What i did not understand is why if i move the phone upwards the value of this.actual_orientation[0] ,which is the rotation on the zed axis as described [here][1], the value increases although there was no rotation.

Did someone know what happens?

Another strange thing..

I tried my application in the office at work and it had the strange behaviour i described before..
I tried in the same office(same situation) a compass app that i took from the market and it has the same behaviour of mine..when i moved the phone upwards the value changed consistently..
I tried in the same office(same situation) the i-phone compass and it didn't have that strange behaviour!

Then when i arrived at home i tried both, my application and the compass app of my android phone, and they worked!even if i move upwards the phone the value are stable...

View 1 Replies View Related

Android :: Odd Behaviour With Launcher's Task Stack Handling

Aug 6, 2010

I have an application with two activities, A and B. A is the root activity, which then starts B.When the stack looks like this: HOME > A > B and I select A from the launcher, I want it to resume the task without clearing the stack, so B is shown. Right now this is mostly working. However. In certain circumstances this occasionally does not work. What we see in this situation is that invoking A from the launcher will create a new instance of A and add it to our task's stack: HOME > A > B > A If we go back to home and select A again, we'll get another one: This happens if, and only if, we uninstall the application completely using the application manager, and then reinstall it, via a file browser. Installing the application with adb does not cause this problem to appear.In addition, when this problem manifests, if we then reboot the device, the problem goes away and everything starts behaving correctly! This is smelling suspiciously like a launcher bug can anyone shed light on this? This is using Eclair on real hardware (not the emulator).Update I have more information. It seems this is an Android core bug; see http://code.google.com/p/android/issues/detail?id=5277 in the Android bug tracker. Apparently running an application just after it's been installed by pressing the 'Run' button will run the application in a subtly wrong way. It's also still extant on Froyo, not just Eclair. Does anyone have any suggestions as to any possible workarounds?

View 1 Replies View Related

Android :: How To Override ENTER Key Behaviour Of Virtual Keyboard?

Jul 20, 2010

I want to override the behaviour of the ENTER key of the virtual keyboard so that:

* when there are more fields on the screen, it 'tabs' to the next field.

* when it is the last field of the screen, it performs the default action of the screen

I've been playing with the IME options and labels, but just don't get what I want. Anybody a suggestion?

View 3 Replies View Related

Android :: Override ENTER Key Behaviour Of Virtual Keyboard

Jul 17, 2010

I want to override the behaviour of the ENTER key of the virtual keyboard so that:when there are more fields on the screen, it 'tabs' to the next field when it is the last field of the screen, it performs the default action of the screen.I've been playing with the IME options and labels, but just don't get what I want. Anybody a suggestion?

View 1 Replies View Related

Android :: Control Trackball Behaviour In Droid Views?

May 27, 2009

I have a FrameLayout view which contains one (MapView-like) control and some additional buttons overlaying it. (the layout xml is below).

I want to allow the user to pan/scroll the main view using not only touch but also the Trackball.
The problem is - using the trackball just switches the focus between all the controls on the layout, and I cannot seem to find a way to contain the onTrackballEvent to just the MainView. code...

View 3 Replies View Related

Android :: Intent Activity Crash Behaviour - App Restarts Halfway Through The App

Oct 13, 2010

I have a pretty standard iPhone app that creates a series of around 7 unique Activities initialised by Intents.

However if the app crashes on the 7th Activity, the app restarts on the users phone around the 5th activity. The problem then is the info gathered from activities 1-4 is null, meaning the app is useless and the only way to get the app working again is to either continually press back or else kill the process.

Why does this behaviour occur, and is there a way to force the app to start back at the first activity when it crashes.

View 1 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

HTC Desire :: Strange Calendar Behaviour Since Froyo Update

Aug 11, 2010

I downloaded the update yesterday evening, and today I've noticed something pretty weird in my calendar. On the phone (HTC Desire) every day is stuffed full of dozens of repeating appointments, mainly birthdays. These are set to recur not just on the day they should be on, but on every day of the year. These appointments are only on the phone calendar, not on my online Google calendar. What is even more bizarre is that these repeating events come from my old Palm OS device. I don't ever remember importing them to the phone!

It makes no difference whether I use the phone's built-in calendar or Jorte (which is what I usually use). Forcing the phone and google to sync makes no difference either.

Does anyone know what's going on here? The calendar on the phone is now effectively unusable.

View 1 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);

c4.after(c2)

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.

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

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

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







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