[android-developers] Re: Droid screen resolution for layout directory

2010-01-14 Thread yidongsoft
Thank you, brother! On 1月14日, 上午9时10分, Mark Murphy mmur...@commonsware.com wrote: yidongsoft wrote: I am writing layout file for Droid Milestone. I set the directory to layout-854x480, but it doesn't work at all. That is not a recommended practice. I then use: // get the

[android-developers] icon in Droid is badly scaled

2010-01-14 Thread yidongsoft
In my G2, the icon is ok. But in Droid, the icon look bad. The skeleton is good, but the icon is scaled and the icon looks cheap. I try to set the icon big in resolution, but the button enlarged and the balance of layout is break. Can any one help me to fix it? Thanks! icon is not the icon for

[android-developers] How do I make my program does not appear in the Home screen or luncher after intallation? thanks!!!!!

2010-01-14 Thread 何斌斌
HI All: Now, I think after install my application, then my app does not appear in the home screen or luncher? But I can start my app by other appliction. Can any one help me? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] How do I make my program does not appear in the Home screen or luncher after intallation? thanks!!!!!

2010-01-14 Thread Rui Wu
Don't set category android:name=android.intent.category.LAUNCHER / in intent-filter for your any Activity in AndroidManifest.xml 2010/1/14 何斌斌 hbbs...@gmail.com HI All: Now, I think after install my application, then my app does not appear in the home screen or luncher? But I can

Re: [android-developers] How do I make my program does not appear in the Home screen or luncher after intallation? thanks!!!!!

2010-01-14 Thread 何斌斌
Yes,thanks for your help! 2010/1/14 Rui Wu netiger198...@gmail.com Don't set category android:name=android.intent.category.LAUNCHER / in intent-filter for your any Activity in AndroidManifest.xml 2010/1/14 何斌斌 hbbs...@gmail.com HI All: Now, I think after install my application,

[android-developers] Customized Installation in Android

2010-01-14 Thread tsimmi
Hi! Is it possible to control the package installation process in Android? The problem is that I'm asked to install and uninstall packages without using the default android installer. I need to control the entire process within my application. I already have my application in the /system/app/

[android-developers] How can I support TelephonyProvider for CDMA network?

2010-01-14 Thread BBtheory
Currently, Do you support TelephonyProvider for CDMA network? Some functions may be unreliable on CDMA networks. - getNetworkCountryIso, getNetworkOperator,getNetworkOperatorName() (refer http://developer.android.com/reference/android/telephony/TelephonyManager.html) Also , MCCTable ONLY

[android-developers] Make menu item disabled

2010-01-14 Thread fhucho
Hi, is it possible to disable (gray) a menu item? -- 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] Announcing First MP3 OGG Recorder for Android

2010-01-14 Thread Cédric Berger
On Thu, Jan 14, 2010 at 04:23, Hunter Peress hunt...@gmail.com wrote: Hi Folks Just released the first MP3 recorder available on Android: Did you have to pay for a licence ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] ClearTaskOnLaunch flag is not working

2010-01-14 Thread Android Developer
Hi, I have two activities in an application Activiy1 and Activity2 where Activity1 is the launcher. i have set clearTaskOnLaunch=true for activity one using below code activity android:name=.App1_Activity1 android:label=@string/app_name

[android-developers] Re: Make menu item disabled

2010-01-14 Thread AJ
Yes it is possible. Check the following link http://developer.android.com/reference/android/view/MenuItem.html#setEnabled(boolean) - AJ On Jan 14, 3:47 pm, fhucho fhu...@gmail.com wrote: Hi, is it possible to disable (gray) a menu item? -- You received this message because you are subscribed

[android-developers] Time keeping in a game thread

