[android-developers] Re: rotation change not coming

2010-01-14 Thread Jags
ok keyboardHidden|orientation resolved it ! On Jan 15, 9:32 am, Jags wrote: > whats wrong ? anybody ? > > On Jan 13, 6:47 pm, Jags wrote: > > > i have an activity which i have set in xml as > > > > android:configChanges="orientation"> > > > in my activity class > > > i have > > >         @Overr

[android-developers] subclasses vs constructors

2010-01-14 Thread Duey Oxburger
Hey Guys, Could someone explain the difference between a subclass and a constructor?... Thx, D -- 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 th

Re: [android-developers] Re: LocationManager.getLastKnownLocation Question

2010-01-14 Thread Tommy Hartz
I did it this way so the receiver will not be running the whole time. I don't need constant updates only when it is requested. I am also using the method you suggested in other areas. Thanks to everyone who submitted! On Fri, Jan 15, 2010 at 12:16 AM, Kumar Bibek wrote: > Why would you do that?

[android-developers] Re: Restoring focus to ListView

2010-01-14 Thread Zsolt Vasvari
Ok, thanks for your response. I wonder if this behavior should be defeatable. Currently, if the user navigates then clicks the ListView using the trackball and then hits the back button from the pop-up Activity without ever touching the screen, the system behaves as if there had been a touch. In

[android-developers] Voice Call

2010-01-14 Thread Sukitha Udugamasooriya
Is it possible to interfere with a voice call and change the speaking voices? -- 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

Re: [android-developers] Restoring focus to ListView

2010-01-14 Thread Romain Guy
This is the normal and intended behavior. Focus appears only when the user uses the trackball/dpad. When the user touches the screen, the focus disappears. On Thu, Jan 14, 2010 at 10:33 PM, Zsolt Vasvari wrote: > I have a ListView in a ListActivity that starts another Activity when > a list item

[android-developers] Restoring focus to ListView

2010-01-14 Thread Zsolt Vasvari
I have a ListView in a ListActivity that starts another Activity when a list item is clicked. The 2nd Activity is a Theme.Dialog, but I don't think that matters for this purpose. I would like the visible focus restored to the ListView when I close the 2nd Activity. Currently,when I come back, I

[android-developers] Re: How to process this kind of HTTP POST request/reponse

