Re: [android-developers] Re: XML layout vs. programmatic

2011-01-15 Thread Frank Weiss
Well, I would not have anything against programmatic layouts per se. Indeed, I've written a couple of layout managers for custom layouts that the standard layout managers were not designed for. However, one of them was driven by an XML configuration file, -- You received this message because you

[android-developers] How to enable SVG in WebKit?

2011-01-15 Thread AJ
Does anybody know how to enable SVG in webkit? I have followed the steps mention in the following link but unable to do so. https://review.source.android.com/#change,17258 I have modified the above 3 files mentioned in the link and also enabled the variable ENABLE_SVG and ENABLE_SVG_ANIMATION.

Re: [android-developers] Re: How best to query web repeatedly.

2011-01-15 Thread Frank Weiss
I would suggest being more flexible about *when* the queries are made. You seem to have fixated on every 50 meters. Why not every two minutes? Or every n minutes, depending upon the current network latency? Or even a heuristic scheduler based on multiple factors? I would also suggest considering

[android-developers] Re: How best to query web repeatedly.

2011-01-15 Thread Jonathan Foley
Why don't you pull down data ahead of time? You haven't told us exactly what you are querying. Maps, logging the route?? In any case, you can either pre-cache some of the data you'll need or cache the data you'll be sending and send it less frequently in either direction. The only reason I can

[android-developers] Re: exit strategy

2011-01-15 Thread JAlexoid (Aleksandr Panzin)
The ADB kills it with reinstall... So he could have missed it... On 15 янв, 06:51, TreKing treking...@gmail.com wrote: On Thu, Jan 13, 2011 at 11:35 AM, bob b...@coolgroups.com wrote: How do most Android apps allow the user to quit, and do they have a way to quit my slot machine even though

[android-developers] Re: Changing price in the Market

2011-01-15 Thread JAlexoid (Aleksandr Panzin)
Not all Androids cost $400+/€400+. On 15 янв, 08:22, Kumar Bibek coomar@gmail.com wrote: Someone who owns an Android or iPhone, that's definitely cheap. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sat, Jan 15, 2011 at 11:47 AM, Doug beafd...@gmail.com wrote: On Jan

[android-developers] Re: Amazon to Policy Android Market Place

2011-01-15 Thread blindfold
Indeed that can work for some, at the expense of a bloated APK (ZXing is about twice as large as my app, so it would likely triple my APK size), and at the expense of updates to ZXing not automatically becoming available to your users until you release your own update that bundles an updated

Re: [android-developers] Re: searching in HUGE SQLite database

2011-01-15 Thread Kostya Vasilyev
There is a primary key: CREATE TABLE tiles (x INTEGER,y INTEGER,z INTEGER,s INTEGER,image BYTE, PRIMARY KEY (x, y, z, s)); but it's not specific to z. Adding an index for z alone should help (but the 2G limit looks to be a different issue). -- Kostya 2011/1/15 Frank Weiss fewe...@gmail.com

Re: [android-developers] Galaxy S blocked

2011-01-15 Thread Kostya Vasilyev
Try doing a factory reset - it's under settings - privacy. -- Kostya 2011/1/15 Diego N. diegonunes.sist...@gmail.com Guys, My nephew was trying to unlock my Galaxy S where is the standard type and ended upblocking everything. Now my login is being requested for a Google account, I put

[android-developers] Re: searching in HUGE SQLite database

2011-01-15 Thread Menion
that's not true. As I wrote, I cannot change structure of database, but i did my own test and indexes as are PRIMARY KEY (x, y, z, s) are almost twice faster for query on single row by x, y, z values (for reading and mainly for writing), then classic ID INTEGER PRIMARY KEY I'm not database

Re: [android-developers] Re: Code Assist still Slow

2011-01-15 Thread Kostya Vasilyev
Peco, This worked, thank you very much for the backport. I'm really hoping that the Eclipse team will consider releasing this fix with 3.6SR2. -- Kostya 2011/1/15 snpe snp...@gmail.com https://bugs.eclipse.org/bugs/show_bug.cgi?id=329288 contains patch that fixes this issue. Unfortunately

