[android-developers] Re: getOrientation() madness

2011-08-21 Thread Adam Ratana
This isn't orientation, though, this is rotation. So your Tab in landscape is Surface.ROTATION_0, while your phone in portrait is also going to correspond to Surface.ROTATION_0. It's not the API that is lying to you. On Sunday, August 21, 2011 1:25:12 AM UTC-4, Greg Donald wrote: Using API

[android-developers] Re: java.lang.NoClassDefFoundError: android.os.AsyncTask

2011-08-21 Thread b0b
On Aug 21, 3:02 am, TreKing treking...@gmail.com wrote: On Sat, Aug 20, 2011 at 6:02 PM, b0b pujos.mich...@gmail.com wrote: Does anyone have seen such crash reports in its own apps ? I've gotten a few randoms that seem impossible like this. My current theory is a bad install that f***s up

[android-developers] Re: x and y

2011-08-21 Thread bob
I'm developing for 2.1, so that won't work? On Aug 20, 8:45 pm, Kristopher Micinski krismicin...@gmail.com wrote: http://developer.android.com/reference/android/view/MotionEvent.html public boolean onGenericMotionEvent (MotionEvent event) Since: API Level 12 (From View.) Kris On

Re: [android-developers] Re: getOrientation() madness

2011-08-21 Thread Greg Donald
On Sun, Aug 21, 2011 at 1:12 AM, Adam Ratana adam.rat...@gmail.com wrote: This isn't orientation, though, this is rotation. I wonder why they named the method getOrientation() then? -- Greg Donald -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Fix for GeoCoder throwing Unable to parse response from server ?

2011-08-21 Thread Davy
Hi, Many people seem to have raised this issue, where an application installed on a phone that is properly setup (internet permissions, valid latitude/longitude) is getting Unable to parse response from server errors when using the android.location.Geocoder. java.io.IOException: Unable to

[android-developers] Re: x and y

2011-08-21 Thread skink
On Aug 21, 8:25 am, bob b...@coolgroups.com wrote: I'm developing for 2.1, so that won't work? On Aug 20, 8:45 pm, Kristopher Micinski krismicin...@gmail.com wrote: http://developer.android.com/reference/android/view/MotionEvent.html public boolean onGenericMotionEvent (MotionEvent

[android-developers] Weird stack traces on Honeycomb

2011-08-21 Thread b0b
In the WTF stack traces series, I've got a collection of Honeycomb only stack traces that do not make sense as they happen in the platform. Some examples below. Anyone also see that in the crash reports ? VegaComb, 3.0.1: java.util.NoSuchElementException at

Re: [android-developers] Re: java.lang.NoClassDefFoundError: android.os.AsyncTask

2011-08-21 Thread Mark Murphy
On Sun, Aug 21, 2011 at 2:14 AM, b0b pujos.mich...@gmail.com wrote: I'm also starting to think it is due to a broken install of the app. In any case not API level related since min API is 7. It could be a pirated copy of your app, hacked to try running on an old version of Android or on some

Re: [android-developers] Weird stack traces on Honeycomb

2011-08-21 Thread Mark Murphy
When you say they happen in the platform, do you mean that your code appears nowhere in the stack trace? On Sun, Aug 21, 2011 at 5:20 AM, b0b pujos.mich...@gmail.com wrote: In the WTF stack traces series, I've got a collection of Honeycomb only stack traces that do not make sense as they happen

[android-developers] BitmapFactory.decodeStream() blocking

2011-08-21 Thread b0b
I just had a weird issue where BitmapFactory.nativeDecodeStream() called from BitmapFactory.decodeStream() blocked forever when trying to load an image (PNG) stored on the SD card (happened on 2.3.4). It's been also reported by a user on another Android version although I did never seen it myself

[android-developers] Re: Bizarre OpenGL performance on Samsung Galaxy.

2011-08-21 Thread calderwa
No-one experienced this or have any ideas? On Aug 18, 8:54 pm, calderwa alancalderwoo...@googlemail.com wrote: Yeah, no problem: [ro.build.fingerprint]: [samsung/GT-I9000/GT-I9000:2.3.3/GINGERBREAD/ XXJVK:user/release-keys] I use purely Java, and a standard GLSurfaceView. The exact same

[android-developers] Re: Weird stack traces on Honeycomb

