[android-developers] getspeed

2009-04-23 Thread gandor
Hi, If I want to simulate getspeed using emulator how do I do it. I used the following code and it gives me 04-23 05:39:18.485: ERROR/AndroidRuntime(292): Caused by: java.lang.SecurityException: Requires ACCESS_FINE_LOCATION permission --- package gd.Speedometer; import

[android-developers] resolution problem!

2009-04-23 Thread Eric Ladem
Hello Android members, I'm a new android developper and I have problem with my database.In fact, I have done : private EditText name; private EditText number; private void saveState() { String name = name.getText().toString(); String number = number.getText().toString(); I have

[android-developers] Re: resolution problem!

2009-04-23 Thread Jeff Sharkey
That's a simple problem of variable scoping. Reference the outer EditText by using this.name or rename the variables. j On Wed, Apr 22, 2009 at 11:41 PM, Eric Ladem lad...@gmail.com wrote: Hello Android members, I'm a new android developper and I have problem with my database.In fact, I

[android-developers] MediaPlayer sound problem

2009-04-23 Thread BlackLight
Hello. I have this task: Need to play short (0.3-0.4 sec) sounds all the time. When sound is played, it should start again, etc. User can press button to reset sound - it should stop and lunch. I did many tests. I tried to create 1 MediaPlayer, then do this:

[android-developers] Re: Audio streaming/progressive download over HTTP

2009-04-23 Thread tainy
what is more: according to media-formats.html in the reference, MPEG4 SP is not supported for both encoding and decoding, so how can it support streaming? quite confusing. On 4月23日, 上午7时59分, Dave Sparks davidspa...@android.com wrote: Progressive streaming using HTTP is well-supported. RTSP

[android-developers] Re: How to browse deeper into /data/data/package/app_somename/somedir

2009-04-23 Thread brian.schimmel
Hi, I think I found two answers to my own question: 1. The files and directories I wanted to see start with a dot (.) which are hidden by default on linux. Using adb shell, I can use ls - a to see them. Anyway, I can not see them in DDMS and I cannot find a setting to change that. I think I

[android-developers] Is it possible to have a view that is transformed by a matrix?

2009-04-23 Thread dm1973
I would like to draw some buttons that are rotated 45 degrees and was wondering if there was any way to do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] how to check resolution of a Image

2009-04-23 Thread zeeshan
Hi Experts, i am having a problem when i select a very large image for the code below: Uri image= Uri.parse(imageFile); imageicon.setImageURI(image); in my application, user selects an image from sd card or capture it. please advise me how can i check the resolution of the selected image

[android-developers] changing language on demand?

2009-04-23 Thread DaRolla
hello, I need to change the language of a running apk on demand. So the texts are set in xml to @strings/name And there are different strings.xml inside values-de values-en values- tr and so on. Is there a way to tell android to update the layout in order to change the strings automatically?

[android-developers] AudioRecord can't get any notification when record/marker position updated

2009-04-23 Thread Steven_T
hello everyone, I would like to use the new AudioRecord class to record in PCM format. Create class and setRecordPositionUpdateListener to it, then start recording, I can't get any notification from system forever,why?(I didn't get any error when running) please help me, thanks. the next is my

[android-developers] Re: changing language on demand?

2009-04-23 Thread Evgeny V
Hi! Try this. I have res\values and res\values-ja-rJP folders. Using following code: String languageToLoad = jp; Locale locale = new Locale(languageToLoad); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale;

[android-developers] AudioRecord can't get any notification when record/marker position updated

2009-04-23 Thread Steven_T
hi all I want use AudioRecord class to record audio in PCM formate. after create class and set setRecordPositionUpdateListener, then start recording. I can't get any notification from system. why? please help me, thanks public class Recorder { private static final int AUDIO_SAMPLE_FREQ =

[android-developers] How to get the wedgit property

2009-04-23 Thread Rain
How to get the wedgit property such as the title,text ...etc by wedgit id --~--~-~--~~~---~--~~ 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] Regarding RSS Feeds