[android-developers] Camera properties

2011-01-15 Thread b_t
Hi, is there any way to get camera properties without open it? I want to display camera properties but don't want to take a picture. I have to open camera, get properties, then release it: Camera camera = Camera.open(); if (camera != null) { parameters =

[android-developers] Re: Galaxy S blocked

2011-01-15 Thread Diego Nunes
I can not do this reset because I can not access anything on your phone. I've managed to install 2.2 by KIES, so that now the phone is restarting over and over, anyone know what might be? Att, On Jan 15, 7:31 am, Kostya Vasilyev kmans...@gmail.com wrote: Try doing a factory reset - it's under

Re: [android-developers] Blinking Images

2011-01-15 Thread Kostya Vasilyev
Braco, You are using a Java Timer, which invokes your TimerTask on a background thread. In Android, only the original (UI) thread is allowed to touch the UI. Touching the UI from a background thread, like your code does, produces unpredictable results (possibly a crash). This should help you

Re: [android-developers] Re: Galaxy S blocked

2011-01-15 Thread Kostya Vasilyev
No idea. You might want to contact Samsung's customer support. 2011/1/15 Diego Nunes diegonunes.sist...@gmail.com I can not do this reset because I can not access anything on your phone. I've managed to install 2.2 by KIES, so that now the phone is restarting over and over, anyone know what

[android-developers] Re: Galaxy S blocked

2011-01-15 Thread Diego Nunes
I managed to solve, he was restarting until it stops, i asked again google account to unlock, but this time he accepted. Apparently the bug has been resolved Unblock this version 2.2. Att, On Jan 15, 9:59 am, Kostya Vasilyev kmans...@gmail.com wrote: No idea. You might want to contact Samsung's

[android-developers] Re: AudioManager, requestAudioFocus and video playback...

2011-01-15 Thread sdphil
ping On Jan 13, 11:12 am, sdphil phil.pellouch...@gmail.com wrote: Hi, On Android 2.2.1, I am seeing a behavior I don't understand.  I am making a call to requestAudioFocus() mAudioManager.requestAudioFocus(mAudioFocusChangeListener, AudioManager.STREAM_MUSIC,

[android-developers] Re: Proguard integration with Google Adsense cause error.

2011-01-15 Thread HelloUbuntu
On Jan 5, 5:48 pm, Vincent y.ikeda.asa...@gmail.com wrote: Hi, I just download the latest Android SDK (r08) to useProguard. But, I get the following error when exporting apk.  Proguardreturned with error code 1. See console        You should check if you need to specify additional program

[android-developers] crop a bitmap

2011-01-15 Thread crem
Hi i need to crop a bitmap. Especially, I need to cut of a fixed number of pixels from the top, left, right and bottom of the bitmap. Does android provide any methods for doing this? greets -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] crop a bitmap

2011-01-15 Thread Kostya Vasilyev
Bernd, This should help: http://developer.android.com/reference/android/graphics/Bitmap.html static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) Returns an immutable bitmap from the specified subset of the source bitmap. -- Kostya 2011/1/15 crem

[android-developers] Setting multiple RTC_WAKEUP alarms from a single app

2011-01-15 Thread kl4232
I have an app which I want to have 3 wake-up alarms to schedule 3 features of the app. They are all set the same way. m_intentName = com.mypackage.+ FeatureName; m_alarmIntent = new Intent(m_intentName); m_alarmPendingIntent = PendingIntent.getBroadcast(this, 0, m_alarmIntent, 0); When I

[android-developers] Setting multiple RTC_WAKEUP alarms from a single app

2011-01-15 Thread kl4232
I have an app which I want to have 3 wake-up alarms to schedule 3 features of the app. They are all set the same way. m_intentName = com.mypackage.+ FeatureName; m_alarmIntent = new Intent(m_intentName); m_alarmPendingIntent = PendingIntent.getBroadcast(this, 0, m_alarmIntent, 0); When I

