[android-developers] Adjusting Dialog Size Question (ie: ColorPal)

2009-11-15 Thread Jason Van Anden
I just took a look at my app with a Droid - it works/looks super ... except for my color dialog - which is tiny compared to my G1.  I want to update the ColorPal code to accommodate different screen dimensions.  One way to do this would be to access the DisplayMetrics from the dialog ie: DisplayM

[android-developers] Log messages no longer appear in LogCat

2009-11-15 Thread mh
Since getting Eclipse to recognize and debug both the emulator and a usb connected device I have been unable to see any of my embedded Log.x messages appear in LogCat log. I do though still see real time system messages appear in the log. Log.x was originally working when all the debugger would r

Re: [android-developers] How many 1.1 devices are still out there?

2009-11-15 Thread Jonas Petersson
tomei.ninge...@gmail.com wrote: > Are there any developers who switched from 1.1 to 1.5 APIs recently? > Have you heard any complaints from users that are still using a 1.1 > device? Well, my apps should still work for 1.1. According to web server logs all but one (active) users had switched to 1

[android-developers] Re: startForeground Backwards compatability

2009-11-15 Thread G
THANK YOU! The word I was missing in my searches was Relection or Reflect. I've added this method to my Service, but I'm still having a problem... private void turnOnForeground(Notification notif) { try { Method m = Service.class.getMethod("startFor

[android-developers] How many 1.1 devices are still out there?

2009-11-15 Thread tomei.ninge...@gmail.com
Are there any developers who switched from 1.1 to 1.5 APIs recently? Have you heard any complaints from users that are still using a 1.1 device? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to an

[android-developers] Re: Multitouch support in Android 2.0

2009-11-15 Thread davemac
I think I've got this figured out. Almost. With multi-touch support, getAction() can return a compound value representing the pointerID in the second byte and the action value in the first byte. For example, if two fingers are down, and pointerID 1 is lifted (i.e., finger 2), getAction() returns a

[android-developers] Re: Code compiled with SDK 2.0 does not install (and therefore run) on 1.5 emulator

2009-11-15 Thread Lance Nanek
I just bumped up the build target on one of my apps to Android 2.0, exported a signed APK, and it installed and ran OK from the Browser app on the Android 1.5 emulator. So I guess the problem doesn't always occur. I wonder what we are doing different. What are you using for the uses-sdk element i

Re: [android-developers] startForeground Backwards compatability

2009-11-15 Thread TreKing
Yes, this is possible and definitely testable in the emulator. I actually just update my own app to account for this change in 2.0. I don't think you can get around the VerifyError but you can check if the method you want to use exists. Build against 2.0 and use reflection to check if the startFor

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-15 Thread Mika
Oh wow, I was so blind, I was just forcefully trying to implement "onTouch()" instead of "onTouchEvent()", as soon as I swapped it, it started to work. Phew... How blind can you became to your own code? =) Thank you guys. On 15 marras, 18:20, String wrote: > On Nov 15, 1:27 pm, Mika wrote: > >

[android-developers] Making SearchManager behave like the old googlenav.Search

2009-11-15 Thread Clay
So I have been looking into this for a couple of days, and I am pretty sure the intent of the android API team is to make SearchManager a platform level tool for searching application level content, like a application database, which is very cool, and I will probably use, but not what I want at thi

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Jonas Petersson
Mark Murphy wrote: >> Mark, I may have found the problem, but not sure how I can fix it. The >> log msg for the responseBody is below. Should it be the UTF_8 param? >> thanks >> {"hey": "guy","anumber": 243,"anobject": {"whoa": >> "nuts","anarray": [1,2,"three"], "more":"stuff"},"awesome": >>

[android-developers] startForeground Backwards compatability

2009-11-15 Thread G
Hi, I've got a question as I don't have an Android 2.0 device to test on and this particular aspect seems untestable in the emulator. I've got a service that needs to be run as a foreground service. I have a notification that stops it etc, so I have no problem using startForeground instead of setF

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Mark Murphy
> Mark, I may have found the problem, but not sure how I can fix it. The > log msg for the responseBody is below. Should it be the UTF_8 param? > thanks > {"hey": "guy","anumber": 243,"anobject": {"whoa": > "nuts","anarray": [1,2,"three"], "more":"stuff"},"awesome": > true,"bogus": false,"mea

[android-developers] Re: Archos/Android development

2009-11-15 Thread Lee
Sorry, just to check: the extended status bar doesn't show up in your emulator, right ? I just get the normal status bar even with the a5_horiz skin. Lee -- 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] Re: Archos/Android development

2009-11-15 Thread Lee
On Nov 14, 8:51 pm, Thomas Riley wrote: > Firstly, here is the APK:http://files.appslib.com/apps/marketplace/appslib.apk Ah thanks, that's different from the link on the front page. > Is that the one giving the 404 error? Its working me me. > > As for testing, I guess it would be best to try

[android-developers] AppWidgetProvider SCREEN_ON/OFF Intent not received

2009-11-15 Thread Derek
Hi, We've an AppWidgetProvider and we would like to receive SCREEN_ON. >From the following thread, it seems not possible to register for such event in AndroidManifest.xml http://groups.google.com/group/android-developers/browse_thread/thread/40753eb1b312f4ab/3e171b45a2fe880c?#3e171b45a2fe880c The

Re: [android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

2009-11-15 Thread SoftwareForMe.com SoftwareForMe.com
I have seen this too, but what's worse, I've found socket connections taking to long to connect, even when not using DNS. For example, our software can connect to a PC via LAN using an IP address. Sometimes it will take > 5 seconds, sometimes it will time out. In either case, after such a failure,

[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, I may have found the problem, but not sure how I can fix it. The log msg for the responseBody is below. Should it be the UTF_8 param? thanks {"hey": "guy","anumber": 243,"anobject": {"whoa": "nuts","anarray": [1,2,"three"], "more":"stuff"},"awesome": true,"bogus": false,"meaning": null,

[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, Thanks for the link, a lot of good examples. I try to use BasicResponseHandler but I am still getting the same error. Could it be something with Eclipse? org.json.JSONException: A JSONObject text must begin with '{' at character 1 DefaultHttpClient client=null; HttpClient httpclient = new De

[android-developers] Re: Orientation change of gsm re-initializes the application

2009-11-15 Thread jdekeij
Thanks!! On Nov 15, 8:00 pm, Mark Murphy wrote: > jdekeij wrote: > > Hoi > > > My application gets re-initialized when the gsm orientation changes > > from portrait to landscape and vice versa. I want to keep the > > application in portrait since it does not make any sense to have it in > > lands

Re: [android-developers] Orientation change of gsm re-initializes the application

2009-11-15 Thread Mark Murphy
jdekeij wrote: > Hoi > > My application gets re-initialized when the gsm orientation changes > from portrait to landscape and vice versa. I want to keep the > application in portrait since it does not make any sense to have it in > landscape mode. Does anyone know how to prevent the re-intantiatio

[android-developers] Re: Layout problems

2009-11-15 Thread jdekeij
Thanks! I use now the relativelayout which requires for every control its relative position. It seems to work, so I keep it that way. Thanks anyway for help. By the way the results can be seen on google market. Free reversi app by Jasper de Keijzer. Bye Jasper On Nov 13, 8:09 pm, Morten Isaksen

[android-developers] Orientation change of gsm re-initializes the application

2009-11-15 Thread jdekeij
Hoi My application gets re-initialized when the gsm orientation changes from portrait to landscape and vice versa. I want to keep the application in portrait since it does not make any sense to have it in landscape mode. Does anyone know how to prevent the re-intantiation of the app and how I can

Re: [android-developers] Re: Speech Recognition makes a beep when the user Cancels. This is bad.

2009-11-15 Thread dan raaka
There is another similar situation when accessibility is enabled, when the voice input dialog gets poped up, the dialog header is read it automatically .. but the voice input already starts listening to that as input effectively making it impossible for the user to "say" something as input -Dan

[android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

2009-11-15 Thread Mark Wyszomierski
How are you all getting around this issue? I am running into it on some phones given out as demos (G1s running 1.5). About 50% of the time, my network requests will just hang for about two minutes, then throw: java.net.UnknownHostException: Host is unresolved: myapi.me.com:80 this looks embarr

[android-developers] ArchOS emulator?

2009-11-15 Thread Fred Grott(Android Expert, http://mobilebytes.wordpress.com)
At some point I may have to test apps to get them working on Archos or Android-x86. I was thinking I could use Android-x86 in Qemu to test archos compatibility..so what problems would I run into with this approach? Thanks Fred Grott Android Developer http://mobilebytes.wordpress.com -- You re

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-15 Thread String
On Nov 15, 1:27 pm, Mika wrote: > With the GLSurfaceView, where am I supposed to implement > onTouchListener? In my OpenGL app, I use an onTouchEvent listener on the containing activity instead. Works for me. String -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Mark Murphy
TJ wrote: > Mark, thanks for the help But, I an also getting the same error msg > when I try pulling the JSON file from twitter.com. > thanks for the help. > > String url = "http://twitter.com/statuses/user_timeline.json? > screen_name=huskyr"; > HttpClient httpclient = new DefaultHttpClient(); >

Re: [android-developers] Re: Bounding Geometry in Maps?

2009-11-15 Thread TreKing
That is a correct assumption. The span values give you the total latitude or longitude distance across the screen. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.googl

[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, thanks for the help But, I an also getting the same error msg when I try pulling the JSON file from twitter.com. thanks for the help. String url = "http://twitter.com/statuses/user_timeline.json? screen_name=huskyr"; HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new Http

[android-developers] Code compiled with SDK 2.0 does not install (and therefore run) on 1.5 emulator

2009-11-15 Thread Max Binshtok
I did signed export of the package while setting the target as 2.0. Then I tried to install the package by downloading it *through browser* (OTA download) on all the emulators. On 1.5, when I click on the download in order to install the package, I get the "Parse Error: There is a problem parsing

[android-developers] Re: Invalid Audio Buffer Size on Samsung Galaxy

2009-11-15 Thread joelt
Further analysis reveals it only supports an 8k sampling rate. This is obviously a bug. Where do I file a bug report against the Samsung phone? On Nov 14, 9:49 pm, joelt wrote: > It is also spitting this out: > WARN/AudioHardwareMSM72XX(1018): getInputBufferSize bad sampling rate: > 44100 > > Is

[android-developers] Re: ListView problem is back.

2009-11-15 Thread Sergey Vasilinets
A reference on the sample project is in my first post: http://listexample.googlecode.com/ Don't be afraid, there is a just few lines of code and nothing is unnecessary. On 14 ноя, 16:52, Dan Dumont wrote: > Can you post a sample? > > On Nov 14, 2009 4:23 AM, "Sergey Vasilinets" < > > sergey.vas

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Cheers thx m8 got it working :) 2009/11/15 Paul Townsend > Ahh thats not the way the samples do it, that kinda looks more right too, I > will try that. > > 2009/11/15 Mark Murphy > > Paul Townsend wrote: >> > Hi I am having trouble with broadcast receivers, I want to use the >> > media_button b

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Ahh thats not the way the samples do it, that kinda looks more right too, I will try that. 2009/11/15 Mark Murphy > Paul Townsend wrote: > > Hi I am having trouble with broadcast receivers, I want to use the > > media_button broadcast so I can call a method on my service, I have > > tried puttin

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Edit: Just thought I could use an Intent to the service and it will go through the onstart() etc... so I can do what I need but what if I needed to do the same in the activity as that dosen't have the same thing. 2009/11/15 Paul Townsend > Hi I am having trouble with broadcast receivers, I want

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Mark Murphy
Paul Townsend wrote: > Hi I am having trouble with broadcast receivers, I want to use the > media_button broadcast so I can call a method on my service, I have > tried putting the receiver inside the service class so I can call the > method but that just says that the receiver is enclosed, but not

[android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Hi I am having trouble with broadcast receivers, I want to use the media_button broadcast so I can call a method on my service, I have tried putting the receiver inside the service class so I can call the method but that just says that the receiver is enclosed, but not static. If I create a new rec

[android-developers] What is you Qustion?

2009-11-15 Thread Alberto
http://www.healths.110mb.com -- 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 android-developers+unsubscr...@googlegroups.

[android-developers] Re: BAck to Activity after WebView

2009-11-15 Thread Miguel Paraz
Hi, Just to be sure... is the previous Activity still on the task stack? You did not finish() it? On Nov 15, 6:16 am, toby wrote: > Hello, > > I've been searching and looking for this answer for quite some time > now. I want to display a little HTML in a webView. > > When the User read the HTML,

[android-developers] how to know whether a resource is compressed or not?

2009-11-15 Thread Paranoia
we can let aapt not compress the resource via command -0. which api can be used to check the resource is compress or not? thanks a lot -- 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@

[android-developers] how to modify the dataRoam Setting of device

2009-11-15 Thread sky
i want to block all the data connection when phone is in roaming . how to chang the data Roam Setting ? who can help me? thanks . -- 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@google

[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread nEx.Software
First, as Mark said, you have an extra curly bracket. You also have switched the ending square bracket with the ending curly bracket. The error might be indicating you are trying to access "Result" as a JSONObject, as opposed to the JSONArray that it is. Or it is a side effect of the mal-formed JSO

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-15 Thread Mika
Ah sorry for long response time. Anyway, I went back to the problem and started using GLSurfaceView instead and it works with the current setup. With the GLSurfaceView, where am I supposed to implement onTouchListener? Since if I make the "starting" activity to implement the onTouchListener, it nev

[android-developers] CheckedTextView and android:checkMark property

2009-11-15 Thread kretes
Why is that that a XML property android:checkMark in CheckedTextView is not covered in doc http://developer.android.com/reference/android/widget/CheckedTextView.html ? Additionally - it looks that it is *required* attribute to use CheckedTextView as a view in listview with checkboxes Should i trea

[android-developers] Re: Is there a list of standard Intent specifications?

2009-11-15 Thread MrChaz
Thanks mark, I really didn't want to have to crawl around code to find how it's sending the picture i.e. as a content uri and how it's storing it (EXTRA_STREAM) still, it works now. Thanks again. On Nov 15, 12:42 pm, Mark Murphy wrote: > MrChaz wrote: > > That's the one I'm trying to use: > > >

Re: [android-developers] Re: Is there a list of standard Intent specifications?

2009-11-15 Thread Mark Murphy
MrChaz wrote: > That's the one I'm trying to use: > > > > category> > android:name="android.intent.category.SELECTED_ALTERNATIVE"> category> > Well, I can tell you that the mail program uses:

Re: [android-developers] JSONObject text must begin with '{' at character 1

2009-11-15 Thread Mark Murphy
TJ wrote: > I'm having a weird error, seems to be cause whenever I hit JSONObject > json=new JSONObject(result);. > The error msg is org.json.JSONException: A JSONObject text must begin > with '{. I have no idea how to fix this is any one have any idea > PLEASE LET ME KNOW. The JSON File is > > th

[android-developers] Re: Is there a list of standard Intent specifications?

2009-11-15 Thread MrChaz
That's the one I'm trying to use: On Nov 14, 9:30 pm, Mark Murphy wrote: > MrChaz wrote: > > I'm looking into getting my application to show up when the user tries > > to 'share' a picture via the Gallery application I can't, however, > > find any information about how exactly to go about t

[android-developers] Re: viewflipper deck?

2009-11-15 Thread Wouter
Ok I have changed the way i want to make this: I want to make this like the homescreen. So when you fling, the view follows your finger. SO when you are dragging to left, you see already the next view dragging with your finger gesture. Now with the viewflipper it only makes a transition to the nex

[android-developers] Re: Inter-activity communication

2009-11-15 Thread Miguel Paraz
On Nov 13, 4:11 pm, abhi wrote: > Currently, I am starting a Child activity from a Parent activity in > the following manner: > > public class Parent extends Activity { > >        private int message; >        public Parent() >         { >               message = 0; >          } > >         @Overr

[android-developers] Re: How to popup a window from service

2009-11-15 Thread Miguel Paraz
On Nov 13, 9:22 am, "elf.cheng" wrote: > I am developing an ip phone an android.it may work as a service in > background.when a call(or a message) coming in,I need a window(dialog > or activity) popup.how to do that? I believe the NotificationManager is the standard way of doing this, to avoid di

[android-developers] Re: Uploading a File with HttpClient and HttpPost

2009-11-15 Thread rezar
I solved the problem. I post my code here for others to have a working sample: on the server side I made a simple servlet: -- private void

[android-developers] Re: Speech Recognition makes a beep when the user Cancels. This is bad.

2009-11-15 Thread AngelOD
Wouldn't it be enough to have a small pause after cancellation, before starting to listen again? Or have you already tried this? -- 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@googleg

[android-developers] Re: how to reject a call using Android SDK

2009-11-15 Thread moneytoo
It's not possible for 3rd party app. (No accessible API/no working key injection) On Nov 15, 1:46 am, Muhammad Bilal wrote: > Hi, > > My question is really simple and to Geeks and experts in Android > development, is it possible to reject a incoming call using Android > SDK 1.6 or higher ? > > re

[android-developers] AutoCompleteTextView, passing the focus and Android 1.6

2009-11-15 Thread Armond Avanes
Hi Guys, Has anyone noticed that AutoCompleteTextView doesn't pass the focus to the next field when you tap on "NEXT" button on soft keyboard? And it's all happening on Android 1.6. v1.5 works flawlessly! Is there any known solution for this? Thank you, Armond -- You received this message becau

<    1   2