[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-05-08 Thread Chander Pechetty
Just on a hunch as I have not tried it, can you remove the content URL's from your preference file and try it again (form the url inside your code, and store the variable number in prefs) Again, I have not received any lost shared prefs complaints from anyone and I did not lose any in the last

[android-developers] Issue: Neither user 10039 nor current process has android.permission.WAKE_LOCK || Rooted Phone || App from SD card || JF image

2009-05-08 Thread Mariano Kamp
Hi, I now had this issue twice (see stacktrace below). I am sure that the permission is granted as I declare this in my manifest. Hence the app wouldn't be installed if the user didn't grant the permission. (a) My guess is that it's a rooted phone where the app is started from an SD card

[android-developers] Re: sdcard - remaining space

2009-05-08 Thread Mark Anacker
search this forum for android.os.StatFs() On May 7, 10:50 pm, Sheado chad...@gmail.com wrote: hello, sorry if this has already been answered (hard to search for this one).. is there any way to detect remaining space on the sdcard through the API? I prefer not to make native or shell

[android-developers] Re: Updated to 1.5 and R.java is not regeneratated

2009-05-08 Thread LambergaR
I am having the same problem. Richards solution doasnt help either. Any advice? On 5 maj, 00:13, Jinru He mikehe1...@gmail.com wrote: Hi, Xavier, I encounter the same problem. and I am pretty sure that I didnot have thegenfolderbefore updating to ADT 0.9 How can i solve this problem?

[android-developers] Setting up UDP connections between devices

2009-05-08 Thread Tez
Hi, I want to setup a P2P UDP connection between two devices. The 'normal' method is to use the socket class available, but this won't work due to NAT issues etc. For this, i am using XMPP, but the default mode is TCP. To use UDP, i need to use Jingle. Can anyone tell me how to perform a basic

[android-developers] Re: Issue: Neither user 10039 nor current process has android.permission.WAKE_LOCK || Rooted Phone || App from SD card || JF image

2009-05-08 Thread Dianne Hackborn
Cupcake still allows apps to get the wake lock permission. On Thu, May 7, 2009 at 11:09 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, I now had this issue twice (see stacktrace below). I am sure that the permission is granted as I declare this in my manifest. Hence the app wouldn't

[android-developers] Re: sdcard - remaining space

2009-05-08 Thread Sheado
awesome =) you rock! thanks! On May 7, 11:23 pm, Mark Anacker closecr...@riven.tzo.com wrote: search this forum for android.os.StatFs() On May 7, 10:50 pm, Sheado chad...@gmail.com wrote: hello, sorry if this has already been answered (hard to search for this one).. is there any

[android-developers] Re: Ideas behind Android's task concept

2009-05-08 Thread Dianne Hackborn
Yeah I will certainly agree that this is a bit of a mess -- it was unfortunately the result of a lot of continual iteration on the UI (often of different apps independently), leading to new feature requests each time, causing an every growing number of options. :/ We are working on cleaning up

[android-developers] Bug in Contacts notes ?

2009-05-08 Thread Olivier Tournaire
Hi all, I am wondering if it is a bug, but when I try to edit Notes in a Contact, it is not saved even if I click Menu Done. However, if I create several notes (at least 2), only the last one is saved ... What it is the problem ? Regards, Olivier

[android-developers] Re: conversion to dalvik format failed with error 1

2009-05-08 Thread Kamal Hasan
Hi My project was running perfectly and when I cleaned the project then It started to give the following error. [2009-05-08 12:47:24 - MobilChek] no classfiles specified [2009-05-08 12:47:24 - MobilChek] Conversion to Dalvik format failed with error 1 Pls help me in resolving this issue.

[android-developers] Re: Problem with Internet connection through emulator

2009-05-08 Thread Gerald Logor
Well if that's the case, if the -http-proxy proxy command-line option is not supplied, then emulator should by default looks up the http_proxyenvironment variable (which I did set it using sqlite3 in the settingsdb file) and automatically uses any value matching the proxy format. However, it

[android-developers] Re: WebView.addJavascriptInterface problems