2009-04-23 Thread manoj
Hi, I want to display RSS feeds in my app. I found that there are some RSS readers are available for Android. I got some where the link: http://code.google.com/p/android-rss/source/checkout It is not working on my sdk, giving some errors. I think, it works on older versioned Android SDK.

[android-developers] Re: changing language on demand?

2009-04-23 Thread Marco Schmitz
hi, thanks for this. I've found the same sourcecode here: http://almondmendoza.com/2009/01/28/force-localize-an-application-on-android/ :) All I had to add was this: this.setContentView(R.layout.main); This way my layout is updated with the right language. Thought there might be an update

[android-developers] Toggle Listadapter Item

2009-04-23 Thread WindWaker
Hi guys i am having a problem disabling a particular listadapter's item depending on a certain condition. I have overriden public boolean isEnabled(int position) { return true; } and public boolean isEnabled(int position) { return

[android-developers] Parsing XML feed with SAX

2009-04-23 Thread mobilek...@googlemail.com
Hi, I'm unable to consume a WS with the SAX, for some reason my implementation doesn't read the complete XML feed, it reads it up to a random point. Has anyone faced anything similiar? Here's what I'm doing: After calling a RESTful WS a read the response from the server as follows: if

[android-developers] Re: why there's no boot.img in Android-1.5

2009-04-23 Thread david 1
The kernel is lost. I traced the making log, and found boot image is generated based on ramdisk image kernel. So, boot image is not created successfully. Then I 'make ARCH=arm CROSS_COMPILE=arm-eabi- goldfish_defconfig make' and got a zImage. Then I used it as 'kernel' to generate a boot.img

[android-developers] Re: How do I get the source code of Android 1.1_r1?

2009-04-23 Thread Marek Urbaniak
Thanks for the answer. On Apr 20, 7:42 pm, Jean-Baptiste Queru j...@android.com wrote: We focused our energy on getting thesourcecode for 1.5 available. JBQ On Sun, Apr 19, 2009 at 5:30 AM, Marek Urbaniak marek.urban...@gmail.com wrote: On Mar 28, 9:12 pm, Jean-Baptiste Queru

[android-developers] Re: Parsing XML feed with SAX

2009-04-23 Thread mobilekid
Just to add to my message, endDocument() doesn't get called... Does that mean that the document is too big too parse?! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Fuzzmonkey
Hello, By explicit component do you mean data android scheme=custom/ data in the intent filter or code in the broadcast receiver? Is that all i'd need? Thanks, George On Apr 23, 1:29 am, Dianne Hackborn hack...@android.com wrote: You didn't include all of your code, but you definitely what

[android-developers] Re: animated GIF support in android

2009-04-23 Thread Mark Murphy
Nasam wrote: Is animated GIF supported in android through SKIA library. I am not able to play animated GIF which is partially updated about each frame. I do not believe anything built into Android plays animated GIFs. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Scroll view determine maximum scrollY value

2009-04-23 Thread sergey.drygan...@gmail.com
How to determine maximum ScrollY value for ScrollView? --~--~-~--~~~---~--~~ 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

[android-developers] VM won't let us allocate 6291456 bytes

2009-04-23 Thread zeeshan
Hi Experts, i captured an image by android G1, now trying to display it as ImageView but it gives me memory allocation exception. Uri image= Uri.parse(imageFile); imageicon.setImageURI(image); / ImageView android:id=@+id/imageicon

[android-developers] CAN ANYONE ANSWER THIS QUESTION, SIMPLE FOR YOU LOT question on tutorial

2009-04-23 Thread chris idr
this should be simple for you lot, after all its a tutorial, and it stops me and a lot of others getting into the software. id like to first ask how does the hello android, (get list of contacts, and call selected one work) i cant get the source code to work. i have figured out all but the

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Fuzzmonkey
I've added the scheme to my intent filter as following. proxBroadcastReceiver = new MyIntentReceiver(); proxIntentFilter = new IntentFilter (android.intent.action.PROXIMITY_ALERT); proxIntentFilter.addDataScheme(custom); registerReceiver(proxBroadcastReceiver, proxIntentFilter); I'm now

