Re: [android-developers] Toast doesn't leave

2009-11-17 Thread Wayne Wenthin
I haven't had a chance to try to reproduce it. I'm hoping to have him give me more information on the phone and the current os version. On Tue, Nov 17, 2009 at 9:32 AM, Aniruddh Bajirao abaji...@gmail.comwrote: Are you able to recreate the exact problem mentioned by the user? Try to see what

[android-developers] Re: PhoneStateListener::onSignalStrengthChanged

2009-11-17 Thread Ken Adair
Thanks for the reply. The way you mentioned was the way to do it prior to Android 2.0. However, it has since been deprecated, meaning that is no longer the way to access signal strength. From my limited testing this method no longer seems to work when testing with the Droid. On Nov 17, 12:30 pm,

Re: [android-developers] bluetooth service discovery

2009-11-17 Thread Nick Pelly
Can you be more specific about how you get better performance through SDP? What size data are you sending? Do you mean higher throughput or higher latency? The dominant factor in short transfers over both SDP and RFCOMM is the page scan, which would be 1-2 seconds no matter which protocol you

Re: [android-developers] Re: User Ratings in Apps

2009-11-17 Thread Wayne Wenthin
Yeah its very frustrating putting in the many hours to develop an app to have someone take a dump on it right out of the gate. Kinda depressing. I'm tempted to try to write an article for Android Guys called Blood, Sweat and Swears. The birth of an Android App LOL On Tue, Nov 17, 2009 at

[android-developers] Re: When a phone is factory reset, market loses track of purchased apps

2009-11-17 Thread Andrei
just remember that if your app is under 10$ and user decides dispute charge with their bank you automatically loose dispute, they get refund and you get extra 3$ penalty by google On Nov 17, 11:24 am, Mike michaeldouglaskra...@gmail.com wrote: Hello, I've had several of my users email me to

[android-developers] Re: User Ratings in Apps

2009-11-17 Thread String
On Nov 17, 5:12 pm, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: If they leave 1 * they are not looking for help, if they were they would have mailed you first. They are just venting their frustration and moving on to the next app. I saw a noticeable drop in the

Re: [android-developers] Re: User Ratings in Apps

2009-11-17 Thread Wayne Wenthin
Its those precious few chars that hurt also. I did amend mine to include my forums link. Hopefully that will help. On Tue, Nov 17, 2009 at 9:59 AM, String sterling.ud...@googlemail.comwrote: On Nov 17, 5:12 pm, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: If

[android-developers] Re: User Ratings in Apps

2009-11-17 Thread admin.androidsl...@googlemail.com
Yes I use that too! Still get the 1* ratings though. I have an average of 4.59 - so I must have mostly good ratings. Usually the users with issues who rate 1* can have the problem solved by using Taskiller or a quick setting change but like I said, they are not asking for help, just wanting to

[android-developers] Bestpractice Android 1.6 Gestures and WebView

2009-11-17 Thread Mariano Kamp
Hi, WebView can scroll on both axis. That makes it hard to integrate with the 1.6 gestures. At the same time a WebView is often used as the main and huge content area, so either there is a way to work with gestures properly or gestures can't be used in lots of places ;.( Did anybody do this

Re: [android-developers] Toast doesn't leave

2009-11-17 Thread Stephen Abrams
No stuck toasts here. As documented, you generally don't have to cancel them as they expire after the time you set, but there have been cases I've wanted to dismiss them sooner than the timer (depending on user actions), In the main UI thread you can call myInstantiatedToast.cancel(); Has to be

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread AlexK
On Nov 17, 7:14 pm, strazzere str...@gmail.com wrote: On Nov 17, 10:32 am, AlexK kucherenko.a...@gmail.com wrote: In my case was stolen application with price $1.29 - pirates copies reach 100-300 per day, sales become dead. So black list is the only way to protect my product for now.

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread nEx.Software
What app is this? Out of curiosity... On Nov 17, 11:12 am, AlexK kucherenko.a...@gmail.com wrote: On Nov 17, 7:14 pm, strazzere str...@gmail.com wrote: On Nov 17, 10:32 am, AlexK kucherenko.a...@gmail.com wrote: In my case was stolen application with price $1.29 - pirates copies reach