2009-05-08 Thread jfcog...@gsyc.es
The main problem is to access to the public attributes methods of the instance object from javascript, because I try to implement the W3C standard. This standard explicit force the access to the data through public attributes ( no from public methods). The above class hierarchy that i shows you

[android-developers] AVD creation in Eclipse should be automatic

2009-05-08 Thread kenjkelly
Hi Folks, In Eclipse, when launching the debugger/emulator, the AVD selection is blank until you manually create an AVD by using a command line. It seems that Eclipse knows, because it asks you, which platform you are using (Android 1.1 vs 1.5 vs 1.5+Google) and it knows what you named the

[android-developers] VIM and Android

2009-05-08 Thread Alex Jurgensen
Hi, All, I am forced to use VIM to do all my programming and being new to Adnroid and Java in general but with a background of sorts in Perl, I need to know how to use VIM to write Android Applications. Is this possible? Also, is there any tips and tricks to modifying the Android

[android-developers] Re: conversion to dalvik format failed with error 1

2009-05-08 Thread kenjkelly
My guess is that the 1.5 release relies on something that gets built after it is needed. Thus the Clean fails but then it works on the next build. Can someone who worked on the Eclipse Plugin for 1.5 check that out? Incase it is important, I am using the 1.5 with Google libs selection. Ken

[android-developers] Re: Video streaming error in SDK 1.5

2009-05-08 Thread Nithin N V
Hi Dave... I tried to add mdat atom using Hex editor...Bur When i play the video its give error... Please Can you tell me how can i do the video streaming... Thank You N N --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Issue: Neither user 10039 nor current process has android.permission.WAKE_LOCK || Rooted Phone || App from SD card || JF image

2009-05-08 Thread Mariano Kamp
Thanks Dianne. Meanwhile it is clear that the bug was happening due to a complication with the whole apps from SD card thing. After a clean install it works now. On Fri, May 8, 2009 at 8:40 AM, Dianne Hackborn hack...@android.com wrote: Cupcake still allows apps to get the wake lock permission.

[android-developers] Geocoder not returning result

2009-05-08 Thread Android Users
Hi, My application that uses geocoding was working fine till last week and now all of a sudden am not getting proper data from the same. I used getLocality() , which was returning CITY name previously. But now it is returning NULL. Is something changed? or Has someone faced the same issue? My

[android-developers] Re: Media Player sound state problems in G1

2009-05-08 Thread Sudha
By the way what are these states 1, 2, 128 etc. Can't android people name it when raising exceptions so that developers could know better what is the cause of exception? I am getting full irritated because of these sound issues particularly with the MediaPlayer and its states in android

[android-developers] Re: VIM and Android

2009-05-08 Thread Zero
VIM is just a texteditor (although a good one). you need the android sdk and a java 5 install to compile, what editor you use to code is up to you, even notepad.exe will work ;-) anddev.org might be a good place to start/ look for tutorials :) On May 8, 10:31 am, Alex Jurgensen

[android-developers] Re: AVD creation in Eclipse should be automatic

2009-05-08 Thread Sena Gbeckor-Kove
It says, somewhere, possibly the release notes. Maybe somewhere else that this functionality will be automatic later. S On 8 May 2009, at 10:22, kenjkelly wrote: Hi Folks, In Eclipse, when launching the debugger/emulator, the AVD selection is blank until you manually create an AVD by

[android-developers] XML Parser, more than 1024 characters per tag

2009-05-08 Thread Ventrix Kostis P.
I'm trying to parse a tag using the SAXParserFactory, SAXParser and the XMLReader classes, which contains a String that is bigger than 1024 characters. This gives me two returns in the new String(ch, start, length); inside the public void characters method. Except for making my code more

[android-developers] Re: XML Parser, more than 1024 characters per tag

2009-05-08 Thread Ventrix Kostis P.
On May 8, 1:16 pm, Ventrix Kostis P. vent...@gmail.com wrote: I'm trying to parse a tag using the SAXParserFactory, SAXParser and the XMLReader classes, which contains a String that is bigger than 1024 characters. This gives me two returns in the new String(ch, start, length); inside the

[android-developers] EMMA Code coverage and JUnit