[android-developers] Netbook with Android

2009-04-23 Thread info+farm
Hello all, I am an Android developer and I am going to buy a new netbook for seamless portability. Once I read it is possible to install Android on netbooks as an OS, my eyes started to shine. Therefore, I would like to be able to test my or third party applications on this netbook in the

[android-developers] Re: what is intent action name to launch the native map appl?

2009-04-23 Thread jj
Hello Mark Murphy For showing direction between two points on map there is for launching maps for driving direction this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http://maps.google.com/maps? f=dsaddr=37.4,-121.9+

[android-developers] Android 1.5: Video and photo sharing intents

2009-04-23 Thread chaiesubz
I understand that there are video and photo sharing intents in the 1.5 SDK but am not able to find it. Can someone please help me with this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Fuzzmonkey
I've fixed this now. Rather embarrassingly, in my intent receiver i never actually retrieved the mgoal from the extras. So the info i was getting was just the number i initialized the variable with! Thanks for all your help! George On Apr 23, 1:17 pm, Fuzzmonkey she...@gmail.com wrote: I've

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Fuzzmonkey
I've fixed this now. Rather embarrassingly, in my intent receiver i never actually retrieved the mgoal from the extras. So the info i was getting was just the number i initialized the variable with! Thanks for all your help! George On Apr 23, 1:17 pm, Fuzzmonkey she...@gmail.com wrote: I've

[android-developers] How to load content in WebView asynchronously

2009-04-23 Thread Aaron
Hi I use WebView::loadData to display something. But sometimes the data may be very big, say, more than 200K. I hope the WebView can display the content asynchronously to improve the UI response. Any one knows about this? Thanks Aaron --~--~-~--~~~---~--~~ You

[android-developers] Re: How to track Android PIM changes?

2009-04-23 Thread Aaron
The Google sync framework is not ready for multiple sources sync... I saw in HTC G2, some extra tables are inserted into Contacts and Calendar database for EAS change tracking. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] How to build a debuggable crosstool chain for android on linux_X86_64?

2009-04-23 Thread Hucheng Zhou
Hi @ll: I've successfully build the crosstool chain for android on host linux_x86_64 (gcc-4.4.0, binutils-2.19, new-lib-1.17.0, gdb-6.6, etc), but the problem is that the installed gcc cannot find the corresponding header files, even for simple stdio.h. Why? I use the tar-ball of

[android-developers] vold or mountd

2009-04-23 Thread l hx
now android use the vold instead of mountd. who know why? and if i use vold, i can not mount the sd card in my device. how i can do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: vold or mountd

2009-04-23 Thread Jean-Baptiste Queru
This question should go in the android-porting group. Thanks, JBQ On Thu, Apr 23, 2009 at 6:53 AM, l hx lihongxia8...@gmail.com wrote: now android use the vold instead of mountd. who know why? and if i use vold, i can not mount the sd card in my device. how i can do? -- Jean-Baptiste

[android-developers] AutoCompleteTextView and Theme.Light

2009-04-23 Thread Huebi
Hi, if I use an AutoCompleteTextView and the Theme.Light, I cannot see the text in the dropdown-box as the font is changed to white and the background of the dropdown is white as well. Any help on how to change the font color of the dropdown list?

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Guillaume Perrot
info+fram Use different request codes each time in PendingIntent.getActivity, the documentation is bugged and say this is not in use but they DO work. There is an old discussion on this one:

[android-developers] Re: Parsing XML feed with SAX

2009-04-23 Thread Mariano Kamp
I don't know. Did you try a smaller document?How big is it anyway? What does the log say? On Thu, Apr 23, 2009 at 12:28 PM, mobilekid mobilek...@googlemail.comwrote: Just to add to my message, endDocument() doesn't get called... Does that mean that the document is too big too parse?!

[android-developers] Re: MediaPlayer sound problem

2009-04-23 Thread Marco Nelissen
Does it work with longer sounds? Have you tried using MediaPlayer.setLooping(true) instead of restarting it yourself from the OnCompletionListener callback? On Thu, Apr 23, 2009 at 12:00 AM, BlackLight blacklight1...@gmail.comwrote: Hello. I have this task: Need to play short (0.3-0.4 sec)