2011-08-21 Thread b0b
My code appears in the stack trace although these errors - happen only on Honeycomb. Mostly 3.0.1, sometimes 3.1, never saw one for 3.2 - happen in basic data structures - they are rare another one still on the A500 that makes no sense: java.lang.NullPointerException at

[android-developers] Re: BitmapFactory.decodeStream() blocking

2011-08-21 Thread b0b
Now that I think of it: is BitmapFactory.decodeStream() thread-safe ? I have a separate thread that might be calling this function to decode a HTTP image streams while another thread decode File streams... -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Insert PreferenceActivities in each Tab of an TabAcitivity to establish Categories AND Subcatories

2011-08-21 Thread Boris Ehlers
Okay thank you.. the several preferenceactivities runs now perfectly :-). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: Weird stack traces on Honeycomb

2011-08-21 Thread Kostya Vasilyev
-- Kostya Vasilyev 21.08.2011 14:48 пользователь b0b pujos.mich...@gmail.com написал: My code appears in the stack trace although these errors - happen only on Honeycomb. Mostly 3.0.1, sometimes 3.1, never saw one for 3.2 - happen in basic data structures - they are rare another one still

Re: [android-developers] Re: Weird stack traces on Honeycomb

2011-08-21 Thread Kostya Vasilyev
The one with hash maps on the A500 with 3.0.1 came up before. Search the archives - but, IIRC, there is no magic switch to fix what appears to be broken. -- Kostya Vasilyev 21.08.2011 14:48 пользователь b0b pujos.mich...@gmail.com написал: My code appears in the stack trace although these errors

[android-developers] Redirect values from PreferenceActivity to SQLiteDatabase

2011-08-21 Thread Boris Ehlers
Hi Guys, after I've successfull implemented several PreferenceActivities, I decided to insert one EditTextPreference and set ' android:inputType=textPassword '. This is because I need to contact a Server with the goal to sync server data with my offline database on the Android Smartphone and

Re: [android-developers] Fix for GeoCoder throwing Unable to parse response from server ?

2011-08-21 Thread Michael Banzon
It sounds like q quota issue to me. On Aug 21, 2011 10:36 AM, Davy ddewa...@gmail.com wrote: Hi, Many people seem to have raised this issue, where an application installed on a phone that is properly setup (internet permissions, valid latitude/longitude) is getting Unable to parse response

[android-developers] Using socket programing to communicate between two emulators in eclipse