Re: [android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-17 Thread Jeff Sharkey
4) What sort of identifier should I represent a contact with in my local data, so I can later get their most-current data? Use lookup-style Uris, as they are designed to help with fuzzy resolution when the contact changes, or is split/joined by the user. Contacts.getLookupUri() and

Re: [android-developers] bluetooth service discovery

2009-11-17 Thread Sean Liao
I think you are right. I meant to say that if client initiates Service Discovery, this process takes time to complete. So, if my mobile application already know what data already available,and know how to get it, our current mobile appl just simple go and get it by establish an connection and

[android-developers] Soft keyboard covers up EditTexts on WVGA854 screen

2009-11-17 Thread Jason
I'm having an issue where the onscreen (soft) keyboard covers up EditTexts and other editable views that the user is currently typing in. This happens when the phone has a large screen size (e.g. WVGA854) and the EditText is near the bottom of the screen. Here are the steps of what happens: 1)

[android-developers] Re: Toast doesn't leave

2009-11-17 Thread niko20
I don't think the toast was your problem. It could be that something else in the phone hung up (I've even had my Droid do it) and thereby the UI wouldn't respond as expected. -niko On Nov 17, 12:10 pm, Stephen Abrams ssaid...@gmail.com wrote: No stuck toasts here. As documented, you generally

[android-developers] Re: java.lang.IllegalStateException: Content of adapter changed but ListView didn't

2009-11-17 Thread WoodManEXP
I have run into this, pretty much exactly as you describe it, starting with Android 1.6, but not before. Get any ideas about what's going on? On Oct 10, 11:22 pm, pawpaw17 georgefraz...@yahoo.com wrote: I'm getting an unhandled exception in my class that fills an arrayadapter from items in a