[android-developers] Re: Compatibility across versions

2011-01-15 Thread kypriakos
Exactly - and we are not .. thanks. On Jan 15, 1:08 am, TreKing treking...@gmail.com wrote: On Fri, Jan 14, 2011 at 10:25 PM, kypriakos demet...@ece.neu.edu wrote: would apps run on v1.6 run on later versions (2.1- 2.3) without any modifications? Yes, assuming they're not using things

[android-developers] Re: crop a bitmap

2011-01-15 Thread crem
That's just perfect! Thank you :) On Jan 15, 6:46 pm, Kostya Vasilyev kmans...@gmail.com wrote: Bernd, This should help: http://developer.android.com/reference/android/graphics/Bitmap.html static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) Returns an

Re: [android-developers] Setting multiple RTC_WAKEUP alarms from a single app

2011-01-15 Thread Kostya Vasilyev
Alarms are keyed on PendingIntents, there can be only one for a given pending intent. This is so you can update settings for an already-set alarm. There are rules for when PendingIntents are considered the same intent, or different ones. Using the same Java object certainly means it's the same

[android-developers] Re: crop a bitmap

2011-01-15 Thread crem
Oh wait! I see, this would only crop my bitmap from the top and from the left. I need to cut off the same number of pixels from the right and bottom too... :/ On Jan 15, 6:55 pm, crem bernd.warm...@gmail.com wrote: That's just perfect! Thank you :) On Jan 15, 6:46 pm, Kostya Vasilyev

[android-developers] Re: Setting multiple RTC_WAKEUP alarms from a single app

2011-01-15 Thread kl4232
Thank you for this. I accidently posted my question before I was finished composing it. So having a unique action (=feature name) for the intent inside the pending intent isn't enough. I did see, when I did adb ahell dumpsys alarm and I know I had 2 alarms set, then there was only one RTC_WAKEUP

[android-developers] Re: Setting multiple RTC_WAKEUP alarms from a single app

2011-01-15 Thread kl4232
Although the docs for pendingIntent.getBroadcast state that... requestCode Private request code for the sender (currently not used). On Jan 15, 10:07 am, kl4232 klavin4...@yahoo.com wrote: Thank you for this. I accidently posted my question before I was finished composing it. So having a

Re: [android-developers] Re: Setting multiple RTC_WAKEUP alarms from a single app

2011-01-15 Thread Kostya Vasilyev
2011/1/15 kl4232 klavin4...@yahoo.com Thank you for this. I accidently posted my question before I was finished composing it. That's what I figured So having a unique action (=feature name) for the intent inside the pending intent isn't enough. Distinict action strings would work, but

[android-developers] Re: crop a bitmap

2011-01-15 Thread crem
Ok, I need to set the width parameter to w-(2*x) and the height parameter to h-(2*y) where w and h are width and height of my original bitmap and x and y the number of pixels i want to crop from x and y direction. everything perfect! bye On Jan 15, 7:01 pm, crem bernd.warm...@gmail.com wrote:

Re: [android-developers] Re: crop a bitmap

2011-01-15 Thread Kostya Vasilyev
Cool! 2011/1/15 crem bernd.warm...@gmail.com Ok, I need to set the width parameter to w-(2*x) and the height parameter to h-(2*y) where w and h are width and height of my original bitmap and x and y the number of pixels i want to crop from x and y direction. everything perfect! bye On

Re: [android-developers] Re: Setting multiple RTC_WAKEUP alarms from a single app

2011-01-15 Thread Kostya Vasilyev
This means that the request code does not have any special meaning to Android (unlike flags, the last paramter). You can easily check this with a simple test: - Create an Intent from an action string; - Call PendingIntent.getBroadcast twice with 0 for request code, log the results; - Repeat with

Re: [android-developers] Re: Compatibility across versions

