Android :: V2.1 Behaving Differently On Different Phones
Sep 26, 2010We have an application that runs fine on my Samsung Moment but crashes on load on my HTC Hero, both running 2.1. I thought Android was Android.
View 1 RepliesWe have an application that runs fine on my Samsung Moment but crashes on load on my HTC Hero, both running 2.1. I thought Android was Android.
View 1 RepliesI have a lot of Views where I have set a background image on the top LinearLayout and then I have nested a new linear layout below with a background that is semi-transparent. This works great in 1.1, but in 1.5 the transparency is just disregarded and this breaks my app as the text on top is now unreadable.
Is this a bug or a feature? Is there a better way of doing this? Very grateful for any tips!
Code example:
CODE:....................
The Eclipse build for my 1.6 application project is succeeding and the Ant build is failing. I'm looking for help on why they aren't behaving the same way.
We are developing on Mac OSX 10.5.8 with Eclipse 3.5 against SDK 1.6 + Google APIs. There are no setting changes in Eclipse, either at workspace or project level. Similarly, our ant is also a vanilla- flavored unmodified installation of 1.7.1. JDK is 1.5.0_22. The CLASSPATH environment variable is not set. JAVA_HOME is /Library/Java/ Home
The application was initially created by a team member using the Eclipse plugins. The application references two jar files, one of which has a dependency on javax.xml.bind.annotation.XmlSeeAlso, which is not defined anywhere in our code or in android.jar. The other jar file has an explicit dependency on android.jar. I generated the Ant build file using android update.
The Eclipse project builds an apk and runs the application in the emulator. I think this is incorrect behavior.
The Android project fails to build. I think this is correct behavior. MyClass.java:98: cannot access javax.xml.bind.annotation.XmlSeeAlso[javac] file javax/xml/bind/annotation/XmlSeeAlso.class not found
Any ideas as to why the two build methods are behaving differently? I would expect them both to fail.
I'm a little confused toward this one. People seem to have really varied reports about certain kernels and ROMs and whatnot working on their phones. For some, King's #1-3 are either really stable or completely unusable. Same goes for the Hydra kernels, or Skyraider, or Cyanogen.
But I don't get WHY this is the case. Take two Incredibles off of the HTC line and somehow they react differently to the same pieces of software. How's that work?
For my site I need to be able to tell the difference between when an Android tablet visits and when an Android phone visits. It needs to be detected before the page is sent to the user so using JavaScript to check the screen res isn't an option.At the moment I use this to detect an android device: stripos($ua,'android')Is there anything unique thar a tablet has in it's user agent?
View 1 Replies View RelatedFirstly I'm not able to download anything from the markets... the status just shows 'Starting download' and it just sticks there. This has been happening for a day or so, and I have two devices on different networks, so it must be the market and not me.
Also, I have some apps installed which the market doesn't recognize, it just shows the option to download as normal.
I'm trying to implement a ContentProvider wrapped around an SQLite database.
I've followed the tutorial here in building my ContentProvider:tutorial
I want to test what I have; so I'm attempting to instantiate my new ContentProvider, retrieve a Cursor from the query handler, and attach it to my CursorAdapter. Currently, I'm doing this in the onCreate of my Activity (I know this is bad practice, I'm just testing, I will move it to a service eventually).
CODE:.....
When I launch my application, the onCreate method of my extended ContentProvider gets executed. The database helper object gets created, the database gets created, and the onCreate method returns true. However, when I try to use my ContentProvider (with the code above), in the open() method the database helper object gets created, but getWritableDatabase() returns null. Also, when I call open(), the reference to getContext() is null.
Note: everything else seems to be working fine. When I call query, it hits my query handler, recognizes the Uri and attempts to run my query code (which obviously blows up because the database object is null).
Here are my extended ContentProvider and database helper:
CODE:........
I'm wondering if I should somehow be referencing whatever instance of MessagesProvider was created when I launched the application, instead of declaring a new one (p) and using it?
I updated the onCreate code in my Activity to the following, but managedQuery returned null:
CODE:......................
A few days ago I was trying to fix this issue: I have a header (three ImageButton's) and a ListView. If I use the dpad, pressing DOWN to focus the ListView, the ListView shows as selected the seventh or eighth row, not the first one.
What I need to do is that the first element of the ListView get the focus (or selection) when I use the dpad, from another screen component, but instead, the seventh or eighth is selected.
I had minSdkVersion=3 in my manifest. When I changed it to minSdkVersion=4 it worked as expected (first row selected). Don't know why, but there is a difference between both.
I've been trying to figure out how to make some sense of a dumped XML layout, and it's progressing 'pretty good'. The only thing I'm currently unsure about is the following:
When I use the command:
aapt dump xmltree <pathofapk> <pathofxmlfile>
I get the following result:
CODE:.............
That's all good, but what I'm trying to figure out is how to convert the following code into the XML layout file:
CODE:.................
Converting those values to decimal would result in:
CODE:.................
All good, but I've been trying to figure out what the (type 0x5 means). With all other types, the result is defined in the Android.util.TypedValue.class file
Decompiling that, gives the following result for 0x5:
CODE:...............
Makes sense, in a way. But, I need to know what kind of value it is, so looking down, I find the following value:
CODE:.............
But, when I try to use 2561mm and 1025mm (It's a tad much anyway, 25cm is.. larger than my screen), The whole screen is filled with the 'parent LinearLayout'.
I am using OpenGL ES and drawing a triangle strip with 4 vertices. The texture I'm drawing was loaded from a PNG using BitmapFactory.decodeStream. I'm confused as to why my images look so bad. I took a screenshot and made the following image, which shows the on-device rendering on top and the actual image on bottom:
http://n4te.com/temp/imgDiff.png
Any idea why there is a difference? I have tried a bunch of different settings but I can't keep it from looking bad.
So I would like for my Google Voice number to ring differently than my regular carrier number. I give out the GV number for business use and my regular one for personal/friend use.
So does anyone know if it's possible to have a separate ringtone? I see under the GV settings area "Sync and notfications - Select Ringtone" but it doesn't appear to work when I call the number. Any ideas?
(I'm on android 2.1 if that matters.)
Did anyone encounter this problem? Particularly, I have a dialog style themes for a few activities and these come up as expected on the emulator, but are full screen on the device. The theme I a using is actually an extension of the basic dialog theme (Theme.Dialog). I did not check with the original one.
View 3 Replies View RelatedThis questions comes as my team is about to under-go development for a mobile app targeting iphone, android and qt. We aim to complete the iphone version first, and then port to android and qt, and it would be great to know any tips or ideologies to grasp/employ from the outset, that would make the porting process as seamless as possible.
I'm sure there a few of you who have completed their iphone version of an app first, and then gone about developing an android version. I am keen to know any of the hurdles that you encountered, or things you wish you knew from the start.
More specifically, the app we are making will contain forms and some visuals(charts)
I found event handler: dispatchTouchEvent(MotionEvent) works differently between G1 & emulator when finger is holding on touch screen.
I have a class inherited from RelativeLayout and override public boolean dispatchTouchEvent(MotionEvent event) method. After I touch & hold on the touch screen, in emulator I got MotionEvent.ACTION_DOWN event only. But in G1, I got MotionEvent.ACTION_DOWN first and then MotionEvent.ACTION_MOVE continuously, even if I try my best to hold still my finger tip.
I wonder if this is because there is pressure field in the MotionEvent. Because the blood pressure on finger tip changes continuously with heart beat, so no matter how still my finger is, the pressure value still changes. But I wonder if all kinds of touch screen have pressure factor in their touch event? Will all touch screen driver emit touch event continuously when finger is holding on the screen?
I installed Froyo 2.2 and now on the home page when I press the "search" button it only searches internet. On 2.1 this would search my phone, calendar, contacts.... as well as suggestions for internet. Anyway to turn this feature back on? Somethnig must have gotten reset.
View 2 Replies View RelatedIs there an app that lets you easily move your apps and info from an old phone to a new one?
View 5 Replies View RelatedI was just having one of those moments of thought about switching my phone from an Incredible to the Droid X, still tossing the idea around, but say I do....what happens to the apps that I bought on the Incredible...would they be useable on say a newer Android based phone?
View 4 Replies View Relatedjust a quick question, I exchange files via bluetooth for work purposes just wondering iff there is an application to send files to all types of phones as Im having problems sending photos, videos, music to various of phones i.e. Nokia, Blackberry, Samsung and so on.
View 1 Replies View RelatedI'm as I'm deciding whether or not to get the iphone 4, and I'm wondering if any exciting Android phones will come to the AT&T 3G network. I'm planning on staying with AT&T as I'm grandfathered into the unlimited data plan and I do like their coverage and being able to use voice/data simultaneously.
View 3 Replies View RelatedI'm wanting to move over from symbian. Been a happy user for many years, but Nokia simply seems to be heading for a fall in all respects.This silly Ovi thing which will never take off, and the rapid decline of the quality and innovation of their handsets is the final nail in the coffin for me.However, I can't see any Android handsets that do it for me.While I think the operating system is miles better, there seems to be a massive drawback for Android phones - the imaging.There's not a single one with a decent camera - the hero and galaxy both have 5mp, but the images taken by them are nothing in comparison with all the Nokia generic 5mp CZ ones.So is there anything coming up that I would like? I noticed the Samsung behold 2, but that seems to be US only.Not to mention it might not be an better than the galaxy camera.I really don't want to go back to Nokia, but since I use my phone as my main camera, it has to be reasonably good. I know about the upcoming SE beast, but that's got a 4" screen, and I sold the i8910 because it was simply too big to comfortably operate.So.is there anything that could interest me? All I can see is the behold 2, and like I said,that seems to be US only (I'm UK).
View 4 Replies View RelatedThere is this article stating that SlingPlayer Mobile for Android is coming out tomorrow. Check out the link.
SlingPlayer Mobile for Android ready to entertain you for $30 starting tomorrow.
These days it seems like all you hear about are Iphones and Droids. Are Windows OS phones on their way out?
View 2 Replies View RelatedMy girlfriend is on Rogers with a Milestone. Both phones are great, but I am curious to know if there are better phones available and unlockable? The N1 is fantastic, but its painfully tiny storage space really kills the experience. Same goes for the Milestone.It would also be great to have a higher quality video capture and maybe even a front facing cam.So my question is, has anything recently launched that is the latest and greatest (and of course unlockable) or is anything coming out shortly.
View 6 Replies View RelatedIs there a way to get the HTC clock on other android phones?
View 3 Replies View RelatedWe need to buy some phones for android development for our university. As it is not for personal use and only for android development for students we prefer NO service plan or two year contract. We plan to buy few Motorola Droid and HTC G1 initially and other android phones in near future. Can you Please Suggest where can we buy Android phones.
View 4 Replies View RelatedI currently have the Nexus one but want something different like a qwerty sliding keyboard with similar screen size. I did a little search and the only thing that comes close to its screen size is the Motorola Droid? Droid looks outdate as I think its been out for awhile now, so my question is are there any new phones coming out with large screen with qwerty? Or any phone on the market now that is worth looking at? Must have larger screen
View 3 Replies View RelatedMy understanding is that the GPS refresh rate for the Android phones (and most phones in general?) is 1 HZ (once a second). I read on a forum for a paid app that I use on my Hero that there's talk that 2.0 or 2.1 or possibly even just a future release will support the use of Bluetooth GPS receivers with will allow for the 5HZ GPS refresh rate or even newer standards as they come out.Has anyone else heard this or know of any more details related to this?
View 1 Replies View RelatedIs this correct?A user has reported this to me.I was wondering what the 1.5 public release date was since I haven't had a chance to update my software for 1.5 yet.I thought it would be end of May, but people already have it apparently.Furthermore,even if I download the 1.5 SDK,is there any way to test my code on my phone with 1.5 before the 1.5 upgrade is pushed to my phone.and when will that be anyway?I was surprised to have a user report that his new G1 was using 1.5.Does this not come as a surprise to others?
View 7 Replies View RelatedI've been looking around to see which brands have Android phones available that can run plain vanilla 2.1 or 2.2 Android.
So far, haven't found many:
- Google: Nexus One (2.1/2.2)
older versions:
- HTC: Magic (1.6 if I'm not mistaken)
- Samsung: i7500 Galaxy (1.5/1.6)
If any of you know other phones running vanilla Android, please help me update my list.
I'm also interested to know if a vendor's custom shell can easily be switched off to get the 'vanilla experience'. I've heard that that is no longer the case at least for HTC Sense.
I found a video which showed that by just turning off the Sense process, and then hitting the home button, you can stop the sense interface (though this may apply to the launcher only). In that case, HTC's Sense-equipped phones may qualify
Is it true that ANY Android phone can be used for App development and testing? I'm trying to find some inexpensive off-contract hardware for development and testing of our Apps. I've found some devices I can buy New with No Contract for $150 to $300 (like the HTC Aria or the Huawei Ascend). Is there anything that would prevent me from using these devices for USB debugging and app testing? I guess I'm concerned because I've read how the HTC Aria has been locked down by AT&T to limit applications. I suspect this won't affect me loading apps using ADB, but I'd like to be sure.
View 2 Replies View Related