2010-01-14 Thread Neilz
Hi all. What is most efficient way of keeping a check on time within a game thread? Currently I create a new Date() when the game starts, and was thinking of creating another Date() within the game thread and comparing it with the first one. But with a screen refreshing at around 60fps (hence a

[android-developers] Re: Time keeping in a game thread

2010-01-14 Thread markusn82
Have you tried using System.nanoTime()? On Jan 14, 8:02 am, Neilz neilhorn...@googlemail.com wrote: Hi all. What is most efficient way of keeping a check on time within a game thread? Currently I create a new Date() when the game starts, and was thinking of creating another Date() within the

[android-developers] Re: Using ListView without ListActivity

2010-01-14 Thread Warren
Thanks for the reply, No, I hadn't considered that. Could you please expand a bit on how that might work? Wouldn't I still have to use either a plain listview (without on item selected handlers) or start a new activity? Perhaps I'm not understanding what you mean. Warren On Jan 13, 12:43 pm,

Re: [android-developers] Make menu item disabled

2010-01-14 Thread Mark Murphy
fhucho wrote: Hi, is it possible to disable (gray) a menu item? android:enabled or setEnabled() on MenuItem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.1 Available! -- You received this message because you

Re: [android-developers] Getting a view in a non-Activity class

2010-01-14 Thread Mark Murphy
Eric Crump wrote: I need to change the visibility of a View but I need to do it from a ItemizedOverlay. How do I get a refrence to a view since I can't use findViewById ? If your ItemizedOverlay is an inner class of your Activity, you can use findViewById(). If it is not, pass the Activity as

[android-developers] BT a2dp resume fail, a2dp_write failed err: -110

2010-01-14 Thread Long
Hi, I found one BT a2dp strange issue, Android Donut + SE DS-205 BT headset very easy to cause a2dp fail repro. listen music, MT/MO call, answer it then hang up, then a2dp almost always resume fail. Actually a2dp_write failed err: -110 is very easy appear in many different BT heaset. once it

Re: [android-developers] Re: getDrawable() Resourses$NotFoundException

2010-01-14 Thread TreKing
You can use mapView.getContext().getResources().getDrawable(...) in any function that hands you the mapview you're working with. - TreKing - Chicago transit tracking app for Android-powered devices

[android-developers] Android Team: Please give help on serious OnSensorChanged()-not-called-in-standby bug

2010-01-14 Thread Artem - WorkSmart Labs
Hi Dianne and other Android Team Members, Please provide some kind of comment on this long-standing and serious bug: http://code.google.com/p/android/issues/detail?id=3708 (one of top bugs right now) OnSensorChanged() is no longer called in standby mode since last Firmware upgrade A lot of

[android-developers] Rules Engine for Android

2010-01-14 Thread JFrog
Currently there is a desire to port over an application that uses the Drools libraries. The rules engine system as expected would not simply convert from its jar files over to the dex files. It seems as if that would be a very unlikely situation. However, is there an existing rules engine that

[android-developers] Re: Android Team: Please give help on serious OnSensorChanged()-not-called-in-standby bug

2010-01-14 Thread Artem - WorkSmart Labs
Some other findings I wanted to share: * The GPS sensor (GpsLocationProvider) must be doing something very different because it is never affected by these issues. Why? * Seems to have been broken this way on G1 with Android 1.1, was then fixed in 1.5 (Source:

Re: [android-developers] Re: Using ListView without ListActivity

2010-01-14 Thread Frank Weiss
Refer to the Dev Guide: http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList On Thu, Jan 14, 2010 at 5:38 AM, Warren warrenba...@gmail.com wrote: Thanks for the reply, No, I hadn't considered that. Could you please expand a bit on how that might work? Wouldn't I still have

[android-developers] Preparing for Droid OpenGL issues

2010-01-14 Thread markusn82
Hi, I'm nearly ready to publish my OpenGL game. I've been browsing this newsgroup and I've seen quite a few posts regarding crashes, blank screens, etc when running an OpenGL application on the Droid. I have three questions: 1) What are some common pitfalls that occur when trying to support the

[android-developers] Re: icon in Droid is badly scaled

2010-01-14 Thread Lance Nanek
You can use the hdpi qualifier on a resource directory to provide a higher resolution version for the Droid that it won't try to scale. If your image is currently in res/drawable, for example, you can put a high resolution version of it in res/drawable-hdpi-v4. The normal drawable folder is

[android-developers] Re: Time keeping in a game thread

2010-01-14 Thread Lance Nanek
http://developer.android.com/reference/android/os/SystemClock.html On Jan 14, 8:02 am, Neilz neilhorn...@googlemail.com wrote: Hi all. What is most efficient way of keeping a check on time within a game thread? Currently I create a new Date() when the game starts, and was thinking of

[android-developers] Display locally stored html webpage using webview

2010-01-14 Thread tikky
Hello, I have a locally stored webpage (html) under res/raw folder. The html is something like this: html body This is a test page br/br img src=test.gif/img /body /html There is an image that is referenced in this html page (test.gif) which is stored under

[android-developers] VerifyError issue with Android 1.5 devices

2010-01-14 Thread Mariano Kamp
I got an error message from a user that runs Android 1.5. The error reported os a java.lang.VerifyError and it seems to be based on the method setBuildInZoomControls missing. The thing is that this method should be there on an Android 1.5 device and my app's manifest specifies the minimum sdk

Re: [android-developers] VerifyError issue with Android 1.5 devices

2010-01-14 Thread TreKing
I ran into an issue with the Motorola Cliq maps implementation (on 1.5) that wasn't happening on other phones because that device's particular build didn't have the correct implementation of the MyLocationOverlay class. Do you know which device specifically? Sounds like another one of those

Re: [android-developers] Re: Dotted line in 2D graphics API

2010-01-14 Thread Matt Oakes
Works perfectly. Thank you very much Lance :) Matt On Thu, Jan 14, 2010 at 1:10 AM, Lance Nanek lna...@gmail.com wrote: Never tried them before, but these might do it: http://developer.android.com/intl/fr/reference/android/graphics/DashPathEffect.html

Re: [android-developers] VerifyError issue with Android 1.5 devices

2010-01-14 Thread Mariano Kamp
On Thu, Jan 14, 2010 at 5:31 PM, TreKing treking...@gmail.com wrote: I ran into an issue with the Motorola Cliq maps implementation (on 1.5) that wasn't happening on other phones because that device's particular build didn't have the correct implementation of the MyLocationOverlay class. Ah,

Re: [android-developers] prominent android developers

2010-01-14 Thread chris harper
Hi I have been looking in Google groups. Is there a way in Google groups to post under certain topics within an email group like android-developers? What we really need on here is some way so when people submit a new post they can post under a topic. Such as Graphics, Blue tooth, Sound, Version

Re: [android-developers] prominent android developers

2010-01-14 Thread Mark Murphy
chris harper wrote: Is there a way in Google groups to post under certain topics within an email group like android-developers? What we really need on here is some way so when people submit a new post they can post under a topic. Such as Graphics, Blue tooth, Sound, Version control etc...

[android-developers] RemoteView draw statistics

2010-01-14 Thread kristianlm
Hi folks! I'm at the beginning of writing an AddWidget for the home-screens. From what I understand, these can only utilize RemoteViews ran by the home-process and not your own. Which means we won't be getting any callbacks, such as onDraw. Is there a way you can get knowledge of how often and

Re: [android-developers] RemoteView draw statistics

2010-01-14 Thread Mark Murphy
kristianlm wrote: Is there a way you can get knowledge of how often and for how long a widget is visible? Not presently, no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 22-26 February 2010: http://onlc.com -- You received

[android-developers] Re: Preparing for Droid OpenGL issues

2010-01-14 Thread Richard Leggett
I've heard the Droid having problems with PNGs that are not 24bit (alpha). It's worth checking out the Rokon mailing list and forum for more info on this. Also if you post in the forums there I'll be happy to test on a Nexus One. On Jan 14, 3:14 pm, markusn82 markus...@gmail.com wrote: Hi,

[android-developers] feeding an InputStream into the media player.

2010-01-14 Thread sdphil
I have asked this before, but I never got a response. I would like to be able to feed an InputStream to the media player, but it does not look like there is any way to do that. The InputStream would feed encoded (mp3 or aac) data to whoever is calling read() on it. The issue is that I may have

[android-developers] Re: Display locally stored html webpage using webview

2010-01-14 Thread Guitouille
And because I have read your question too fast, you have to put your html file in the assets directory too Guitouille On 14 jan, 16:42, tikky tiku...@gmail.com wrote: Hello, I have a locally stored webpage (html) under res/raw folder. The html is something like this: html    body        

[android-developers] Re: Display locally stored html webpage using webview

2010-01-14 Thread Guitouille
Hello, In order to do that, you have to put your html and gif file in the assets directory. Guitouille On 14 jan, 16:42, tikky tiku...@gmail.com wrote: Hello, I have a locally stored webpage (html) under res/raw folder. The html is something like this: html    body        This is a test

Re: [android-developers] feeding an InputStream into the media player.

2010-01-14 Thread Mark Murphy
sdphil wrote: I have asked this before, but I never got a response. I would like to be able to feed an InputStream to the media player, but it does not look like there is any way to do that. The InputStream would feed encoded (mp3 or aac) data to whoever is calling read() on it. The issue

[android-developers] How to automatically start service

2010-01-14 Thread Muralidhar Ogilal
I am having service inside a .apk file. I want to automatically start this service when this package is downloaded from the browser and installed. Is it possible to automatically start the service when the .apk file gets installed using some special intents. I am right now using activity and

[android-developers] Re: Time keeping in a game thread

2010-01-14 Thread TjerkW
System.currentTimeMillis is not the correct way to go for games, it changes if the users changes the time on the phone. Use SystemClock.uptimeMillis http://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis() On Jan 14, 7:14 pm, Robert Green rbgrn@gmail.com wrote:

[android-developers] Re: Options for sound in games

2010-01-14 Thread dec...@shanaghy.com
I've found SoundPool to be more reliable when you use ogg format files. Anything else causes trouble. For example sounds wont play or exceptions are thrown. On Jan 14, 10:13 am, Neilz neilhorn...@googlemail.com wrote: Well I've got mine working fairly well by using a SoundPool which only

Re: [android-developers] How to automatically start service

2010-01-14 Thread Mark Murphy
Muralidhar Ogilal wrote: I am having service inside a .apk file. I want to automatically start this service when this package is downloaded from the browser and installed. Is it possible to automatically start the service when the .apk file gets installed using some special intents. No.

Re: [android-developers] fontconfig

2010-01-14 Thread David Turner
There is no fontconfig in Android, period, and probably will never be. I don't know how you can access the system font files though, I'm not sure it's easy from the native side. There maybe a Java API to locate them though. On Thu, Jan 14, 2010 at 9:43 AM, vijayendra R

Re: [android-developers] Some application / market questions

2010-01-14 Thread TreKing
Not sure about 1, but there have been several threads on various free-paid strategies. Search around and I'm sure you'll find something useful. 2) Regardless of the answer to 1, is it possible from within your own app to launch the market (in a new activity), where the user is taken directly