2011-01-15 Thread TreKing
On Sat, Jan 15, 2011 at 11:50 AM, kypriakos demet...@ece.neu.edu wrote: Exactly - and we are not .. thanks. You should of course always to do sanity checks on each new version of the platform... -

Re: [android-developers] Re: exit strategy

2011-01-15 Thread TreKing
On Sat, Jan 15, 2011 at 2:50 AM, JAlexoid (Aleksandr Panzin) jalex...@gmail.com wrote: The ADB kills it with reinstall... So he could have missed it... True - in which case I wouldn't call that proper testing. Once you think you're ready to release something, you should be running it as the

[android-developers] What´s the name of this UI Widget?

2011-01-15 Thread Gabriel Simões
Hello, I´m trying to identify the name of this UI Widget (and it´s class name) but I couldn´t figure out. I hope you can help me. Thanks, Gabriel Simões -- 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: how to remove an item from a listView and arrayAdapter

2011-01-15 Thread gonzobrains
Thanks for the answer. I had a feeling the Tag property was involved somehow, but what's the right way to use it? In the getView() method can I do something like this: deleteButton.setTag(position); where position is the int passed into getView()? And then use that in the delete button's

[android-developers] Re: What´s the name of this UI Widget?

2011-01-15 Thread Gabriel Simões
I´m trying to post a link to it but google doesn´t allow me. Then I will try do describe it: It´s like the iOS widget where you can choose an option scrolling it up or down like a kind of dialer. Like a cilinder being rolled. Here is the link with lots of spaces. Sorry for this but as I said

Re: [android-developers] What´s the name of this UI Widget?

2011-01-15 Thread TreKing
On Sat, Jan 15, 2011 at 2:07 PM, Gabriel Simões gsim...@gmail.com wrote: I´m trying to identify the name of this UI Widget (and it´s class name) but I couldn´t figure out. I hope you can help me. I'm trying to identify the UI Widget you're talking about, but couldn't figure it out. I hope you

[android-developers] Re: What´s the name of this UI Widget?

2011-01-15 Thread Gabriel Simões
I hope google help us letting me post the link to it´s printscreen image ;) On 15 jan, 18:11, TreKing treking...@gmail.com wrote: On Sat, Jan 15, 2011 at 2:07 PM, Gabriel Simões gsim...@gmail.com wrote: I´m trying to identify the name of this UI Widget (and it´s class name) but I couldn´t

Re: [android-developers] Re: how to remove an item from a listView and arrayAdapter

2011-01-15 Thread TreKing
On Sat, Jan 15, 2011 at 2:07 PM, gonzobrains gonzobra...@gmail.com wrote: I had a feeling the Tag property was involved somehow, but what's the right way to use it? The right way is dependent on your use case. It's there specifically as a convenience for you to attach arbitrary data to your

Re: [android-developers] Re: What´s the name of this UI Widget?

2011-01-15 Thread Kostya Vasilyev
http://code.google.com/p/android-wheel/ Is this it? It's not part of Android, but you can see it on a phone by HTC: it's part of their Sense UI. Not surprisingly, they are not sharing. The link above is somebody's independent implementation. A word of caution, if I may: once you start adding

Re: [android-developers] Re: exit strategy

2011-01-15 Thread Kevin Duffey
I thought you weren't really supposed to quit an app? I know the Android system will kill an app when necessary to reclaim resources. I have seen apps, including google maps that allow you to exit. In the case of google maps, if you're using the navigation, and don't exit, it keeps on talking and

[android-developers] Re: What´s the name of this UI Widget?

2011-01-15 Thread Gabriel Simões
Thank you very much. I found it on an app and started trying to digg out information about it. I will think carefully about using it but I think it will be a lot more natural for users than using spinners or edittexts. On 15 jan, 18:21, Kostya Vasilyev kmans...@gmail.com wrote:

Re: [android-developers] Re: exit strategy

2011-01-15 Thread TreKing
On Sat, Jan 15, 2011 at 2:35 PM, Kevin Duffey andjar...@gmail.com wrote: I thought you weren't really supposed to quit an app? Right - but you should back out of your app and make sure whatever lifecycle methods you're handling work correctly. But I thought by listening to the activity

