[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

[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 se.bi...@gmail.com 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

[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] 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: How to popup a window from service

2009-11-15 Thread Miguel Paraz
On Nov 13, 9:22 am, elf.cheng king...@gmail.com 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

[android-developers] Re: Inter-activity communication

2009-11-15 Thread Miguel Paraz
On Nov 13, 4:11 pm, abhi rkabhi1...@gmail.com 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;          }      

[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

[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: intent-filter android:icon=@drawable/icon android:label=@string/ app_name action android:name=android.intent.action.SEND/action category android:name=android.intent.category.ALTERNATIVE/ category category android:name=android.intent.category.SELECTED_ALTERNATIVE/

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 thanks

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: intent-filter android:icon=@drawable/icon android:label=@string/ app_name action android:name=android.intent.action.SEND/action category android:name=android.intent.category.ALTERNATIVE/ category category

[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 mmur...@commonsware.com wrote: MrChaz wrote: That's the one I'm

[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

[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

[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

[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] 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] 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 teisentrae...@googlemail.com 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

[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] 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

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

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 deer...@googlemail.com Hi I am having trouble with

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 mmur...@commonsware.com 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

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Cheers thx m8 got it working :) 2009/11/15 Paul Townsend deer...@googlemail.com Ahh thats not the way the samples do it, that kinda looks more right too, I will try that. 2009/11/15 Mark Murphy mmur...@commonsware.com Paul Townsend wrote: Hi I am having trouble with broadcast receivers,

[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 ddum...@gmail.com wrote: Can you post a sample? On Nov 14, 2009 4:23 AM, Sergey Vasilinets

[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 j...@harpsoft.com wrote: It is also spitting this out: WARN/AudioHardwareMSM72XX(1018): getInputBufferSize bad sampling rate:

[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: 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

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

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(); HttpGet

[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 mts...@googlemail.com 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

[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

[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

[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

[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

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-intantiation of

[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 mmur...@commonsware.com 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

[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

[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,thrh1ee], more:stuff},awesome: true,bogus: false,meaning: null,

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] 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

[android-developers] Re: Archos/Android development

2009-11-15 Thread Lee
On Nov 14, 8:51 pm, Thomas Riley tomrile...@googlemail.com 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

[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

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,thrh1ee], more:stuff},awesome: true,bogus: false,meaning: null,

[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

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,thrh1ee], more:stuff},awesome: true,bogus: false,meaning:

[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

[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 sterling.ud...@googlemail.com wrote: On Nov 15,

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

[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

[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] 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

[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 =

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.5

[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:

Re: [android-developers] Re: startForeground Backwards compatability

2009-11-15 Thread TreKing
I don't know about that last section, I haven't used the ActivityManager, but are you sure that the service your checking is actually YOUR service? I would double check to make sure the service you're getting back is yours. This might have worked pre-2.0 simply by luck.

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

2009-11-15 Thread Clay
so after a ton on investigation I am pretty sure that it was a business decision to restrict this. There are non google alternatives though. Clay On Nov 15, 12:52 pm, Clay claytan...@gmail.com wrote: So I have been looking into this for a couple of days, and I am pretty sure the intent of the

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

2009-11-15 Thread Max Binshtok
I do: uses-sdk android:minSdkVersion=1/uses-sdk :) so it should be more likely to work... The error is quite weird - I will try to do it again, maybe it was a fluke and the file just got currupted while being transferred, although I think I already did repeat the procedure... Since you claim

[android-developers] Re: startForeground Backwards compatability

2009-11-15 Thread G
Ha! Yeah I just took a closer look, no idea why I thought that would be looking at my service :/ On Nov 15, 6:39 pm, TreKing treking...@gmail.com wrote: I don't know about that last section, I haven't used the ActivityManager, but are you sure that the service your checking is actually YOUR

[android-developers] ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Wyszomierski
Hi, Following other threads - I'm trying to get a unique device ID from the device. I tried this: String ID = Settings.Secure.getString(context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); but this returns null when running on my G1. Is it supposed to be returning a

Re: [android-developers] ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
Mark Wyszomierski wrote: Following other threads - I'm trying to get a unique device ID from the device. I tried this: String ID = Settings.Secure.getString(context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); but this returns null when running on my G1. Is it

[android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Wyszomierski
Hi Mark, What does rooted mean? Things that might be messing it up: 1) I don't have a SIM card in the device (just using wifi) 2) I am using getAppplicationContext() for the context parameter in that call Other than that - everything else is 'normal'.. I think? Thanks On Nov 15, 7:47 pm,

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
Mark Wyszomierski wrote: What does rooted mean? Having the ability to run as root, which is roughly the Linux equivalent to the Administrator account in Windows. http://android-dls.com/wiki/index.php?title=Why_Root Things that might be messing it up: 1) I don't have a SIM card in the

[android-developers] UTF encoding of SMS

2009-11-15 Thread Jamie
Does Android encode SMS using UTF-7 or UTF-8? I'm developing an app that interfaces with an SMS processing backend that uses UTF-7. If Android uses UTF-8, is there a way to programmatically use UTF-7 instead? Thanks, Jamie -- You received this message because you are subscribed to the Google

[android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Wyszomierski
Ok I just tried with my one and only activity, still returns null: class MyActivity extends Activity { private String mId; @Override public void onCreate(..) { mId = Settings.Secure.getString(this, ...); } } I just pop it up via a dialog box, tried looking at it

[android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Wyszomierski
Oh I'm running 1.5 too, but I think that should be fine. On Nov 15, 8:05 pm, Mark Wyszomierski mar...@gmail.com wrote: Ok I just tried with my one and only activity, still returns null:   class MyActivity extends Activity {      private String mId;     �...@override      public void

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
Mark Wyszomierski wrote: Oh I'm running 1.5 too, but I think that should be fine. Grab this project: http://commonsware.com/misc/WeightDemo.zip or, here's an APK: http://commonsware.com/misc/WeightDemo-debug.apk Install and run it. Ignore the layout -- that's from some other scrap test I had

[android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Wyszomierski
Ok I installed the apk straight from the link - I see the two blue rects above (foo, bar), then the toast - but the toast is empty (guess cause it really is returning null on my device). This is really weird! Thanks for sending that sample project to verify! On Nov 15, 8:15 pm, Mark Murphy

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
Mark Wyszomierski wrote: Ok I installed the apk straight from the link - I see the two blue rects above (foo, bar), then the toast - but the toast is empty (guess cause it really is returning null on my device). This is really weird! Thanks for sending that sample project to verify! Yeah,

[android-developers] Re: installing Android 1.6+ on headless Linux server

2009-11-15 Thread Diego Torres Milano
It seems to be a bug in android command (sdkmanager) and sometimes it's ignoring command line arguments: + exec java -Xmx256M -Djava.ext.dirs=/opt/android-sdk/tools/lib/x86:/ opt/android-sdk/tools/lib -Dcom.android.sdkmanager.toolsdir=/opt/ android-sdk/tools -jar

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

2009-11-15 Thread Dianne Hackborn
This is the intended behavior. There are basically five actions you need to care about. For all of them, you can mask out ACTION_MASK to just look at the action part. These three are all you need to care about if you aren't interesting in multitouch: 1. ACTION_DOWN, the existing standard

[android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Wyszomierski
Ah yeah something must have gotten messed up on my phone then. I saw some other posts where you were trying to find a unique ID per phone (without requiring system permissions). Did you find any? On iPhone there is a simple deviceUUID you can use. Is this ANDROID_ID its equivalent? It looks like

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
Mark Wyszomierski wrote: On iPhone there is a simple deviceUUID you can use. Is this ANDROID_ID its equivalent? Pretty much. It looks like there's an ID from the Telephony manager but then you add to add another (scary) permission for that? You can get device IDs from Telephony, but the

[android-developers] get the package/class name by code

2009-11-15 Thread tstanly
hi guys, how can I use sdk to get the package/class name of a specific apk file, eg: I have a test.apk, and I want to know the package name and class name by API when I write a android program thanks! -- You received this message because you are subscribed to the Google Groups Android

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

2009-11-15 Thread niko20
I wish though, that the multitouch would have also been natively suuportedk in the sense that multiple views should get touch events also simultaneously. Right now it looks like it will only work on a per-view basis. Would have been nice that if views were attatche to a touch handler, and someone

[android-developers] Re: get the package/class name by code

2009-11-15 Thread tstanly
for detail:: there are several apk files in the /data/app (design by myself), and first I will read the /data/app and get the apk file list, then launch other apk file by user choose, so the problem is that I need to know the package name and class name by xxx.apk string. thanks On 11月16日,

[android-developers] Share thread pool among activities ?

2009-11-15 Thread Timmah
Is it possible to create a thread pool during application's start up and share it among activities ? Not exactly sure if this is feasible and moreover is it even a good idea ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Any examples of displaying an information box when clicked on a map marker ?

2009-11-15 Thread Timmah
I am looking for code examples of how to draw a description box when clicking on a map marker. Something similar to google map's implementation - http://code.google.com/apis/maps/documentation/examples/icon-custom.html (Click on the marker to see an example) Much appreciated ! -- You received

[android-developers] Task or application equivalent of onPause

2009-11-15 Thread Rich
My application uses a remote service to play audio. I do this so that no activity owns the playback of the audio - the user can trigger some audio to be played from one Activity, and the audio will continue to play as they navigate around the app. I do, however, want to tell the service to pause

[android-developers] AutoCompleteTextView doesn't work with android:style/Theme.Light

2009-11-15 Thread Pooper
I can't seem to get AutoCompleteTextView to work with Theme.Light The problem is the autocomplete popup draws the suggestions text in white on a white background. You can only see what the suggestions are after they are selected, because then the white text is drawn over top of the selector

[android-developers] How to create a project in android

2009-11-15 Thread Dhir
hi all,, plz help me out... actually i'm using eclipse and creating an android project properly. bt in package explorer the folder is showing a red symbol. that means error is there,but as i haven't change anything. so as i feel it should not give any error. actually i'm a beginner,so plz help

[android-developers] Task life cycle and activity launch mode question(s)

2009-11-15 Thread Rich
I read up on tasks and the activity life cycle. Single top launch mode seems to give me (in theory) what I'd like to have for my app, but it's not currently working as expected. It sounds simple enough, so I can't imagine I'm doing this incorrectly. From my understanding, single top means that

[android-developers] Can recognizer use a file for audio input?

2009-11-15 Thread Mark Abbott
Is there a way to use an audio file as input to speech recognition? If not, is this feature expected in the foreseeable future? A separate question (and this is going to sound ridiculous, but it might actually be okay for a joke app I'm thinking about): Would it be possible to play audio out of

[android-developers] Re: Layout problems

2009-11-15 Thread Rich
Try RelativeLayout instead of LinearLayout. There are a lot of attributes you can use within a RelativeLayout that help you position the elements according to their siblings. http://developer.android.com/reference/android/widget/RelativeLayout.html

[android-developers] Re: Segfault in what looks like WebView

2009-11-15 Thread Don
Another data point from my syslog: Nov 13 13:17:11 desktop kernel: [108038.551130] emulator[7952]: segfault at 8c ip 0819176a sp bfa43320 error 4 in emulator [8048000+1fe000] Nov 13 13:17:11 desktop console-kit-daemon[1010]: GLib-GObject- WARNING: instance of invalid non-instantiatable type

[android-developers] Re: Webservice on Android

2009-11-15 Thread Luis-Jaime
I also have the same issue described by Mark. I can call my web service using KSOAP2 when using my WiFi network, but when I try to use it through my phone's internet plan, it times out. I've been trying to find a solution for days. I've tried simple HttpGet and still get timeouts... I'm suspecting

Re: [android-developers] Securing a paid app

2009-11-15 Thread Michael Rueger
jax wrote: I am wondering how I might go about securing a paid app on Android. I am thinking of selling the application from my own website via PayPal, however, how will I stop people from sharing it with their friends etc. Does Android have any type of native support for this? An

[android-developers] Re: How do you change the default language

2009-11-15 Thread Andre Liu
Hi I came across your thread while researching on the same issue. Did you find out how to do it? Thanks. On Oct 31, 4:00 am, Nick nickw...@gmail.com wrote: How tochangethe defaultlanguagefrom english to chinese for HTC Hero. Is there any other ways except reinstall a new ROM -- You received

[android-developers] onNewIntent() is never called when use Icons

2009-11-15 Thread João Sauer
Hi, What I'm trying to do was supposed to be very simple, but is not working. :) I would like to have 2 Icons that will call my activity, that is the only one in the package. But, when the activity is called, I would like to know which of these Icons was used. In the logs, I'm able to see that

[android-developers] Rotate TextView 90 degrees text out of view.

2009-11-15 Thread benbenbenben
When I try to rotate a TextView (width 300, height 240) by extending the class TextView and overriding the onDraw method by the following code: @Override protected void onDraw(Canvas canvas) { canvas.save(); canvas.rotate(90); super.onDraw(canvas); canvas.restore(); } Then

[android-developers] Re: Dallas Android Developers

2009-11-15 Thread Nurg
I'm in. On Nov 13, 3:27 pm, chrispix chris...@gmail.com wrote: Good work! Look forward to meeting everyone. On Nov 13, 2:51 pm, PJ pjbar...@gmail.com wrote: Place: Cafe Brazil (since Richardson is central to us) Time: Tentative plan is 11:30am tomorrow morning, and likely won't

[android-developers] android 1.6 emulator not shown in ddms

2009-11-15 Thread dadaowuwei
recently I try to run my program on android 1.6 emulator. when I launch the emulator I can see it in my ddms with offline state,however, after a while it disappears from ddms. Any ideas? thanks -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install

2009-11-15 Thread Anglave
Skink and Armond, Thank you for the direct links! Downloading using the SDK and AVD Manager, my download rate kept falling from 20 to 0 KiB/sec, and then stalling. You may also find that you want http://dl-ssl.google.com/android/repository/usb_driver_r02-windows.zip as well. -- You received

[android-developers] Re: Enabling SVG in Android's Webkit

2009-11-15 Thread Andrew Emmons
Hello Jeff, I was able to make this work but I had to port the SVG generated sources makefiles to the Android makefile system. Also, on Ubuntu I ran into an Argument list too long error when linking. I had to remove a significant number of SVG DOM JS files in order to get past this. All the

[android-developers] List

2009-11-15 Thread D G
What's the easiest way to stop and start emails from this list without needing to unsubscribe and subscribe again? Options on my mail client or on the server side? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Ubuntu Karmic Koala (9.10)

2009-11-15 Thread TimMcKernan
Thanks for this, I just installed 9.10 this week and this post saved me a lot of time troubleshooting. In fact, Chrome's pop-ups were coming up blank and now the same fix works for Chrome as well. On Nov 2, 3:37 pm, StevePotell stevepot...@gmail.com wrote: You may have run into a few problems

[android-developers] Re: Securing a paid app

2009-11-15 Thread android kracker
Using the unique ID (hash) of the phone, register it with your web service on install. Then employ PKI to authenticate your app on each launch. On your web service sign a string containing the hash, timestamp, and a short expiration timestamp. Then have your app use your public key (in the app) to

[android-developers] Re: Securing a paid app

2009-11-15 Thread Pooper
What you can do is make your user enter serial #, the serial number could be a hashing function that you come up with that takes the device id (could be the imei number) the application could then check if the serial/hash code matches for that device. This would require your customer to send you

[android-developers] Need help with XML parsing (SAX)

2009-11-15 Thread Gáb
Hi, I have a big problem with the XML parsing (SAX) in Android. I can't use it at the following XML file: ?xml version='1.0' encoding='UTF-8'? osm version='0.6' generator='JOSM' node id='-1' visible='true' lat='-1.377' lon='-1.3635' / node id='-2' visible='true' lat='-2.493'

[android-developers] Task or application equivalent of onPause

2009-11-15 Thread Rich Stern
My application uses a remote service to play audio. I do this so that no activity owns the playback of the audio - the user can trigger some audio to be played from one Activity, and the audio will continue to play as they navigate around the app. I do, however, want to tell the service to pause

[android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-11-15 Thread mccoy
Thanks Peter! this GDK_NATIVE_WINDOWS=true solved the issue for me (Ubuntu 9.10 32 bits) On 7 nov, 21:14, Peter Ersts peter.er...@gmail.com wrote: Try: export GDK_NATIVE_WINDOWS=true before you launching the manager. I came across a similar problems with Eclipse since upgrading to Ubuntu

  1   2   >