[android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread Smelly Eddie
The documentation seems to distinguish onSignalStrengthChanged (deprecated) from onSignalStrengthsChanged note the 's' So which method are you using on 2.0? Ken Adair wrote: The typical method to obtain signal strength has been to extend the PhoneStateListener class and override the

Re: [android-developers] Re: [Android 2.0] Contacts FAQ?

2009-11-17 Thread Rachel Blackman
On Nov 17, 2009, at 10:21 AM, Jeff Sharkey wrote: [ ... snip ... ] Thank you! I'll try to write up an updated FAQ this evening, with some short examples written for various queries, and post a draft. :) -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread nEx.Software
onSignalStrengthsChanged is hidden from the SDK, unfortunately. On Nov 17, 11:38 am, Smelly Eddie ollit...@gmail.com wrote: The documentation seems to distinguish onSignalStrengthChanged (deprecated) from onSignalStrengthsChanged note the 's' So which method are you using on 2.0? Ken

Re: [android-developers] Re: App Not showing up on Verizon DROID Phones

2009-11-17 Thread Hong
I heard the original Hero has the same problem with apps that has copy protection turned ON. They released a fix for Hero phones. Eris is based on Hero code base and is very likely inherited that bug. Not much you can do but hope HTC/Verizon release an OTA update soon. -- You received this

Re: [android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread Rachel Blackman
On Nov 17, 2009, at 10:41 AM, nEx.Software wrote: onSignalStrengthsChanged is hidden from the SDK, unfortunately. Maybe they no longer want applications reading the signal strength, hence deprecating a public call while making the replacement private? -- You received this message because

Re: [android-developers] Re: Toast doesn't leave

2009-11-17 Thread Wayne Wenthin
Thats what I was thinking.I've had this happen on other apps before and could never reproduce it. I really need to get taskkiller for myself some day.[?] On Tue, Nov 17, 2009 at 10:36 AM, niko20 nikolatesl...@yahoo.com wrote: I don't think the toast was your problem. It could be that

[android-developers] G1 Wifi issue

2009-11-17 Thread julius
Hi, I continue to have issues with the Wifi on my G1 (running 1.6). When I hook it up to Eclipse I see the following errors when I try to connect to an access point: 11-18 08:20:10.204: ERROR/SettingsWifiLayer(6434): Config is still null, even after attempting to add it. 11-18 08:20:10.204:

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
That's not the purpose of this API, which is to allow the user to force stop an application right now, immediately, I don't care what the damn app wants. :} There is a UI in 2.0 for the user to explicitly stop any currently running services. On Tue, Nov 17, 2009 at 5:15 AM, Bo

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread jotobjects
On Oct 13, 8:09 pm, EboMike ebom...@gmail.com wrote: Task killers aside, what about if the OS decides to stop a process because memory is low? Say an app has an alarm set to happen in 2 hours, and the user decides to run Google Maps for a minute. Android might kill said app because memory

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
On Tue, Nov 17, 2009 at 11:36 AM, jotobjects jotobje...@gmail.com wrote: On Oct 15, 3:07 pm, Dianne Hackborn hack...@android.com wrote: What these programs are doing is using the API that is tended to force stop -everything- about the application: stop all services, cancel all alarms,

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
On Tue, Nov 17, 2009 at 11:41 AM, jotobjects jotobje...@gmail.com wrote: Use Jason's solution. Also if the system kills the Process the system will later restart the Process if it had a Service running but it is up to the service to reset its own state. Not when using this API, which kills

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread jotobjects
On Oct 15, 3:07 pm, Dianne Hackborn hack...@android.com wrote: What these programs are doing is using the API that is tended to force stop -everything- about the application: stop all services, cancel all alarms, remove all notifications, etc.  This is all working as intended, the apps are

[android-developers] Samsung Moment (SPH-M900) - Application crashing

2009-11-17 Thread Don
Hi All, Has anyone had any problems with their applications crashing on the Samsung Moment? I have a customer who is reporting that my application keeps crashing at a certain stage on their Samsung Moment. The problem is I can't reproduce the crash on any of the following devices: - HTC Tattoo -

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread Kaj Bjurman
I doubt that it would be as much as 10%. Most people will just try to find another app instead. On 17 Nov, 19:12, AlexK kucherenko.a...@gmail.com wrote: On Nov 17, 7:14 pm, strazzere str...@gmail.com wrote: On Nov 17, 10:32 am, AlexK kucherenko.a...@gmail.com wrote: In my case was

[android-developers] Re: Samsung Moment (SPH-M900) - Application crashing

2009-11-17 Thread niko20
I do remember seeing a post yesterday where someone that was using AudioRecord found out that on the Moment it only supports 8Khz sample rate, and he had not correctly checked for error codes in the getMinBufferSize call to AudioRecord. Are you perhaps using that API? -niko On Nov 17, 2:05 pm,

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread stanlick
Hey Dmitri -- I have a question regarding the legacy apps only having access to the primary account. I am writing an application that interfaces with contacts and started on it before 2.0 was released. I am developing with a Motorola CLIQ running 1.5 and my app works fine. Today, I purchased a

[android-developers] Re: Pass Data Between Activities: HashMap of WeakReferences to Objects

2009-11-17 Thread jotobjects
The suggestion that you quoted is to use a counter or timestamp that you are sure is unique. In general hashCode() is not a unique key so your code is probably not what you want to do. The suggestion in the FAQ is kind of odd really. The referenced object could be cleared at any point by GC,

Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread Guy Cole
So let them find another app. That isn't the point. The point is that some people don't work for free. I have already decided not to create any new stand alone applications for Android. Only services, which effectively reduces Android to a client. On Tue, Nov 17, 2009 at 12:11 PM, Kaj Bjurman

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread strazzere
On Nov 17, 3:24 pm, Guy Cole guyc...@gmail.com wrote: So let them find another app.  That isn't the point. The point is that some people don't work for free. I have already decided not to create any new stand alone applications for Android.  Only services, which effectively reduces Android

Re: [android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread Dianne Hackborn
On Fri, Nov 6, 2009 at 6:31 PM, Ravi textlo...@gmail.com wrote: Now 2.0 Breaks every thing. Wow that's pretty over-the-top. The original contacts API still works, as long as you weren't using private parts of it, and only for the primary Google account. So it still gives you the same

[android-developers] Re: DefaultUncaughtExceptionHandler - earliest opportunity to set?

2009-11-17 Thread fadden
On Nov 17, 9:17 am, westmeadboy westmead...@yahoo.co.uk wrote: When is a safe time to set the default UncaughtExceptionHandler? It will be set by the Android app framework before your application starts. In the implementation I assume its important to call through to whatever the system

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread nEx.Software
And as we've said repeatedly for everything, if you use private APIs you will break in the future, so that shouldn't be a surprise. You can also get your name on my handy dandy androidhallofshame website for using private APIs. :) On Nov 17, 1:31 pm, Dianne Hackborn hack...@android.com wrote:

[android-developers] Re: dmtracedump reports version error

2009-11-17 Thread fadden
On Nov 17, 2:57 am, James Wang jameswangc...@gmail.com wrote: when I used dmtracedump to analyze traces.txt which generated by OOM, I got below error: dmtracedump is used for analyzing method-based profiling traces. For heap profiling, you want something like jhat. See:

[android-developers] Re: [Android 2.0] Accessing contact's phone numbers

2009-11-17 Thread stanlick
Both Wow! and over-the-top. Now I am excited. This pattern/technique was lifted from a distinguished Android pro's recent textbook. So does the wow imply there is a better way to accomplish the mission? I think I considered the contact PICK Intent, but I need to allow the user to select

[android-developers] Re: http client connect timeout

2009-11-17 Thread Mark Wyszomierski
Jonas, could you post your whole example? I'm on 1.5, same issue, the timeout never kicks in. Thanks On Nov 2, 8:45 am, Jonas Alves jona...@gmail.com wrote: It does work fine here. My target is 1.5. What's yours? On Nov 1, 3:28 pm, Andrei gml...@gmail.com wrote: Thank you Firstly

[android-developers] media button B/R accuring twice and service not stopping

2009-11-17 Thread Paul Townsend
Hi I got a a MEDIA_BUTTON receiver but when I press it, it appears to broadcast twice when I press the button once. Now because the emulator doesn't have the headset button and I have to use USB debugging to use it on my phone I cant use the debugger and it is making it a pain to find out what's

[android-developers] Re: http client connect timeout

2009-11-17 Thread nEx.Software
This is what I do... HttpClient HTTPClient = new DefaultHttpClient(); HttpConnectionParams.setSoTimeout(HTTPClient.getParams(), 15000); HttpConnectionParams.setConnectionTimeout(HTTPClient.getParams(), 15000); On Nov 17, 1:46 pm, Mark Wyszomierski mar...@gmail.com wrote: Jonas, could you post

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Cédric Berger
On Fri, Oct 16, 2009 at 00:07, Dianne Hackborn hack...@android.com wrote: If you kill the process, it will not impact the alarms, the same as it won't impact notifications etc. What these programs are doing is using the API that is tended to force stop -everything- about the application: stop

[android-developers] Re: Samsung Moment (SPH-M900) - Application crashing

2009-11-17 Thread Don
Hi Niko, Thanlk you for the reply. In the particular activity that is crashing, the following classes along with some sqlite database stuff are used: import java.text.SimpleDateFormat; import java.util.Calendar; import android.app.AlertDialog; import android.app.DatePickerDialog; import

[android-developers] Latest hot movies

2009-11-17 Thread Google
To Latest hot movies visti www.pakbs.110mb.com [1] Links: -- [1] www.pakbs.110mb.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: Copy protection bug statuses

2009-11-17 Thread Matt Hall
I would also love to hear anyone's experience on 1.5+ handsets. What I would really love though is a definitive answer from Google on this issue. I don't know why this can't be addressed officially, we're not asking for secret information to be revealed here - we have to know these kinds of

[android-developers] Re: building for 1.5 using 2.0...

2009-11-17 Thread Kai
I have the same question. 1.5 compiler is having problem with the new layout directories that I need for 1.6 and 2.0 how can I support 1.5, 1.6 and 2.0 at the same time? On Nov 3, 9:50 pm, sdphil phil.pellouch...@gmail.com wrote: i need my app to support1.5and above. i noticed that if I

[android-developers] ZXING Barcode Scanner

2009-11-17 Thread Jose Gomez
Hello All, I am writing an application that needs the ability to scan barcodes. I know that the ZXING Library can be used for this but I can't find a resource only that has a tutorial on how to use this library in your app. I want to be able to install my app and if the ZXING library isn't

[android-developers] Re: sqlite in webview

2009-11-17 Thread mayor
I got it working with help from Joe over at PhoneGap. 1. import android.webkit.WebStorage 2. then throw these in your WebSettings: settings.setDatabaseEnabled(true); settings.setDatabasePath(/data/data/com.package.name/ databases); 3. in your WebChromeClient you'll need to

[android-developers] Re: ZXING Barcode Scanner

2009-11-17 Thread nEx.Software
Copy http://code.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentIntegrator.java and http://code.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentResult.java into your source

[android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread Ken Adair
That could be. If that is the case, I'd love to hear why. Doesn't seem like it would be problematic or a security issue to provide such access. Hopefully, we can get an official answer here soon. On Nov 17, 1:48 pm, Rachel Blackman ceruleanspa...@gmail.com wrote: On Nov 17, 2009, at 10:41 AM,

[android-developers] Issue creating shared preferences file in 2.0

2009-11-17 Thread cvance383
Trying to create shared preferences for my class representing my api and one for my main class. I create a shared preference file by making this call in my api main classes String PREF_NAME = API; this.pref = context.getSharedPreferences( PREF_NAME, Context.MODE_PRIVATE ); the log gives me

[android-developers] Re: How does Android build background?

2009-11-17 Thread Mike Collins
I'm having the opposite problem. Setting the background of a row in my list view it makes the row tall enough to hold the image completely. I tried getting the background resource (a PNG) and setting the gravity to center and that didn't help. tia, mike -- You received this message because

[android-developers] Re: Get info from mp3 file

2009-11-17 Thread PJ
Environment.getExternalStorageDirectory() will give you a Java File object to the directory of your sdcard: http://developer.android.com/reference/android/os/Environment.html Once you can access your mp3 file, extracting mp3 tag info is not an Android-specific issue, so you're probably better off

[android-developers] Re: How do I get informed whenever an application is started/created?

2009-11-17 Thread PJ
What's wrong with using the Android builtin logger? http://developer.android.com/reference/android/util/Log.html It's easy, just do stuff like: Log.d(TAG, Your debug log message goes here.); Log.w(TAG, Your warning message goes here.); Just be sure to turn off logging and debugging before

[android-developers] Re: Dallas Android Developers

2009-11-17 Thread PJ
Everyone that is interested in joining the Dallas Android Developers group... We now have our own mailing list, so please use that to join! http://groups.google.com/group/dallas-android-developers Also, please use this mailing list to discuss everything related to this group, including fun topics

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

2009-11-17 Thread PJ
In fact, there isn't really a primary pointer. Well, the documentation for ACTION_POINTER_DOWN says that this applies to non-primary pointers, which implies that there really *is* a primary pointer. So, I was just trying to explain why sometimes the pointers were generating ACTION_DOWN, and

[android-developers] Targeting multiple OS versions

2009-11-17 Thread Nic
We are upgrading our application to add 2.0 support. I have read http://developer.android.com/guide/appendix/api-levels.html and the older blog post http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html. I want to avoid using reflection if possible. I have found

[android-developers] WebView not loading Assets corr ectly… help?

2009-11-17 Thread Jeremy Logan
I have a WebView that I'm using to display some html/image files stored in the assets/ directory. I'm able to have the WebView load and html page fine with: mWebView.loadUrl(file:///android_asset/ContentRoot/SubDir/ file.html); or String data =

[android-developers] Re: How do I get informed whenever an application is started/created?

2009-11-17 Thread Moritzz
Nothing is wrong with the Android logger but it doesn't help with my problem. I'd like my application to get informed whenever an application is started! On 17 Nov., 23:01, PJ pjbar...@gmail.com wrote: What's wrong with using the Android builtin

Re: [android-developers] WebView not loading Assets correctly... help?

2009-11-17 Thread Mark Murphy
Jeremy Logan wrote: I have a WebView that I'm using to display some html/image files stored in the assets/ directory. I'm able to have the WebView load and html page fine with: mWebView.loadUrl(file:///android_asset/ContentRoot/SubDir/ file.html); or String data =

Re: [android-developers] Re: How do I get informed whenever an application is started/created?

2009-11-17 Thread Mark Murphy
Moritzz wrote: I'd like my application to get informed whenever an application is started! You can't, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
Nic wrote: We are upgrading our application to add 2.0 support. I have read http://developer.android.com/guide/appendix/api-levels.html and the older blog post http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html. I want to avoid using reflection if

Re: [android-developers] Re: ZXING Barcode Scanner

2009-11-17 Thread Jose Gomez
Thank YOU!!! Sincerely Jose C Gomez http://www.josecgomez.com On Tue, Nov 17, 2009 at 4:38 PM, nEx.Software email.nex.softw...@gmail.comwrote: Copy http://code.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentIntegrator.java and

[android-developers] Re: Unable to determine signal strength on Droid / Android 2.0 (onSignalStrengthsChanged deprecated)

2009-11-17 Thread Protuhj
In the future -- please search the forum first before posting a new topic... I asked the same question last week: http://groups.google.com/group/android-developers/browse_thread/thread/d2540d7972a0a9a1/33d71e7efede7f65#33d71e7efede7f65 It will help to be able to find solutions in one place. On

[android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread Paul Turchenko
I'm pretty sure we, as a developers, can warn users and explain why we need certain permissions and assure him that we will not abuse them. On Nov 17, 3:30 am, Jason Van Anden jason.van.an...@gmail.com wrote: On Mon, Nov 16, 2009 at 4:17 PM, nEx.Software email.nex.softw...@gmail.com wrote:

[android-developers] Re: WebView not loading Assets correctly... help?

2009-11-17 Thread Jeremy Logan
I actually just realized that mistake and tried it the way you suggested. No change. Jeremy On Nov 17, 2:55 pm, Mark Murphy mmur...@commonsware.com wrote: Jeremy Logan wrote: I have a WebView that I'm using to display some html/image files stored in the assets/ directory. I'm able to have

Re: [android-developers] Re: WebView not loading Assets correctly... help?

2009-11-17 Thread Mark Murphy
Jeremy Logan wrote: I actually just realized that mistake and tried it the way you suggested. No change. H...the only times I've used file:///android_asset has been for single-file content; the only times I've used relative URLs were for content downloaded to the device... Other than

Re: [android-developers] Re: Android Market Anti-Piracy

2009-11-17 Thread Dan Sherman
Just do it within those 325 characters, and hope you don't have anything more important to say :) On Tue, Nov 17, 2009 at 6:12 PM, Paul Turchenko paul.turche...@gmail.comwrote: I'm pretty sure we, as a developers, can warn users and explain why we need certain permissions and assure him that

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

2009-11-17 Thread Dianne Hackborn
Sorry I probably should not have written the document that way. The event flow will be: 1. ACTION_DOWN 2. 0 or more ACTION_POINTER_DOWN / ACTION_POINTER_UP as additional fingers go down and up. 3. ACTION_UP The final up may not be for the same finger as the original down, depending on how

[android-developers] list scroll question

2009-11-17 Thread Andrei
I have ListView in activity First activity starts another activity On return i from another activity i want to scroll listview to some position with setSelectionFromTop It does not work if i do it in onRestart or onActivityResult If i minimize and maximaze first Activity it scrolls to the right

Re: [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Dianne Hackborn
2.0 includes a UI showing you which -services- are running and the resources they are using. This is what you really care about, not whatever random processes are being kept around by the system in case it needs them later. (Fwiw, the worst that can happen is a bad app sits there spinning the CPU

[android-developers] Re: HTC Hero Contacts ACTION_INSERT intent returns no result

2009-11-17 Thread jak.
I've come up with a work around for use on the HTC HERO, for getting the URI for a newly created contact after the ACTION_INSERT intent returns. Basically I just do a query on the Contacts.People table and return a URI with the newest id if the intent result returns RESULT_OK. code:

[android-developers] SurfaceView transparency question

2009-11-17 Thread narkis
Problem is basic: If you can not/do not want to have your canvas instantly filled with renderings that your drawing thread drew - you are asked to draw a background everytime and paint over the previously drawn pixels on the canvas - just check out the Lunar Lander sample - LunarView

[android-developers] Re: http client connect timeout

2009-11-17 Thread Mark Wyszomierski
Ok that works, thanks! On Nov 17, 3:53 pm, nEx.Software email.nex.softw...@gmail.com wrote: This is what I do... HttpClient HTTPClient = new DefaultHttpClient(); HttpConnectionParams.setSoTimeout(HTTPClient.getParams(), 15000);

[android-developers] Re: WebView not loading Assets correctly... help?

2009-11-17 Thread davemac
Have you looked into using a base tag in your HTML? - dave On Nov 17, 6:27 pm, Mark Murphy mmur...@commonsware.com wrote: Jeremy Logan wrote: I actually just realized that mistake and tried it the way you suggested. No change. H...the only times I've used file:///android_asset has

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Nic Strong
I have tried on a 1.6 emulator and device. But not a 1.5 emulator. I see your point. I am not a java expert but I am guessing there maybe some conditions where the class loader my try to load the missing class even though the code is not going to be called? For now I will stick with reflection.

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
Nic Strong wrote: I see your point. I am not a java expert but I am guessing there maybe some conditions where the class loader my try to load the missing class even though the code is not going to be called? I don't know the granularity of the classloading. Certainly if you mix Android 2.0

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Nic Strong
I think isolating the 2.0 calls to a separate class will work, but in away this will become almost as unwieldy as the reflection method (although I guessing will have some performance benefit over reflection). Please post what you find from your experiments. Thanks again, Nic On Wed, Nov 18,

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread todd
Personally I would like to see this API go away. I'm finding we now have to code around task killing applications, which shouldn't be the case. Being a good Android citizen and following the rules, allowing the OS to do the work it was designed to do is the way to go. Users are confused when the

[android-developers] Re: dmtracedump reports version error

2009-11-17 Thread James Wang
fadden, Thank you for your reply. I have been using ddms-VM Heap to monitor memory usage but I think it is useless. There is no much valuable information there. I doubt Google put such useless tool in tab. Maybe is my shallow! I wonder whether some people can tell me more about the usage of VM

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Jason Proctor
(sorry if this is obvious) if you have a hard reference to a class in another class, then the classloader will (try to) load that one too. instead, use a factory to construct classes *by name* which implement an interface that describes the OS dependent stuff. this breaks the loader class

[android-developers] Re: Android in China - What is going on?

2009-11-17 Thread shimsim
As you mentioned siuying, its the sync services that are getting blocked. westmeadboy, that is why everything else works fine, but if you need to collect gmail or download a market app or sign in to your account again, its not going to work. Whilst I am opposed to China blocking facebook,

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
Jason Proctor wrote: (sorry if this is obvious) if you have a hard reference to a class in another class, then the classloader will (try to) load that one too. instead, use a factory to construct classes *by name* which implement an interface that describes the OS dependent stuff. this

[android-developers] weird issues with resources on Verizon Eris.

2009-11-17 Thread Alexey Volovoy
Hi all, i'll have more info tomorrow, once i'll have this device again, but i was shown very weird stuff today. We've updated app with hi-res graphics for the Droid ( only drawables ) around 4 days ago . Resources organized res drawable drawable-hdpi-v6 App was tested in working fine on devices

[android-developers] Re: building for 1.5 using 2.0...

2009-11-17 Thread sdphil
i think what this boils down to, is that you need to build everything with 2.0 SDK, and then just make sure you're not using any APIs from versions you don't want. And you will want to abstract away calls you don't have using reflection. Simply doing something like if (version = 2.0) then

Re: [android-developers] weird issues with resources on Verizon Eris.

2009-11-17 Thread Mark Murphy
Alexey Volovoy wrote: With eris behavior is like this - if i download app from the market everything is fine. User reported he turned device off and then he turn it back on, app seems to lost some images. For example launch icon changed to the random image ( which was supplied with the app as

[android-developers] Re: preventing a crashed service from restarting...

2009-11-17 Thread sdphil
ping... On Nov 16, 7:35 am, sdphil phil.pellouch...@gmail.com wrote: do you mean using something like android:oneshot in the manifest xml? core/init/readme.txt ??  is that from the Android source code? On Nov 15, 11:30 pm, Bytes toyvenu.t...@gmail.com wrote: Just try the option 'oneshot'

[android-developers] Re: building for 1.5 using 2.0...

2009-11-17 Thread Jason Proctor
indeed, but don't use reflection, instantiate OS-dependent classes which implement a common interface by *name*. this breaks the class loading chain. reflection == last resort, IMHO At 6:01 PM -0800 11/17/09, sdphil wrote: i think what this boils down to, is that you need to build

[android-developers] Activity lifecycle: onRestart vs onActivityResult

2009-11-17 Thread k7k0
Hi, I have two activities A1 (main) and A2 (children) and two processes P1 and P2. A1 has this behavior: a) First time in the application I need to trigger P1 (onCreate using a splash in foreground) b) When arrive from other's activities or from A2 without results I need to trigger P1 (onRestart)

[android-developers] Re-Register PhoneStateListener if application crashed

2009-11-17 Thread shahzad ahmad
Hi, i've registered a PhoneStateListener in BOOT_COMPLETED receiver by using following call: tm.listen(new TestCallStateListener(), PhoneStateListener.LISTEN_CALL_STATE); If the application crashes then system automatically unregisters the PhoneStateListener. Is there any mechanism of

[android-developers] two Apks with dependency

2009-11-17 Thread allstars
hi i have two Apks , said A and B A may set an Intent to B and B will send the result back to A but if said i have added new commands and result code for them how can i prevent others still use wrong version of A or B?? thanks -- You received this message because you are subscribed to the

[android-developers] Setting of screen brightness broken in 2.0?

2009-11-17 Thread Brad Fullmer
I use the following code to dim the screen in one of my apps. Up until 2.0 I used this code to basically turn on and off the backlight: WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = val; getWindow().setAttributes(lp); Now in 2.0 this is no longer

[android-developers] Re: User Ratings in Apps

2009-11-17 Thread westmeadboy
Would be great if there was a way to embed the rating system within an app. The number of ratings would rocket! Going back to the point about knowing which device was behind the rating, I totally agree. At the moment a rating is tied to a user account. Wouldn't it be good if a rating was tied to

[android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread String
On Nov 17, 7:43 pm, Dianne Hackborn hack...@android.com wrote: I will probably make this API a no-op, since it violates the principle of one app not being able to break another app +1 Especially with the Running Services UI in 2.0, I'd suggest this is the best solution. String -- You

[android-developers] Re: How do I backup my application signing key?

2009-11-17 Thread skyhigh
Does anyone know how to backup the keystore and the application signing key? I searched but didn't find any instructions and everything I tried has not worked. If there are instructions on how to backup the keystore somewhere I would appreciate it if someone could point me to the right place.

[android-developers] Re: Focus between views and lists issue/problem with Donut

2009-11-17 Thread Andri Kurniawan
emm i know whats the problem. you should change AndroidManifest.xml code to this uses-sdk android:minSdkVersion=4 /. the problem is the minSdkVersion is 4, you should change to 4. sorry for my bad english ^^ -- You received this message because you are subscribed to the Google Groups Android

RE : [android-developers] Re: Alarm is canceled if app is stopped

2009-11-17 Thread Cédric Berger
In fact if you can have more control in 2.0, this will just help to not have all this task killers used so blindlessly by everyone. So removing this API will be become less important. And this one still may be usefull in some cases. Just have to be used more wisely. thanks dianne for the

<    1   2   3   >