[android-developers] Ways To Monetize Free Android Application

2009-04-23 Thread Android
Hi everyone, sadly i can't sell apps to the android market..(yet) till then.. how can i make money from free apps?can you share info on ad-supported model? is the use of landing page/links to websites allowed? Thank you --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Screen lock turns of the accelerometer.

2009-04-23 Thread dilit
Accelerometer does work under screen lock when the power is not dimmed. We debugged it in ddms on the real g1 device. Guess, if you can acquire a Power wake Lock, you should be able to read acceleration. We have not tried to acquire it in program, just manually. This was done on current android

[android-developers] Re: Error installing ADT 0.9

2009-04-23 Thread Anna PS
I had the same problem and this worked for me. Use wget with the -c option to resume downloads. On Apr 22, 10:52 am, chris christian.fo...@gmail.com wrote: It seems the download server is occupied/busy and resets the connections quite often. I recommend downloading the file using a program

[android-developers] Re: Parsing XML feed with SAX

2009-04-23 Thread mobilekid
It isn't big at all, it's got about 25 elements, it's not not a very deep tree either. I've parsed way longer XML feeds in the past with the same implementation of SAX. I asked the server guy to remove the element where it got stuck, and then it managed to parse one more element down the tree,

[android-developers] Re: Parsing XML feed with SAX

2009-04-23 Thread Mariano Kamp
What happens when you add a println statement before the last line? Is this reached? Is startDocument() called and how do you know that endDocument() is not called? In the quoted code you're not doing anything. Also, is it a conscious decision to use SAX here? I think SAX is a pain for most

[android-developers] OnClickListener for a mapview never called

2009-04-23 Thread RodgerWilko!
Hi, I have setup a OnClickListener for a mapview and find that it's never called. I have set clickable to be true but it's still not working. Am I missing something or is the OnClickListener not supported on a mapview? Thanks --~--~-~--~~~---~--~~ You received

[android-developers] “The application xxxxxxxx (pr ocess xxxxxx) has stopped unexpectedly. Please try again.”

2009-04-23 Thread Kenn Min Chong
Hi there! For some reason I can't explain, when my app runs, I will on occasion get the following error message: “The application (process xx) has stopped unexpectedly. Please try again.” When I debug my code, it seems to break at random places that doesn't make sense. On top

[android-developers] distributing an app packaged with just emulator

2009-04-23 Thread tansaku
Hi All, I was wondering if anyone has ever been able to distribute their app in a bundle with an emulator? The reason I want to do this is that I have some friends who don't have android phones, but I'd like them to be able to play with my app so that they can give me feedback. I've previously

[android-developers] Re: getspeed

2009-04-23 Thread RodgerWilko!
Hey Gandor, I think you need to add in your androidmanifest.xml uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission normally it goes after the closing application tag Cheers On Apr 23, 4:22 pm, gandor gand...@gmail.com wrote: Hi, If I want to simulate

[android-developers] Emulator data connection problem

2009-04-23 Thread Farshad
When I run the emulator on my laptop with wired connection, my rtsp player application works fine. But when I have the laptop hooked up with a wireless network, my rtsp player application cannot establish data connection. My rtsp player application always works fine on G1. Why the emulator has

[android-developers] write android UI by C language ?

2009-04-23 Thread zhangho
Though there is a library written by a c language, I cannot call it from UI side because it is not a JNI library. Please teach it though I think that I can write android UI by C language. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Failed to reopen debug port for Selected Client to:

2009-04-23 Thread kyb
On Mar 5, 8:19 pm, NWallman ad...@noobspeak.com wrote: Turns out my hosts file was messed up. When I fixed that my problem was resolved. Can you give a bit more information? I seem to have this problem as well. What should my hosts file have?

[android-developers] Customer signature