2010-01-14 Thread ponkin
Hello, I`m not sure, but what if just use SerializableEntity( http://developer.android.com/reference/org/apache/http/entity/SerializableEntity.html ) instead of StringEntity? Create a serializable wrapper class for your request parameters, implement private void writeObject(java.io.ObjectOutputS

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

2010-01-14 Thread markusn82
Thanks for all the replies guys. Philip, I've already taken most of your points into consideration during my development (though there were a few things new to me like using Bitmap.recycle). Jeremy, what kind of VBO issues were encountered. My game uses VBO heavily so I'd like to know if I can wo

[android-developers] Re: Handling OnItemSelected...the opposite way!

2010-01-14 Thread skink
On Jan 15, 6:39 am, SizzlingSkizzorsProgrammer wrote: > I have a listview in which I set the background drawable of each of > the views.  I can change the background using OnItemSelected, but I > cannot find a way to reset the background after it has been deselected > or something else has been

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

2010-01-14 Thread JP
Below a snippet of code that I use. It toggles between screen lock and unlock. It's been a year or so that I've implemented this so I am not sure if that's the whole story, but there you got: <--- snip ---> if (this.isMyAppsScreenLocked) //

[android-developers] Handling OnItemSelected...the opposite way!

2010-01-14 Thread SizzlingSkizzorsProgrammer
I have a listview in which I set the background drawable of each of the views. I can change the background using OnItemSelected, but I cannot find a way to reset the background after it has been deselected or something else has been selected...something like OnItemDeselected (set background to nor

[android-developers] Re: how to catch map zoom in/out event for Android 1.5

2010-01-14 Thread JP
I can't give you a direct answer but the following might help: Create an overlay to capture zoom level, canvas dimensions and map center when the overridden Overlay.onDraw() is called. This is universal in the sense that it will also capture users (or your app) manipulating the app outside of the

Re: [android-developers] Battery Life vs Features

2010-01-14 Thread Dianne Hackborn
Using battery for what the user is actively doing is generally fine -- for example if you want to let them do something with the camera, then of course they clearly understand that is what they are doing and if they see your app at the top of the battery use list because they have been using it and

[android-developers] Re: Copy Protection

2010-01-14 Thread Kumar Bibek
No, Dev phones cannot see your application if they are copy protected. Kumar Bibek On Jan 15, 10:15 am, Andrei wrote: > Can dev phone download paid app? > > On Jan 15, 12:10 am, Kumar Bibek wrote: > > > Hi Andrei, > > > If you don't care about dev phones downloading your app, and ripping > > ap

Re: [android-developers] Re: Forcibly using 3G or CDMA network even though wi-fi is available.

2010-01-14 Thread Dianne Hackborn
They can be dropped for many other reasons as well, such as losing cell signal. You must write an app that robustly deals with such a situation, this is standard behavior for a phone. On Thu, Jan 14, 2010 at 6:04 PM, Andrei wrote: > One of the reason would be - when switching 3g/WiFi takes plac

[android-developers] Re: LocationManager.getLastKnownLocation Question

2010-01-14 Thread Kumar Bibek
Why would you do that? While registering for location changes, you have an option to specify the time interval, and the displacement, so that only when these values are exceeded, the GPS provider will be updated. Have a look at the requestLocationUpdates method for LocationManager. Kumar Bibek O

[android-developers] Re: Copy Protection

2010-01-14 Thread Andrei
Can dev phone download paid app? On Jan 15, 12:10 am, Kumar Bibek wrote: > Hi Andrei, > > If you don't care about dev phones downloading your app, and ripping > apart your db and local files, then it's fine. > > Kumar Bibek > > On Jan 15, 6:34 am, Andrei wrote: > > > I have "Copy Protection" tur

[android-developers] Re: Copy Protection

2010-01-14 Thread Kumar Bibek
Hi Andrei, If you don't care about dev phones downloading your app, and ripping apart your db and local files, then it's fine. Kumar Bibek On Jan 15, 6:34 am, Andrei wrote: > 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

[android-developers] Re: Outgoing text/sms

2010-01-14 Thread Kumar Bibek
I don't think you can do that. I am sure no user will want any app which blocks his phone functionalities like, dropping a call, disabling SMS sending and stuff like that. Those are very basic features which the user would not want to give access to third party apps. Kumar Bibek On Jan 15, 9:00 a

[android-developers] Re: Live Wallpaper - How to detect home screen sliding?

2010-01-14 Thread Robert Green
Aha, I don't know how I missed that. Ok, that makes life easy. I'll just start with a view of predefined width and use the xOffset to know how far to pan in one direction or another. Thanks Romain! On Jan 14, 10:46 pm, Romain Guy wrote: > onOffsetChanged() > > http://d.android.com/reference/an

Re: [android-developers] Live Wallpaper - How to detect home screen sliding?

2010-01-14 Thread Romain Guy
onOffsetChanged() http://d.android.com/reference/android/service/wallpaper/WallpaperService.Engine.html#onOffsetsChanged(float,%20float,%20float,%20float,%20int,%20int) On Thu, Jan 14, 2010 at 8:30 PM, Robert Green wrote: > I've checked the WallpaperService.Engine class and don't see > anything.

[android-developers] Re: Live Wallpaper Tutorial

2010-01-14 Thread Robert Green
in your wallpaper's xml: http://schemas.android.com/apk/res/android"; android:thumbnail="@drawable/icon" android:description="@string/ description" android:author="@string/author"> On Jan 13, 3:57 pm, "SoftwareForMe.com SoftwareForMe.com" wrote: > How does one set the icon for

[android-developers] Re: How to determine when SCREEN_OFF_TIMEOUT has changed?

2010-01-14 Thread Mike Bautista
Thanks for the response. So what would be the best way to insure that the state of Settings.System.SCREEN_OFF_TIMEOUT and the view on my widget stay consistent? It seems like the only way would be to poll the setting every X minutes, but perhaps there's a more optimal way? On Jan 13, 12:18 pm,

[android-developers] Re: rotation change not coming

2010-01-14 Thread Jags
whats wrong ? anybody ? On Jan 13, 6:47 pm, Jags wrote: > i have an activity which i have set in xml as > > android:configChanges="orientation"> > > in my activity class > > i have > >         @Override >         public void onConfigurationChanged(Configuration newConfig) { >                 Vie

[android-developers] Live Wallpaper - How to detect home screen sliding?

2010-01-14 Thread Robert Green
I've checked the WallpaperService.Engine class and don't see anything. What's the best practice for detecting home screen sliding? 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-develope

Re: [android-developers] Multiple Applications using single service

2010-01-14 Thread Kevin Duffey
I am sure this is possible. I think if from your main activity you start the service, then finish() on the activity..the app that you launched goes away (activity is done) but the service you started still runs. Not for sure tho.. haven't messed around with that yet. On Thu, Jan 14, 2010 at 1:05 P

[android-developers] Re: Outgoing text/sms

2010-01-14 Thread Sunny25
I understand that there is no way to get notification of outgoing text being sent, but is there any way to disable text messaging facility On Jan 5, 10:48 am, debnath68 wrote: > Hi sunny25, > AKAIK there is an intent for received sms which will be broadcasted > when a sms is received to the phone

[android-developers] Getting Current Signal Strength

2010-01-14 Thread dolsen
I am trying to figure out how to get the current signal strength of the Android 2.1 device. So far I can only find access to the SignalStrength object if I am listening for a change. I don't want to have to wait for the strength to change in order to see what the strength is. Can someone show me ho

Re: [android-developers] 有一个小问题,关于 TextView的。

2010-01-14 Thread xii stan
可以用service来监听长按事件,在触发界面操作 这是我的建议,不知道可不可行。仅供参考。 2010/1/12 zongan liu > 怎么写中文呢?这是美国人的groups,怎么能看懂你写的 > > 2010/1/11 fengqve > >> 就是把TextView 设置成可以监听长点击事件的时候。 >> >> TextView tv = new TextView(context); >> >> tv.setOnLongClickListener ,这个时候,手指点击textview上的文字时,文字会产生闪烁,有没有方法可以屏蔽文字闪 >> 烁? >> >> 因为在

[android-developers] Re: Live Wallpaper Icon and Description

2010-01-14 Thread Robert Green
Nevermind. I figured it out. I just re-read the info in R.styleable and realized that I was putting full tags in when it really wanted attributes. Here's probably what should be in an example: http://schemas.android.com/apk/res/android"; android:thumbnail="@drawable/icon" android:descri

[android-developers] Live Wallpaper Icon and Description

2010-01-14 Thread Robert Green
I just wrote my first live wallpaper and am getting ready to publish it, but I've hit a snag on something seemingly simple. I can't get the description to work. I've tried: 1) Putting raw text and string ids as android:description in the metadata for the service in the manifest 2) Putting raw te

Re: [android-developers] UI Design Book

2010-01-14 Thread Kevin Duffey
When in doubt, ask Romain. He's a UI expert as well. :D Sorry Romain, had to plug you. On Thu, Jan 14, 2010 at 6:00 PM, Mihai Fonoage wrote: > Thanks Romain, great resources! I also found "The Visual Display of > Quantitative Information" by Edward Tufte. > > Mihai Fonoage > > On Thu, Jan 14, 20

Re: [android-developers] Videogame efficency

2010-01-14 Thread Kevin Duffey
Not sure about the image stuff.. from what I've seen you generally would load/cache images at the start so that you don't hit any delay when you actually need them. Depending on the size of the images and number of them, you may run up against the 16 to 24MB ram limit per app. This has been discuss

[android-developers] Re: Eclipse no longer runs application

2010-01-14 Thread rben
Some details: I get three errors which I have listed below. It appears that something is messed up in the setup, but I have no idea how to fix it. - First Error: org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'd:layout-devices' is not co

[android-developers] Re: Forcibly using 3G or CDMA network even though wi-fi is available.

2010-01-14 Thread Andrei
One of the reason would be - when switching 3g/WiFi takes place network connections are dropped On Jan 14, 1:07 pm, Dianne Hackborn wrote: > Sorry, I don't believe you can.  Why do you want to do this? > > > > On Thu, Jan 14, 2010 at 12:39 AM, Dongjoon Lee wrote: > > Hello. > > > My question is,

Re: [android-developers] UI Design Book

2010-01-14 Thread Mihai Fonoage
Thanks Romain, great resources! I also found "The Visual Display of Quantitative Information" by Edward Tufte. Mihai Fonoage On Thu, Jan 14, 2010 at 8:42 PM, Romain Guy wrote: > Here are a few very good reads: > GUI Bloopers by Jeff Johnson > About Face 3.0 by Alan Cooper > Designing Interfaces

[android-developers] Videogame efficency

2010-01-14 Thread miguel
Hi everyone! I will work in an Android videogame soon. It will need a lot of artwork which means that will have a few image resources. Mi question is about the loading process of the application and its memory optimizations. About the pictures: How does the VM handle the drawable resources or the

Re: [android-developers] UI Design Book

2010-01-14 Thread Romain Guy
Here are a few very good reads: GUI Bloopers by Jeff Johnson About Face 3.0 by Alan Cooper Designing Interfaces by Jennifer Tidwell Desining Visual Interfaces by Kevin Mullet and Darrell Sano (EXCELLENT book, hard to find) On Thu, Jan 14, 2010 at 5:39 PM, Mihai Fonoage wrote: > Hi, > > I have ask

[android-developers] UI Design Book

2010-01-14 Thread Mihai Fonoage
Hi, I have asked this question on android-developers, but I had no replies. Maybe I'll get lucky on this forum: Anybody know a good book on UI Design that is particularly geared towards mobile phones, or that is general enough that the principles described can be applied also to mobile phones? T

[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 wrote: > still did not get anything from Arc

[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 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 wrote: > > > According to Tim Strazzere, UK/Europe/Asia developers have received the > > coupon c

[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@googlegr

[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] 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 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 can put a > h

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 dia

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?

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 w

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 Duffe

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

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

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

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 ItemizedOverlay, in the constructor you do the items.add(OverlyaItem) method call. This will add overlayitem's to the map. These items are clickable

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 > ItemizedOverlay, in the constructor you do the > items.add(OverlyaItem) method call. This will add overlayitem's to the > map. These items are clicka

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: > > > > Do not wrap a ListView in a ScrollView. ScrollView is for use with widgets that do not know how to scroll; ListView already can scr

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

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 ItemizedOverlay, 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 implement the

[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: -Mike On Jan 14, 10:42 am, SoftwareEngCam wrote: > Hi, > >  Does anyone know how to make a ListView object larger such that more > than one Entry item is visi

[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, WindowMan

[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 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 the best design f

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

[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); onHa

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

2010-01-14 Thread Jeremy Slade
We ran into an issue with the drivers for the Droid that cause a SIGSEGV if using VBO's. The workaround is to use standard buffer data on the Droid. Turns out the same issue appears to exist with the NexusOne. On Jan 14, 8:14 am, markusn82 wrote: > Hi, > > I'm nearly ready to publish my OpenGL

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 wrote: > > Hi, > I have a URL where User can Input in a Field. > > When I open that URL with the Android Br

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

2010-01-14 Thread Matt Hall
Our problem is occurring on a devices running both 1.6 and 2.0 (haven't tried it on others). We've got a pretty complicated view system though so it still could definitely be our fault, the end result is exactly what's in the screenshot Marc posted though. On Jan 14, 5:20 pm, Nerdrow wrote: > I j

[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=product&act=display&pro=64 -- You received this message because you are subscribed to

[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, Acchao

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: 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 wrote: > ISTR

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

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

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

[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 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 bug since you can re

[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 wrote: > Hi there! > > I am using the fullscreen mode in my application

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

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

2010-01-14 Thread fadden
On Jan 14, 7:43 am, Mariano Kamp 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): VFY: unable to reso

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

[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 wrote: > Hello > > I am really want to buy a Nexus One, but I

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

[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 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? I want to > know h

[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 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 was a mess way back when,

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

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

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 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 wrote: > >> Tommy wrote: >> >

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

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

[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 wrote: > JFrog wrote: > > Are there any applications out there that anyone else has used for > > local distribution of their applications?  Instead of posting s

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 wrote: > Tommy wrote: > > Hey devs, > > > > Is there a way to get the time or date stamp of the last time the GPS > > was updated? > > Call ge

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

[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? I tried the following too: .. but nothing worked. On Jan 14, 2:26 pm, tikky wrote: > Thanks Guitouille. In that case, wha

Re: [android-developers] LocationManager.getLastKnownLocation Question

2010-01-14 Thread Mark Murphy
Tommy wrote: > Hey devs, > > Is there a way to get the time or date stamp of the last time the GPS > was updated? Call getTime() on the Location object. "Returns the UTC time of this fix, in milliseconds since January 1, 1970. " http://developer.android.com/reference/android/location/Location.ht

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

Re: [android-developers] Custom Google Marketplace

2010-01-14 Thread Mark Murphy
JFrog wrote: > 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? An intrane

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

[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 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 wrote: > > > Hello, > > > I have a local

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

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

2010-01-14 Thread Jared
On Jan 14, 12:27 pm, Romain Guy 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 Google Groups "Android D

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

  1   2   >