Re: [android-developers] Re: What´s the name of this UI Widget?

2011-01-15 Thread TreKing
On Sat, Jan 15, 2011 at 2:15 PM, Gabriel Simões gsim...@gmail.com wrote: I hope google help us letting me post the link to it´s printscreen image ;) Like this: http://img64.imageshack.us/img64/9506/unknownwidget.jpg ?

Re: [android-developers] Re: exit strategy

2011-01-15 Thread Frank Weiss
Another problem with bluntly killing the app's process is that Android keeps information about the app's state elsewhere. -- 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 can I send a picture to a RESTful service

2011-01-15 Thread Kevin Duffey
Hi, I have searched a bit on this forum and google for a good example of sending a picture image to a service from android. HttpClient seems to be the most logical way, but so far I haven't been able to find any solid example that shows how to send a picture (or any binary file for that matter)

Re: [android-developers] Re: exit strategy

2011-01-15 Thread Dianne Hackborn
On Sat, Jan 15, 2011 at 12:35 PM, Kevin Duffey andjar...@gmail.com wrote: I thought you weren't really supposed to quit an app? I know the Android system will kill an app when necessary to reclaim resources. I have seen apps, including google maps that allow you to exit. In the case of google

Re: [android-developers] How can I send a picture to a RESTful service

2011-01-15 Thread Mark Murphy
You are going to need to be a bit more specific. Is this HTTP PUT? HTTP POST with chunked encoding? Something else? BTW, HttpClient has its own site: http://hc.apache.org/httpcomponents-client-ga/index.html On Sat, Jan 15, 2011 at 6:22 PM, Kevin Duffey andjar...@gmail.com wrote: Hi, I have

Re: [android-developers] How can I send a picture to a RESTful service

2011-01-15 Thread Kevin Duffey
Hello Mark, You know..do you cover this in your book? I don't recall seeing an example of this. Anyway, it's a POST method to a Java/Jersey rest resource. I assumed I would have to some how set the type to multipart/form-data like a browser does for uploading files. I am using your book in fact

Re: [android-developers] Re: exit strategy

2011-01-15 Thread Kevin Duffey
Ok..good, then what I've read and understood are correct!! BTW, Diane, kudos to the Android 2.3 team! I am surprised it's not a 3.0 release with all the.. in my opinion.. huge additions to the native side. I can't wait to see (and hopefully use) the games and music apps that will finally be

[android-developers] library byte code (in)compatibility if added as an external jar

2011-01-15 Thread Shawn Brown
Hi, To add a 3rd party .jar to Android I followed Android suggested practice(1) by adding the .jar as a Library [not as an Android Library under Eclipse (2)], but am being told this may induce byte code incompatibilities? Can I safely use a .jar compiled with a JDK in Android? I think I can but

Re: [android-developers] How can I send a picture to a RESTful service

2011-01-15 Thread Mark Murphy
On Sat, Jan 15, 2011 at 7:24 PM, Kevin Duffey andjar...@gmail.com wrote: Hello Mark, You know..do you cover this in your book? I don't recall seeing an example of this. No, mostly because the differences are tied up in HttpClient, more so than Android proper. I may need to get into this

[android-developers] App Widget disappears on reboot

2011-01-15 Thread John Gaby
I have an App Widget which I place on my home screen. It seems to work fine, but when I reboot the phone, it is not only gone from the home page, but is missing from the App Widget list, so I cannot add it again. Does anyone have any idea what might be going on here? Thanks. -- You received

Re: [android-developers] library byte code (in)compatibility if added as an external jar

2011-01-15 Thread Mark Murphy
On Sat, Jan 15, 2011 at 7:54 PM, Shawn Brown big.coffee.lo...@gmail.com wrote: To add a 3rd party .jar to Android I followed Android suggested practice(1) by adding the .jar as a Library [not as an Android Library under Eclipse (2)], but am being told this may induce byte code