2009-04-23 Thread Stéphane POUVRASSEAU
Hi ! In my app, I need a customer signature for prooving the customer have seen some informations and validate them. - Does anybody knows the Android way for implementing a customer signature ? With Windows CE, we can use a signature's specific component, and the customer can use the pen to

[android-developers] Re: why does clicking on 'x' of the linux emulator not working?

2009-04-23 Thread Ben
I have encountered the same problem using ubuntu 9.04 RC. Clicking the 'x' does not terminate the emulator, I have to manually kill the emulator process. I tried the suggestion above killall -9 esd and it does not help. For me, this issue happens all the time and I have manually kill the

[android-developers] How to HTTP Post

2009-04-23 Thread Moons
Hello everyone, I'm posting here because I searched the web and found nothing about how to HTTP POST. What I want to do is to access a webpage (PHP) sending data with the POST method. I'm not interested about seeing the webpage, I just want to send the data. Actually, it's for a game i developed,

[android-developers] Information about required permissions

2009-04-23 Thread thiagofj2000
Hi all, I would like to know if there's documentation about what are the required permissions for each activity, intent, broadcastReceiver, etc. Or maybe there is a file with this info in the SDK? Thanks --~--~-~--~~~---~--~~ You received this message because

[android-developers] aidl problem in building android source code

2009-04-23 Thread Jackie
hello, folks, I'm building the android source code for the first time. I've searched the forum for my issue but failed to find me. please kindly help me to resolve this problem. thanks. I'm building android source code in Ubuntu 8.10, and got the following error message: host C++: aidl =

[android-developers] Android SDK 1.5 Voice recognition sample

2009-04-23 Thread jigyasa
VoiceRecognition in android api sample fails with no activity registered for intent message while running in simulator.Is there any app that would provide me this feature for testing or i need to get something from android source site. --~--~-~--~~~---~--~~ You

[android-developers] Emulator power off immediately

2009-04-23 Thread Chih-Wei
Hello, I just do repo sync and recompile the whole tree again. When I start the emulator, it showed the android logo, and then a window 'Power Off shutting down' is shown. Then the emulator window has no any response to any input. Strange... I remember I can run the emulator correctly yesterday

[android-developers] Android testing: Emulator vs G1

2009-04-23 Thread HowlettAndroid
Hello, Hope you lot can help. I'm currently testing my application in the SDK emulator, Great everything works perfectly. The next step was to try the same application loaded on to the G1. After loading the app, I'm getting some strange behaviour. Some Activities seem to be called by

[android-developers] What's this problem?