2009-05-08 Thread Deeps
I had been surfing for the past one month on this Code coverage. But its disappointing that there is no clear documentation on using EMMA code coverage for Android. case 1: I am trying to execute from Command prompt. I have sucessfully implemented instrumentation class for my application. I

[android-developers] Re: Updated to 1.5 and R.java is not regeneratated

2009-05-08 Thread André Charles Legendre
Hi I got this under Linux and I solved it by changing authorization of tools files and platform/tools files You must first go in the SDK directory and then chmod +x tools/* and then chmod +x platform/android*/tools/* You need also to have this directories in your PATH. Regards Andre

[android-developers] Android : MapView : slow loading of the map

2009-05-08 Thread Sudha
Hi I got the G1. When I am loading my mapview, mpa is getting displayed but it is taking time. so I want to give my own loading background and when the map gets loaded fully then I want to switch it to the map. Any cluse to do this ? --~--~-~--~~~---~--~~ You

[android-developers] run signed apps from eclipse

2009-05-08 Thread guruk
is there a way to let eclipse compile always a signed app and run it on the mobile/emulator I nearly never use debug and so always when i switch between my developing app and the app i publish i have to deinstall the app. quit nerving. would be way cool if there is an option to automate the

[android-developers] Re: Skin Size 800x600px .. how to

2009-05-08 Thread guruk
thats the reason i like to do that :) On May 8, 2:01 am, Dianne Hackborn hack...@android.com wrote: But note that this isn't currently supported by the platform, so what you get here is not much you should base your development on.  It's nice to be pro-active and see how your app might

[android-developers] run signed apps from eclipse

2009-05-08 Thread guruk
is there a way to let eclipse compile always a signed app and run it on the mobile/emulator I nearly never use debug and so always when i switch between my developing app and the app i publish i have to deinstall the app. quit nerving. would be way cool if there is an option to automate the

[android-developers] Re: Transparency on Views behaving differently in 1.5

2009-05-08 Thread Mark Murphy
Raphael wrote: Is this on the emulator or on a real device? Please enter a bug at http://b.android.com with a working piece of code that exhibits the issue and SDK details (sdk, OS, emu vs device, etc.) Thanks in advance. I have not had an opportunity to recreate the problem in a smallish

[android-developers] Re: Testing sample plugin on Android

2009-05-08 Thread Mark Murphy
Maha wrote: I have seen a plugin in android under the following path /data/data/com.android.browser/app_plugins/browsertestplugin.so Please anyone tell me how to test this plugin Questions about the Android firmware are best asked in a discussion list pertaining to the

[android-developers] Re: SharedPreferences got deleted! - What could be the problem?

2009-05-08 Thread dar
I don't see anything in that example, but until http://code.google.com/p/android/issues/detail?id=1707 is released, I have been escaping all user generated strings before saving them. This has cut down my user complaints after I figured out they were putting these problem characters into the

[android-developers] setBackground method fix an issue on my layout?!!

2009-05-08 Thread arnouf
Hi all, I would like to share with a strange behaviour... A linearlayout contains an ImageView. When user does a specific action, I add another ImageView outside the screenHeight, generate an animation to slide from the current ImageView to the new added. on AnimationEnd I set the layout size

[android-developers] How to have singleInstance of the activity and relay information back to parent.

2009-05-08 Thread kingtut
I basically have three activities X, Y, Z and I want only one instance of each but I want control over the navigation and I can't do that by putting all three activities in one task because of the stack structure. Here is a scenario, from X I launch Y given a certain id which correspondence to

[android-developers] Re: Ideas behind Android's task concept

2009-05-08 Thread Mike Hearn
As far as contacts goes, though, this is actually intentional -- some apps (like contacts and settings) want to put the user back to their front door when relaunched from home, so they set the option to do that.  This is actually a desired inconsistency. Right, I realise it's intentional.

[android-developers] EMMA Code coverage and JUnit

2009-05-08 Thread Deeps
Can anybody help me on Code coverage? I have sucessfully created a testing environment and able to execute the Instrumentation. I would like to get a code coverage report. But i dont see any documentation on this topic where as the Docs say that -e coverage true would create a '.ec' file in

[android-developers] EMMA Code coverage and JUnit

2009-05-08 Thread Deeps
Can anybody help me on Code coverage? I have sucessfully created a testing environment and able to execute the Instrumentation. I would like to get a code coverage report. But i dont see any documentation on this topic where as the Docs say that -e coverage true would create a '.ec' file in

[android-developers] Re: App-independent Storage of Shared Resources/Media

2009-05-08 Thread Arne Handt
On 7 Mai, 18:14, Mark Murphy mmur...@commonsware.com wrote: I'm in a situation where I have to share some resources (i.e. images) between several of my apps and I'd like to know if there's a standardized and convenient way to do this besides the system-wide Media Store. If they can be

[android-developers] why webview swap load new url only after animation?

2009-05-08 Thread zeeshan
Hi, i need to load several url to a webview in animated transition. i used 2 webviews; prev_view and next_view. if we click on next button, next_view will appear with right to left animation covering the prev_view underneath. on back press. next_view will move left to right showing the

[android-developers] Re: Does SimpleDateFormat no longer throw a ParseException?

2009-05-08 Thread EboMike
As a quick update, I checked the changelog for 1.5 and couldn't find any mention of this, but this clearly changed. People are writing me know how the date handling in my app stopped working after they upgraded to 1.5. This seems like a bug to me, unless there is another place in the Android docs

[android-developers] Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
We've got a problem on 1.5 with the task switcher dialog (which, by the way, I love and am very grateful for). We've got a couple of notificationy activities which close, and call finish(), and should never be seen again. But, under some circumstances, these can be seen and switched to via the

[android-developers] Re: Ideas behind Android's task concept

2009-05-08 Thread Mariano Kamp
Isn't that the same model that is used on the Desktop?Launching an app usually puts you in a clean state, but switching back to a running instance (Alt/Cmd+Tab) brings you to the screen of the app you were most recently on.That makes perfect sense to me. Actually now that I learned about

[android-developers] Re: OnfocusChangeListener question

2009-05-08 Thread felix...@googlemail.com
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@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: conversion to dalvik format failed with error 1

2009-05-08 Thread Derek
I got this error frequently right after updating ADT. Turned out that I had updated my ADT instead of uninstall/install. I had to manually cleanse my eclipse install to get rid of references to 0.8 On May 8, 3:02 am, kenjkelly kenke...@kenkelly.com wrote: My guess is that the 1.5 release

[android-developers] Re: ExampleAppWidget won't run

2009-05-08 Thread Zia
Got it! Thanks! On May 7, 7:22 pm, Jeff Sharkey jshar...@android.com wrote: So you don't really launch AppWidgets.  Once you've installed them, they will appear in the long-press menu on the home screen. j On Thu, May 7, 2009 at 6:54 PM, Zia zia.cha...@gmail.com wrote: Does AppWidget

[android-developers] Video streaming error in SDK 1.5

2009-05-08 Thread Jason Proctor
the moov and mdat atoms should already be there, (IIRC) they are required for a well-formed movie file. the moov atom provides metadata for the movie, and the mdat atom provides the actual content. however, if the file is being streamed, the client needs to know the metadata before the actual

[android-developers] Re: Media Player sound state problems in G1

2009-05-08 Thread Marco Nelissen
On Fri, May 8, 2009 at 2:31 AM, Sudha sudhaker...@gmail.com wrote: By the way what are these states 1, 2, 128 etc. 1 is 'idle' 2 is 'initialized' 128 is 'playback complete' (see mediaplayer.h) So let's take another look at the error messages you were seeing: 1- E/MediaPlayer( 2173):

[android-developers] Re: Media Player sound state problems in G1

2009-05-08 Thread Marco Nelissen
On Thu, May 7, 2009 at 10:33 PM, Sudha sudhaker...@gmail.com wrote: I have nearly 28 sound files in which most of them have the duration less than a second (i.e in milliseconds), to reduce the delay in creating the player everytime, i created a player for each sound file i.e 28 MediaPlayers

[android-developers] Re: Android Emulator Frozen! :(

2009-05-08 Thread mcmc
Nevermind - I updated JRE, and it works. On May 6, 11:46 pm, mcmc manni...@gmail.com wrote: Hello all, My code compiles, but when I try running the emulator, it does not get past the splash screen... does anyone know how I can fix this? I need all the help I can get - quite desperate

[android-developers] Re: Ideas behind Android's task concept

2009-05-08 Thread Dianne Hackborn
On Fri, May 8, 2009 at 6:07 AM, Mike Hearn mh.in.engl...@gmail.com wrote: Right, I realise it's intentional. What I'm unclear on is, why these apps are special? I presume usability testing revealed this is the behavior users expected. In which case why not reset task stacks for every app?

[android-developers] Re: Ideas behind Android's task concept

2009-05-08 Thread Dianne Hackborn
On Fri, May 8, 2009 at 8:08 AM, Mariano Kamp mariano.k...@gmail.com wrote: This discussion is very enlightening. Dianne that would be a great topic for a blog post of yours, wouldn't it? ;-) Hopefully we can have full UI design docs for this. :) I kind-of avoid writing blog posts, because

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread Dianne Hackborn
The one you want is android:excludeFromRecents on your Activity that gets launched from the notification. On Fri, May 8, 2009 at 8:00 AM, jarkman jark...@gmail.com wrote: We've got a problem on 1.5 with the task switcher dialog (which, by the way, I love and am very grateful for). We've got

[android-developers] How to set context menu header title in XML?

2009-05-08 Thread scuellar
Hi all, Do you know how to set the header title of a menu in the XML file? The function that I call is the following: ContextMenu menu = ; menu.setHeaderTitle(title); Thanks --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Fwd: Business and Corporate Scandals ... and how to earn money

2009-05-08 Thread meh.altaf
Corporate Scandals http://wealert.blogspot.com/ - Tyco Internationalhttp://wealert.blogspot.com/2009/05/tyco-international.html - Kanebo Limitedhttp://wealert.blogspot.com/2009/05/kanebo-limited.html - Health South

[android-developers] ADT plugin... error 404

2009-05-08 Thread STuFF
since very recently https://dl-ssl.google.com/android/eclipse/ is on error (404) could someone at google can fix it ? ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] IME sample in the SDK

2009-05-08 Thread Menny
Hi, I want to create a new on-screen-keyboard, and I thought that a good start point will be to see how the SoftKeyboard sample in the SDK (under the SDK folder: android-sdk-windows-1.5_r1\platforms \android-1.5\samples\SoftKeyboard) works. But it doesn't! I run it in Eclipse. So, it compile,

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-05-08 Thread yacc
Sounds a little bit backward. It forces me to manually switch options on off, loosing my time. It basically forbids me to delegate this to my app, which is bad. There are many valid reasons why apps need to activate GPS, while I want to keep it off by default, use cases that come immediatly to

[android-developers] OutOfMemoryError when changing screen orientation

2009-05-08 Thread geopicmob...@googlemail.com
Hi, I get an OutOfMemoryError every time i change the screen orientation and I am having a hard time finding the mistake... The Activitie's view consists of an ImageView, two Buttons and a Spinner. I don't have static variables and can't imagine where i could leak a context. Most of the times,

[android-developers] How to connect to a Wifi network behind a proxy?

2009-05-08 Thread IvanB
Hi! Is there a way to connect to a WiFi behind a proxy? Could this be possible with a third-party application? Sorry about my poor english. Thank you all for your excellent work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] How to play voice files on Touch Event

2009-05-08 Thread Leslie
When want to play voice files on Touch Event. I have a piano Keyboard on Screen, when user Touch move on piano keys, play its' voice files. Issue: I used two way for trails 1. in Touch Move event, check x, y to avoid play twice in same Key region. And when Touch move to a new key region, play

[android-developers] Re: Urgent! can't update apps in market. No error message

2009-05-08 Thread android app
Really? On my own device, I can uninstall the previous version and install the new version even signed with a different key. There must be a way for the developer to upload the new version with a different key in the Android Market. It makes sense for many possible scenarios. 1) the developer

[android-developers] How can LongPress action be detected?

2009-05-08 Thread vish74
Hi, I have a broadcast receiver for my app and it is trying to detect a longpress event on a wired headset? Can someone provide a sample code to distinguish between a quick press vs a long press on a wired headset? --~--~-~--~~~---~--~~ You received this message

[android-developers] how to display virtual keyboard

2009-05-08 Thread simons...@gmail.com
I am a new guy on android study, and I also research the soft keyboard. I had made a qwerty.xml, but I do not know how to show this keyboard? I had only used setcontentview(minputview); i t can be , but the screen only show the keyboard... my code: public void onCreate(Bundle

[android-developers] Re: Urgent! can't update apps in market. No error message

2009-05-08 Thread android app
Really? On my own device, I can uninstall the previous version and install the new version even signed with a different key. There must be a way for the developer to upload the new version with a different key in the Android Market. It makes sense for many possible scenarios. 1) the developer

[android-developers] Re: Android SDK Content Loader gets stuck....

2009-05-08 Thread Damanique
I had the same problem. It seemed that the Android Package Builder kept hanging on certain projects. The only solution I could find was to remove those projects from the workspace using the file system (not Eclipse). I'm not sure what is causing the error. On May 6, 12:37 am, Richard Schilling

[android-developers] Android Developer in Redwood Shores, CA

2009-05-08 Thread Yenny
Hi, This is Yen from Maxonic, we are located in the SF Bay Area. I came across your resume on dice.com and wanted to discuss a position that I have for a direct client of ours in Redwood Shores, CA. Our client is looking for an Android Developer with experience in Android, Java, and mobile.

[android-developers] Problem with XMPP and Gtalk settings -- urgent help required

2009-05-08 Thread vikrant
Hi In one of my application I am trying to connect/ integrate Gtalk with my application..so that from within the app i can send messages to other frds logged in to gtalk... while adding accounts, I dont find XMPP settings in the emulator in Dev Tools option Also wen put my code, the eclipse

[android-developers] Animated window transitions in Android 1.5

2009-05-08 Thread abhijith.off...@gmail.com
in android 1.5 release notes I saw Animated window transitions . What is this all about ? IN my application i want to show trasitions if i go from one activity to other.We can set the animation for both activities and call when one is closing and other is opening. But problem is when , the

[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-08 Thread p.rozas.larrao...@gmail.com
Hi, I've just registered the same problem trying to play a simple mp3 file. E/PlayerDriver (542 ): Command PLAYER_SET_DATA_SOURCE completed with an error or info E/MediaPlayer (770 ): PVMFErrNotSupported error (1, -4) I'm using the 1.5 sdk under windows xp and I've tried with some mp3 files

[android-developers] Broadcast receiver thread

2009-05-08 Thread vish74
Hi, I wanted to know if the boradcast receiver for an app runs in the same thread as the app (main thread) or in its own thread. More specifically, if my application provides a Handler() method and receiver does a sendMessage()... will all of this work part of the same thread?

[android-developers] MediaPlayer - prepare failed

2009-05-08 Thread Tom
Hi, I'm trying to play an audio stream and I've hit this Prepare failed error numerous times, but depending on what I try I get a different status. E.g. java.io.IOException: Prepare failed.: status=0xFFEE Does someone have an overview of the status codes for the 1.1 SDK, say from 0x

[android-developers] Re: Urgent! can't update apps in market. No error message

2009-05-08 Thread android app
Really? On my own device, I can uninstall the previous version and install the new version even signed with a different key. There must be a way for the developer to upload the new version with a different key in the Android Market. It makes sense for many possible scenarios. 1) the developer

[android-developers] Re: How to have singleInstance of the activity and relay information back to parent.

2009-05-08 Thread Dianne Hackborn
Indeed, you can't, because singleInstance (and singleTask) means that the activity is managed independently of the previous activity that is launching it, so there can be know guarantees about when or in what order the result will be returned. Don't use singleInstance. Why do you want

[android-developers] Re: Animated window transitions in Android 1.5

2009-05-08 Thread Dianne Hackborn
1.5 does animations between activities if they are turned on in the new settings option. Please don't do them yourself. On Fri, May 8, 2009 at 4:08 AM, abhijith.off...@gmail.com abhijith.off...@gmail.com wrote: in android 1.5 release notes I saw Animated window transitions . What is this

[android-developers] Re: IME sample in the SDK

2009-05-08 Thread Dianne Hackborn
Did you enable it in settings? Did you long press on a text field and select it as the active IME? On Thu, May 7, 2009 at 11:40 PM, Menny menn...@gmail.com wrote: Hi, I want to create a new on-screen-keyboard, and I thought that a good start point will be to see how the SoftKeyboard sample

[android-developers] Re: Advice for remote service returning value from http transaction

2009-05-08 Thread jseghers
On May 6, 5:33 pm, jseghers jsegh...@cequint.com wrote: On May 6, 2:49 pm, Dianne Hackborn hack...@android.com wrote: [B]e aware that if you do this by sending to a registered broadcast receiver, you can cause security holes because other people can also register for the broadcast

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-05-08 Thread Romain Guy
The GPS toggle in the system settings is a **PRIVACY** setting. It's just there to allow applications to turn the GPS on or off. Applications are in control of the GPS and can turn it off/on (when it's on you see a GPS icon in the status bar) whenever they want. If an app is keeping the GPS on

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
Thanks - that's not exactly what I want (although it may be as close as I can get). That will stop the activity ever appearing in the task switcher, whereas I only want it to not appear in the task switcher after the activity calls finish(). Is theer something else I should be doing at

[android-developers] Re: Android v. 1.5 = FAIL #2: Directly Manipulating Settings

2009-05-08 Thread Dianne Hackborn
As I've said, it would be reasonable to have a facility for power manager kind of stuff to get involved in this. This setting is not the way. And it NEVER was. Do you realize what we are seeing here? People complaining that their app can no longer turn on the setting whenever it wants, and

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread Dianne Hackborn
No, you can't do that, sorry. On Fri, May 8, 2009 at 10:11 AM, jarkman jark...@gmail.com wrote: Thanks - that's not exactly what I want (although it may be as close as I can get). That will stop the activity ever appearing in the task switcher, whereas I only want it to not appear in the

[android-developers] Re: Advice for remote service returning value from http transaction

2009-05-08 Thread Dianne Hackborn
Yep that's good. On Fri, May 8, 2009 at 10:06 AM, jseghers jsegh...@cequint.com wrote: On May 6, 5:33 pm, jseghers jsegh...@cequint.com wrote: On May 6, 2:49 pm, Dianne Hackborn hack...@android.com wrote: [B]e aware that if you do this by sending to a registered broadcast receiver,

[android-developers] How can I listen for WebView page load completed event

2009-05-08 Thread Lucius Fox
Hi, Is it possible to listen for WebView page load completed event (the whole page is loaded including images, js files, css files and the page is completely rendered. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: How can I get active apn name?

2009-05-08 Thread mbaroukh
yes. I need to do this to retrieve current apn proxy. Her is how I did it : Cursor mCursor = getContentResolver().query(Uri.parse(content:// telephony/carriers), new String[] {name}, current=1, null, null); if (mCursor!=null) {

[android-developers] Re: nullifying imageview src

2009-05-08 Thread Sheepz
can you elaborate on that? On Apr 7, 6:51 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Try to do setImageBitmap(null) instead. On Apr 7, 6:10 pm, Sheepz eladk...@gmail.com wrote: anyone? any ideas? please?! On Apr 4, 12:34 pm, Sheepz eladk...@gmail.com wrote: Hi all, i'm

[android-developers] Re: How can I listen for WebView page load completed event

2009-05-08 Thread Mark Murphy
Lucius Fox wrote: Hi, Is it possible to listen for WebView page load completed event (the whole page is loaded including images, js files, css files and the page is completely rendered. Create a WebViewClient object, overriding onPageCompleted(). Then, call setWebViewClient() on your

[android-developers] Re: How to have singleInstance of the activity and relay information back to parent.

2009-05-08 Thread kingtut
That makes sense, but going back to the X Y Z example, I have lists in X and Y with items that open in Z, so I go back and forth a lot between Z and either X or Y. I want the user experience to be seamless, and according to the performance guide

[android-developers] Re: How to have singleInstance of the activity and relay information back to parent.

2009-05-08 Thread Dianne Hackborn
It is currently about 200ms to launch an empty activity. You have a fair amount of control over the additional time on top of that. On Fri, May 8, 2009 at 10:36 AM, kingtut elzoha...@gmail.com wrote: That makes sense, but going back to the X Y Z example, I have lists in X and Y with items

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
OK, thanks. Is it easy to explain why these activities linger on so ? After reading today's discussions of tasks and activities I have the vague idea that they survive because they are the last activity for a task, and the system hasn't decided to kill the task yet. Richard On May 8, 6:17 

[android-developers] Class derived from IntentService must have default constructor

2009-05-08 Thread jseghers
I'm posting this to share the lessons I learned while working with IntentService. IntentService has a single constructor that takes a string argument name. The documentation has no description of what name is used for. In looking at the sources, I found that its only use is in naming the worker

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread Marco Nelissen
They don't really 'linger' or 'survive'. What you called the 'task switcher' dialog is actually the 'recent tasks' dialog. It's different from the windows or mac task switcher that shows you currently running apps. On Fri, May 8, 2009 at 11:00 AM, jarkman jark...@gmail.com wrote: OK, thanks.

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread jarkman
Well, they definitely do something that feels a lot like lingering, in that they go away when the user tells them to (in a manner which was effectively permanent in 1.1), and then they are later revived by the switcher. It's a rather odd user experience. Here's an activity which the user can't

[android-developers] Re: How to play voice files on Touch Event

2009-05-08 Thread Dianne Hackborn
MotionEvent has the history of all the points between the last event and the current one you are processing, if you are not able to keep up with them. That said, the driver only reports samples at a limited rate, so it would still be possible to not see points at some places if the finger is

[android-developers] Re: Clone hidden row and display the cloned one with visibility seetings to true

2009-05-08 Thread Raja Nagendra Kumar
corrections In order to have a decent perf, looking to clone the existing tablerow and add this as new row. Is cloning of existing table row possible assuming that I always clone from a hidden view only. Does clone takes care of cloning the sub views sub components which exist with in table

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread Dianne Hackborn
Like Marco said, this is NOT running tasks, it is just the most recent tasks the user has started. If they select one of these items, either the current task will be brought to the foreground or a new one started if there is not an existing one. It makes perfect sense if you look at this as

[android-developers] Re: How to detect whether the virtual keyboard is visible or not? SDK 1.5

2009-05-08 Thread havexz
Actually I want to configure my layout and views (making some views invisible) if the keyboard is visible Any way to check the visibility of the IME (virtual keyboard)? On May 7, 1:56 pm, Dianne Hackborn hack...@android.com wrote: By your view hierarchy being resized with all of the

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread Mark Murphy
Dianne Hackborn wrote: And as a general rule, activities that are created from a notification should not be in this list. That assumes activities that are created from a notification are different than activities created by the Launcher. For some apps, those are the same activity, doing

[android-developers] Re: How to Detect Soft Keyboard / Resize?

2009-05-08 Thread Yusuf T. Mobile
I have bad news and good news. There is no direct API to detect this. But you can detect if your layout is forcibly changed by Android due to the soft keyboard [dis]appearing, which you can detect. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email

[android-developers] Re: Recent-apps dialog revives finish()'ed activities

2009-05-08 Thread Dianne Hackborn
On Fri, May 8, 2009 at 12:01 PM, Mark Murphy mmur...@commonsware.comwrote: That assumes activities that are created from a notification are different than activities created by the Launcher. For some apps, those are the same activity, doing different things based on the received Intent. In

[android-developers] Re: How to detect whether the virtual keyboard is visible or not? SDK 1.5

2009-05-08 Thread Dianne Hackborn
No, sorry. On Fri, May 8, 2009 at 11:57 AM, havexz bali.param...@gmail.com wrote: Actually I want to configure my layout and views (making some views invisible) if the keyboard is visible Any way to check the visibility of the IME (virtual keyboard)? On May 7, 1:56 pm, Dianne Hackborn

[android-developers] Re: Updated to 1.5 and R.java is not regeneratated

2009-05-08 Thread Xavier Ducrohet
Not sure what problem you have, but if it's related to the gen folder, just create it manually, and then right click it and choose Build Path Use as source folder Xav 2009/5/7 LambergaR martin.s...@gmail.com: I am having the same problem. Richards solution doasnt help either. Any advice?

  1   2   >