[android-developers] Re: Old dock in 2.1 SDK?

2010-01-14 Thread Jared
On Jan 14, 12:27 pm, Romain Guy romain...@android.com wrote: The new Home and Live Wallpapers will be open sourced but open sourced stuff != SDK != phones on the market. Cool! Do you have any idea of the timeframe for release? -- You received this message because you are subscribed to the

[android-developers] API to temporarily disable orientation changes?

2010-01-14 Thread OldSkoolMark
Users of my application will engage a feature that temporarily uses the accelerometer. I would like to disable support for orientation changes while this feature is active. Is there an API for this? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: android.bluetooth.a2dp.intent.action.SINK_STATE_CHANGED

2010-01-14 Thread Alex Corbi
Hi Nick, Can you tell me please which devices use ACL Connections, do common bluetooth handsfree devices (like the ones present in cars ) use this transfer protocol? I am researching this to implement a new functionality on my app Voice Alerts (+info - http://49ers.es/corbi/voice-alerts) so the

[android-developers] Re: Display locally stored html webpage using webview

2010-01-14 Thread tikky
Thanks Guitouille. In that case, what URL string do I give to webview's loadUrl(url) method? On Jan 14, 11:29 am, Guitouille guillaume.lardill...@gmail.com wrote: In fact your test.gif has to be in the assets folder in order to be visible. Guitouille On 14 jan, 16:42, tikky

[android-developers] Custom Google Marketplace

2010-01-14 Thread JFrog
Are there any applications out there that anyone else has used for local distribution of their applications? Instead of posting software to the google site for instance, how might one manage their own internal android applications to distribute amongst the company? Was curious to see if there

[android-developers] LocationManager.getLastKnownLocation Question

2010-01-14 Thread Tommy
Hey devs, Is there a way to get the time or date stamp of the last time the GPS was updated? -- 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

[android-developers] Re: Display locally stored html webpage using webview

2010-01-14 Thread tikky
Guitouille, I was able to load the html file using AssetManager and the web page loads as expected, but the image file is still not displayed. Is this the correct syntax? img src=test.gif/img I tried the following too: img src=file://test.gif/img img src=file:///test.gif/img .. but nothing

[android-developers] process has died after exiting app

2010-01-14 Thread Albert
Hi there, I am seeing a curious behaviour in my app. I have a widget that gets updated by a service every # hours, when the service finishes I stop it, using stopService(new Intent(this, MyService.class));, the widget if pressed launches an Activity. Now it gets interesting, while im on the

Re: [android-developers] LocationManager.getLastKnownLocation Question

2010-01-14 Thread Tommy Hartz
Hmm ok so how would you subtract the current time from that time to see if it is greater than say 20 minutes? On Thu, Jan 14, 2010 at 3:45 PM, Mark Murphy mmur...@commonsware.comwrote: Tommy wrote: Hey devs, Is there a way to get the time or date stamp of the last time the GPS was

[android-developers] Re: Custom Google Marketplace

2010-01-14 Thread JFrog
That makes an awful lot of sense and should be somewhat straightforward. Appreciate the quick response. On Jan 14, 3:32 pm, Mark Murphy mmur...@commonsware.com wrote: JFrog wrote: Are there any applications out there that anyone else has used for local distribution of their applications?  

[android-developers] Multiple Applications using single service

2010-01-14 Thread Shrikant Agrawal
Hi All, I have to write an application which starts a service. There will be other applications which have to use the service. My questions are Is it possible to write an application that only starts service and finishes with the service running?? How can i communicate from the different

[android-developers] Re: Display locally stored html webpage using webview

2010-01-14 Thread Jason Proctor
it's in the deep past for me and i can't remember how much success i had with this approach, but try URLs of the form -- file:///android_asset/test.gif accessing local files from webkit was a mess way back when, i've not looked into it recently so i can't tell whether it's been fixed up.

Re: [android-developers] LocationManager.getLastKnownLocation Question

2010-01-14 Thread Tommy Hartz
Ah found my answer I need to use currentTimeMillis On Thu, Jan 14, 2010 at 3:49 PM, Tommy Hartz droi...@gmail.com wrote: Hmm ok so how would you subtract the current time from that time to see if it is greater than say 20 minutes? On Thu, Jan 14, 2010 at 3:45 PM, Mark Murphy

[android-developers] Re: Time keeping in a game thread

2010-01-14 Thread Robert Green
Never thought of that, but I don't know if it would be an issue unless some kind of time service were to run and update the clock while playing. You could easily work around that with a sanity check but you're probably right, uptimeMillis is stable. Is it reliable? I don't think the user will

[android-developers] Re: Time keeping in a game thread

2010-01-14 Thread Robert Green
Just looked into it. It looks to be the thing to use. TjerkW, thanks for pointing that out! I'm switching to it from here on out. On Jan 14, 3:23 pm, Robert Green rbgrn@gmail.com wrote: Never thought of that, but I don't know if it would be an issue unless some kind of time service were

[android-developers] Re: Display locally stored html webpage using webview

2010-01-14 Thread tikky
Nope, that does not work either. On Jan 14, 2:50 pm, Jason Proctor jason.android.li...@gmail.com wrote: it's in the deep past for me and i can't remember how much success i had with this approach, but try URLs of the form -- file:///android_asset/test.gif accessing local files from webkit

[android-developers] Re: Accelerometer Reading ranges

2010-01-14 Thread Chris McClanahan
I believe the max accelerometer reading is 40, thus making it sensitive to about (40/9.81)=4.077472G. On Jan 13, 3:17 pm, MPower123 michaelh...@gmail.com wrote: Hi, I am writing a game for android phone and I want to know what is the range of values that can be read from the accelerometer?

[android-developers] Re: Display locally stored html webpage using webview

2010-01-14 Thread Jason Proctor
ISTR a new permission that came in with 1.5 or 1.6 that was required for this. sorry i don't remember which one it is. do you perhaps not have it set? another way around this i found to work is to write a simple content provider which effectively caches assets in the filesystem, and returns

[android-developers] Re: Buy one Nexus One in Argentina

2010-01-14 Thread Moto
Hola Mario, Seguro te lo roban en el camino a la argentina... :P La posta es de que alguien te lo compre y te lo lleve o comprar milestone que creo que ya esta a la venta por lo menos en BA.. Moto On Jan 13, 11:10 pm, Mario Chacon the.ma...@gmail.com wrote: Hello I am really want to buy a

[android-developers] AudioFlinger write blocked for 103 msecs warnings

2010-01-14 Thread OldSkoolMark
I'm trying to improve the real-time behavior of my app. I get these warnings in logcat from time to time, and they account for at least some of the undesired lag I'm seeing. Is there anything I can do to make these less likely to occur? -- You received this message because you are subscribed to

[android-developers] Re: VerifyError issue with Android 1.5 devices

2010-01-14 Thread fadden
On Jan 14, 7:43 am, Mariano Kamp mariano.k...@gmail.com wrote: *01-13 12:08:13.738 E/dalvikvm(  407): Could not find method android.webkit.WebSettings.setBuiltInZoomControls, referenced from method com.newsrob.activities.ShowArticleActivity.createWebView* 01-13 12:08:13.738 W/dalvikvm(  407):

[android-developers] Re: process has died after exiting app

2010-01-14 Thread String
The OS may kill any process which isn't active (or very occasionally, even ones which are), and you certainly can't rely on the user's phone having plenty of resources. So, using static variable in an AppWidget isn't reliable; you need to store information between runs someplace else, such as

[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?

2010-01-14 Thread Matt Hall
I am having the same problem - did you ever figure out a resolution to this? Or did you file a bug? Seems like a bug since you can reproduce it with this example you've provided. Thanks, Matt On Jan 7, 8:36 am, Marc Reichelt mcreich...@googlemail.com wrote: Hi there! I am using the fullscreen

[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?

2010-01-14 Thread Nerdrow
I just tried this on a Droid w/2.0.1 and don't have any issues. Is this happening in the emulator or on an actual device? On Jan 14, 2:09 pm, Matt Hall matt.h...@gmail.com wrote: I am having the same problem - did you ever figure out a resolution to this? Or did you file a bug? Seems like a

[android-developers] Eclipse no longer runs application

2010-01-14 Thread rben
After deleting a phone device from the emulator, I can no longer hit the green triangle button in eclipse and have it launch my application in the emulator. I had been developing for 2.0.1, but then decided to try my app out in 2.1. I created a phone device for 2.1 and tried running it. I

[android-developers] Re: Lazy Loading Images in a ListView

2010-01-14 Thread Sam Dutton
I haven't read through the whole thread, but FWIW there's a very good introduction to list view 'lazy loading' techniques in Beginning Android: http://www.apress.com/book/view/1430224193. Look in the sample code under fancylists -- well documented in the book. Sam Dutton On Dec 8 2009, 2:34 pm,

[android-developers] Battery Life vs Features

2010-01-14 Thread Acchao
I'm curious as to how many developers take into consideration battery life before implementing a feature. Say you could implement a really nifty feature using the camera, but you know that would drain the phone's battery faster on an nonessential ability, what do you do? Do you completely

[android-developers] Re: process has died after exiting app

2010-01-14 Thread Albert
Thanks String for your reply, I have indeed changed my approach there and I am sending everything I need for my activity as Extras in the intent. Still I find it a bit strange that the process gets killed right after I exit the activity, it happens quite often and I do not see on the log the same

[android-developers] Re: Display locally stored html webpage using webview

2010-01-14 Thread tikky
Hi Jason, It works now. The issue was the I was loading the webview using: loadData(htmlData, mimetype, encoding); When I changed it to : loadUrl(file:///android_asset/test.html); everything started working fine :) Thanks for all the help. On Jan 14, 3:37 pm, Jason Proctor

Re: [android-developers] Re: Lazy Loading Images in a ListView

2010-01-14 Thread Mark Murphy
Sam Dutton wrote: I haven't read through the whole thread, but FWIW there's a very good introduction to list view 'lazy loading' techniques in Beginning Android: http://www.apress.com/book/view/1430224193. Look in the sample code under fancylists -- well documented in the book. Hm...

[android-developers] Re: Battery Life vs Features

2010-01-14 Thread Matt Kanninen
It's pretty easy for users to check which applications are draining the battery, so it's in your interest not to have your application on the top of the list. I say conserve battery wherever possible, but a good user experience and quality application is more important. On Jan 14, 2:27 pm,

[android-developers] gphone and RF transceiver

2010-01-14 Thread jonathan
does GPhone support receiving signal/data from a nRF2401A Transceiver or similar? - The Nordic Semiconductor nRF2401A ultralow power 2.4GHz transceiver? link to the device http://www.nordicsemi.com/index.cfm?obj=productact=displaypro=64 -- You received this message because you are subscribed to

Re: [android-developers] Webview dont open Virtual Keyboard?

2010-01-14 Thread Declan Shanaghy
I'm having the same issue and cant find any solution thru google searches. Did you ever find out the solution or if not what workaround did you use? On Thu, Jul 2, 2009 at 10:08 AM, guruk ilovesi...@gmail.com wrote: Hi, I have a URL where User can Input in a Field. When I open that URL

[android-developers] Re: Updating a unique AppWidgetProvider from a Service

2010-01-14 Thread theSmith
No problem, heres how I did it. AppWidgetManager manager = AppWidgetManager.getInstance(this); RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widgetlayout); views.setTextViewText(R.id.TextView_Body, hello world); appWidgetManager.updateAppWidget(appWidgetId, views);

[android-developers] getting clicks on a map view

2010-01-14 Thread Jason Proctor
i'm looking to get called when the user taps on any part of a map view and i'm having no luck so far. mapView.setOnClickListener() overlay.onTap() overlay.onTouchEvent() none of these produces as much as a peep when the map view is clicked. i did some googling and found this thread --

[android-developers] Re: What's best way to resume activity and play audio file after spawned thread completes download?

2010-01-14 Thread Philip
Why don't you simply use thread join wait and notify? Curious... On Jan 13, 8:21 pm, rastyrori rastyr...@gmail.com wrote: I've got an activity that calls a helper class called DownloadManager. DownloadManager spawns a thread that downloads a mp3 to the sdcard. I'm having some trouble finding

[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?

2010-01-14 Thread Philip
I used this two lines of code to remove the title bar right after calling super.OnCreated and never experienced problems in 1.6 or 2.0 (emul): requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN,

[android-developers] Re: HowTo make ListView Larger so more than one item visible at a time ?

2010-01-14 Thread Michael
Cam, I'm an amateur coder... but I believe you need to take the linear view out completely. Try it with this structure: LinearLayout ScrollView ListView -Mike On Jan 14, 10:42 am, SoftwareEngCam c...@cambridgesoftware.biz wrote: Hi,  Does anyone know how to make a ListView

Re: [android-developers] getting clicks on a map view

2010-01-14 Thread Kevin Duffey
Using Mark Murphy's online books, he describes how to do this. I don't know if it is the only way, but basically you extend ItemizedOverlayOverlayItem, in the constructor you do the items.add(OverlyaItem) method call. This will add overlayitem's to the map. These items are clickable and you can

[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?

2010-01-14 Thread Philip
I forgot to add that I am using a GLSurfaceView as the view attached to my activity. On Jan 14, 3:14 pm, Philip philip.dese...@gmail.com wrote: I used this two lines of code to remove the title bar right after calling super.OnCreated and never experienced problems in 1.6 or 2.0 (emul):      

Re: [android-developers] Re: HowTo make ListView Larger so more than one item visible at a time ?

2010-01-14 Thread Mark Murphy
Michael wrote: Cam, I'm an amateur coder... but I believe you need to take the linear view out completely. Try it with this structure: LinearLayout ScrollView ListView Do not wrap a ListView in a ScrollView. ScrollView is for use with widgets that do not know how to scroll;

Re: [android-developers] getting clicks on a map view

2010-01-14 Thread Mark Murphy
Kevin Duffey wrote: Using Mark Murphy's online books, he describes how to do this. I don't know if it is the only way, but basically you extend ItemizedOverlayOverlayItem, in the constructor you do the items.add(OverlyaItem) method call. This will add overlayitem's to the map. These items are

Re: [android-developers] getting clicks on a map view

2010-01-14 Thread Jason Proctor
Kevin Duffey wrote: Using Mark Murphy's online books, he describes how to do this. I don't know if it is the only way, but basically you extend ItemizedOverlayOverlayItem, in the constructor you do the items.add(OverlyaItem) method call. This will add overlayitem's to the map. These items

[android-developers] Re: Preparing for Droid OpenGL issues

2010-01-14 Thread Philip
My experience so far: - Create your textures in power of two and make sure you scale and clip them to the right ratio when you draw. - Don't stick to RBGA_ when you can do ALPHA_8 (text rendering) - Do whatever you can do in OnSurfaceCreated before you get called in OnSurfaceDraw - Avoid the

[android-developers] Re: What's best way to resume activity and play audio file after spawned thread completes download?

2010-01-14 Thread Jason Proctor
what's going on while the mp3 is being downloaded? is the user waiting for it, with a progress bar? is the user to be presented with the media player when the download completes, regardless of what else they might be doing? as always i would recommend AsyncTask for doing this stuff, it has

[android-developers] Re: Some application / market questions

2010-01-14 Thread Neilz
Thank you, TreKing, for your response - very helpful. I've searched around a bit for the answer to my first question, not found anything that quite answers it yet. The impression I get is that it isn't possible... if it is I need to find out before I go too far down the wrong road! -- You

Re: [android-developers] getting clicks on a map view

2010-01-14 Thread Kevin Duffey
Glad it worked out. Curious.. the overlayitem stuff seems to work pretty well.. why would you need to be able to control clicks directly on the map at any point, instead of providing overlayitems? On Thu, Jan 14, 2010 at 3:28 PM, Jason Proctor jason.android.li...@gmail.com wrote: Kevin Duffey

Re: [android-developers] getting clicks on a map view

2010-01-14 Thread Jason Proctor
because my MapView is embedded in a much more complex view that's inside a scroller. rather than fight the ScrollView by allowing clicks in the embedded map, i just trap clicks on it and open up the Maps application. Glad it worked out. Curious.. the overlayitem stuff seems to work pretty

Re: [android-developers] Re: Some application / market questions

2010-01-14 Thread Kevin Duffey
For your first question, do you run your own server with extra levels for example that can be retrieved by your game? Do you need to offer it on the market as well.. or would being able to retrieve new levels within the game be good enough? Are you looking to have the user pay for these levels? I

Re: [android-developers] Webview dont open Virtual Keyboard?

2010-01-14 Thread Carmen Delessio
I had a similar situation with one small difference. When I showed the webview, I had a dialog window appear for first time users. After the dialog, the virtual keyboard did not appear when selecting the field. My assumption was that it could not get focus. I changed the interface to avoid the

[android-developers] Re: icon in Droid is badly scaled

2010-01-14 Thread yidongsoft
Thank you! I will give a summary later. On 1月14日, 下午11时16分, Lance Nanek lna...@gmail.com wrote: You can use the hdpi qualifier on a resource directory to provide a higher resolution version for the Droid that it won't try to scale. If your image is currently in res/drawable, for example, you

[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?

2010-01-14 Thread Matt Hall
Some more information, after reading this thread: http://groups.google.com/group/android-developers/browse_thread/thread/2de77043f32835aa/315d393bb8334db5 we came to the conclusion that it was because our top view can accept focus that is causing the problem (there does appear to be some weirdness

[android-developers] Copy Protection

2010-01-14 Thread Andrei
I have Copy Protection turned on for my app, but now i want to remove it Will there be any problems if i remove it now? 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: Archos Approval on an app

2010-01-14 Thread Andrei
still did not get anything from Archos On Dec 9 2009, 12:37 am, Andrei gml...@gmail.com wrote: i send them email my app is approved and they will send voucher when US store is set up On Dec 8, 6:00 pm, Hong lordh...@gmail.com wrote: According to Tim Strazzere, UK/Europe/Asia developers

[android-developers] Re: Archos Approval on an app

2010-01-14 Thread schwiz
I actually recieved a response from them on one of my many emails and tweets, they said do not worry US developers will get their vouchers and they will expire in March. I am guessing they are handing them out on March 30th. On Jan 14, 7:37 pm, Andrei gml...@gmail.com wrote: still did not get

  1   2   >