Re: [android-developers] App Widget disappears on reboot

2011-01-15 Thread Mark Murphy
On Sat, Jan 15, 2011 at 8:11 PM, John Gaby jg...@gabysoft.com wrote: I have an App Widget which I place on my home screen.  It seems to work fine, but when I reboot the phone, it is not only gone from the home page, but is missing from the App Widget list, so I cannot add it again.  Does

Re: [android-developers] library byte code (in)compatibility if added as an external jar

2011-01-15 Thread Shawn Brown
Can I safely use a .jar compiled with a JDK in Android? Possibly. It depends.  This is wrong. One missing method (even if it is one of many overloads of a single method name) that is present in the JDK but not in Android, and you've got byte code that is only compatible with the JDK, but

[android-developers] Re: App Widget disappears on reboot

2011-01-15 Thread John Gaby
Actually, after playing with it a bit, I have determined that the problem lies with installing the app on the SD card. Apparently the card is not mounted in time during a reboot. I presume that it is simply a bad idea to have a Widget that runs from the SC card, because the user can unmount it

Re: [android-developers] library byte code (in)compatibility if added as an external jar

2011-01-15 Thread Mark Murphy
On Sat, Jan 15, 2011 at 8:21 PM, Shawn Brown big.coffee.lo...@gmail.com wrote: What bug? Are you joking? No. http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary Android docs say add 3rd party libraries as a .jar. Correct. I'd venture that at least one

Re: [android-developers] Re: App Widget disappears on reboot

2011-01-15 Thread Mark Murphy
On Sat, Jan 15, 2011 at 8:30 PM, John Gaby jg...@gabysoft.com wrote: Actually, after playing with it a bit, I have determined that the problem lies with installing the app on the SD card. http://developer.android.com/guide/appendix/install-location.html#ShouldNot  I presume that it is simply

[android-developers] BOOT_COMPLETED not being heard

2011-01-15 Thread Ken H
Figured out the problem...a little pissed by it. Apparently, if your app is designed to listen for the BOOT_COMPLETED broadcast, and you allow it to be moved to the SD card, it will not hear the BOOT_COMPLETED message. Annoying to say the least. Just out of curiosity, after spending several

[android-developers] Preventing the search button from closing an AlertDialog?

2011-01-15 Thread Zsolt Vasvari
Hello, Is there a way to do what the title says? I have a password security dialog built using AlertDialog.Builder. The problem is that pressing the search button simply dismisses the dialog. I need to notify the underlying activity that the dialog was dismiised so that I can quit the app.

[android-developers] Re: BOOT_COMPLETED not being heard

2011-01-15 Thread Zsolt Vasvari
Really? That's not good. I am really starting to think that the move to SD card option is more trouble than it's worth. Of course, not offerring this is an invitation for morons who give 1- stars for any app that doesn't offer it, no matter how small. On Jan 16, 10:33 am, Ken H

[android-developers] Re: Preventing the search button from closing an AlertDialog?

2011-01-15 Thread Zsolt Vasvari
I have to add that this effect EVERY dialog in the system. So, for example, if you have an LVL or any type of important dialog where you must be notified of its closing, you better make sure that the user cannot just dismiss it using the Search button. On Jan 16, 10:44 am, Zsolt Vasvari

[android-developers] Re: InstrumentationTestRunner with Annotation

2011-01-15 Thread A. Elk
Exactly. The annotations in InstrumentationTestRunner come from android.test.suitebuilder.annotation. My understanding is that, while they're public, they're not supported. As a note, InstrumentationTestRunner and the Android unit/functional test framework are based on JUnit 3, not JUnit 4. On

[android-developers] Re: App Widget disappears on reboot

2011-01-15 Thread Zsolt Vasvari
So, it's a bit of a pain for all involved, but it would allow you to have the main APK installable to the SD card. You have to admit, that's not a reasonable expectation for the user having to download a seperate app. It's an invitation to 1-stars (and understandably so) if the user cannot