2009-04-23 Thread Alex
I have written a method, like this private Bitmap getBitmapFromUrl(String urlString) { try { URL url = new URL(urlString); HttpURLConnection con = (HttpURLConnection)url.openConnection(); InputStream is = con.getInputStream(); Bitmap bmp = BitmapFactory.decodeStream(is);

[android-developers] HttpUrlConnection problem

2009-04-23 Thread Mika
Hi all, I have a strange problem with HttpUrlConnection. I can send data (with POST), but the receiving succeeds only every second time or after a sufficiently long ( 5 min) pause between the sends. I basically start a new thread where the initialization of the HttpUrlConnection, writing/reading

[android-developers] Re: OnClickListener for a mapview never called

2009-04-23 Thread Arnaud Weber
have you tried the OnTouch event? I've not used mapView yet but a click is the action to touch and to release... i think on a mapview the proper event to catch is more a touching event than a clicking event. 2009/4/23 RodgerWilko! lach.mcc...@gmail.com Hi, I have setup a OnClickListener for

[android-developers] Start native application from Java

2009-04-23 Thread Anders
Hi, I have a native application that I would like to start from a Java interface. Does anyone know of a good way of doing this? I can start the application using adb, with no problems. I can also start the application using Runtime.exec(), but that doesn't work so well for me; I need the

[android-developers] Re: Parsing XML feed with SAX

2009-04-23 Thread mobilekid
What happens when you add a println statement before the last line? Is this reached? Is startDocument() called and how do you know that endDocument() is not called? In the quoted code you're not doing anything. Yes, startDocument() gets called, endDocument() doesn't, I know that as I've

[android-developers] Re: Start native application from Java

2009-04-23 Thread Dianne Hackborn
Hi, this technically isn't part of the SDK, so would be better asked on a group like android-porting. (Yes, there are Java calls to do this, but native code in any form is not supported at this time.) On Thu, Apr 23, 2009 at 4:42 AM, Anders lanils...@gmail.com wrote: Hi, I have a native

[android-developers] Re: write android UI by C language ?

2009-04-23 Thread Dianne Hackborn
You can't do android UI in C. The UI framework is written in Java. On Wed, Apr 22, 2009 at 9:01 PM, zhangho cui.chang...@gmail.com wrote: Though there is a library written by a c language, I cannot call it from UI side because it is not a JNI library. Please teach it though I think that I

[android-developers] Re: “The application xxxxxxxx (process xxxxxx) has stopped unexpectedly. Please try again .”

2009-04-23 Thread Dianne Hackborn
Have you looked at the stack crawl in the log? Nobody can give help unless you at least provide that. On Wed, Apr 22, 2009 at 5:03 PM, Kenn Min Chong kmch...@gomez.com wrote: Hi there! For some reason I can't explain, when my app runs, I will on occasion get the following error message:

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Dianne Hackborn
No, I mean setting the explicit component to your broadcast receiver component on the Intent class. I strongly strongly recommend this for this kind of situation where you want someone to deliver some specific thing to a component in your app. Please read the Intent java doc for more info. On

[android-developers] Re: why there's no boot.img in Android-1.5

2009-04-23 Thread Dianne Hackborn
Please move this to android-porting. On Thu, Apr 23, 2009 at 2:17 AM, david 1 david...@gmail.com wrote: The kernel is lost. I traced the making log, and found boot image is generated based on ramdisk image kernel. So, boot image is not created successfully. Then I 'make ARCH=arm

[android-developers] Re: Why the service is always to restart even if force to kill it?

2009-04-23 Thread Dianne Hackborn
On Wed, Apr 22, 2009 at 10:51 PM, Eckel zhangjin...@gmail.com wrote: You can get the running prcess info with process id from activitymanager, then kill it by Process.KillProcess(mPid). So wait... you are saying you just wrote a regular application in an .apk, and you can do this? You

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Rob Franz
So with all the input from this thread, what's the proper way to send x number of pending intents that are unique? I guess I'm doing it not 100% correctly (even though it seems to work for me and the intents are spaced out enough not to interfere with each other). I was doing it as

[android-developers] Re: Could title bar of activity listen to click event?

2009-04-23 Thread Dianne Hackborn
Implement your own custom title bar. You will need to make this taller than the regular title bar anyway for a decent user experience (especially if you want DOUBLE tap...), so just bit the bullet and do your own thing. 2009/4/22 UJ ujhu...@gmail.com Dear Dianne, Generally speaking, I

[android-developers] Re: How to HTTP Post

2009-04-23 Thread Arnaud Weber
HttpClient... look in google or in this group historical with that keyword. 2009/4/23 Moons moone...@gmail.com Hello everyone, I'm posting here because I searched the web and found nothing about how to HTTP POST. What I want to do is to access a webpage (PHP) sending data with the POST

[android-developers] Re: “The application xxxxxxxx (process xxxxxx) has stopped unexpectedly. Please try again .”

2009-04-23 Thread Arnaud Weber
To try catch the whole code is not a good practice but... have you tried to catch exception or throwable? It is not necesserly the system that is bugging but your thread may eventually be candidate to garbage collection if no reference is made to it and your parent thread has closed. Are you

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

2009-04-23 Thread bo
I do SharedPreferences.Editor.commit() in couple of places. 1. Immediately after setting the preference. 2. in Activity#onStop. Nevertheless when I restart the app the preferences are gone. Any more ideas? I do create prefs programmaticaly after harvesting these from user (username/pwd) On Apr

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

2009-04-23 Thread Mattaku Betsujin
I found that the preferences XML will break very easily if you store some Strings containing 'special' characters. I am not sure what exactly those are, but when I stored things like putString(someurl, http://xyz/?a=bc=d;) the preference file becomes empty next time I try to open it. My

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-23 Thread Dave Sparks
I suspect the problem is the interval you chose: 50 frames @ 8KHz is 6.25 msecs. Your app is not going to be able to handle a callback every 6.25 msecs. Try something more reasonable like 50 msecs (400 frames) and see if that works. On Apr 23, 1:56 am, Steven_T gwb...@126.com wrote: hello

[android-developers] Re: Audio streaming/progressive download over HTTP

2009-04-23 Thread Dave Sparks
There is currently no support for Flash in Android. On Apr 22, 7:37 pm, tainy tainy.zh...@gmail.com wrote: Thanks a lof , Dave. So I can use http streaming on H.264/H.263/MPEG4-SP and use rtsp streaming on H.263/MPEG4-SP, the issue with H.264 will be fixed thanks for your work.

[android-developers] Re: Doesn't Android-1.0 support Recording Video well?

2009-04-23 Thread Dave Sparks
This forum is for application developers to discuss supported features in the SDK. If you want to discuss Android framework, then please take this to android-framework. On Apr 22, 7:40 pm, david 1 david...@gmail.com wrote: OK, thanks. BTW, does OpenCore-2.01 or 2.02 support it? david

[android-developers] Re: “The application xxxxxxxx (process xxxxxx) has stopped unexpectedly. Please try again .”

2009-04-23 Thread Fred Grott(shareme)
Best bet is to post a log and than we can help you narrow it down On Apr 22, 7:03 pm, Kenn Min Chong kmch...@gomez.com wrote: Hi there!      For some reason I can't explain, when my app runs, I will on occasion get the following error message: “The application (process xx) has

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-04-23 Thread Moto
I thought you could continuously write data into the AudioTrack as long as the buffer size specified at the creation of the AudioTrack was not exceeded... and you can call play() as long as there was enough data to start playback... --~--~-~--~~~---~--~~ You

[android-developers] Re: Android SDK 1.5 Voice recognition sample

2009-04-23 Thread z
I posted exact same problem a few days back too. Could someone help? On Apr 23, 7:22 am, jigyasa jigyasadu...@gmail.com wrote: VoiceRecognition in android api sample  fails with no activity registered for intent message while running in simulator.Is there any app that would provide me this

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Rob Franz
Cool, will look into that then. Thanks all. On Thu, Apr 23, 2009 at 1:52 PM, Dianne Hackborn hack...@android.comwrote: Different request codes is a perfectly fine way to do it. On Thu, Apr 23, 2009 at 9:48 AM, Rob Franz rob.fr...@gmail.com wrote: So with all the input from this thread,

[android-developers] Re: PendingIntent problem

2009-04-23 Thread Dianne Hackborn
That said... I would be -very- suspicious about the code you posted where you are effectively creating random identities for your pending intents. In most of the places where one uses a pending intent, you give it to something that holds on to it indefinitely, so you need to be able to recover

[android-developers] Re: AppWidget issues

2009-04-23 Thread Jeff Sharkey
So just a heads up that we won't be able to fix the onDeleted() bug for the 1.5 SDK. Here is a quick workaround that you can patch against your class that extends AppWidgetProvider to correctly catch and handle the onDeleted() event. @Override public void onReceive(Context context, Intent

[android-developers] Re: Information about required permissions

2009-04-23 Thread thiagofj2...@gmail.com
Ok, thanks for the answer. On 23 abr, 14:56, Dianne Hackborn hack...@android.com wrote: No, sorry. On Thu, Apr 23, 2009 at 9:16 AM, thiagofj2...@gmail.com wrote: Hi all, I would like to know if there's documentation about what are the required permissions for each activity, intent,

[android-developers] Re: animated GIF support in android

2009-04-23 Thread mathiastck
In BitmapDecode.java APIDemos shows how you can use Movie to display an animated GIF. I had partial success with it in the past. (I sometimes got a movie back with zero duration). On Apr 23, 4:33 am, Mark Murphy mmur...@commonsware.com wrote: Nasam wrote: Is animated GIF supported in

[android-developers] Re: HttpUrlConnection problem

2009-04-23 Thread Streets Of Boston
I had a similar issue and i gave up. Instead i used the DefaultHttpClient class together with HttpPut/ HttpGet/HttpResponse classes. This works fine. On Apr 23, 5:50 am, Mika mika.ristim...@tkk.fi wrote: Hi all, I have a strange problem with HttpUrlConnection. I can send data (with POST),

[android-developers] Re: Android SDK 1.5 Voice recognition sample

2009-04-23 Thread z
And this is the error: android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.speech.action.RECOGNIZE_SPEECH } or with extras in you specify them. It's a runtimeexception being caught and rethrown in ZygoteInit.java line 788. On Apr 23, 10:53 am, z

[android-developers] Customer signature

2009-04-23 Thread Joe
Hi ! In my app, I need a customer signature for prooving the customer have seen some informations and validate them. - Does anybody knows the Android way for implementing a customer signature ? With Windows CE, we can use a signature's specific component, and the customer can use the pen to

[android-developers] bad sqlite performance

2009-04-23 Thread skink
i was quite surprised when dealing with android's sqlite implementation. suppose i have db with a table counting moro or less 4 rows. now i do query 'select field from table'. no 'where' clause so result set should have all rows. and i was surprized that Cursor 'allocates' probably all

[android-developers] Re: Customer signature

2009-04-23 Thread dan raaka
There is no ready-to-use signature widget in android. But writing one shouldn't be too hard. Create a custom view, see fingerpaint example in the APIdemos, and when the user is done, take a snapshot of the view (which contains the signature). This would very similar to a checkout machine in the

[android-developers] SDK1.5 AudioRecord sample rate problem

2009-04-23 Thread szabolcs
I was trying to record sound using the MIC with the AudioRecord class: mRecord = new AudioRecord( MediaRecorder.AudioSource.MIC, SAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_DEFAULT,

[android-developers] Re: Android testing: Emulator vs G1

2009-04-23 Thread havexz
You havnt clearly defined the problem. When is your activities called again? By called again you mean these activities get restarted? If I am guessing right this happens when you slide out the keyboard (when the orientation is changed)? On Apr 23, 8:44 am, HowlettAndroid

[android-developers] Re: Information about required permissions

2009-04-23 Thread havexz
Will there be some in the future? And also shouldnt be there a document atleast for the standard activities like viberation related? On Apr 23, 12:56 pm, Dianne Hackborn hack...@android.com wrote: No, sorry. On Thu, Apr 23, 2009 at 9:16 AM, thiagofj2...@gmail.com wrote: Hi all, I would

[android-developers] Re: Customer signature

2009-04-23 Thread Jeff Sharkey
btw, it might be lighter-weight to collect and package up the vector drawing instructions, instead of a heavy image. j On Thu, Apr 23, 2009 at 12:30 PM, dan raaka danra...@gmail.com wrote: There is no ready-to-use signature widget in android. But writing one shouldn't be too hard. Create a

[android-developers] Re: Java bytecode question (help greatly appreciated!)

2009-04-23 Thread fadden
On Apr 22, 3:22 pm, Mark Fayngersh phunny.pha...@gmail.com wrote: Exception in thread main java.lang.VerifyError: (class: byteCode, method: main signature: ([Ljava/lang/String;)V) Expecting to find object/array on stack Does anyone understand what this means? If my source helps, I will

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

2009-04-23 Thread scanning_it
Thank you for your responses. By the way I love Nubinews. :) It is a known bug that signs lead to a loss of shared prefs. But my settings don't include these signs. :( I have only the following things included as strings: content://media/internal/audio/media/33 100,200,300,400 So this

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

2009-04-23 Thread Mattaku Betsujin
I also saw the prefs being lost ocassionally, especially after update or reinstall. I haven't seen it happen (yet) after quoting, but maybe that's just luck. I will also add a call to setPersistent to my app see if that helps. On Thu, Apr 23, 2009 at 1:12 PM, scanning_it

  1   2   >