2011-08-21 Thread Sumedh
Hi, I am working on an application in which trying to make connection between two emulators through socket programing. But getting an exception Code for Server: public class TCPserverActivity extends Activity { private TextView serverStatus; // default ip

[android-developers] Getting a second page to do anything

2011-08-21 Thread erik wagner
Hi, This is I'm sure a very simple thing to do and I am just missing something but I am just starting out. I have the main view, which has a button. The button brings up a second view that is supposed to show some toast message (or, in fact do anything). I can get everything to work on the

Re: [android-developers] Getting a second page to do anything

2011-08-21 Thread Appaholics
You need to declare the second activity in the manifest. You will also need an intent in your first activity to launch the second one. This http://www.warriorpoint.com/blog/2009/05/24/android-how-to-switch-between-activities/can help you in adding and starting another activity. Thanks On Sun,

[android-developers] Re: Getting a second page to do anything

2011-08-21 Thread erik wagner
Ah, that did the trick. Thank you very much, it was setting the Intent that I was totally missing. On Aug 21, 10:04 am, Appaholics raghavs...@appaholics.in wrote: You need to declare the second activity in the manifest. You will also need an intent in your first activity to launch the second

Re: [android-developers] Redirect values from PreferenceActivity to SQLiteDatabase

2011-08-21 Thread TreKing
On Sun, Aug 21, 2011 at 6:44 AM, Boris Ehlers boris.maccar...@googlemail.com wrote: Unfortunately I don't figured out a way to capture values, which are send from the DialogPreference and avoid save them to the preferencefile. Any Ideas ?

Re: [android-developers] Using socket programing to communicate between two emulators in eclipse

2011-08-21 Thread Nick Risaro
2 basic things: 1. Show us the exception! 2. Shorten the code, let only the relevant stuff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: recommended icon size.

2011-08-21 Thread sblantipodi
is there someone who can answer? On Aug 17, 9:44 pm, sblantipodi perini.dav...@dpsoftware.org wrote: Hi, my apps uses really few images since I like to draw things using canvas... At the mement I have only drawable, drawable-it, drawable-es, drawable- de, drawable-fr folders. How can I

[android-developers] Re: How to handle sequential touches?

2011-08-21 Thread Zwiebel
If I make a variable with number 0 and when the user clicks on the first image, I increase it with one, then I check the variable and if it is 1 I make the click for the second picture, It will be good? On aug. 19, 21:26, Zwiebel hunzwie...@gmail.com wrote: Thanks, I think that it will help me

[android-developers] How do I can make resolution independent game?

2011-08-21 Thread Zwiebel
How do I can make, for example if the user clicks at the 50,50 coordinates on the 800x480 resolution screen, will it be on the appropriate resolution on the 480x320 resolution screen too? I read on the internet that I need to make my game for only one resolution, and then scale the touches, and

[android-developers] Sudden location issues

2011-08-21 Thread John Coryat
I have an app that uses both GPS and wireless location services heavily. The app has worked virtually flawlessly for two years. In the last week or so, I've had dozens of support e-mails from people who are suddenly unable to use location services. These support e-mails are from long time

[android-developers] suggestions on importing db

2011-08-21 Thread Chris
If you're using a sqllite db you can just disconnect from it and copy it as a file. Unless you need raw sql inserts for another db format, a sqllite db on disk is portable. File copy is much faster than a sql dump or import by far. -- You received this message because you are subscribed to

[android-developers] DatePicker Dialog alike

2011-08-21 Thread ndiiie 90
Hi guys, I wonder is there any dialog that is similar with date picker? But i only want to have 1 editText with plus and minus button like in date picker.. Is there any such dialog exist? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: recommended icon size.

2011-08-21 Thread Kostya Vasilyev
Yes, if you have images that vary with language *and* with screen density, then yes, you will need directories for all the variations. Note that if you have any images that are shared among languages, you can place them into the language-neutral folders ( e.g. res/drawable-hdpi, without the

[android-developers] Sudden location issues

2011-08-21 Thread Chris
John, I'm one if those long-time users who started having difficulties after an upgrade. Rooted HTC sensation, custom ROM is the cause, I'm suspecting. It takes ~1 min to get gps locks and, if I'm on WiFi instead of cell network the location thread times out, I believe. Works fine in a stock

[android-developers] Re: Sudden location issues

2011-08-21 Thread John Coryat
A lot of the user's who are contacting me have non-gmail addresses (.aol, .msn, .yahoo). Those people would thing of trees and bushes before their device when the term root was mentioned. To root their device to them would mean burying it I would think. A similar thing happened about a year

[android-developers] Android 3.1 media recorder

2011-08-21 Thread V3nom
Hello, I am developing media streaming app. Testers have noticed audio recording bug on xoom tablet. I don't have actual device, so can't reproduce it. I would like to ask if some could record 20 sec audio and send it to me for further testing. Audio file characteristics: Output format:

[android-developers] using MapView to display wallstreet

2011-08-21 Thread guich
Hi, I'm searching already for a couple of hours and was unable to find a simple sample that shows how to open MapView with an address, like, the bull at wallstreet. I know i have to use location.Address class, but it has several parameters and i just don't know set them. Can someone provide me a

Re: [android-developers] using MapView to display wallstreet

2011-08-21 Thread Appaholics
Use google earth to get the coordinates for the location and then point your map to it. There is no need for you to implement a search in your app if all you want to do is display one fixed location. Thanks On Sun, Aug 21, 2011 at 11:57 PM, guich guiha...@gmail.com wrote: Hi, I'm searching

[android-developers] Re: Sudden location issues

2011-08-21 Thread Chris
The true irony is I'm not paying close attention when it doesn't work, so I can't reproduce it exactly. When I open up your app I want my radar NOW!, so when it doesn't work I'm not the best judge of reproducibility. :) Next time it doesn't work, I'll try to recall the circumstances... off

[android-developers] Re: recommended icon size.

2011-08-21 Thread Chris
is there someone who can answer? In any case, the you can find full details on the developer website and download an icon pack containing templates to use as a base: http://developer.android.com/guide/practices/ui_guidelines/icon_desig... Peter told you the right answer, Google has a

[android-developers] Re: Sudden location issues

2011-08-21 Thread Pent
Just got one of these today. Cyanogen 7, Android 2.3.5. Trying to get a log. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Ideas about how I can start activity without flag activity new task

2011-08-21 Thread Weston Weems
Ok, First of all, I'll start out by saying I've done research and understand why android prevents people from being able to do such things, but its really preventing me from being able to build this library as I'd like to. Likewise I'd appreciate people who feel the overwhelming urge to quickly

Re: [android-developers] Re: using the uses-library to hide DLC

2011-08-21 Thread Ryan Routon
Well, it seems for our model where we would not want the user to download the content until they have the main app, the only way to do this is with the in app purchasing and having our own server push the content. Does anyone know of a game out there that is currently doing this? On Thu, Aug 18,

Re: [android-developers] Re: How to handle sequential touches?

2011-08-21 Thread TreKing
On Sun, Aug 21, 2011 at 11:36 AM, Zwiebel hunzwie...@gmail.com wrote: If I make a variable with number 0 and when the user clicks on the first image, I increase it with one, then I check the variable and if it is 1 I make the click for the second picture, It will be good? That should work.

[android-developers] Re: Sudden location issues

2011-08-21 Thread lbendlin
it might be as simple as a dodgy ephemeris update from the AGPS servers or their mirrors. The users cannot do much in such a case except to wait for the next download. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] using the uses-library to hide DLC

2011-08-21 Thread Dianne Hackborn
I recommend people avoid shared user IDs. It is a hole you can never escape once you are in it. It is true that you can't disable the components of another app that has a different uid. However, you could have a broadcast receiver in the other app that when invoked disables the appropriate

Re: [android-developers] Re: getOrientation() madness

2011-08-21 Thread Dianne Hackborn
Because we are sometimes dumb. That is why it is deprecated and replaced with a method named getRotation() in current versions of the platform. A nice person spent a long time harassing me about this change because they insistent that we were evil vile losers who didn't understand what app

[android-developers] Re: Sudden location issues

2011-08-21 Thread John Coryat
The funny thing is the steps that I ask the users to perform seems to fix it 100% of the time. I haven't had a single user come back to me with any complaints. Here are the steps I ask them to perform: *Sudden difficulties with location services are usually due to a carrier over the air update

[android-developers] word wrap

2011-08-21 Thread bob
What is the best way to take a string and break it into multiple lines without splitting words? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

Re: [android-developers] word wrap

2011-08-21 Thread TreKing
On Sun, Aug 21, 2011 at 9:31 PM, bob b...@coolgroups.com wrote: What is the best way to take a string and break it into multiple lines without splitting words? TextView. - TreKing

Re: [android-developers] Re: Bizarre OpenGL performance on Samsung Galaxy.

2011-08-21 Thread Mark Ayers
The Transformer probably just has the power to muscle through whatever is causing your problem. On Aug 21, 2011 3:39 AM, calderwa alancalderwoo...@googlemail.com wrote: No-one experienced this or have any ideas? On Aug 18, 8:54 pm, calderwa alancalderwoo...@googlemail.com wrote: Yeah, no

[android-developers] why mediaplayer never calls listener method? (onInfo, onError, onPrepared)

2011-08-21 Thread Boram Han
Hi. I made a mediaplay activitiy streaming mp3 file from URL. My codes works very well at most cases. BTW when i play some mp3 files, mediaplay never calls callback method, [onInfo] [onError], [onPrepared]. The interesting thing is only [onBufferListener] is called. It become fully buffered

[android-developers] Handling Loader exceptions

2011-08-21 Thread Nikolay Elenkov
I am migrating some of my activities to FragmentActivity using the compatibility library. I was using onRetainNonConfigurationInstance() to save an AsyncTask between re-creations, but since this is now final, the recommended approach seems to be to replace my AsyncTask with a loader. I now

[android-developers] core.jar

2011-08-21 Thread Mooncheol Yang
i wanted to load some custom library on init. so i added code to core.jar.. the problem is i could'n find how to build core.jar only every time i fix source i make full build to see result.. anyone knows how to make core.jar only? i tried... 3 commands below.. not successful... make core mmm