[android-developers] ImageView, no scaling and gravity

2011-01-15 Thread Henrik Lindqvist
I have a runtime generated Bitmap, for a RemoteView, that I wan't displayed within a ImageView without scaling, so I use scaleType=center. Now, if the bitmap is smaller than the ImageView I wan't it to gravitate to the right. Or, if the bitmap is to large, crop the left side. ImageView seems to

[android-developers] Re: App Widget disappears on reboot

2011-01-15 Thread John Gaby
You have to admit, that's not a reasonable expectation for the user having to download a seperate app. It's an invitation to 1-stars (and understandably so) if the user cannot find the widget. Yes, that is what I was thinking as well (I was asking if there was an automatic way to install a

[android-developers] Variable size App Widget

2011-01-15 Thread John Gaby
Is there a way to allow the user to choose the size of the App Widget when he places it on his Home screen? I tried creating 2 receiver ... /receiver sections in the manifest for 2 different sizes, but only the first shows up. Thanks -- You received this message because you are subscribed to

[android-developers] Re: Variable size App Widget

2011-01-15 Thread Henrik Lindqvist
The receiver needs to have a diffrent android:name, provider class. Just create one for each size. On Jan 16, 4:30 am, John Gaby jg...@gabysoft.com wrote: Is there a way to allow the user to choose the size of the App Widget when he places it on his Home screen?  I tried creating 2 receiver

Re: [android-developers] Re: BOOT_COMPLETED not being heard

2011-01-15 Thread Dianne Hackborn
Yes because the apps on SD card are not mounted by the time the boot completed broadcast is sent. The restrictions, including BOOT_COMPLETED, are documented here: http://developer.android.com/guide/appendix/install-location.html

Re: [android-developers] Re: exit strategy

2011-01-15 Thread Dianne Hackborn
On Sat, Jan 15, 2011 at 4:28 PM, Kevin Duffey andjar...@gmail.com wrote: BTW, Diane, kudos to the Android 2.3 team! I am surprised it's not a 3.0 release with all the.. in my opinion.. huge additions to the native side. I can't wait to see (and hopefully use) the games and music apps that will

[android-developers] Sliding Drawer question

2011-01-15 Thread Scott Deutsch
Hello group. I tried to add a Sliding Drawer through the visual xml builder thingy, but it is telling me The following classes cannot be found SlidingDrawer. Why is that? They they take that out in the SDK or something? What should I try? Thanks group! -- You received this message because

[android-developers] Re: Strange bugs appear when manually installing the apk on the device, but not when debugging in eclipse

2011-01-15 Thread Bob Kerns
'%' is *not* (despite what you may have read) the 'modulo' operator. It is the 'remainder' operator, and yes, it does return negative if the first value is negative. See the Java Language Spec: http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#264541 I don't know how you

[android-developers] Re: System Shared UserId

2011-01-15 Thread Bob Kerns
Either --- * Build the entire platform yourself, with your own key, and install the platform, including your app * Using advanced industrial espionage techniques, locate the private key, develop the appropriate intel, put together a black team to extract the hardware key vault on which it is

Re: [android-developers] How can I send a picture to a RESTful service

2011-01-15 Thread Kevin Duffey
Hey there, Yah, that I am aware of, you have to include some of the apache commons classes for the multipart. I did the rest services, so I am in control of any content-type to send over. Usually it's multipart/form-data, although I've seen some stream/octet or something like that too. On Sat,

[android-developers] Re: BOOT_COMPLETED not being heard

2011-01-15 Thread Zsolt Vasvari
That's all good, but the end users don't understand these restrictions and downrank your app if you don't offer the SD card option. I've experienced this first hand -- even if my app is only 1MB. On Jan 16, 11:44 am, Dianne Hackborn hack...@android.com wrote: Yes because the apps on SD card

[android-developers] Re: ImageView, no scaling and gravity

2011-01-15 Thread Zsolt Vasvari
Use a layout that supports the android:layout_gravity attribute, such as FrameLayout. The regular android:gravity is only used the TextViews to position the text if the view is larger than the text. On Jan 16, 11:12 am, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I have a runtime

Re: [android-developers] Android Contacts

2011-01-15 Thread Dmitri Plotnikov
That is the URI the platform Contacts app uses to load aggregated contacts. You should be getting the same list that the stock Contacts app shows. Automatic aggregation is not a required feature, some compatible Android builds may not support it. Cheers, Dmitri On Jan 14, 2011 5:25 AM,

[android-developers] didn't get output on my PC, i get only ANDROID...

2011-01-15 Thread Aamir Sohail
hi friends i am new to android,, and just install eclipse galileo and android 2.3,,, when i create my new project,, it didn not show any error,, but when i run it ,, it shows only ANDROID... flash screen. My activity.java code is: package android_programmers_guide.HelloWorldText; import

[android-developers] Default browser comms

2011-01-15 Thread kypriakos
Hi all, I use the default browser as a REST service client running an ajax script. Outside the browser I intercept the outgoing Web Service call and I route it myself through peers. I sent the returned response back to the browser on the same port. On Firefox, IE and Safari this works fine, on

[android-developers] Depth buffer issue: Advice for anyone experiencing problem

2011-01-15 Thread Andrew Smith
I've wasted around 30 hours this week writing and re-writing code, believing that I had misunderstood how the OpenGL depth buffer works. Everything I tried, failed. I have now resolved my problem by finding what may be an error in the Android implementation of OpenGL. See this API entry:

[android-developers] Re: didn't get output on my PC, i get only ANDROID...

2011-01-15 Thread niko20
Nope, everything is OK. That's the boot screen of the emulator. Give it some time and it will eventually start up. You want to have a good PC to run the emulator. Also note that you don't have to close/start the emulator over each time you make a change to the app, just build and run and it will

[android-developers] Re: how to remove an item from a listView and arrayAdapter

2011-01-15 Thread Doug
On Jan 14, 11:24 pm, TreKing treking...@gmail.com wrote: On Sat, Jan 15, 2011 at 12:48 AM, gonzobrains gonzobra...@gmail.com wrote: I have a delete button for each of these items in my list, but I am not sure how to connect the delete button's onClick() with the original item in the

Re: [android-developers] Re: BOOT_COMPLETED not being heard

2011-01-15 Thread Dianne Hackborn
Sorry, you can point them to that documentation if you want. This is a pretty fundamental aspect of the behavior of the SD card. On Sat, Jan 15, 2011 at 10:16 PM, Zsolt Vasvari zvasv...@gmail.com wrote: That's all good, but the end users don't understand these restrictions and downrank your

[android-developers] Re: Android Contacts

2011-01-15 Thread Zsolt Vasvari
Hi, the source code to the Contacts app is available here: http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=summary As Dmitri mentioned it, if you see the desired list in the Contacts app, dig into the source and find out what query it is issuing the ContactsProvider. And

[android-developers] Warning during ProGuard build

2011-01-15 Thread Zsolt Vasvari
All my JARs in the lib folder give me this warning when doing an ant - release build: [proguard] Copying resources from program jar [C:\Android\projects \com.mydomain.myapp\libs\libGoogleAnalytics.jar] [proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry

[android-developers] Re: HttpURLConnection gives UnknownHostException

2011-01-15 Thread Dan
Thanks for the tips guys but none of these have solved the issue. On Jan 13, 10:39 pm, Rohan Dhamal rohandha...@gmail.com wrote: Hi,    Please check once, if there is any timeout occurring while connecting with HttpURLConnection. On Jan 13, 1:23 am, Ankur Avlani ankuravl...@gmail.com wrote:

[android-developers] Re: call .net web service from android

2011-01-15 Thread Bob Kerns
What are you doing wrong? Well, that try/catch, for starters. The answer to your question lies in that exception, which you caught and discarded without even examining! Also, you're doing network IO in the UI thread. That will get your application killed; you shouldn't do anything that can block